[gtk+/native-layout] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
- Date: Sun, 4 Apr 2010 02:34:30 +0000 (UTC)
commit 5d4af6ca80deedd571ee8b305daca7d0da73b1e0
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 595a751..c0204b7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]