1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

* src/xfns.c (x_set_scroll_bar_default_width): Move declarations

before statements.
This commit is contained in:
Andreas Schwab 2011-06-06 00:20:42 +02:00
parent 7e821d0da8
commit 810928a2bf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-05 Andreas Schwab <schwab@linux-m68k.org>
* xfns.c (x_set_scroll_bar_default_width): Move declarations
before statements.
2011-06-05 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_get_default_scrollbar_width): New function.

View File

@ -1696,12 +1696,13 @@ x_set_scroll_bar_default_width (struct frame *f)
{
int wid = FRAME_COLUMN_WIDTH (f);
int minw = 16;
int width;
#ifdef USE_TOOLKIT_SCROLL_BARS
#ifdef USE_GTK
minw = xg_get_default_scrollbar_width (f);
#endif
/* A minimum width of 14 doesn't look good for toolkit scroll bars. */
int width = minw + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM;
width = minw + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM;
FRAME_CONFIG_SCROLL_BAR_COLS (f) = (width + wid - 1) / wid;
FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = width;
#else