[empathy] contact-chooser: when searching, make sure that the first matching item is selected



commit 4444861d7999d6b1326e7f3b26637e9b9335950d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Oct 17 13:37:44 2011 +0200

    contact-chooser: when searching, make sure that the first matching item is selected
    
    So user can just type the phone number of the contact he wants to call and hit
    enter.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=661993

 libempathy-gtk/empathy-contact-chooser.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-chooser.c b/libempathy-gtk/empathy-contact-chooser.c
index 10a3757..c266e3f 100644
--- a/libempathy-gtk/empathy-contact-chooser.c
+++ b/libempathy-gtk/empathy-contact-chooser.c
@@ -219,6 +219,9 @@ get_contacts_cb (TpConnection *connection,
 
   individual_store_add_individual_and_connect (self->priv->store, individual);
 
+  /* Make sure that the first matching item is selected */
+  empathy_individual_view_select_first (self->priv->view);
+
   g_clear_object (&persona_new);
   g_clear_object (&personas);
   g_object_unref (store);



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