[dconf-editor] Ensure keys are correctly sorted.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Ensure keys are correctly sorted.
- Date: Sat, 28 Oct 2017 09:51:48 +0000 (UTC)
commit 0a075e8fd04a4fcfa6a83599d228cf11b08aca9d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Oct 28 11:49:31 2017 +0200
Ensure keys are correctly sorted.
editor/ca.desrt.dconf-editor.gschema.xml | 2 +-
editor/registry-view.vala | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/editor/ca.desrt.dconf-editor.gschema.xml b/editor/ca.desrt.dconf-editor.gschema.xml
index 6e810f1..3fd9509 100644
--- a/editor/ca.desrt.dconf-editor.gschema.xml
+++ b/editor/ca.desrt.dconf-editor.gschema.xml
@@ -109,7 +109,7 @@
<enum id="ca.desrt.dconf-editor.DemoWeirdEnum">
<value value="0" nick="only-choice"/>
</enum>
- <schema id="ca.desrt.dconf-editor.Demo" path="/ca/desrt/dconf-editor/demo/">
+ <schema id="ca.desrt.dconf-editor.Demo" path="/ca/desrt/dconf-editor/Demo/">
<key name="boolean" type="b">
<default>true</default>
<summary>A boolean, type ‘b’</summary>
diff --git a/editor/registry-view.vala b/editor/registry-view.vala
index 820f8f4..a090449 100644
--- a/editor/registry-view.vala
+++ b/editor/registry-view.vala
@@ -95,6 +95,7 @@ class RegistryView : Grid, PathElement
stack.set_transition_type (current_path.has_prefix (path) ? StackTransitionType.CROSSFADE :
StackTransitionType.NONE);
need_reload_warning_revealer.set_reveal_child (false);
update_current_path (path);
+ get_selected_directory ().sort_key_model (application_settings.get_boolean ("sort-case-sensitive"));
stack.set_visible_child_name ("browse-view");
if (selected != null)
{
@@ -140,6 +141,8 @@ class RegistryView : Grid, PathElement
private void show_properties_view (string path)
{
+ need_reload_warning_revealer.set_reveal_child (false);
+
stack.set_transition_type (path.has_prefix (current_path) && current_path.length ==
path.last_index_of_char ('/') + 1 ? StackTransitionType.CROSSFADE : StackTransitionType.NONE);
update_current_path (path);
stack.set_visible_child (properties_view);
@@ -414,7 +417,6 @@ class RegistryView : Grid, PathElement
saved_selection = ((SettingObject) ((!) key_model).get_object (position)).full_name;
}
- get_selected_directory ().sort_key_model (application_settings.get_boolean ("sort-case-sensitive"));
show_browse_view (current_path, saved_selection);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]