gnome-terminal r2776 - trunk/src



Author: chpe
Date: Thu May 29 19:53:08 2008
New Revision: 2776
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2776&view=rev

Log:
Make each window have its own window group, so modal dialogues don't block other windows.


Modified:
   trunk/src/terminal-window.c

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Thu May 29 19:53:08 2008
@@ -1314,6 +1314,7 @@
   GtkUIManager *manager;
   GtkWidget *main_vbox;
   GError *error;
+  GtkWindowGroup *window_group;
 
   priv = window->priv = G_TYPE_INSTANCE_GET_PRIVATE (window, TERMINAL_TYPE_WINDOW, TerminalWindowPrivate);
 
@@ -1433,6 +1434,10 @@
    * emitted for the toplevel the first time!
    */
   terminal_window_settings_update (GTK_WIDGET (window));
+
+  window_group = gtk_window_group_new ();
+  gtk_window_group_add_window (window_group, GTK_WINDOW (window));
+  g_object_unref (window_group);
 }
 
 static void



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