mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
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
b909abaa62
commit
27b64f50e6
@ -443,7 +443,7 @@ my_widget_init (MyWidget *widget)
|
||||
{
|
||||
...
|
||||
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED);
|
||||
gtk_widget_set_double_buffered (widget, FALSE);
|
||||
|
||||
...
|
||||
}
|
||||
|
@ -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_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