From 12ab4b981689b07f4d6b3a2bd1518a431d231f43 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 6 Dec 2014 12:56:56 +0700 Subject: [PATCH] Use non-deprecated Gtk::ComboBoxText API in gtkmm2ext --- libs/gtkmm2ext/paths_dialog.cc | 6 +++--- libs/gtkmm2ext/utils.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/gtkmm2ext/paths_dialog.cc b/libs/gtkmm2ext/paths_dialog.cc index 2f2ff0c5d8..9b02f870cd 100644 --- a/libs/gtkmm2ext/paths_dialog.cc +++ b/libs/gtkmm2ext/paths_dialog.cc @@ -50,7 +50,7 @@ PathsDialog::PathsDialog (Gtk::Window& parent, std::string title, std::string cu std::vector a = PBD::parse_path(current_paths); for(vector::const_iterator i = a.begin(); i != a.end(); ++i) { - paths_list_view.append_text(*i); + paths_list_view.append(*i); } paths_list_view.get_selection()->signal_changed().connect (mem_fun (*this, &PathsDialog::selection_changed)); @@ -127,7 +127,7 @@ PathsDialog::add_path() { } } if (!dup) { - paths_list_view.prepend_text(dir); + paths_list_view.prepend(dir); } } } @@ -159,6 +159,6 @@ PathsDialog::set_default() { paths_list_view.clear_items(); std::vector a = PBD::parse_path(_default_paths); for(vector::const_iterator i = a.begin(); i != a.end(); ++i) { - paths_list_view.append_text(*i); + paths_list_view.append(*i); } } diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index a9b61c841c..244d136ca0 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -436,7 +436,7 @@ Gtkmm2ext::set_popdown_strings (Gtk::ComboBoxText& cr, const vector& str cr.clear (); for (i = strings.begin(); i != strings.end(); ++i) { - cr.append_text (*i); + cr.append (*i); } }