aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-07-01 15:03:41 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-07-01 15:03:41 +0100
commit95eb2b521413875911b1b747878a504f6f4e6c5d (patch)
tree4aa12c8f6a911d1a4cb720c132fecb94bac065f8
parent942311b1c75f2f7ff8f90b1727ff190083f58162 (diff)
downloadayatana-indicator-power-95eb2b521413875911b1b747878a504f6f4e6c5d.tar.gz
ayatana-indicator-power-95eb2b521413875911b1b747878a504f6f4e6c5d.tar.bz2
ayatana-indicator-power-95eb2b521413875911b1b747878a504f6f4e6c5d.zip
Add some more kind of devices
Bump upower required version to 0.9.5 because this
-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);