aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-widget.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-09-08 11:31:00 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-10-21 06:42:23 +0800
commit558a3d0590e8dbd4f56e8a96dd9b023eb3241541 (patch)
treeadb097aaca5b5335ebdfa2660158378a503fefe8 /libempathy-gtk/empathy-individual-widget.c
parentcf23dd409cc36a8f692bf0db4f28e505da8633f8 (diff)
downloadgsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar.gz
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar.bz2
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar.lz
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar.xz
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.tar.zst
gsoc2013-empathy-558a3d0590e8dbd4f56e8a96dd9b023eb3241541.zip
Incorporate updates from empathy-contact-widget into contactinfo-utils
Update empathy-individual-widget for these changes. This comes from the rebase of this branch.
Diffstat (limited to 'libempathy-gtk/empathy-individual-widget.c')
-rw-r--r--libempathy-gtk/empathy-individual-widget.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 7354ee83e..bec9225e6 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -46,7 +46,6 @@
#include "empathy-groups-widget.h"
#include "empathy-gtk-enum-types.h"
#include "empathy-individual-widget.h"
-#include "empathy-string-parser.h"
#include "empathy-ui-utils.h"
#define DEBUG_FLAG EMPATHY_DEBUG_CONTACT
@@ -229,7 +228,7 @@ details_update_show (EmpathyIndividualWidget *self,
TpContactInfoField *field = l->data;
gchar *title;
const gchar *value;
- gboolean linkify;
+ EmpathyContactInfoFormatFunc format;
GtkWidget *w;
if (field->field_value == NULL || field->field_value[0] == NULL)
@@ -238,7 +237,7 @@ details_update_show (EmpathyIndividualWidget *self,
value = field->field_value[0];
if (!empathy_contact_info_lookup_field (field->field_name,
- NULL, &linkify))
+ NULL, &format))
{
DEBUG ("Unhandled ContactInfo field: %s", field->field_name);
continue;
@@ -257,11 +256,11 @@ details_update_show (EmpathyIndividualWidget *self,
/* Add Value */
w = gtk_label_new (value);
- if (linkify == TRUE)
+ if (format != NULL)
{
gchar *markup;
- markup = empathy_add_link_markup (value);
+ markup = format (field->field_value);
gtk_label_set_markup (GTK_LABEL (w), markup);
g_free (markup);
}