From 8b8b387f2a28abb2003faa767505d686f5e9a0ec Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Wed, 22 May 2013 20:50:49 +0300 Subject: [PATCH] minor tweak to guessing device icon --- lib/solaar/ui/icons.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/solaar/ui/icons.py b/lib/solaar/ui/icons.py index bfd94b5b..5e362057 100644 --- a/lib/solaar/ui/icons.py +++ b/lib/solaar/ui/icons.py @@ -47,12 +47,14 @@ def device_icon_set(name='_', kind=None): icon_set = Gtk.IconSet.new() _ICON_SETS[name] = icon_set + # names of possible icons, in reverse order of likelihood + # the theme will hopefully pick up the most appropiate names = ['preferences-desktop-peripherals'] if kind: if str(kind) == 'numpad': - names += ('input-dialpad',) + names += ('input-keyboard', 'input-dialpad') elif str(kind) == 'touchpad': - names += ('input-tablet',) + names += ('input-mouse', 'input-tablet') elif str(kind) == 'trackball': names += ('input-mouse',) names += ('input-' + str(kind),)