[gitg] Fix searching in the dash



commit 155ec3e4bda74485e19e86dff749dbda703953a6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Feb 8 16:37:48 2016 +0100

    Fix searching in the dash
    
    It seems this was regressed a long time ago. Fix it by removing
    the search-enabled property.

 gitg/gitg-dash-view.vala             |   16 +---------------
 gitg/history/gitg-history.vala       |    1 -
 libgitg-ext/gitg-ext-searchable.vala |    1 -
 3 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/gitg/gitg-dash-view.vala b/gitg/gitg-dash-view.vala
index 292ec09..a928958 100644
--- a/gitg/gitg-dash-view.vala
+++ b/gitg/gitg-dash-view.vala
@@ -27,7 +27,6 @@ class DashView : Gtk.Grid, GitgExt.UIElement, GitgExt.Activity, GitgExt.Selectab
 
        public GitgExt.Application? application { owned get; construct set; }
 
-       private bool d_search_enabled;
        private bool d_setting_mode;
 
        [GtkChild( name = "introduction" )]
@@ -148,24 +147,11 @@ class DashView : Gtk.Grid, GitgExt.UIElement, GitgExt.Activity, GitgExt.Selectab
 
        public bool search_visible { get; set; }
 
-       public bool search_enabled
-       {
-               get { return d_search_enabled; }
-               set
-               {
-                       if (d_search_enabled != value)
-                       {
-                               d_search_enabled = value;
-                               update_search_text();
-                       }
-               }
-       }
-
        private void update_search_text()
        {
                if (d_repository_list_box != null)
                {
-                       if (d_search_enabled && d_search_text != "")
+                       if (d_search_text != "")
                        {
                                d_repository_list_box.filter_text(d_search_text);
                        }
diff --git a/gitg/history/gitg-history.vala b/gitg/history/gitg-history.vala
index 07c1c1d..31a0ab7 100644
--- a/gitg/history/gitg-history.vala
+++ b/gitg/history/gitg-history.vala
@@ -1036,7 +1036,6 @@ namespace GitgHistory
 
                public string search_text { owned get; set; default = ""; }
                public bool search_visible { get; set; }
-               public bool search_enabled { get; set; }
        }
 }
 
diff --git a/libgitg-ext/gitg-ext-searchable.vala b/libgitg-ext/gitg-ext-searchable.vala
index ae26be1..f49d5d6 100644
--- a/libgitg-ext/gitg-ext-searchable.vala
+++ b/libgitg-ext/gitg-ext-searchable.vala
@@ -30,7 +30,6 @@ public interface Searchable : Object, Activity
 {
        public abstract string search_text { owned get; set; }
        public abstract bool search_visible { get; set; }
-       public abstract bool search_enabled { get; set; }
        public abstract bool search_available { get; }
        public abstract Gtk.Entry? search_entry { set; }
 }


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