check handler_id before disconnecting the signal handler since it might

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.
This commit is contained in:
Sven Neumann 2002-02-20 11:56:17 +00:00 committed by Sven Neumann
parent 8ac97865e8
commit 55b46cc8d4
8 changed files with 52 additions and 2 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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;