parasite: Use a window group

By putting the parasite window in a separate group, we can interact
with it even when there is a modal dialog blocking the application
window
This commit is contained in:
Matthias Clasen 2014-05-03 13:21:41 -04:00
parent 81af602dda
commit 2166a9b163

View File

@ -207,6 +207,7 @@ gtkparasite_window_create()
GtkWidget *box;
GtkWidget *nb;
char *title;
GtkWindowGroup *group;
window = g_new0(ParasiteWindow, 1);
@ -222,6 +223,9 @@ gtkparasite_window_create()
G_CALLBACK (delete_window),
NULL);
group = gtk_window_group_new ();
gtk_window_group_add_window (group, GTK_WINDOW (window->window));
title = g_strdup_printf("Parasite - %s", g_get_application_name());
gtk_window_set_title (GTK_WINDOW (window->window), title);