Use non-deprecated Gtk::ComboBoxText API in gtkmm2ext

This commit is contained in:
Tim Mayberry 2014-12-06 12:56:56 +07:00
parent 9a56cbc905
commit 12ab4b9816
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ PathsDialog::PathsDialog (Gtk::Window& parent, std::string title, std::string cu
std::vector <std::string> a = PBD::parse_path(current_paths);
for(vector<std::string>::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 <std::string> a = PBD::parse_path(_default_paths);
for(vector<std::string>::const_iterator i = a.begin(); i != a.end(); ++i) {
paths_list_view.append_text(*i);
paths_list_view.append(*i);
}
}

View File

@ -436,7 +436,7 @@ Gtkmm2ext::set_popdown_strings (Gtk::ComboBoxText& cr, const vector<string>& str
cr.clear ();
for (i = strings.begin(); i != strings.end(); ++i) {
cr.append_text (*i);
cr.append (*i);
}
}