From 1390743d52c842c77f047cfb47d91256fea201f2 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 26 Jan 2022 23:14:42 +0100 Subject: [PATCH] gtkmm: use remove_all() instead of deprecated Gtk::ComboBoxText::clear_items() --- gtk2_ardour/option_editor.cc | 4 ++-- gtk2_ardour/option_editor.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 62d82bd32b..d8887d6614 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -469,7 +469,7 @@ ComboStringOption::add_to_page (OptionEditorPage* p) */ void ComboStringOption::set_popdown_strings (const std::vector& strings) { - _combo->clear_items (); + _combo->remove_all (); for (std::vector::const_iterator i = strings.begin(); i != strings.end(); ++i) { _combo->append (*i); } @@ -477,7 +477,7 @@ ComboStringOption::set_popdown_strings (const std::vector& strings) void ComboStringOption::clear () { - _combo->clear_items(); + _combo->remove_all(); } void diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index 45217bf1d7..eb18255440 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -366,7 +366,7 @@ public: void clear () { - _combo->clear_items(); + _combo->remove_all(); _options.clear (); }