Re: [gtk-list] Re: Window manager window placement and X modifiers/states
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Window manager window placement and X modifiers/states
- Date: 16 Dec 1999 21:36:12 -0500
Paul Barton-Davis <pbd@op.net> writes:
> broken. but i still think that deep within GTK is the notion that any
> widget can given any size and it will be basically OK. this simply
Widgets are required to accept any size without crashing - largely
because of the allow_shrink window policy which is broken and
shouldn't be used, and also because window managers can do weird
things to your window size. But if you don't have allow_shrink turned
on and he window manager isn't doing something weird, all your widgets
will get their requested size.
> isn't true for widgets that display (textual) information in a way
> that requires a given height and/or width to be usefully
> legible. buttons can shrink to about 2x2 pixels before they become
> totally useless - many text display widgets are useless at anything
> other than their "intended" size (where "intended" is a combination of
> the style's font and the text to be displayed).
>
The intended size is the size request, which widgets pretty much
always get. :-)
> that why i think that gtk_widget_set_usize_to_display_given_text() is
> a pretty useful function to have, and why i use it a lot.
>
set_usize() (basically) only alters the size request, and thus doesn't
get you anywhere with this problem though. Fixing the widgets will
also solve the problem...
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]