From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Francesc Rocher <francesc.rocher@gmail.com>
Cc: sds@gnu.org, emacs-devel@gnu.org
Subject: Re: Shrinking frames as of past month
Date: Sat, 22 Mar 2008 12:55:19 +0100 [thread overview]
Message-ID: <47E4F3A7.1080305@swipnet.se> (raw)
In-Reply-To: <ade856a30803191316o1a6175c0k84455fb863859675@mail.gmail.com>
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.
next prev parent reply other threads:[~2008-03-22 11:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 20:16 Shrinking frames as of past month Francesc Rocher
2008-03-22 11:55 ` Jan Djärv [this message]
2008-03-23 21:38 ` Michael Olson
2008-03-28 9:33 ` Andrew W. Nosenko
2008-03-28 10:35 ` Jan Djärv
2008-03-30 17:39 ` Jan Djärv
2008-03-30 19:03 ` Francesc Rocher
2008-03-31 6:21 ` Jan Djärv
-- strict thread matches above, loose matches on Subject: below --
2008-03-17 4:20 Michael Olson
2008-03-18 7:56 ` Jan Djärv
2008-03-19 1:11 ` Michael Olson
2008-03-19 16:06 ` Sam Steingold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47E4F3A7.1080305@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=francesc.rocher@gmail.com \
--cc=sds@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.