Re: Entry width in pixel




Beast said:
I only found a way to set Gtk2::Entry, set_width_chars(n_chars), is it
possible to set width in pixel?

Gtk2::Widget::set_size_request() allows you to set a widget's requested size,
in pixels.  The actual runtime layout may override this (e.g., box packing
parameters set to fill available space).

As always, the C API docs are the canonical reference:

http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id3537029



-- 
muppet <scott at asofyet dot org>




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