[dconf-editor] Remove function.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Remove function.
- Date: Sat, 20 Jan 2018 12:05:41 +0000 (UTC)
commit 626d20ddf4f172e39f8e42959af6a3270f933ab7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Jan 20 13:05:04 2018 +0100
Remove function.
editor/dconf-model.vala | 7 -------
editor/pathbar.vala | 4 ++--
2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 62c3771..aee2e88 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -365,13 +365,6 @@ public class SettingsModel : Object
return ((!) dir).warning_multiple_schemas;
}
- public bool directory_is_ghost (string path)
- {
- if (path == "/")
- return false;
- return get_directory (path) == null;
- }
-
public string get_fallback_path (string path, out bool warning_multiple_schemas)
{
Directory? dir = get_directory (path);
diff --git a/editor/pathbar.vala b/editor/pathbar.vala
index 4a9be72..6ce1a82 100644
--- a/editor/pathbar.vala
+++ b/editor/pathbar.vala
@@ -57,7 +57,7 @@ public class PathBar : Box
complete_path += "/";
if (last_item != null)
{
- bool is_ghost = model.directory_is_ghost (complete_path);
+ bool is_ghost = !(model.path_exists (complete_path));
set_is_ghost ((!) last_item, is_ghost);
last_item = null;
set_is_ghost (child, is_ghost);
@@ -110,7 +110,7 @@ public class PathBar : Box
foreach (string item in split [0:split.length - 1])
{
complete_path += item + "/";
- bool is_ghost = model.directory_is_ghost (complete_path);
+ bool is_ghost = !(model.path_exists (complete_path));
set_is_ghost (add_path_bar_item (item, complete_path, true, !is_key_path && (index ==
split.length - 2)), is_ghost);
set_is_ghost (add_slash_label (), is_ghost);
index++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]