Remove markup from translatable string. Fixes #590933

This commit is contained in:
Claude Paroz 2009-08-06 18:02:43 +02:00
parent 87669d9ab9
commit 8c225e772d

View file

@ -461,29 +461,26 @@ count_all_outputs (GnomeRRConfig *config)
static void static void
rebuild_current_monitor_label (App *app) rebuild_current_monitor_label (App *app)
{ {
char *str; char *str, *tmp;
gboolean free_str;
GdkColor color; GdkColor color;
gboolean use_color; gboolean use_color;
if (app->current_output) if (app->current_output)
{ {
str = g_strdup_printf (_("<b>Monitor: %s</b>"), app->current_output->display_name); tmp = g_strdup_printf (_("Monitor: %s"), app->current_output->display_name);
free_str = TRUE; str = g_strdup_printf ("<b>%s</b>", tmp);
gnome_rr_labeler_get_color_for_output (app->labeler, app->current_output, &color); gnome_rr_labeler_get_color_for_output (app->labeler, app->current_output, &color);
use_color = TRUE; use_color = TRUE;
g_free (tmp);
} }
else else
{ {
str = _("<b>Monitor</b>"); str = g_strdup_printf ("<b>%s</b>", _("Monitor"));
free_str = FALSE;
use_color = FALSE; use_color = FALSE;
} }
gtk_label_set_markup (GTK_LABEL (app->current_monitor_label), str); gtk_label_set_markup (GTK_LABEL (app->current_monitor_label), str);
g_free (str);
if (free_str)
g_free (str);
if (use_color) if (use_color)
{ {