[tracker] tracker-needle: Remove unused tags-filter now
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-needle: Remove unused tags-filter now
- Date: Mon, 21 Nov 2011 10:09:52 +0000 (UTC)
commit ba542c0c5cc3a111bd12cd5f4ad5dc3a0e8f9db2
Author: Martyn Russell <martyn lanedo com>
Date: Tue Nov 1 08:02:33 2011 +0000
tracker-needle: Remove unused tags-filter now
Since you can search by tags, there is no need to show by tags
src/tracker-needle/Makefile.am | 3 +-
src/tracker-needle/tracker-needle.vala | 27 +----
src/tracker-needle/tracker-tags-filter.vala | 186 ---------------------------
3 files changed, 3 insertions(+), 213 deletions(-)
---
diff --git a/src/tracker-needle/Makefile.am b/src/tracker-needle/Makefile.am
index e9f9164..fa78a09 100644
--- a/src/tracker-needle/Makefile.am
+++ b/src/tracker-needle/Makefile.am
@@ -4,7 +4,7 @@ bin_PROGRAMS = tracker-needle
AM_VALAFLAGS = \
--pkg gtk+-3.0 --pkg gio-2.0 \
- $(BUILD_VALAFLAGS) \
+ $(BUILD_fVALAFLAGS) \
$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
config.vapi
@@ -29,7 +29,6 @@ tracker_needle_SOURCES = \
tracker-query.vala \
tracker-result-store.vala \
tracker-stats.vala \
- tracker-tags-filter.vala \
tracker-tags-view.vala \
tracker-utils.vala \
tracker-needle.vala \
diff --git a/src/tracker-needle/tracker-needle.vala b/src/tracker-needle/tracker-needle.vala
index ff51041..258feef 100644
--- a/src/tracker-needle/tracker-needle.vala
+++ b/src/tracker-needle/tracker-needle.vala
@@ -354,7 +354,6 @@ public class Tracker.Needle {
tags_view.hide ();
tags_view.hide_label ();
paned.pack2 (tags_view, false, false);
- //tags_filter.selection_changed.connect (tags_filter_selection_changed);
view_categories.set_active (true);
}
@@ -368,16 +367,6 @@ public class Tracker.Needle {
return false;
}
- private void tags_filter_selection_changed (GenericArray<string> new_tags) {
- if (new_tags != null && new_tags.length > 0) {
- debug ("Tags selected changed, first:'%s', ...", new_tags[0]);
- } else {
- debug ("Tags selected changed, none selected");
- }
-
- search_run ();
- }
-
private void search_changed (Editable editable) {
if (last_search_id != 0) {
Source.remove (last_search_id);
@@ -508,20 +497,8 @@ public class Tracker.Needle {
}
if (store != null) {
- // Set tags first
- if (show_tags.active) {
- // TODO: finish
- // store.search_tags = tags_filter.tags;
-
- // Don't search if no tags are selected
- // if (store.search_tags.length < 1) {
- // search_finished (store);
- // return false;
- // }
- } else {
- store.search_tags = null;
- }
-
+ // We can set tags to search by but we don't anymore
+ store.search_tags = null;
store.search_term = search.get_text ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]