gtk_window_set_transient_for .

gtk_window_set_transient_for .

题目
gtk_window_set_transient_for .
Dialog windows should be set transient for the main application window they were spawned from.This allows window managers to e.g.keep the dialog on top of the main window,or center the dialog over the main window.gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf.
On Windows,this function will and put the child window on top of the parent,much as the window manager would have done on X.
答案
目的是把父窗口设置成应用程序窗口,这样可以让窗口管理器知道它是属于应用程序的一个对话框,类似把子窗口设为模态对话框置于顶层
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.