changeset 57901:cdbca26f9090

* xterm.c (x_window_to_scroll_bar): Only call xg_get_scroll_id_for_window if toolkit scroll bars are used.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 02 Nov 2004 16:25:50 +0000
parents a76858072e78
children 2cc8d9bbb72b
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Nov 02 15:41:38 2004 +0000
+++ b/src/ChangeLog	Tue Nov 02 16:25:50 2004 +0000
@@ -1,5 +1,8 @@
 2004-11-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
 
+	* xterm.c (x_window_to_scroll_bar): Only call
+	xg_get_scroll_id_for_window if toolkit scroll bars are used.
+
 	* gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
 	of save.
 
--- a/src/xterm.c	Tue Nov 02 15:41:38 2004 +0000
+++ b/src/xterm.c	Tue Nov 02 16:25:50 2004 +0000
@@ -3924,9 +3924,9 @@
 {
   Lisp_Object tail;
 
-#ifdef USE_GTK
+#if defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)
   window_id = (Window) xg_get_scroll_id_for_window (display, window_id);
-#endif /* USE_GTK */
+#endif /* USE_GTK  && USE_TOOLKIT_SCROLL_BARS */
 
   for (tail = Vframe_list;
        XGCTYPE (tail) == Lisp_Cons;