Re: Clearing a combobox
- From: Emil Nowak <emiml wp pl>
- To: gtkmm-list gnome org
- Subject: Re: Clearing a combobox
- Date: Fri, 26 Jan 2007 04:05:11 +0100
On 2007-01-25, at 23:14:00 "Arthur Maciel" wrote:
> Hi there again.
>
> How could I clear a combobox, in a way I could add new elements to it?
> Could not find reference for it on the book.
Which combobox?
In Gtk::ComboBoxText you have
void clear ()
void clear_items ()
methods.
in basic Gtk::ComboBox you will have to clear your TreeModel. For example in
Gtk::ListStore there is a clear() method as expected.
But you don't need to clear it. You can just append to it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]