[gnome-contacts] ListPane: moved signal connection to ui file



commit 9cf38da5fd8853b864260b81ad820bdfe5b55d64
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat May 31 23:36:16 2014 -0400

    ListPane: moved signal connection to ui file

 data/ui/contacts-list-pane.ui |    3 ++-
 src/contacts-list-pane.vala   |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/contacts-list-pane.ui b/data/ui/contacts-list-pane.ui
index 1a63a1e..2915e66 100644
--- a/data/ui/contacts-list-pane.ui
+++ b/data/ui/contacts-list-pane.ui
@@ -31,6 +31,7 @@
                     <property name="primary_icon_activatable">False</property>
                     <property name="primary_icon_sensitive">False</property>
                     <property name="placeholder_text" translatable="yes">Type to search</property>
+                    <signal name="changed" handler="filter_entry_changed" object="ContactsListPane" 
after="no" swapped="no"/>
                   </object>
                 </child>
               </object>
@@ -105,4 +106,4 @@
       </object>
     </child>
   </template>
-</interface>
\ No newline at end of file
+</interface>
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index 4606d0f..fd1dcf1 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -81,6 +81,7 @@ public class Contacts.ListPane : Frame {
     return false;
   }
 
+  [GtkCallback]
   private void filter_entry_changed (Editable editable) {
     if (filter_entry_changed_id != 0)
       Source.remove (filter_entry_changed_id);
@@ -94,7 +95,6 @@ public class Contacts.ListPane : Frame {
 
   construct {
     search_tool_item.set_expand (true);
-    filter_entry.changed.connect (filter_entry_changed);
 
     contacts_view.selection_changed.connect( (l, contact) => {
         if (!ignore_selection_change)


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