forked from AuroraMiddleware/gtk
demo: make demo windows transient to the main window
This prevents them getting lost behind.
This commit is contained in:
parent
e5726e97f4
commit
8193c8c770
@ -142,6 +142,9 @@ activate_run (GSimpleAction *action,
|
||||
cbdata->model = model;
|
||||
cbdata->path = gtk_tree_model_get_path (model, &iter);
|
||||
|
||||
gtk_window_set_transient_for (GTK_WINDOW (demo), GTK_WINDOW (window));
|
||||
gtk_window_set_modal (GTK_WINDOW (demo), TRUE);
|
||||
|
||||
g_signal_connect (demo, "destroy",
|
||||
G_CALLBACK (window_closed_cb), cbdata);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user