[gtk+/parasite] parasite: Use a window group



commit 2abfed5e23df9735239e5fa37c8915bc844ab828
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 3 01:30:29 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 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/modules/other/parasite/window.c b/modules/other/parasite/window.c
index b750511..b020526 100644
--- a/modules/other/parasite/window.c
+++ b/modules/other/parasite/window.c
@@ -183,7 +183,8 @@ gtkparasite_window_create (void)
   ParasiteWindow *window;
   GtkWidget *vpaned;
   GtkWidget *notebook;
-  char *title;
+  gchar *title;
+  GtkWindowGroup *group;
 
   window = g_new0 (ParasiteWindow, 1);
 
@@ -197,6 +198,9 @@ gtkparasite_window_create (void)
   gtk_window_set_title (GTK_WINDOW (window->window), title);
   g_free (title);
 
+  group = gtk_window_group_new ();
+  gtk_window_group_add_window (group, window->window);
+
   vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
   gtk_widget_show (vpaned);
   gtk_container_add (GTK_CONTAINER (window->window), vpaned);


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