diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-10-26 09:00:50 +0200 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-10-26 09:00:50 +0200 |
commit | 90af0bf84104879548df739a20958d04e832c50a (patch) | |
tree | b7e1c6824be9d7a25ffa4b9d039e11d1ec5815b2 /src | |
parent | 46f92bac64882fdec51524252fb0e3afa5fff0ad (diff) | |
download | ayatana-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')
-rw-r--r-- | src/device.c | 4 |
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); |