diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-24 16:31:14 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-29 17:00:50 +0800 |
commit | 795168da0bd6ef574206a2346038126b721a0eb9 (patch) | |
tree | 4973449932ba7ceff2efd674e028a8e6e48c8895 /libempathy-gtk | |
parent | 6eeaa74b691e4dd7486b2bf7ffef236f582ac464 (diff) | |
download | gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar.gz gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar.bz2 gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar.lz gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar.xz gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.tar.zst gsoc2013-empathy-795168da0bd6ef574206a2346038126b721a0eb9.zip |
contact_widget_details_update_edit: no need to call tp_contact_get_contact_info() each iteration
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 15dda50f3..4bd13665c 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -277,11 +277,13 @@ contact_widget_details_update_edit (EmpathyContactWidget *information) TpConnection *connection; GList *specs, *l; guint n_rows = 0; + GList *info; g_assert (information->details_to_set == NULL); contact = empathy_contact_get_tp_contact (information->contact); connection = tp_contact_get_connection (contact); + info = tp_contact_get_contact_info (contact); specs = tp_connection_get_contact_info_supported_fields (connection); specs = g_list_sort (specs, (GCompareFunc) contact_info_field_spec_cmp); @@ -290,7 +292,7 @@ contact_widget_details_update_edit (EmpathyContactWidget *information) TpContactInfoFieldSpec *spec = l->data; TpContactInfoField *field; InfoFieldData *field_data; - GList *info, *ll; + GList *ll; GStrv value = NULL; GtkWidget *w; @@ -302,7 +304,6 @@ contact_widget_details_update_edit (EmpathyContactWidget *information) } /* Search initial value */ - info = tp_contact_get_contact_info (contact); for (ll = info; ll != NULL; ll = ll->next) { field = ll->data; |