[gnome-contacts] Focus the filter entry on map



commit d067501320b25f65db79f6d50b878a18df67763a
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 11 15:59:49 2011 +0200

    Focus the filter entry on map

 src/contacts-app.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 6c38a7b..17fd241 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -400,6 +400,11 @@ public class Contacts.App : Window {
     filter_entry.set_icon_from_icon_name (EntryIconPosition.SECONDARY, "edit-find-symbolic");
     filter_entry.changed.connect (filter_entry_changed);
 
+    map_event.connect (() => {
+	filter_entry.grab_focus ();
+	return true;
+      });
+
     var search_entry_item = new ToolItem ();
     search_entry_item.is_important = false;
     search_entry_item.set_expand (true);



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