[gtk+/native-layout] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
- Date: Sun, 4 Apr 2010 02:34:35 +0000 (UTC)
commit 2d96f393352edc5b9821ed432a33a0820897ef06
Author: Javier Jardón <jjardon gnome org>
Date: Mon Mar 1 18:24:28 2010 +0100
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
gtk/gtkwidget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c0204b7..8c48f0a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]