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
This commit is contained in:

committed by
Michael Natterer

parent
f2527e8d07
commit
da61c61c4b
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2008-08-05 Michael Natterer <mitch@imendio.com>
|
2008-08-05 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
Bug 544858 – Seal GtkAdjustment
|
Bug 544858 – Seal GtkAdjustment
|
||||||
|
@ -3157,6 +3157,9 @@ gtk_combo_box_update_sensitivity (GtkComboBox *combo_box)
|
|||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
gboolean sensitive = TRUE; /* fool code checkers */
|
gboolean sensitive = TRUE; /* fool code checkers */
|
||||||
|
|
||||||
|
if (!combo_box->priv->button)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (combo_box->priv->button_sensitivity)
|
switch (combo_box->priv->button_sensitivity)
|
||||||
{
|
{
|
||||||
case GTK_SENSITIVITY_ON:
|
case GTK_SENSITIVITY_ON:
|
||||||
|
Reference in New Issue
Block a user