Re: Gtk2::Entry with Pango markup
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Gtk2::Entry with Pango markup
- Date: Tue, 20 Jan 2009 21:37:11 +0100
Emmanuel Rodriguez wrote:
I tried using a Gtk2::TextView but I didn't find out how to give the
text view the exact height of one line (just as a Gtk2::Entry).
Gtk2::TextView is a Gtk2::Widget, so you can set its dimensions with
set_size_request(). For finding the height of one line, look at how GtkEntry
does it: gtk_entry_size_request() in gtk+/gtk/gtkentry.c. Or cheat and ask
another Gtk2::Entry for its height via get_size_request().
] [Thread Prev