Re: Gtk2::Entry with Pango markup



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().



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]