Re: clearing text from a combo box?



On Mon, 2008-06-16 at 16:19 -0400, Jamiil wrote:
> I have combo boxes and entry boxes that I want to clear up when the user 
> clicks on the 'Clear' button. I looked into the Gtk::ComboBox widget, 
> but I am unable to find the right method.
> Any body?

You can call set_active() with -1, as in the C API:
http://library.gnome.org/devel/gtk/unstable/GtkComboBox.html#gtk-combo-box-set-active

I think we need to add a unset_active() method to make that clearer.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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