Re: Minimum height for minimum width
- From: Matthias Clasen <matthias clasen gmail com>
- To: Tristan Van Berkom <tristanvb openismus com>
- Cc: Owen Taylor <otaylor redhat com>, gtk-devel-list gnome org, Havoc Pennington <hp pobox com>
- Subject: Re: Minimum height for minimum width
- Date: Tue, 12 Oct 2010 07:25:14 -0400
On Tue, Oct 12, 2010 at 2:44 AM, Tristan Van Berkom
<tristanvb openismus com> wrote:
> Sigh, alright can of worms open.
>
>> For an ellipsized label, the natural width is clearly the full width.
>> In this case there's an obvious interpretation of natural size because
>> there's a minimum size where we display all the information and above
>> that we're just adding padding.
>
> I don't completely agree here either, in many cases that are important
> to handle the text displayed in a label is some user input, data loaded
> from a database or even some translated text that wont fit normal screen
> constraints (same goes for the natural width of a GtkCellRendererText).
>
> For this reason it is important for the programmer to consider setting
> "max-width-chars" on a label that may have overly large text.
> Ellipsizing labels will still consume more space when allocated any
> further space via its "expand" or via resizing of treeview columns
> (for cell renderers).
Common example here: filenames / paths
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]