xg_get_scroll_id_for_window if toolkit scroll bars are used.
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.
{
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;