aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contactinfo-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-14 17:56:49 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-16 17:28:41 +0800
commitede1523b824fef2f72b8d60f4efdf78a4fc4a768 (patch)
tree3f547920738d329f81a99b7a3a7a9d429fb1e2b0 /libempathy-gtk/empathy-contactinfo-utils.c
parentee6ab13d16db6426e81d7eb00e5bb97cf1f89e2c (diff)
downloadgsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar.gz
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar.bz2
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar.lz
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar.xz
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.tar.zst
gsoc2013-empathy-ede1523b824fef2f72b8d60f4efdf78a4fc4a768.zip
Don't display parameters if Parameters_Exact is not Set
There is no point cluttering the UI with it as we don't allow user to choose which param he wants to set. https://bugzilla.gnome.org/show_bug.cgi?id=671983
Diffstat (limited to 'libempathy-gtk/empathy-contactinfo-utils.c')
-rw-r--r--libempathy-gtk/empathy-contactinfo-utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contactinfo-utils.c b/libempathy-gtk/empathy-contactinfo-utils.c
index b995297b0..270566721 100644
--- a/libempathy-gtk/empathy-contactinfo-utils.c
+++ b/libempathy-gtk/empathy-contactinfo-utils.c
@@ -213,15 +213,19 @@ build_parameters_string (GStrv parameters)
char *
empathy_contact_info_field_label (const char *field_name,
- GStrv parameters)
+ GStrv parameters,
+ gboolean show_parameters)
{
char *ret;
const char *title;
- char *join = build_parameters_string (parameters);
+ char *join = NULL;
if (!empathy_contact_info_lookup_field (field_name, &title, NULL))
return NULL;
+ if (show_parameters)
+ join = build_parameters_string (parameters);
+
if (join != NULL)
ret = g_strdup_printf ("%s (%s):", title, join);
else