From 1931a8db5d204caf8cea3a93cfb699ea2a20067b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sat, 6 Mar 2010 13:17:56 +0100 Subject: [PATCH] Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init() --- gtk/gtkwidget.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 56c7772d72..13119c6b00 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -2843,11 +2843,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);