emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/gtkutil.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/gtkutil.c
Date: Fri, 14 Mar 2003 14:13:17 -0500

Index: emacs/src/gtkutil.c
diff -c emacs/src/gtkutil.c:1.18 emacs/src/gtkutil.c:1.19
*** emacs/src/gtkutil.c:1.18    Fri Mar 14 13:34:18 2003
--- emacs/src/gtkutil.c Fri Mar 14 14:13:17 2003
***************
*** 316,321 ****
--- 316,339 ----
      }
  }
  
+ /* This gets called after the frame F has been cleared.  Since that is
+    done with X calls, we need to redraw GTK widget (scroll bars).  */
+ void
+ xg_frame_cleared (f)
+      FRAME_PTR f;
+ {
+   GtkWidget *wfixed = f->output_data.x->edit_widget;
+ 
+   if (wfixed)
+     {
+       gtk_container_foreach (GTK_CONTAINER (wfixed),
+                              (GtkCallback) handle_fixed_child,
+                              NULL);
+       gtk_container_set_reallocate_redraws (GTK_CONTAINER (wfixed), TRUE);
+       gdk_window_process_all_updates ();
+     }
+ }
+ 
  /* Function to handle resize of our widgets.  Since Emacs has some layouts
     that does not fit well with GTK standard containers, we do most layout
     manually.
***************
*** 346,357 ****
  
        gtk_widget_size_allocate (x->edit_widget, &all);
  
!       gtk_container_foreach (GTK_CONTAINER (x->edit_widget),
!                              (GtkCallback) handle_fixed_child,
!                              NULL);
!       gtk_container_set_reallocate_redraws (GTK_CONTAINER (x->edit_widget),
!                                             TRUE);
!       gdk_window_process_all_updates ();
  
        change_frame_size (f, rows, columns, 0, 1, 0);
        SET_FRAME_GARBAGED (f);
--- 364,370 ----
  
        gtk_widget_size_allocate (x->edit_widget, &all);
  
!       xg_frame_cleared (f);
  
        change_frame_size (f, rows, columns, 0, 1, 0);
        SET_FRAME_GARBAGED (f);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]