[dconf-editor] Remove a .parent use.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Remove a .parent use.
- Date: Tue, 28 Nov 2017 06:28:34 +0000 (UTC)
commit 3c8f850198fa625fe4f812ad5952bb215f5d04c9
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Nov 23 15:56:13 2017 +0100
Remove a .parent use.
editor/registry-info.vala | 4 ++--
editor/registry-view.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/registry-info.vala b/editor/registry-info.vala
index 1616bc6..1a30141 100644
--- a/editor/registry-info.vala
+++ b/editor/registry-info.vala
@@ -58,7 +58,7 @@ class RegistryInfo : Grid
* * Populating
\*/
- public void populate_properties_list_box (Key key)
+ public void populate_properties_list_box (Key key, bool warning_multiple_schemas)
{
if (key is DConfKey && ((DConfKey) key).is_ghost) // TODO place in "requires"
assert_not_reached ();
@@ -68,7 +68,7 @@ class RegistryInfo : Grid
unowned Variant [] dict_container;
key.properties.get ("(ba{ss})", out has_schema, out dict_container);
- multiple_schemas_warning_revealer.set_reveal_child (has_schema &&
key.parent.warning_multiple_schemas);
+ multiple_schemas_warning_revealer.set_reveal_child (has_schema && warning_multiple_schemas);
no_schema_warning.set_reveal_child (!has_schema);
properties_list_box.@foreach ((widget) => widget.destroy ());
diff --git a/editor/registry-view.vala b/editor/registry-view.vala
index 50aff5d..b069ddf 100644
--- a/editor/registry-view.vala
+++ b/editor/registry-view.vala
@@ -230,7 +230,7 @@ class RegistryView : Grid, PathElement
return;
}
- properties_view.populate_properties_list_box ((Key) ((!) object));
+ properties_view.populate_properties_list_box ((Key) ((!) object),
current_directory.warning_multiple_schemas);
show_properties_view (full_name);
}
private bool select_folder (string full_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]