[gnome-contacts] Use GtkSearchEntry
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Use GtkSearchEntry
- Date: Sat, 4 May 2013 15:46:57 +0000 (UTC)
commit 84e6e1f47c427704c072b4cbf28b279789d55dfc
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Apr 29 14:25:00 2013 -0400
Use GtkSearchEntry
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=679108
src/contacts-list-pane.vala | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index e73dd16..1ba0609 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -23,7 +23,7 @@ using Folks;
public class Contacts.ListPane : Frame {
private Store contacts_store;
- public Entry filter_entry;
+ public SearchEntry filter_entry;
private View contacts_view;
private Gd.Revealer selection_revealer;
@@ -71,15 +71,6 @@ public class Contacts.ListPane : Frame {
Source.remove (filter_entry_changed_id);
filter_entry_changed_id = Timeout.add (300, filter_entry_changed_timeout);
-
- if (filter_entry.get_text () == "")
- filter_entry.set_icon_from_icon_name (EntryIconPosition.SECONDARY, "edit-find-symbolic");
- else
- filter_entry.set_icon_from_icon_name (EntryIconPosition.SECONDARY, "edit-clear-symbolic");
- }
-
- private void filter_entry_clear (EntryIconPosition position) {
- filter_entry.set_text ("");
}
public ListPane (Store contacts_store) {
@@ -94,10 +85,8 @@ public class Contacts.ListPane : Frame {
contacts_view.set_show_subset (View.Subset.MAIN);
- filter_entry = new Entry ();
- filter_entry.set_icon_from_icon_name (EntryIconPosition.SECONDARY, "edit-find-symbolic");
+ filter_entry = new SearchEntry ();
filter_entry.changed.connect (filter_entry_changed);
- filter_entry.icon_press.connect (filter_entry_clear);
var search_entry_item = new ToolItem ();
search_entry_item.is_important = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]