通过Treeview显示Liststore,不能改变要显示的Liststore

打开一个Dialog,在该Dialog关闭前禁止操作父窗口。不知道该怎么完成。

作者: fengtom   发布时间: 2011-03-01

GTK_DIALOG_MODAL 使用独占模式 ?

gtk_window_set_modal ()

void gtk_window_set_modal (GtkWindow *window,
gboolean modal);
Sets a window modal or non-modal. Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use gtk_window_set_transient_for() to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent.

window :

a GtkWindow
modal :

whether the window is modal

作者: eexpress   发布时间: 2011-03-01