diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:12:10 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:17:37 +0800 |
commit | 97089275ffec48d3da9d585a5389c0893a21fc46 (patch) | |
tree | 9bdda6fa3c2a690cdaa95ce44d7af872fcf622a6 | |
parent | 39cc5827bfe5dc0280e0b8a720459b04e613b802 (diff) | |
download | gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar.gz gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar.bz2 gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar.lz gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar.xz gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.tar.zst gsoc2013-empathy-97089275ffec48d3da9d585a5389c0893a21fc46.zip |
contact-search-dialog: use gtk_list_store_insert_with_values()
-rw-r--r-- | libempathy-gtk/empathy-contact-search-dialog.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c index 89a7918aa..e0b7c441f 100644 --- a/libempathy-gtk/empathy-contact-search-dialog.c +++ b/libempathy-gtk/empathy-contact-search-dialog.c @@ -275,13 +275,10 @@ _search_results_received (TpContactSearch *searcher, for (l = results; l != NULL; l = l->next) { TpContactSearchResult *result = l->data; - GtkTreeIter iter; - - gtk_list_store_append (priv->store, &iter); name = tp_contact_search_result_get_field (result, "fn"); - gtk_list_store_set (priv->store, &iter, + gtk_list_store_insert_with_values (priv->store, NULL, -1, NAME_COLUMN, name ? name->field_value[0] : NULL, LOGIN_COLUMN, tp_contact_search_result_get_identifier (result), -1); |