summaryrefslogtreecommitdiff
path: root/src/gpm-upower.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-upower.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-upower.c')
-rw-r--r--src/gpm-upower.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index f659c51..744eae4 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -505,7 +505,6 @@ gpm_device_kind_to_localised_text (UpDeviceKind kind, guint number)
/* TRANSLATORS: cell phone (mobile...) */
text = ngettext ("Cell phone", "Cell phones", number);
break;
-#if UP_CHECK_VERSION(0,9,5)
case UP_DEVICE_KIND_MEDIA_PLAYER:
/* TRANSLATORS: media player, mp3 etc */
text = ngettext ("Media player", "Media players", number);
@@ -518,7 +517,6 @@ gpm_device_kind_to_localised_text (UpDeviceKind kind, guint number)
/* TRANSLATORS: tablet device */
text = ngettext ("Computer", "Computers", number);
break;
-#endif
default:
egg_warning ("enum unrecognised: %i", kind);
text = up_device_kind_to_string (kind);
@@ -558,7 +556,6 @@ gpm_device_kind_to_icon (UpDeviceKind kind)
case UP_DEVICE_KIND_PHONE:
icon = "phone";
break;
-#if UP_CHECK_VERSION(0,9,5)
case UP_DEVICE_KIND_MEDIA_PLAYER:
icon = "multimedia-player";
break;
@@ -568,7 +565,6 @@ gpm_device_kind_to_icon (UpDeviceKind kind)
case UP_DEVICE_KIND_COMPUTER:
icon = "computer-apple-ipad";
break;
-#endif
default:
egg_warning ("enum unrecognised: %i", kind);
icon = "gtk-help";