[gnome-power-manager] trivial: fix compile with older versions of upower



commit 88a7c7a2b0beca9b8e7021527812187b1b14e72d
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 28 13:02:38 2010 +0100

    trivial: fix compile with older versions of upower

 src/gpm-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index bfa0bf0..dc6d4cc 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1549,8 +1549,8 @@ gpm_manager_engine_charge_low_cb (GpmEngine *engine, UpDevice *device, GpmManage
 
 		/* TRANSLATORS: tell user more details */
 		message = g_strdup_printf (_("Tablet is low in power (%.0f%%)"), percentage);
-	}
 #endif
+	}
 
 	/* get correct icon */
 	icon = gpm_upower_get_device_icon (device, TRUE);
@@ -1696,8 +1696,8 @@ gpm_manager_engine_charge_critical_cb (GpmEngine *engine, UpDevice *device, GpmM
 		message = g_strdup_printf (_("Tablet is very low in power (%.0f%%). "
 					     "This device will soon shutdown if not charged."),
 					   percentage);
-	}
 #endif
+	}
 
 	/* get correct icon */
 	icon = gpm_upower_get_device_icon (device, TRUE);



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