summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-20 20:23:15 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-20 20:23:15 +0800
commit61d73891928050c071966c896de2967d5d2341ef (patch)
tree332c0958def0813a843d50b80f87b3cd3e0bab07 /setup
parentff2602cfc356474d23e4aadde00ea71e482d4731 (diff)
downloadibus-61d73891928050c071966c896de2967d5d2341ef.tar.gz
ibus-61d73891928050c071966c896de2967d5d2341ef.tar.xz
ibus-61d73891928050c071966c896de2967d5d2341ef.zip
Fix problem when delete a keyboard shortcut.
Diffstat (limited to 'setup')
-rw-r--r--setup/keyboardshortcut.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/keyboardshortcut.py b/setup/keyboardshortcut.py
index d794324..621f17b 100644
--- a/setup/keyboardshortcut.py
+++ b/setup/keyboardshortcut.py
@@ -179,6 +179,10 @@ class KeyboardShortcutSelection(gtk.VBox):
def __shortcut_view_cursor_changed_cb(self, treeview):
shortcut = self.__get_selected_shortcut()
self.__set_shortcut_to_buttons(shortcut)
+ if shortcut != None:
+ self.__delete_button.set_sensitive(True)
+ else:
+ self.__delete_button.set_sensitive(False)
def __modifier_button_toggled_cb(self, button, name):
shortcut = self.__get_shortcut_from_buttons()