aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-17 19:37:44 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-18 16:46:21 +0800
commit4444861d7999d6b1326e7f3b26637e9b9335950d (patch)
treeed41d885141d8ad7f50b794215ddd7458db5904b
parentf2c015b36e6676796cfd8b48f1022b1d94fa46bb (diff)
downloadgsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar.gz
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar.bz2
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar.lz
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar.xz
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.tar.zst
gsoc2013-empathy-4444861d7999d6b1326e7f3b26637e9b9335950d.zip
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
-rw-r--r--libempathy-gtk/empathy-contact-chooser.c3
1 files changed, 3 insertions, 0 deletions
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);