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



commit 24491f8224a8c9cd68e6a59dcdeefd4fb9ce92f8
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 b7b0b5e..df308b0 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6072,9 +6072,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]