From 4444861d7999d6b1326e7f3b26637e9b9335950d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 17 Oct 2011 13:37:44 +0200 Subject: 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 file changed, 3 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-chooser.c b/libempathy-gtk/empathy-contact-chooser.c index 10a3757a3..c266e3feb 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); -- cgit v1.2.3