]> Pileus Git - ~andy/gtk/commitdiff
Set up destroy signals so that all windows will be destroyed when one is.
authorAnders Carlsson <andersca@gnu.org>
Fri, 26 Oct 2001 23:37:21 +0000 (23:37 +0000)
committerAnders Carlsson <andersca@src.gnome.org>
Fri, 26 Oct 2001 23:37:21 +0000 (23:37 +0000)
2001-10-27  Anders Carlsson  <andersca@gnu.org>

* tests/testgtk.c
(create_window_states): Set up destroy signals so that
all windows will be destroyed when one is. This fixes
bug #58133.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/testgtk.c

index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 0b3bf1d9e11d83c5b6d4a7d1dd9fe334f1126b9f..dfb3990c4b41a6859284c0e0ad1f51d6066a1cb7 100644 (file)
@@ -3,6 +3,9 @@
        * tests/testgtk.c (create_range_controls): Don't set a 
        fixed height on the hscale widget. This fixes "bug" 
        #55840.
+       (create_window_states): Set up destroy signals so that
+       all windows will be destroyed when one is. This fixes 
+       bug #58133.
 
 2001-10-26  Anders Carlsson  <andersca@gnu.org>
 
index 21925a88e63bbcbe4b45ed2d7fd010d9f3f3a521..b5f42ebe082d4b4917ac22a0acc0fa111fbd2928 100644 (file)
@@ -7964,12 +7964,12 @@ tracking_label (GtkWidget *window)
   GtkWidget *button;
 
   hbox = gtk_hbox_new (FALSE, 5);
-  
+
   gtk_signal_connect_object (GTK_OBJECT (hbox),
                              "destroy",
                              GTK_SIGNAL_FUNC (gtk_widget_destroy),
                              GTK_OBJECT (window));
-
+  
   label = gtk_label_new ("<no window state events received>");
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
@@ -8091,12 +8091,19 @@ create_window_states (void)
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       iconified = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+      gtk_signal_connect_object (GTK_OBJECT (iconified), "destroy",
+                                GTK_SIGNAL_FUNC(gtk_widget_destroy),
+                                GTK_OBJECT (window));
       gtk_window_iconify (GTK_WINDOW (iconified));
       gtk_window_set_title (GTK_WINDOW (iconified), "Iconified initially");
       controls = get_state_controls (iconified);
       gtk_container_add (GTK_CONTAINER (iconified), controls);
       
       normal = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+      gtk_signal_connect_object (GTK_OBJECT (normal), "destroy",
+                                GTK_SIGNAL_FUNC(gtk_widget_destroy),
+                                GTK_OBJECT (window));
+      
       gtk_window_set_title (GTK_WINDOW (normal), "Deiconified initially");
       controls = get_state_controls (normal);
       gtk_container_add (GTK_CONTAINER (normal), controls);