forked from AuroraMiddleware/gtk
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:
parent
3ebbee6958
commit
5d4af6ca80
@ -443,7 +443,7 @@ my_widget_init (MyWidget *widget)
|
||||
{
|
||||
...
|
||||
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED);
|
||||
gtk_widget_set_double_buffered (widget, FALSE);
|
||||
|
||||
...
|
||||
}
|
||||
|
@ -6153,9 +6153,9 @@ gtk_widget_set_double_buffered (GtkWidget *widget,
|
||||
if (double_buffered != gtk_widget_get_double_buffered (widget))
|
||||
{
|
||||
if (double_buffered)
|
||||
GTK_WIDGET_SET_FLAGS (widget, GTK_DOUBLE_BUFFERED);
|
||||
GTK_OBJECT_FLAGS (widget) |= GTK_DOUBLE_BUFFERED;
|
||||
else
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED);
|
||||
GTK_OBJECT_FLAGS (widget) &= ~(GTK_DOUBLE_BUFFERED);
|
||||
|
||||
g_object_notify (G_OBJECT (widget), "double-buffered");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user