src: Use new wrappable argument

This commit is contained in:
Patrick José Pereira 2022-02-18 08:18:44 -03:00 committed by Stéphane Cerveau
parent ed697a63e9
commit 0ee941efbe
2 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ pub fn setup_favorite_list(app: &GPSApp) {
.builder
.object("treeview-favorites")
.expect("Couldn't get treeview-favorites");
treeview::add_column_to_treeview(app, "treeview-favorites", "Name", 0);
treeview::add_column_to_treeview(app, "treeview-favorites", "Name", 0, false);
reset_favorite_list(&favorite_list);
let app_weak = app.downgrade();
favorite_list.connect_row_activated(move |tree_view, _tree_path, _tree_column| {
@ -119,7 +119,7 @@ pub fn setup_elements_list(app: &GPSApp) {
.builder
.object("treeview-elements")
.expect("Couldn't get treeview-elements");
treeview::add_column_to_treeview(app, "treeview-elements", "Name", 0);
treeview::add_column_to_treeview(app, "treeview-elements", "Name", 0, false);
reset_elements_list(&tree);
let app_weak = app.downgrade();
tree.connect_row_activated(move |tree_view, _tree_path, _tree_column| {

View file

@ -23,9 +23,9 @@ fn reset_logger_list(logger_list: &TreeView) {
}
pub fn setup_logger_list(app: &GPSApp) {
treeview::add_column_to_treeview(app, "treeview-logger", "TIME", 0);
treeview::add_column_to_treeview(app, "treeview-logger", "LEVEL", 1);
treeview::add_column_to_treeview(app, "treeview-logger", "LOG", 2);
treeview::add_column_to_treeview(app, "treeview-logger", "TIME", 0, false);
treeview::add_column_to_treeview(app, "treeview-logger", "LEVEL", 1, false);
treeview::add_column_to_treeview(app, "treeview-logger", "LOG", 2, true);
let logger_list: TreeView = app
.builder
.object("treeview-logger")