demo: make demo windows transient to the main window

This prevents them getting lost behind.
This commit is contained in:
William Jon McCann 2013-12-02 21:47:55 -05:00
parent e5726e97f4
commit 8193c8c770

View File

@ -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);
}