Fix searching in the dash

It seems this was regressed a long time ago. Fix it by removing
the search-enabled property.
This commit is contained in:
Ignacio Casal Quinteiro 2016-02-08 16:37:48 +01:00
parent c48c9a2dcf
commit 155ec3e4bd
3 changed files with 1 additions and 17 deletions

View file

@ -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);
}

View file

@ -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; }
}
}

View file

@ -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; }
}