Commit 9cfc7da4 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(x_create_toolkit_scroll_bar): Use XtNarrowScrollbars if available.

parent afde5d4e
...@@ -4589,11 +4589,14 @@ x_create_toolkit_scroll_bar (f, bar) ...@@ -4589,11 +4589,14 @@ x_create_toolkit_scroll_bar (f, bar)
char *initial = ""; char *initial = "";
char *val = initial; char *val = initial;
XtVaGetValues (widget, XtNscrollVCursor, (XtPointer) &val, XtVaGetValues (widget, XtNscrollVCursor, (XtPointer) &val,
#ifdef XtNarrowScrollbars
XtNarrowScrollbars, (XtPointer) &xaw3d_arrow_scroll,
#endif
XtNpickTop, (XtPointer) &xaw3d_pick_top, NULL); XtNpickTop, (XtPointer) &xaw3d_pick_top, NULL);
if (val == initial) if (xaw3d_arrow_scroll || val == initial)
{ /* ARROW_SCROLL */ { /* ARROW_SCROLL */
xaw3d_arrow_scroll = True; xaw3d_arrow_scroll = True;
/* Isn't that just a personal preference ? -sm */ /* Isn't that just a personal preference ? --Stef */
XtVaSetValues (widget, XtNcursorName, "top_left_arrow", NULL); XtVaSetValues (widget, XtNcursorName, "top_left_arrow", NULL);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment