mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
This commit is contained in:
parent
5d4af6ca80
commit
2d96f39335
@ -6240,12 +6240,12 @@ gtk_widget_set_sensitive (GtkWidget *widget,
|
||||
|
||||
if (sensitive)
|
||||
{
|
||||
GTK_WIDGET_SET_FLAGS (widget, GTK_SENSITIVE);
|
||||
GTK_OBJECT_FLAGS (widget) |= GTK_SENSITIVE;
|
||||
data.state = widget->saved_state;
|
||||
}
|
||||
else
|
||||
{
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_SENSITIVE);
|
||||
GTK_OBJECT_FLAGS (widget) &= ~(GTK_SENSITIVE);
|
||||
data.state = GTK_WIDGET_STATE (widget);
|
||||
}
|
||||
data.state_restoration = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user