From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno 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:38:35 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1307093970 28484 80.91.229.12 (3 Jun 2011 09:39:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2011 09:39:30 +0000 (UTC) To: 8505@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 11:39:25 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 1QSQqj-0004zU-Ce for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2011 11:39:25 +0200 Original-Received: from localhost ([::1]:57746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSQqi-0007wZ-He for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jun 2011 05:39:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSQqP-0007vo-P7 for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 05:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSQqN-0005PR-Iv for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 05:39:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSQqN-0005PJ-Cl for bug-gnu-emacs@gnu.org; Fri, 03 Jun 2011 05:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QSQqM-0004NP-IH; Fri, 03 Jun 2011 05:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno 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 09:39: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.130709392616776 (code B ref 8505); Fri, 03 Jun 2011 09:39:02 +0000 Original-Received: (at 8505) by debbugs.gnu.org; 3 Jun 2011 09:38:46 +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 1QSQq5-0004MV-Hq for submit@debbugs.gnu.org; Fri, 03 Jun 2011 05:38:45 -0400 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QSQq1-0004Ly-UB for 8505@debbugs.gnu.org; Fri, 03 Jun 2011 05:38:43 -0400 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 3 Jun 2011 18:38:33 +0900 Original-Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p539cWsn015419; Fri, 3 Jun 2011 18:38:33 +0900 In-Reply-To: (Daiki Ueno's message of "Fri, 15 Apr 2011 15:35:28 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 03 Jun 2011 05:39: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:46918 Archived-At: (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, -- Daiki Ueno