diff options
Diffstat (limited to 'src/gpm-upower.c')
-rw-r--r-- | src/gpm-upower.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c index 6cf24c6..7311936 100644 --- a/src/gpm-upower.c +++ b/src/gpm-upower.c @@ -162,6 +162,9 @@ gpm_upower_get_device_icon (UpDevice *device) index_str = gpm_upower_get_device_icon_index (device); filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str); } + } else if (kind == UP_DEVICE_KIND_GAMING_INPUT) { + index_str = gpm_upower_get_device_icon_index (device); + filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str); } /* nothing matched */ @@ -526,6 +529,10 @@ gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number) /* TRANSLATORS: tablet device */ text = ngettext ("Computer", "Computers", number); break; + case UP_DEVICE_KIND_GAMING_INPUT: + /* TRANSLATORS: wireless gamepad, joystick etc */ + text = ngettext ("Gaming input", "Gaming inputs", number); + break; default: g_warning ("enum unrecognised: %i", kind); text = up_device_kind_to_string (kind); |