changeset 50192:c8111b6d2b32

* gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for all widgets.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 18 Mar 2003 22:09:06 +0000
parents 2477f0ef966d
children dadd724b7ce9
files src/ChangeLog src/gtkutil.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Mar 18 21:20:51 2003 +0000
+++ b/src/ChangeLog	Tue Mar 18 22:09:06 2003 +0000
@@ -1,5 +1,8 @@
 2003-03-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
 
+	* gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
+	all widgets.
+
 	* gtkutil.h: Removed xg_ignore_next_thumb.
 
 2003-03-18  Kenichi Handa  <handa@etlken2>
--- a/src/gtkutil.c	Tue Mar 18 21:20:51 2003 +0000
+++ b/src/gtkutil.c	Tue Mar 18 22:09:06 2003 +0000
@@ -293,11 +293,14 @@
 xg_frame_cleared (f)
      FRAME_PTR f;
 {
-  GtkWidget *wfixed = f->output_data.x->edit_widget;
-
-  if (wfixed)
+  GtkWidget *w = f->output_data.x->widget;
+
+  if (w)
     {
-      gtk_container_set_reallocate_redraws (GTK_CONTAINER (wfixed), TRUE);
+      gtk_container_set_reallocate_redraws (GTK_CONTAINER (w), TRUE);
+      gtk_container_foreach (GTK_CONTAINER (w),
+                             (GtkCallback) gtk_widget_queue_draw,
+                             0);
       gdk_window_process_all_updates ();
     }
 }