[gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
- Date: Mon, 1 Mar 2010 17:35:40 +0000 (UTC)
commit c3d09e5627c1e59e4d181d1d4674d9af2a4eca45
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 3b4d653..7dfdcb1 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]