diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 0831ce6965..c6304229d1 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -2073,7 +2073,7 @@ update_menu_sensitivity (GtkComboBox *combo_box, { GtkComboBoxPrivate *priv = combo_box->priv; GList *children, *child; - GtkWidget *item, *submenu, *separator; + GtkWidget *item, *submenu; GtkWidget *cell_view; gboolean sensitive; @@ -2099,15 +2099,7 @@ update_menu_sensitivity (GtkComboBox *combo_box, else { sensitive = cell_layout_is_sensitive (GTK_CELL_LAYOUT (cell_view)); - - if (menu != priv->popup_widget && child == children) - { - separator = GTK_WIDGET (child->next->data); - g_object_set (item, "visible", sensitive, NULL); - g_object_set (separator, "visible", sensitive, NULL); - } - else - gtk_widget_set_sensitive (item, sensitive); + gtk_widget_set_sensitive (item, sensitive); } }