[gnome-control-center] Remove markup from translatable string. Fixes #590933
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Remove markup from translatable string. Fixes #590933
- Date: Thu, 6 Aug 2009 16:04:57 +0000 (UTC)
commit 8c225e772d95acbd3fc1b5a31a81a739c79ae0d6
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Aug 6 18:02:43 2009 +0200
Remove markup from translatable string. Fixes #590933
capplets/display/xrandr-capplet.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index 2284f49..fb37656 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 (_("<b>Monitor: %s</b>"), app->current_output->display_name);
- free_str = TRUE;
+ tmp = g_strdup_printf (_("Monitor: %s"), app->current_output->display_name);
+ str = g_strdup_printf ("<b>%s</b>", tmp);
gnome_rr_labeler_get_color_for_output (app->labeler, app->current_output, &color);
use_color = TRUE;
+ g_free (tmp);
}
else
{
- str = _("<b>Monitor</b>");
- free_str = FALSE;
+ str = g_strdup_printf ("<b>%s</b>", _("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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]