Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4a1b9832
Commit
4a1b9832
authored
Jun 08, 2011
by
Paul Eggert
Browse files
* xfns.c (x_set_scroll_bar_default_width): Remove unused 'int' locals.
parent
8f95c75c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ChangeLog
src/ChangeLog
+2
-0
src/xfns.c
src/xfns.c
+4
-4
No files found.
src/ChangeLog
View file @
4a1b9832
2011-06-09 Paul Eggert <eggert@cs.ucla.edu>
* xfns.c (x_set_scroll_bar_default_width): Remove unused 'int' locals.
* buffer.h (PTR_BYTE_POS): Don't assume a byte count fits in 'unsigned'.
* buffer.c (Fgenerate_new_buffer_name): Use EMACS_INT for count, not int.
...
...
src/xfns.c
View file @
4a1b9832
...
...
@@ -1695,14 +1695,14 @@ void
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
);
int
minw
=
xg_get_default_scrollbar_width
(
f
);
#else
int
minw
=
16
;
#endif
/* A minimum width of 14 doesn't look good for toolkit scroll bars. */
width
=
minw
+
2
*
VERTICAL_SCROLL_BAR_WIDTH_TRIM
;
int
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment