# HG changeset patch # User Eli Zaretskii # Date 988912057 0 # Node ID 21ed9ad15f924521b0260626e971f8a966513bfd # Parent a3256408325f85c07a71ef976aaee6e0b883469b (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix the change from 2001-04-30. diff -r a3256408325f -r 21ed9ad15f92 src/xterm.c --- a/src/xterm.c Thu May 03 17:10:00 2001 +0000 +++ b/src/xterm.c Thu May 03 17:47:37 2001 +0000 @@ -10025,6 +10025,9 @@ } 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 @@ /* 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);