[gnome-control-center] power: Fix reference to "Screen" settings



commit b9e356412fad645fc55f4790f2022ef192bd1a8a
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 12 14:03:25 2012 +0100

    power: Fix reference to "Screen" settings
    
    This also fixes the use of a split string, as mentioned in
    bug #675929.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670567

 panels/power/cc-power-panel.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index bed82be..ec0eb16 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -992,7 +992,6 @@ cc_power_panel_init (CcPowerPanel *self)
   GError     *error;
   GtkWidget  *widget;
   gint        value;
-  gchar      *tmp;
 
   self->priv = POWER_PANEL_PRIVATE (self);
 
@@ -1081,13 +1080,8 @@ cc_power_panel_init (CcPowerPanel *self)
   widget = GTK_WIDGET (gtk_builder_get_object (self->priv->builder,
                                                "label_screen_settings"));
   /* TRANSLATORS: this is a link to the "Brightness and Lock" control center panel */
-  tmp = g_strdup_printf ("<span size=\"small\">%s "
-                         "<a href=\"screen\">%s</a> %s</span>",
-                         _("Tip:"),
-                         _("Brightness Settings"),
-                         _("affect how much power is used"));
-  gtk_label_set_markup (GTK_LABEL (widget), tmp);
-  g_free (tmp);
+  gtk_label_set_markup (GTK_LABEL (widget),
+                        "<span size=\"small\">Tip: <a href=\"screen\">screen brightness</a> affects how much power is used</span>");
   g_signal_connect (widget, "activate-link",
                     G_CALLBACK (activate_link_cb),
                     self);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]