gtkmm: use remove_all() instead of deprecated Gtk::ComboBoxText::clear_items()

This commit is contained in:
Mads Kiilerich 2022-01-26 23:14:42 +01:00 committed by Robin Gareus
parent 9e34eb21fe
commit 1390743d52
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View File

@ -469,7 +469,7 @@ ComboStringOption::add_to_page (OptionEditorPage* p)
*/
void
ComboStringOption::set_popdown_strings (const std::vector<std::string>& strings) {
_combo->clear_items ();
_combo->remove_all ();
for (std::vector<std::string>::const_iterator i = strings.begin(); i != strings.end(); ++i) {
_combo->append (*i);
}
@ -477,7 +477,7 @@ ComboStringOption::set_popdown_strings (const std::vector<std::string>& strings)
void
ComboStringOption::clear () {
_combo->clear_items();
_combo->remove_all();
}
void

View File

@ -366,7 +366,7 @@ public:
void clear ()
{
_combo->clear_items();
_combo->remove_all();
_options.clear ();
}