From 8c225e772d95acbd3fc1b5a31a81a739c79ae0d6 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 6 Aug 2009 18:02:43 +0200 Subject: [PATCH] Remove markup from translatable string. Fixes #590933 --- capplets/display/xrandr-capplet.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 2284f49a6..fb37656e0 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -461,29 +461,26 @@ count_all_outputs (GnomeRRConfig *config) static void rebuild_current_monitor_label (App *app) { - char *str; - gboolean free_str; + char *str, *tmp; GdkColor color; gboolean use_color; if (app->current_output) { - str = g_strdup_printf (_("Monitor: %s"), app->current_output->display_name); - free_str = TRUE; + tmp = g_strdup_printf (_("Monitor: %s"), app->current_output->display_name); + str = g_strdup_printf ("%s", tmp); gnome_rr_labeler_get_color_for_output (app->labeler, app->current_output, &color); use_color = TRUE; + g_free (tmp); } else { - str = _("Monitor"); - free_str = FALSE; + str = g_strdup_printf ("%s", _("Monitor")); use_color = FALSE; } gtk_label_set_markup (GTK_LABEL (app->current_monitor_label), str); - - if (free_str) - g_free (str); + g_free (str); if (use_color) {