summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-01-13 15:36:27 +0300
committerStefano Karapetsas <[email protected]>2015-01-15 11:24:23 +0100
commit68101dd55a11eea9b02d49f34744e987c13255d1 (patch)
tree3a16f5ee4ebd4ba9b7e7ee16b5b0a302bbed0105 /src/gpm-manager.c
parent05bacd93fb9b58082f2d66b5e08d4a4057dcffb2 (diff)
downloadmate-power-manager-68101dd55a11eea9b02d49f34744e987c13255d1.tar.bz2
mate-power-manager-68101dd55a11eea9b02d49f34744e987c13255d1.tar.xz
remove ifdefs, bump upower version requirement
Closes https://github.com/mate-desktop/mate-power-manager/pull/126
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 9024d37..b63ccb7 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1383,7 +1383,6 @@ gpm_manager_engine_charge_low_cb (GpmEngine *engine, UpDevice *device, GpmManage
/* TRANSLATORS: tell user more details */
message = g_strdup_printf (_("Cell phone is low in power (%.0f%%)"), percentage);
-#if UP_CHECK_VERSION(0,9,5)
} else if (kind == UP_DEVICE_KIND_MEDIA_PLAYER) {
/* TRANSLATORS: media player, e.g. mp3 is getting a little low */
title = _("Media player battery low");
@@ -1404,7 +1403,6 @@ gpm_manager_engine_charge_low_cb (GpmEngine *engine, UpDevice *device, GpmManage
/* TRANSLATORS: tell user more details */
message = g_strdup_printf (_("Attached computer is low in power (%.0f%%)"), percentage);
-#endif
}
/* get correct icon */
@@ -1527,7 +1525,6 @@ gpm_manager_engine_charge_critical_cb (GpmEngine *engine, UpDevice *device, GpmM
"This device will soon stop functioning if not charged."),
percentage);
-#if UP_CHECK_VERSION(0,9,5)
} else if (kind == UP_DEVICE_KIND_MEDIA_PLAYER) {
/* TRANSLATORS: the cell battery is very low */
@@ -1555,7 +1552,6 @@ gpm_manager_engine_charge_critical_cb (GpmEngine *engine, UpDevice *device, GpmM
message = g_strdup_printf (_("Attached computer is very low in power (%.0f%%). "
"The device will soon shutdown if not charged."),
percentage);
-#endif
}
/* get correct icon */