Commit 3a316fb5 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Fix state propagation when making an insensitive combo box sensitive

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)
parent db4665b4
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.
......
......@@ -854,8 +854,15 @@ gtk_combo_box_button_state_changed (GtkWidget *widget,
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment