[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8505: 24.0.50; frame grows horizontally if scroll-bar-mode is non-ni
bug#8505: 24.0.50; frame grows horizontally if scroll-bar-mode is non-nil
Fri, 03 Jun 2011 18:38:35 +0900
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Daiki Ueno <address@hidden> writes:
> If I build emacs with ./configure --with-x-toolkit=gtk3 and start it
> with emacs -Q, the width of the Emacs window is growing with the lapse
> of time.
OK, I finally got it. This can be reproduced only with specific gtk-3.0
themes (including GNOME3 default), where some widget properties have
larger values than Emacs expects.
Currently Emacs expects the scrollbar width at most 16 pixels.
x_set_scroll_bar_default_width (struct frame *f)
int wid = FRAME_COLUMN_WIDTH (f);
/* A minimum width of 14 doesn't look good for toolkit scroll bars. */
int width = 16 + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM;
However, gnome-themes-standard wants to render scrollbars in 22-pixel width.
22 pixels = slider-width(18) + trough-border(2) * 2
I confirmed that my problem is fixed if I increase the default width to
Since it happens with GNOME3 default theme, I would appreciate if it
will be fixed before the pretest, though I don't know how easy to let
Emacs to take account of GTK theme properties.
- bug#8505: 24.0.50; frame grows horizontally if scroll-bar-mode is non-nil,
Daiki Ueno <=