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...
问如何使用gtk_window_set_transient_for ()?EN如果不停的 new 数组,可能会造成 GC 的压力,因此在...
gtk_window_set_geometry_hints() - Allow the user to set minimum, maximum sizes, aspect rations, and gridded geometry, possibly all with respect to a subwidget of the window. These interfaces are still a wee bit experimental. * gdk/gdk.c: Added gdk_window_set_transient_for(), gdk_...
目的是把父窗口设置成应用程序窗口,这样可以让窗口管理器知道它是属于应用程序的一个对话框,类似把子窗口设为模态对话框置于顶层