]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]: Fix
authorEli Zaretskii <eliz@gnu.org>
Thu, 3 May 2001 17:49:33 +0000 (17:49 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 3 May 2001 17:49:33 +0000 (17:49 +0000)
the change from 2001-04-30.

src/ChangeLog
src/xterm.c

index 6dd403357e7eeef1d62ae49e1a9c3d7e83bb4af8..87d0a82077d5e8dadafa39d2034171d677e111a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]: Fix
+       the change from 2001-04-30.
+
 2001-05-03  Gerd Moellmann  <gerd@gnu.org>
 
        * xfns.c (file_dialog_unmap_cb): New function.
index a967774f57a138141ad7ada08e50a0460ba1eb36..6bc3ced3a90cefbff827c92d252d70e1f4ef0daa 100644 (file)
@@ -10025,6 +10025,9 @@ XTread_socket (sd, bufp, numchars, expected)
                }
              else
                {
+#ifndef USE_TOOLKIT_SCROLL_BARS
+                 struct scroll_bar *bar;
+#endif
 #if defined USE_X_TOOLKIT && defined USE_LUCID
                  /* Submenus of the Lucid menu bar aren't widgets
                     themselves, so there's no way to dispatch events
@@ -10041,8 +10044,7 @@ XTread_socket (sd, bufp, numchars, expected)
                  /* Dispatch event to the widget.  */
                  goto OTHER;
 #else /* not USE_TOOLKIT_SCROLL_BARS */
-                 struct scroll_bar *bar
-                   = x_window_to_scroll_bar (event.xexpose.window);
+                 bar = x_window_to_scroll_bar (event.xexpose.window);
 
                  if (bar)
                    x_scroll_bar_expose (bar, &event);