mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
This commit is contained in:
parent
27b64f50e6
commit
c3d09e5627
@ -6225,12 +6225,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