mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Do not unset sensitivity mistakenly in gtk_widget_set_state_flags()
together with commit 8903615a34, this finally fixes bug #640282. Insensitivity is handled separatedly in _gtk_widget_update_state_flags(), but the insensitive flag is mistakenly unset afterwards if clear is TRUE in gtk_widget_set_state_flags().
This commit is contained in:
parent
a0e1fa9e77
commit
0c7772f0cf
@ -6969,6 +6969,7 @@ _gtk_widget_update_state_flags (GtkWidget *widget,
|
||||
gtk_widget_set_sensitive (widget,
|
||||
operation != STATE_CHANGE_UNSET);
|
||||
|
||||
if (operation != STATE_CHANGE_REPLACE)
|
||||
flags &= ~(GTK_STATE_FLAG_INSENSITIVE);
|
||||
|
||||
/* Focused state is meant to be set only on the widget
|
||||
|
Loading…
Reference in New Issue
Block a user