emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104504: * src/xfns.c (x_set_scroll_b


From: Andreas Schwab
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104504: * src/xfns.c (x_set_scroll_bar_default_width): Move declarations
Date: Mon, 06 Jun 2011 00:20:42 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104504
committer: Andreas Schwab <address@hidden>
branch nick: emacs
timestamp: Mon 2011-06-06 00:20:42 +0200
message:
  * src/xfns.c (x_set_scroll_bar_default_width): Move declarations
  before statements.
modified:
  src/ChangeLog
  src/xfns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-06-05 19:04:51 +0000
+++ b/src/ChangeLog     2011-06-05 22:20:42 +0000
@@ -1,3 +1,8 @@
+2011-06-05  Andreas Schwab  <address@hidden>
+
+       * xfns.c (x_set_scroll_bar_default_width): Move declarations
+       before statements.
+
 2011-06-05  Jan Djärv  <address@hidden>
 
        * gtkutil.c (xg_get_default_scrollbar_width): New function.

=== modified file 'src/xfns.c'
--- a/src/xfns.c        2011-06-05 19:04:51 +0000
+++ b/src/xfns.c        2011-06-05 22:20:42 +0000
@@ -1696,12 +1696,13 @@
 {
   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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]