aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/indicator-power.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 40e630b..3f9cc3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@ GTK_REQUIRED_VERSION=2.24
GTK3_REQUIRED_VERSION=3.0
INDICATOR_DISPLAY_OBJECTS=0.2
INDICATOR_REQUIRED_VERSION=0.3.0
-UPOWER_REQUIRED_VERSION=0.9.0
+UPOWER_REQUIRED_VERSION=0.9.5
PKG_CHECK_MODULES([UPOWER],[upower-glib >= UPOWER_REQUIRED_VERSION])
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 412243e..f411483 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -202,6 +202,18 @@ device_kind_to_localised_string (UpDeviceKind kind)
/* TRANSLATORS: cell phone (mobile...) */
text = gettext ("Cell phone");
break;
+ case UP_DEVICE_KIND_MEDIA_PLAYER:
+ /* TRANSLATORS: media player, mp3 etc */
+ text = gettext ("Media player");
+ break;
+ case UP_DEVICE_KIND_TABLET:
+ /* TRANSLATORS: tablet device */
+ text = gettext ("Tablet");
+ break;
+ case UP_DEVICE_KIND_COMPUTER:
+ /* TRANSLATORS: tablet device */
+ text = gettext ("Computer");
+ break;
default:
g_warning ("enum unrecognised: %i", kind);
text = up_device_kind_to_string (kind);