[gnome-power-manager] Show the user some more information about the new strange icon



commit ce274a35e50bc8546c39179503873f7ba58b6d89
Author: Richard Hughes <richard hughsie com>
Date:   Fri Aug 14 11:18:27 2009 +0100

    Show the user some more information about the new strange icon

 src/gpm-idle.c |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/src/gpm-idle.c b/src/gpm-idle.c
index a641621..37d6d97 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -217,19 +217,30 @@ gpm_idle_evaluate (GpmIdle *idle)
 	gboolean is_idle;
 	gboolean is_inhibited;
 	gchar *tooltip;
+	gchar *what_to_do;
+	gchar *nag_message;
 
 	is_idle = gpm_session_get_idle (idle->priv->session);
 	is_inhibited = gpm_session_get_inhibited (idle->priv->session);
 	egg_debug ("session_idle=%i, session_inhibited=%i, x_idle=%i", is_idle, is_inhibited, idle->priv->x_idle);
 
+	/* TRANSLATORS: this is what the user should read for more information about the blanking problem (%s is a URL) */
+	what_to_do = g_strdup_printf (_("Please see %s for more information."),
+				      "http://blogs.gnome.org/hughsie/2009/08/14/blanking-in-gnome-power-manager-fixed/";);
+
+	/* TRANSLATORS: this is telling the user that thier X server is broken, and needs to be fixed */
+	nag_message = g_strdup_printf ("%s\n%s", _("If you can see this text, your display server is broken and you should notify your distributor."),
+				       what_to_do);
+
 	/* debug */
-	tooltip = g_strdup_printf ("%s %s %s",
+	tooltip = g_strdup_printf ("%s, %s, %s.\n%s",
 				   /* TRANSLATORS: this is for debugging, if the session is idle */
 				   is_idle ? _("Session idle") : _("Session active"),
 				   /* TRANSLATORS: has something inhibited the session */
-				   is_inhibited ? _("(Inhibited)") : "",
+				   is_inhibited ? _("inhibited") : _("not inhibited"),
 				   /* TRANSLATORS: is the screen idle or awake */
-				   idle->priv->x_idle ? _("Screen idle") : _("Screen awake"));
+				   idle->priv->x_idle ? _("screen idle") : _("screen awake"),
+				   nag_message);
 	gtk_status_icon_set_tooltip_text (idle->priv->status_icon, tooltip);
 	g_free (tooltip);
 
@@ -286,6 +297,8 @@ gpm_idle_evaluate (GpmIdle *idle)
 		}
 	}
 out:
+	g_free (nag_message);
+	g_free (what_to_do);
 	return;
 }
 



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