diff options
author | Michael Natterer <mitch@imendio.com> | 2008-08-05 15:44:04 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-08-05 15:44:04 +0000 |
commit | da61c61c4bfdd6adc085e6fed4a5f4153311d1de (patch) | |
tree | 68c91570d3a4f4d2b55c31ecc788dca454d1f43b /gtk/gtkcombobox.c | |
parent | f2527e8d07a1a3bb255e219c0830474c2863c561 (diff) | |
download | gdk-pixbuf-da61c61c4bfdd6adc085e6fed4a5f4153311d1de.tar.gz |
bail out early if priv->button is NULL to avoid zillions of warnings when
2008-08-05 Michael Natterer <mitch@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_update_sensitivity): bail out
early if priv->button is NULL to avoid zillions of warnings when
destroying combo boxes that were working fine before the
button sensitivity patch.
svn path=/trunk/; revision=21014
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 0a081d11a..cc3b0a29d 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -3157,6 +3157,9 @@ gtk_combo_box_update_sensitivity (GtkComboBox *combo_box) GtkTreeIter iter; gboolean sensitive = TRUE; /* fool code checkers */ + if (!combo_box->priv->button) + return; + switch (combo_box->priv->button_sensitivity) { case GTK_SENSITIVITY_ON: |