only remove the signal if the box exists.

Thu May 27 00:07:47 2004  Jonathan Blandford  <jrb@gnome.org>

        * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
        signal if the box exists.
This commit is contained in:
Jonathan Blandford 2004-05-27 04:08:26 +00:00 committed by Jonathan Blandford
parent 310fd268e7
commit d61e4f7440
5 changed files with 26 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Thu May 27 00:07:47 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
signal if the box exists.
Wed May 26 23:26:51 2004 Matthias Clasen <maclas@gmx.de>
Support insensitive cells in tree views and combo boxes:

View File

@ -1,3 +1,8 @@
Thu May 27 00:07:47 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
signal if the box exists.
Wed May 26 23:26:51 2004 Matthias Clasen <maclas@gmx.de>
Support insensitive cells in tree views and combo boxes:

View File

@ -1,3 +1,8 @@
Thu May 27 00:07:47 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
signal if the box exists.
Wed May 26 23:26:51 2004 Matthias Clasen <maclas@gmx.de>
Support insensitive cells in tree views and combo boxes:

View File

@ -1,3 +1,8 @@
Thu May 27 00:07:47 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
signal if the box exists.
Wed May 26 23:26:51 2004 Matthias Clasen <maclas@gmx.de>
Support insensitive cells in tree views and combo boxes:

View File

@ -2467,11 +2467,12 @@ gtk_combo_box_list_destroy (GtkComboBox *combo_box)
0, 0, NULL,
gtk_combo_box_list_button_pressed,
NULL);
g_signal_handlers_disconnect_matched (combo_box->priv->box,
G_SIGNAL_MATCH_DATA,
0, 0, NULL,
gtk_combo_box_list_button_pressed,
NULL);
if (combo_box->priv->box)
g_signal_handlers_disconnect_matched (combo_box->priv->box,
G_SIGNAL_MATCH_DATA,
0, 0, NULL,
gtk_combo_box_list_button_pressed,
NULL);
/* destroy things (unparent will kill the latest ref from us)
* last unref on button will destroy the arrow