[gnome-games/wip/exalm/libhandy2: 9/9] ui: Remove unnecessary box from preferences winow



commit 3ac81f83e7eaabd9ab00a82f5cdc2f357fa543fd
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Wed Sep 12 17:39:13 2018 +0500

    ui: Remove unnecessary box from preferences winow

 data/ui/preferences-window.ui  | 22 ++++++++--------------
 src/ui/preferences-window.vala |  4 +---
 2 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index bdd6496e..85ca1bda 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -88,21 +88,15 @@
             <property name="fold">unfolded</property>
             <signal name="notify::fold" handler="on_fold_changed" after="yes"/>
             <child>
-              <object class="GtkBox" id="sidebar_vbox">
-                <property name="orientation">vertical</property>
+              <object class="GamesPreferencesSidebar" id="sidebar">
+                <property name="margin-top">4</property>
+                <property name="stack">stack</property>
+                <property name="vexpand">True</property>
                 <property name="visible">True</property>
-                <child>
-                  <object class="GamesPreferencesSidebar" id="sidebar">
-                    <property name="margin-top">4</property>
-                    <property name="stack">stack</property>
-                    <property name="vexpand">True</property>
-                    <property name="visible">True</property>
-                    <property name="width-request">150</property>
-                    <style>
-                      <class name="preferences" />
-                    </style>
-                  </object>
-                </child>
+                <property name="width-request">150</property>
+                <style>
+                  <class name="preferences" />
+                </style>
               </object>
             </child>
             <child>
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index 12ab5667..86d34771 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -17,8 +17,6 @@ private class Games.PreferencesWindow : Gtk.Window {
        [GtkChild]
        private Hdy.Leaflet content_box;
        [GtkChild]
-       private Gtk.Box sidebar_vbox;
-       [GtkChild]
        private PreferencesSidebar sidebar;
        [GtkChild]
        private Gtk.Stack stack;
@@ -106,7 +104,7 @@ private class Games.PreferencesWindow : Gtk.Window {
 
        [GtkCallback]
        private void on_back_clicked () {
-               content_box.visible_child = sidebar_vbox;
+               content_box.visible_child = sidebar;
                titlebar_box.visible_child = left_header_bar;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]