mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
Use non-deprecated Gtk::ComboBoxText API in gtkmm2ext
This commit is contained in:
parent
9a56cbc905
commit
12ab4b9816
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
std::vector <std::string> a = PBD::parse_path(current_paths);
|
||||||
for(vector<std::string>::const_iterator i = a.begin(); i != a.end(); ++i) {
|
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));
|
paths_list_view.get_selection()->signal_changed().connect (mem_fun (*this, &PathsDialog::selection_changed));
|
||||||
|
|
@ -127,7 +127,7 @@ PathsDialog::add_path() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!dup) {
|
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();
|
paths_list_view.clear_items();
|
||||||
std::vector <std::string> a = PBD::parse_path(_default_paths);
|
std::vector <std::string> a = PBD::parse_path(_default_paths);
|
||||||
for(vector<std::string>::const_iterator i = a.begin(); i != a.end(); ++i) {
|
for(vector<std::string>::const_iterator i = a.begin(); i != a.end(); ++i) {
|
||||||
paths_list_view.append_text(*i);
|
paths_list_view.append(*i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -436,7 +436,7 @@ Gtkmm2ext::set_popdown_strings (Gtk::ComboBoxText& cr, const vector<string>& str
|
||||||
cr.clear ();
|
cr.clear ();
|
||||||
|
|
||||||
for (i = strings.begin(); i != strings.end(); ++i) {
|
for (i = strings.begin(); i != strings.end(); ++i) {
|
||||||
cr.append_text (*i);
|
cr.append (*i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue