[empathy] contact-search-dialog: use gtk_list_store_insert_with_values()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] contact-search-dialog: use gtk_list_store_insert_with_values()
- Date: Thu, 29 Mar 2012 13:33:25 +0000 (UTC)
commit 97089275ffec48d3da9d585a5389c0893a21fc46
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 29 15:12:10 2012 +0200
contact-search-dialog: use gtk_list_store_insert_with_values()
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 89a7918..e0b7c44 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]