From 0d0c6e1c37f00ea993901962eb24d33f7f2820ca Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 18 Jul 2005 14:25:56 +0000 Subject: [PATCH] Add a note about the need to handle expose events. We really need a 2005-07-18 Matthias Clasen * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note about the need to handle expose events. We really need a chapter on the GTK+ drawing model that we can refer to here... (#310765, Steve Chaplin) --- ChangeLog | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ gtk/gtkwidget.c | 5 +++++ 4 files changed, 26 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0e8b68e647..e33e6552ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-07-18 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note + about the need to handle expose events. We really need a chapter + on the GTK+ drawing model that we can refer to here... (#310765, + Steve Chaplin) + 2005-07-16 Tor Lillqvist * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 0e8b68e647..e33e6552ac 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2005-07-18 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note + about the need to handle expose events. We really need a chapter + on the GTK+ drawing model that we can refer to here... (#310765, + Steve Chaplin) + 2005-07-16 Tor Lillqvist * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 0e8b68e647..e33e6552ac 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2005-07-18 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a note + about the need to handle expose events. We really need a chapter + on the GTK+ drawing model that we can refer to here... (#310765, + Steve Chaplin) + 2005-07-16 Tor Lillqvist * configure.in (GDK_EXTRA_LIBS): [Win32] Put -luuid back, it is diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index ea725f786a..413b133142 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4352,6 +4352,11 @@ gtk_widget_set_app_paintable (GtkWidget *widget, * so you would only use this function to turn off double buffering * if you had special needs and really knew what you were doing. * + * Note: if you turn off double-buffering, you have to handle + * expose events, since even the clearing to the background color or + * pixmap will not happen automatically (as it is done in + * gdk_window_begin_paint()). + * **/ void gtk_widget_set_double_buffered (GtkWidget *widget,