[gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
- Date: Mon, 1 Mar 2010 17:19:52 +0000 (UTC)
commit 27b64f50e6c3ab1d90116ec584e3efa8b6ad5343
Author: Javier Jardón <jjardon gnome org>
Date: Mon Mar 1 18:14:05 2010 +0100
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
Use new API instead: gtk_widget_set_double_buffered ()
docs/reference/gtk/drawing-model.xml | 2 +-
gtk/gtkwidget.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/docs/reference/gtk/drawing-model.xml b/docs/reference/gtk/drawing-model.xml
index 4d697f2..35c230d 100644
--- a/docs/reference/gtk/drawing-model.xml
+++ b/docs/reference/gtk/drawing-model.xml
@@ -443,7 +443,7 @@ my_widget_init (MyWidget *widget)
{
...
- GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED);
+ gtk_widget_set_double_buffered (widget, FALSE);
...
}
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c9f7421..3b4d653 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]