forked from AuroraMiddleware/gtk
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:
parent
db4665b45e
commit
3a316fb562
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user