Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)

This commit is contained in:
Javier Jardón 2010-03-01 18:24:28 +01:00
parent 27b64f50e6
commit c3d09e5627

View File

@ -6225,12 +6225,12 @@ gtk_widget_set_sensitive (GtkWidget *widget,
if (sensitive) if (sensitive)
{ {
GTK_WIDGET_SET_FLAGS (widget, GTK_SENSITIVE); GTK_OBJECT_FLAGS (widget) |= GTK_SENSITIVE;
data.state = widget->saved_state; data.state = widget->saved_state;
} }
else else
{ {
GTK_WIDGET_UNSET_FLAGS (widget, GTK_SENSITIVE); GTK_OBJECT_FLAGS (widget) &= ~(GTK_SENSITIVE);
data.state = GTK_WIDGET_STATE (widget); data.state = GTK_WIDGET_STATE (widget);
} }
data.state_restoration = TRUE; data.state_restoration = TRUE;