2004-12-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
+ state propagation when making an insensitive combo box sensitive
+ again. (#162524, Carlos Garnacho Parro)
+
* gtk/gtkfilechooserdefault.c: Use secondary text for error
dialogs.
2004-12-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
+ state propagation when making an insensitive combo box sensitive
+ again. (#162524, Carlos Garnacho Parro)
+
* gtk/gtkfilechooserdefault.c: Use secondary text for error
dialogs.
2004-12-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
+ state propagation when making an insensitive combo box sensitive
+ again. (#162524, Carlos Garnacho Parro)
+
* gtk/gtkfilechooserdefault.c: Use secondary text for error
dialogs.
2004-12-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
+ state propagation when making an insensitive combo box sensitive
+ again. (#162524, Carlos Garnacho Parro)
+
* gtk/gtkfilechooserdefault.c: Use secondary text for error
dialogs.
if (GTK_WIDGET_REALIZED (widget))
{
if (!combo_box->priv->tree_view && combo_box->priv->cell_view)
- gtk_widget_set_state (combo_box->priv->cell_view,
- GTK_WIDGET_STATE (widget));
+ {
+ if ((GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE) !=
+ (GTK_WIDGET_STATE (combo_box->priv->cell_view) == GTK_STATE_INSENSITIVE))
+ gtk_widget_set_sensitive (combo_box->priv->cell_view, GTK_WIDGET_SENSITIVE (widget));
+
+ gtk_widget_set_state (combo_box->priv->cell_view,
+ GTK_WIDGET_STATE (widget));
+
+ }
}
gtk_widget_queue_draw (widget);