gnome-power-manager r2837 - in branches/gnome-2-22: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2837 - in branches/gnome-2-22: . src
- Date: Tue,  8 Jul 2008 14:52:28 +0000 (UTC)
Author: rhughes
Date: Tue Jul  8 14:52:28 2008
New Revision: 2837
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2837&view=rev
Log:
2008-07-08  Richard Hughes  <richard hughsie com>
* src/gpm-manager.c: (gpm_engine_charge_action_cb):
Don't crash when the UP gets low. Fixes #539843
Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/gpm-manager.c
Modified: branches/gnome-2-22/src/gpm-manager.c
==============================================================================
--- branches/gnome-2-22/src/gpm-manager.c	(original)
+++ branches/gnome-2-22/src/gpm-manager.c	Tue Jul  8 14:52:28 2008
@@ -1581,17 +1581,17 @@
 
 		/* use different text for different actions */
 		if (strcmp (action, ACTION_NOTHING) == 0) {
-			message = _("The UPS is below the critical level and "
-				    "this computer will <b>power-off</b> when the "
-				    "UPS becomes completely empty.");
+			message = g_strdup (_("The UPS is below the critical level and "
+				              "this computer will <b>power-off</b> when the "
+				              "UPS becomes completely empty."));
 
 		} else if (strcmp (action, ACTION_HIBERNATE) == 0) {
-			message = _("The UPS is below the critical level and "
-				    "this computer is about to hibernate.");
+			message = g_strdup (_("The UPS is below the critical level and "
+				              "this computer is about to hibernate."));
 
 		} else if (strcmp (action, ACTION_SHUTDOWN) == 0) {
-			message = _("The UPS is below the critical level and "
-				    "this computer is about to shutdown.");
+			message = g_strdup (_("The UPS is below the critical level and "
+				              "this computer is about to shutdown."));
 		}
 
 		g_free (action);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]