[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: setting min widget size?
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: gtk-app-devel-list gnome org
- Cc: Dan McMahill <mcmahill mtl mit edu>
- Subject: Re: setting min widget size?
- Date: Sat, 7 Apr 2007 00:21:54 +0300
Dan McMahill wrote:
> Hello,
>
> I have a label widget which is used to show the coordinates of the
> cursor position in a drawing program. Unfortunately, the width of that
> widget changes as I move the cursor around because the fonts are not
> fixed width fonts and sometimes I have a larger number with more digits
> and sometimes a smaller number.
>
> Is there a way to allow the label widget to grow if needed to hold a
> larger string but then never shrink if the label text is changed to
> something shorter?
Connect to 'size-request' signal and make sure requisition is not less
than some threshold.
Paul
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]