On Tue, Jan 20, 2009 at 11:08 PM, Kevin Ryde <use...@zip.com.au> wrote:
> Torsten Schoenfeld <kaffeeti...@gmx.de> writes:
>>
>> Or cheat and ask another Gtk2::Entry for its height via
>> get_size_request().
>
> Stick one line in the TextView and ask it how big it wants to be :-).
> ($widget->size_request is the one to ask, I think.)
>
> If it's for a dialog box I've had success forcing the size of
> sub-widgets, then asking the dialog how big it would like to be, and
> setting that size in as its $window->set_default_size (followed by
> undoing the sub-widget forcing).  You can then still grow or shrink the
> dialog, but the initial size is sensible.
Nice tricks.

I have modified the sample script that I've posted previously and made
it into a CPAN module (Gtk2::Ex::Entry::Pango). This module allows one
to use Pango for a Gtk2 entry widget.

-- 
Emmanuel Rodriguez
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to