Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)

Use new API instead: gtk_widget_set_double_buffered ()
This commit is contained in:
Javier Jardón 2010-03-01 18:14:05 +01:00
parent b909abaa62
commit 27b64f50e6
2 changed files with 3 additions and 3 deletions

View File

@ -443,7 +443,7 @@ my_widget_init (MyWidget *widget)
{ {
... ...
GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED); gtk_widget_set_double_buffered (widget, FALSE);
... ...
} }

View File

@ -6138,9 +6138,9 @@ gtk_widget_set_double_buffered (GtkWidget *widget,
if (double_buffered != gtk_widget_get_double_buffered (widget)) if (double_buffered != gtk_widget_get_double_buffered (widget))
{ {
if (double_buffered) if (double_buffered)
GTK_WIDGET_SET_FLAGS (widget, GTK_DOUBLE_BUFFERED); GTK_OBJECT_FLAGS (widget) |= GTK_DOUBLE_BUFFERED;
else else
GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED); GTK_OBJECT_FLAGS (widget) &= ~(GTK_DOUBLE_BUFFERED);
g_object_notify (G_OBJECT (widget), "double-buffered"); g_object_notify (G_OBJECT (widget), "double-buffered");
} }