summaryrefslogtreecommitdiff
path: root/src/trg-general-panel.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-07 09:30:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-07 09:30:52 +0000
commitecbd6bbb7423bc9b6f329f937bf740b7dc87598d (patch)
treed94b975144b1aed8300d75ab5e4a12fbc8d906de /src/trg-general-panel.c
parent5cf07d32732a12cc049fde68213d4589cb951e67 (diff)
Make the presence of the graph configurable, and prevent ":" showing (introduced by gettext changes) for empty labels like errors (usually).
Diffstat (limited to 'src/trg-general-panel.c')
-rw-r--r--src/trg-general-panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trg-general-panel.c b/src/trg-general-panel.c
index 9045744..c4edf60 100644
--- a/src/trg-general-panel.c
+++ b/src/trg-general-panel.c
@@ -189,7 +189,7 @@ static GtkLabel *trg_general_panel_add_label(TrgGeneralPanel * fixed,
gchar *keyMarkup;
keyLabel = gtk_label_new(NULL);
- keyMarkup = g_markup_printf_escaped("<b>%s:</b>", key);
+ keyMarkup = g_markup_printf_escaped(strlen(key) > 0 ? "<b>%s:</b>" : "", key);
gtk_label_set_markup(GTK_LABEL(keyLabel), keyMarkup);
g_free(keyMarkup);
gtk_fixed_put(GTK_FIXED(fixed), keyLabel, 10 + (col * 280),