summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-07-18 14:25:56 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-07-18 14:25:56 +0000
commit0d0c6e1c37f00ea993901962eb24d33f7f2820ca (patch)
treecb7ba4aca0a7086257ee2be264e1c9a921a9fe6b /gtk/gtkwidget.c
parent986cb171b42fbecc64dec3d038ed2ea32c1cfb78 (diff)
downloadgtk+-0d0c6e1c37f00ea993901962eb24d33f7f2820ca.tar.gz
Add a note about the need to handle expose events. We really need a
2005-07-18 Matthias Clasen <mclasen@redhat.com> * 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)
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r--gtk/gtkwidget.c5
1 files changed, 5 insertions, 0 deletions
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,