* xterm.c (x_window_to_scroll_bar): Only call

xg_get_scroll_id_for_window if toolkit scroll bars are used.
This commit is contained in:
Jan Djärv 2004-11-02 16:25:50 +00:00
parent 8cfd0f3669
commit a11e1dce8f
2 changed files with 5 additions and 2 deletions

View file

@ -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.

View 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;