aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-10-26 09:00:50 +0200
committerCharles Kerr <charles.kerr@canonical.com>2012-10-26 09:00:50 +0200
commit90af0bf84104879548df739a20958d04e832c50a (patch)
treeb7e1c6824be9d7a25ffa4b9d039e11d1ec5815b2 /src/device.c
parent46f92bac64882fdec51524252fb0e3afa5fff0ad (diff)
downloadayatana-indicator-power-90af0bf84104879548df739a20958d04e832c50a.tar.gz
ayatana-indicator-power-90af0bf84104879548df739a20958d04e832c50a.tar.bz2
ayatana-indicator-power-90af0bf84104879548df739a20958d04e832c50a.zip
Fix unhandled enum 'unknown device' that was smoked out by the unit tests.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index c19b9fa..b15651c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -528,6 +528,10 @@ device_kind_to_localised_string (UpDeviceKind kind)
/* TRANSLATORS: tablet device */
text = _("Computer");
break;
+ case UP_DEVICE_KIND_UNKNOWN:
+ /* TRANSLATORS: tablet device */
+ text = _("Unknown");
+ break;
default:
g_warning ("enum unrecognised: %i", kind);
text = up_device_kind_to_string (kind);