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
This commit is contained in:
Bastien Nocera 2012-06-12 14:03:25 +01:00
parent 4bb0739670
commit b9e356412f

View file

@ -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);