Gtk::ComboBoxEntryText



In my application there are two Gtk::ComboBoxEntryText where one sets the rules for the other, Gtk::ComboBoxEntryText N_One and Gtk::ComboBoxEntryText N_Two.
The solution extracts the data-titles from an SQLite3 database appends them to N_One. Assuming that there are only two titles; Mr. and Mrs. whe the user selects Mr. all the names from the database that have the title Mr. are added to N_Two, thus displaying the Title and the Name (and some other data). In my solution when the user, after selecting Mr., then selects Mrs., the names previously extracted from the database and the new names are displayed in the N_Two ComboBox.
How can I remove all the entries in one the N_Two, so that I can add the new entries, while at the same time making sure that N_Two is actually populated and not empty?

 

Thanks



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