aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-07 19:26:05 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-07 19:28:13 +0800
commit3c2728fb0e70803085f699538c115b4c41b0b869 (patch)
tree28437bfbafcc6cc2a16fe6a8b789550a8c050500
parentcbdebf9ecf19f3303015e0efded41fe171fedbe6 (diff)
downloadgsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar.gz
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar.bz2
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar.lz
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar.xz
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.tar.zst
gsoc2013-empathy-3c2728fb0e70803085f699538c115b4c41b0b869.zip
Use the special "" search field if the CM supports it
-rw-r--r--libempathy-gtk/empathy-contact-search-dialog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index ce5c578ac..4468e95ab 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -104,7 +104,11 @@ on_searcher_reset (GObject *source_object,
search = g_hash_table_new (g_str_hash, g_str_equal);
search_criteria = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
- g_hash_table_insert (search, "fn", (gpointer) search_criteria);
+
+ if (tp_strv_contains (tp_contact_search_get_search_keys (searcher), ""))
+ g_hash_table_insert (search, "", (gpointer) search_criteria);
+ else
+ g_hash_table_insert (search, "fn", (gpointer) search_criteria);
gtk_list_store_clear (priv->store);
tp_contact_search_start (priv->searcher, search);