[gtk+] Sensitivity event box should only be toggled if cell view is non-NULL



commit 95cb1cc86cf3624069a3583bcf28b572a5d12d18
Author: Kristian Rietveld <kris gtk org>
Date:   Mon Sep 21 12:57:39 2009 +0200

    Sensitivity event box should only be toggled if cell view is non-NULL

 gtk/gtkcombobox.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index b2886d6..c5e021f 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -3220,7 +3220,8 @@ gtk_combo_box_update_sensitivity (GtkComboBox *combo_box)
   gtk_widget_set_sensitive (combo_box->priv->button, sensitive);
 
   /* In list-mode, we also need to update sensitivity of the event box */
-  if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view))
+  if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view)
+      && combo_box->priv->cell_view)
     gtk_widget_set_sensitive (combo_box->priv->box, sensitive);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]