From 12949a7fae9566e60640b6b0e13eb95ab6d4657d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 3 May 2001 17:49:33 +0000 Subject: [PATCH] (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix the change from 2001-04-30. --- src/ChangeLog | 5 +++++ src/xterm.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6dd403357e7..87d0a82077d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-05-03 Eli Zaretskii + + * xterm.c (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix + the change from 2001-04-30. + 2001-05-03 Gerd Moellmann * xfns.c (file_dialog_unmap_cb): New function. diff --git a/src/xterm.c b/src/xterm.c index a967774f57a..6bc3ced3a90 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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); -- 2.39.5