]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_window_to_scroll_bar): Only call
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 2 Nov 2004 16:25:50 +0000 (16:25 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 2 Nov 2004 16:25:50 +0000 (16:25 +0000)
xg_get_scroll_id_for_window if toolkit scroll bars are used.

src/ChangeLog
src/xterm.c

index 153c871d9171e33b417759ce1382447d7103767f..b7ae4e8148f97424be4bb5dc4201f0fffe7fbaf1 100644 (file)
@@ -1,5 +1,8 @@
 2004-11-02  Jan Dj\e,Ad\e(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.
 
index 54ee4014e8c14fd2ff2d94f1cb02d03f8575ccc4..df99a8667f8cc663e5556d6b27babe9f631fccde 100644 (file)
@@ -3924,9 +3924,9 @@ x_window_to_scroll_bar (display, window_id)
 {
   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;