Re: Huge widget sizes exceeding screen width or height
- From: Nate Case <nacase gmail com>
- To: nacase gmail com
- Cc: gtk-i18n-list gnome org, gtk-list gnome org
- Subject: Re: Huge widget sizes exceeding screen width or height
- Date: Tue, 27 Sep 2005 08:41:21 -0500
On 9/23/05, Nate Case <nacase gmail com> wrote:
> After upgrading some packages, I can no longer use any gtk+ apps
> because some widgets are either too tall or too wide.
>
> Examples:
>
> 1) gdm login screen isn't usable. Everything looks OK except for the
> middle 'login' part -- I just see a single "stripe" going along the
> entire height of the screen (and then some).
> 2) If I go directly into gnome (bypassing gdm), the gnome panel will
> take up the entire height of the screen.
> 3) Other apps I tried show widgets of the proper height, but going
> along past the width of the screen.
>
> Notes:
> 1) This only seems to affect some widgets that have text on them, so
> it appears as if it's allocating a LOT more space than necessary for a
> font, but the text itself is printed fine in a normal size font. For
> example, if I start gvim I'll see a cursor that goes across the height
> of the screen, but the text will be at the top in a normal size.
> 2) This one is important to note: if I connect to this box remotely
> and launch a gtk+ app on a different display server, the problem still
> persists -- so it doesn't appear as if the problem lies in X.
>
> Any ideas?
(apologies for the cross-post -- but it now seems to be a pango
problem rather than gtk+)
Update: I made a simple test case with an app that just contains a
GtkEntry widget which exhibits this problem. I rebuilt gtk+ with some
debug print statements and determined that in gtk_entry_size_request()
it was setting a height of 4115.
It gets 4115 because pango_font_metrics_get_descent() is returning
4194304! I'm not too familiar with pango, but this would appear to be
a much larger than normal value.
I'll continue investigating this to figure out what's going wrong in
my spare time, but any advice would be appreciated.
Thanks,
- Nate Case
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]