From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Shrinking frames as of past month Date: Sat, 22 Mar 2008 12:55:19 +0100 Message-ID: <47E4F3A7.1080305@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206186990 25997 80.91.229.12 (22 Mar 2008 11:56:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2008 11:56:30 +0000 (UTC) Cc: sds@gnu.org, emacs-devel@gnu.org To: Francesc Rocher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 22 12:57:00 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jd2LL-0002IB-Fk for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 12:56:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jd2Kk-00044K-SN for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 07:56:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jd2Kd-000446-RY for emacs-devel@gnu.org; Sat, 22 Mar 2008 07:56:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jd2KZ-00041f-K3 for emacs-devel@gnu.org; Sat, 22 Mar 2008 07:56:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jd2KZ-00041U-F9 for emacs-devel@gnu.org; Sat, 22 Mar 2008 07:56:11 -0400 Original-Received: from av7-1-sn3.vrr.skanova.net ([81.228.9.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jd2KT-0007sl-7V; Sat, 22 Mar 2008 07:56:05 -0400 Original-Received: by av7-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 5316338A8B; Sat, 22 Mar 2008 12:52:40 +0100 (CET) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av7-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 223D437F27; Sat, 22 Mar 2008 12:52:40 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 7E61137E44; Sat, 22 Mar 2008 12:55:56 +0100 (CET) User-Agent: Thunderbird 2.0.0.12 (X11/20080227) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93176 Archived-At: Francesc Rocher skrev: > Sam Steingold wrote: > >> |> Basically, GTK frames seem to shrink by about one character length every >> |> time I do certain things such hitting viewing mail on Gnus, hitting the >> |> key combination "M-x", or displaying an image by hitting RET on it in >> |> dired. >> | >> | Does this always involves an image, or does it happen when you view >> | ordinary text mail in Gnus also? >> >> >> I get it on entering dired (no images involved) > > Yes, me too, but only on the initial frame. This effect disapears on > subsequent frames. > It seems it is a bug in Gtk+, http://bugzilla.gnome.org/show_bug.cgi?id=68668 (http://bugzilla.gnome.org/show_bug.cgi?id=137822 explains it a bit better). Basically because the menu bar is too large for the frame, Gtk+ sets a base width that isn't a multiple of the width increment. This makes the window manager shrink the text area (by 2 pixels in my case) so that framw width - base width is a multiple of the width increment. Then when leaving dired, we get a correct base width again. But the 2 pixels aren't put back, rather the window manager shrinks even more to get the frame to be a multiple of the width increment. So for me I get (my width inc is 6 pixels) enter dired => shrink 2 pixels, leave dired => shrink 4 pixels, enter dired => shrink 2 pixels, ... and so on. There is talk about a workaround in the gnome-terminal sources, I'll check it out. If the menu bar is disabled, or the size of the frame is large enough to show the whole dired menubar, shrinking does not occur. Jan D.