diff src/gui.c @ 1906:ff9ecf14efe3 v7.2.203

updated for version 7.2-203
author vimboss
date Tue, 16 Jun 2009 14:01:43 +0000
parents fc89a4f98a8b
children f9c55e12835e
line wrap: on
line diff
--- a/src/gui.c
+++ b/src/gui.c
@@ -3879,6 +3879,21 @@ gui_drag_scrollbar(sb, value, still_drag
  * Scrollbar stuff:
  */
 
+/*
+ * Called when something in the window layout has changed.
+ */
+    void
+gui_may_update_scrollbars()
+{
+    if (gui.in_use && starting == 0)
+    {
+	out_flush();
+	gui_init_which_components(NULL);
+	gui_update_scrollbars(TRUE);
+    }
+    need_mouse_correct = TRUE;
+}
+
     void
 gui_update_scrollbars(force)
     int		force;	    /* Force all scrollbars to get updated */