[dconf-editor] Fix pathbar update.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix pathbar update.
- Date: Thu, 15 Feb 2018 16:12:43 +0000 (UTC)
commit fda5e18893e63524f7329363b7185c61a89c649a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Feb 15 17:12:00 2018 +0100
Fix pathbar update.
editor/dconf-window.vala | 2 +-
editor/pathbar.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index d575ff9..b114152 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -204,7 +204,7 @@ class DConfWindow : ApplicationWindow
else // search
reload_search_action.set_enabled (true);
}
- pathbar.update_ghosts (model.get_fallback_path (pathbar.complete_path));
+ pathbar.update_ghosts (_model.get_fallback_path (pathbar.complete_path), current_path);
});
}
diff --git a/editor/pathbar.vala b/editor/pathbar.vala
index 3c38a12..ae0926d 100644
--- a/editor/pathbar.vala
+++ b/editor/pathbar.vala
@@ -116,7 +116,7 @@ public class PathBar : Box
return index_of_last_slash == -1 ? complete_path : complete_path.slice (0, index_of_last_slash + 1);
}
- public void update_ghosts (string non_ghost_path)
+ public void update_ghosts (string non_ghost_path, string current_path)
{
string action_target = "";
@foreach ((child) => {
@@ -135,7 +135,7 @@ public class PathBar : Box
((!) variant).get ("(ss)", out action_target, out unused);
}
- if (non_ghost_path == action_target)
+ if (current_path == action_target)
{
item.cursor_type = PathBarItem.CursorType.CONTEXT;
item.set_action_name ("ui.empty");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]