]> git.0d.be Git - empathy.git/commitdiff
contact-chooser: when searching, make sure that the first matching item is selected
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 17 Oct 2011 11:37:44 +0000 (13:37 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 18 Oct 2011 08:46:21 +0000 (10:46 +0200)
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

index 10a3757a3edfb0dd3b202893d623ed165b695402..c266e3febd8247f57701f223292e5f5c8de22da7 100644 (file)
@@ -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);