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)
This commit is contained in:
Matthias Clasen 2004-12-30 16:15:53 +00:00 committed by Matthias Clasen
parent db4665b45e
commit 3a316fb562
5 changed files with 25 additions and 2 deletions

View File

@ -1,5 +1,9 @@
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.

View File

@ -1,5 +1,9 @@
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.

View File

@ -1,5 +1,9 @@
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.

View File

@ -1,5 +1,9 @@
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.

View File

@ -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);