[baobab/reroot-view: 31/48] Clear pathbar and folder display when setting new location
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/reroot-view: 31/48] Clear pathbar and folder display when setting new location
- Date: Sat, 20 Jun 2020 16:11:53 +0000 (UTC)
commit d075df8122380e71af4cca64e96b92c37a46b62a
Author: Stefano Facchini <stefano facchini gmail com>
Date: Wed Jun 17 17:00:17 2020 +0200
Clear pathbar and folder display when setting new location
src/baobab-pathbar.vala | 12 +++++++++++-
src/baobab-window.vala | 6 +++++-
2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-pathbar.vala b/src/baobab-pathbar.vala
index e4eb662..8d36a83 100644
--- a/src/baobab-pathbar.vala
+++ b/src/baobab-pathbar.vala
@@ -33,7 +33,17 @@ namespace Baobab {
public class Pathbar : Gtk.Box {
public signal void item_activated (Gtk.TreePath path);
- public Location location { set; get; }
+ Location location_;
+ public Location location {
+ set {
+ location_ = value;
+ path = new Gtk.TreePath.first ();
+ }
+
+ get {
+ return location_;
+ }
+ }
public new Gtk.TreePath path {
set {
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 464f3b8..2e35570 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -37,7 +37,11 @@ namespace Baobab {
public Location location {
set {
location_ = value;
- //folder_name.label = location_.name;
+
+ folder_name.label = location_.name;
+ folder_size.label = "";
+ folder_elements.label = "";
+ folder_time.label = "";
}
get {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]