From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#8505: 24.0.50; frame grows horizontally if scroll-bar-mode is non-nil Date: Sun, 05 Jun 2011 21:08:29 +0200 Message-ID: <4DEBD42D.3010607@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307300965 21307 80.91.229.12 (5 Jun 2011 19:09:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 19:09:25 +0000 (UTC) Cc: 8505-done@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 21:09:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTIhN-0002bw-89 for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 21:09:21 +0200 Original-Received: from localhost ([::1]:46486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTIhL-0000UB-WD for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 15:09:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTIh6-0000Tz-AV for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:09:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTIh4-0007hm-UY for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:09:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTIh4-0007he-RT for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QTIh4-0005Pv-Dx for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 15:09:02 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2011 19:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 8505 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 8505@debbugs.gnu.org, jan.h.d@swipnet.se Original-Received: via spool by 8505-done@debbugs.gnu.org id=D8505.130730092020793 (code D ref 8505); Sun, 05 Jun 2011 19:09:02 +0000 Original-Received: (at 8505-done) by debbugs.gnu.org; 5 Jun 2011 19:08:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTIgi-0005PK-Bb for submit@debbugs.gnu.org; Sun, 05 Jun 2011 15:08:40 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTIge-0005P6-Tj for 8505-done@debbugs.gnu.org; Sun, 05 Jun 2011 15:08:38 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 07647E9C4E for <8505-done@debbugs.gnu.org>; Sun, 5 Jun 2011 21:08:30 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsxOAHPT601V4S1kPGdsb2JhbABTpjULAQEBATcyxi+DKoJ3BJVBinQ X-IronPort-AV: E=Sophos;i="4.65,323,1304287200"; d="scan'208";a="195130745" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 05 Jun 2011 21:08:30 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id B25877FA05A; Sun, 5 Jun 2011 21:08:29 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 05 Jun 2011 15:09:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46977 Archived-At: Hello. I've checked in a fix. But it occured to me that the wrong thing will happen if the theme is changed while Emacs runs, and the theme changed to has the wider scroll bar. Can you change theme in Gnome 3? Jan D. Daiki Ueno skrev 2011-06-03 11.38: > (Cc'ed Jan) > > Daiki Ueno 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. > > xfns.c:104442: > > void > x_set_scroll_bar_default_width (struct frame *f) > { > int wid = FRAME_COLUMN_WIDTH (f); > > #ifdef USE_TOOLKIT_SCROLL_BARS > /* 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. > > http://git.gnome.org/browse/gnome-themes-standard/tree/themes/Adwaita/gtk-3.0/gtk-widgets.css#n511 > > .scrollbar { > background-image: none; > border-style: solid; > -GtkRange-trough-border: 2; > -GtkRange-arrow-scaling: 0.444; > -GtkRange-slider-width: 18; > -GtkRange-stepper-size: 18; > > 22 pixels = slider-width(18) + trough-border(2) * 2 > > I confirmed that my problem is fixed if I increase the default width to > 22. > > 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. > > Regards,