From ee3cc234b87ae911fb3778fd9471b752236f400b Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sat, 12 May 2001 13:16:40 +0000 Subject: [PATCH] remember widget's double buffering state across expose event, so we still Fri May 11 20:13:44 2001 Tim Janik * gtk/gtkmain.c (gtk_main_do_event): remember widget's double buffering state across expose event, so we still call end_paint(). --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkmain.c | 13 +++++++------ 8 files changed, 42 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9d527df0be..2c29dbe219 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Fri May 11 20:13:44 2001 Tim Janik + + * gtk/gtkmain.c (gtk_main_do_event): remember widget's double + buffering state across expose event, so we still call end_paint(). + 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index d0122f3bcb..689cea9b2f 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -873,12 +873,13 @@ gtk_main_do_event (GdkEvent *event) case GDK_EXPOSE: if (event->any.window && GTK_WIDGET_DOUBLE_BUFFERED (event_widget)) - gdk_window_begin_paint_region (event->any.window, event->expose.region); - - gtk_widget_send_expose (event_widget, event); - - if (event->any.window && GTK_WIDGET_DOUBLE_BUFFERED (event_widget)) - gdk_window_end_paint (event->any.window); + { + gdk_window_begin_paint_region (event->any.window, event->expose.region); + gtk_widget_send_expose (event_widget, event); + gdk_window_end_paint (event->any.window); + } + else + gtk_widget_send_expose (event_widget, event); break; case GDK_PROPERTY_NOTIFY: