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: Fri, 03 Jun 2011 18:45:19 +0200 Message-ID: <4DE90F9F.1040408@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 1307120868 407 80.91.229.12 (3 Jun 2011 17:07:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2011 17:07:48 +0000 (UTC) Cc: 8505@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 19:07:43 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 1QSXqX-0007TN-01 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2011 19:07:41 +0200 Original-Received: from localhost ([::1]:44189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSXqV-0003LR-N2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2011 13:07:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSXVh-00073j-0A for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 12:46:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSXVb-0005mR-QE for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 12:46:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSXVb-0005mL-Ec for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 12:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QSXVa-0007ZJ-43; Fri, 03 Jun 2011 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jun 2011 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8505 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8505-submit@debbugs.gnu.org id=B8505.130711952929052 (code B ref 8505); Fri, 03 Jun 2011 16:46:02 +0000 Original-Received: (at 8505) by debbugs.gnu.org; 3 Jun 2011 16:45:29 +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 1QSXV3-0007YX-8d for submit@debbugs.gnu.org; Fri, 03 Jun 2011 12:45:29 -0400 Original-Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSXV0-0007YA-UQ for 8505@debbugs.gnu.org; Fri, 03 Jun 2011 12:45:28 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id D0AB9EB1B0 for <8505@debbugs.gnu.org>; Fri, 3 Jun 2011 18:45:20 +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: Ap1FADcO6U1V4S1kPGdsb2JhbABTpjkLAQEBATcyyViDKoJ3BJU8inM X-IronPort-AV: E=Sophos;i="4.65,315,1304287200"; d="scan'208";a="195983173" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 03 Jun 2011 18:45:20 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id CDC977FA05A; Fri, 3 Jun 2011 18:45:19 +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: Fri, 03 Jun 2011 12:46: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:46923 Archived-At: Hello. Thanks for debugging this. I couldn't see it as I use Gtk3 without Gnome 3. I have a fix for this, but savannah has problems right now. I will check it in when savannah sorts itself out. 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,