[dconf-editor] Create ModificationsRevealer on construct.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Create ModificationsRevealer on construct.
- Date: Wed, 19 Dec 2018 17:18:20 +0000 (UTC)
commit e98285569c86f5cde2bcab30233a9427d08d1b21
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Nov 30 05:48:16 2018 +0100
Create ModificationsRevealer on construct.
editor/dconf-editor.ui | 7 +------
editor/dconf-window.vala | 10 +++++++---
2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/editor/dconf-editor.ui b/editor/dconf-editor.ui
index 5b87c72..a99d480 100644
--- a/editor/dconf-editor.ui
+++ b/editor/dconf-editor.ui
@@ -23,7 +23,7 @@
<object class="GtkOverlay">
<property name="visible">True</property>
<child>
- <object class="GtkGrid">
+ <object class="GtkGrid" id="main_grid">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
@@ -33,11 +33,6 @@
<signal name="bookmarks-selection-changed" handler="on_bookmarks_selection_changed"/>
</object>
</child>
- <child>
- <object class="ModificationsRevealer" id="revealer">
- <property name="visible">True</property>
- </object>
- </child>
</object>
</child>
<child type="overlay">
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 8bce241..ca1c1dd 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -104,12 +104,12 @@ private class DConfWindow : AdaptativeWindow, AdaptativeWidget
private GLib.Settings settings = new GLib.Settings ("ca.desrt.dconf-editor.Settings");
[GtkChild] private BrowserHeaderBar headerbar;
-
[GtkChild] private BrowserView browser_view;
- [GtkChild] private ModificationsRevealer revealer;
-
[GtkChild] private NotificationsRevealer notifications_revealer;
+ [GtkChild] private Grid main_grid;
+ private ModificationsRevealer revealer;
+
private ulong use_shortpaths_changed_handler = 0;
private ulong behaviour_changed_handler = 0;
@@ -123,6 +123,10 @@ private class DConfWindow : AdaptativeWindow, AdaptativeWidget
{
context = get_style_context ();
+ revealer = new ModificationsRevealer ();
+ revealer.visible = true;
+ main_grid.add (revealer);
+
adaptative_children.append (headerbar);
adaptative_children.append (browser_view);
adaptative_children.append (revealer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]