[gtk+] Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init()



commit 72948f46bd99cac4123459b4065ea93ae609d9c0
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Mar 6 13:17:56 2010 +0100

    Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init()

 gtk/gtkwidget.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 298fa26..58ce2db 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2829,11 +2829,10 @@ gtk_widget_init (GtkWidget *widget)
   widget->window = NULL;
   widget->parent = NULL;
 
-  GTK_WIDGET_SET_FLAGS (widget,
-			GTK_SENSITIVE |
-			GTK_PARENT_SENSITIVE |
-			(composite_child_stack ? GTK_COMPOSITE_CHILD : 0) |
-			GTK_DOUBLE_BUFFERED);
+  GTK_OBJECT_FLAGS (widget) |= GTK_SENSITIVE;
+  GTK_OBJECT_FLAGS (widget) |= GTK_PARENT_SENSITIVE;
+  GTK_OBJECT_FLAGS (widget) |= composite_child_stack ? GTK_COMPOSITE_CHILD : 0;
+  gtk_widget_set_double_buffered (widget, TRUE);
 
   GTK_PRIVATE_SET_FLAG (widget, GTK_REDRAW_ON_ALLOC);
   GTK_PRIVATE_SET_FLAG (widget, GTK_REQUEST_NEEDED);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]