[dconf-editor] Small fixes in BrowserView.



commit 8e4dc7fc71ce5d89874f76d035b2efd3d2cdaa32
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Jan 11 01:53:00 2018 +0100

    Small fixes in BrowserView.

 editor/browser-view.vala  |    4 ++--
 editor/registry-view.vala |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index cf62f0f..936ba9f 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -38,13 +38,14 @@ class BrowserView : Grid
     [GtkChild] private RegistrySearch search_results_view;
     private Widget? pre_search_view = null;
 
-    public SortingOptions sorting_options { get; private set; }
+    private SortingOptions sorting_options = new SortingOptions ();
 
     public bool small_keys_list_rows
     {
         set
         {
             browse_view.small_keys_list_rows = value;
+            search_results_view.small_keys_list_rows = value;
         }
     }
 
@@ -74,7 +75,6 @@ class BrowserView : Grid
 
         settings.bind ("behaviour", browse_view, "behaviour", 
SettingsBindFlags.GET|SettingsBindFlags.NO_SENSITIVITY);
 
-        sorting_options = new SortingOptions ();
         settings.bind ("sort-case-sensitive", sorting_options, "case-sensitive", GLib.SettingsBindFlags.GET);
         settings.bind ("sort-folders", sorting_options, "sort-folders", GLib.SettingsBindFlags.GET);
 
diff --git a/editor/registry-view.vala b/editor/registry-view.vala
index 586a3a0..ad0c982 100644
--- a/editor/registry-view.vala
+++ b/editor/registry-view.vala
@@ -37,7 +37,7 @@ class RegistryView : Grid, BrowsableView
         set
         {
             _small_keys_list_rows = value;
-            key_list_box.foreach((row) => {
+            key_list_box.foreach ((row) => {
                     Widget? row_child = ((ListBoxRow) row).get_child ();
                     if (row_child != null && (!) row_child is KeyListBoxRow)
                         ((KeyListBoxRow) (!) row_child).small_keys_list_rows = value;


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