[gtk+/parasite2: 2/38] parasite: Use a window group



commit e4a58450b8f82f05f3e2a8412fc373754482bb07
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 3 13:21:41 2014 -0400

    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

 modules/other/parasite/window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/other/parasite/window.c b/modules/other/parasite/window.c
index 56670dd..4b12b18 100644
--- a/modules/other/parasite/window.c
+++ b/modules/other/parasite/window.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]