[gtk+/native-layout] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_APP_PAINTABLE)



commit 5c2c742c8d667bd69b8352a2488dcfe5dcb3b30a
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Mar 6 12:29:26 2010 +0100

    Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_APP_PAINTABLE)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=69872

 gtk/gtkwidget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 72d57f1..70f7d83 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6087,9 +6087,9 @@ gtk_widget_set_app_paintable (GtkWidget *widget,
   if (gtk_widget_get_app_paintable (widget) != app_paintable)
     {
       if (app_paintable)
-	GTK_WIDGET_SET_FLAGS (widget, GTK_APP_PAINTABLE);
+        GTK_OBJECT_FLAGS (widget) |= GTK_APP_PAINTABLE;
       else
-	GTK_WIDGET_UNSET_FLAGS (widget, GTK_APP_PAINTABLE);
+        GTK_OBJECT_FLAGS (widget) &= ~(GTK_APP_PAINTABLE);
 
       if (gtk_widget_is_drawable (widget))
 	gtk_widget_queue_draw (widget);



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