diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-14 17:56:49 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-16 17:28:41 +0800 |
commit | ede1523b824fef2f72b8d60f4efdf78a4fc4a768 (patch) | |
tree | 3f547920738d329f81a99b7a3a7a9d429fb1e2b0 /libempathy-gtk/empathy-contactinfo-utils.c | |
parent | ee6ab13d16db6426e81d7eb00e5bb97cf1f89e2c (diff) | |
download | gsoc2013-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.c | 8 |
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 |