]> Pileus Git - ~andy/gtk/commitdiff
check handler_id before disconnecting the signal handler since it might
authorSven Neumann <sven@gimp.org>
Wed, 20 Feb 2002 11:56:17 +0000 (11:56 +0000)
committerSven Neumann <neo@src.gnome.org>
Wed, 20 Feb 2002 11:56:17 +0000 (11:56 +0000)
2002-02-20  Sven Neumann  <sven@gimp.org>

* gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
handler_id before disconnecting the signal handler since it might
have never been connected if the GtkColorSelection is destroyed
before it was realized.

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
gtk/gtkcolorsel.c

index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index cedc12764fcf97614d34f3bf2732d0f001a29394..f5cc9e7840c9ae888ecc73bef5000b8475bea887 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-20  Sven Neumann  <sven@gimp.org>
+
+       * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
+       handler_id before disconnecting the signal handler since it might
+       have never been connected if the GtkColorSelection is destroyed
+       before it was realized.
+
 2002-02-20  Matthias Clasen  <maclas@gmx.de>
 
        * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
index 5c9791863ae5c1c442520c979a2f5f1eb780be9f..0a7f2d9f2e919ec52006a7450b0f154fd284bd4c 100644 (file)
@@ -1944,8 +1944,9 @@ gtk_color_selection_finalize (GObject *object)
 
       priv = cselection->private_data;
 
-      g_signal_handler_disconnect (gtk_settings_get_default (),
-                                   priv->settings_connection);
+      if (priv->settings_connection)
+        g_signal_handler_disconnect (gtk_settings_get_default (),
+                                     priv->settings_connection);
       
       g_free (cselection->private_data);
       cselection->private_data = NULL;