projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c00f8f
)
Limit numeber of hotkey.
author
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 2 Mar 2009 05:29:32 +0000
(13:29 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 2 Mar 2009 05:29:32 +0000
(13:29 +0800)
setup/keyboardshortcut.py
patch
|
blob
|
history
diff --git
a/setup/keyboardshortcut.py
b/setup/keyboardshortcut.py
index
c30dbcc
..
a9e2233
100644
(file)
--- a/
setup/keyboardshortcut.py
+++ b/
setup/keyboardshortcut.py
@@
-125,7
+125,6
@@
class KeyboardShortcutSelection(gtk.VBox):
model.clear()
for shortcut in shortcuts:
model.insert(0, (shortcut,))
- # self.__shortcut_view.set_model(model)
def get_shortcuts(self):
model = self.__shortcut_view.get_model()
@@
-133,6
+132,8
@@
class KeyboardShortcutSelection(gtk.VBox):
def add_shortcut(self, shortcut):
model = self.__shortcut_view.get_model()
+ if len(model) >= 6:
+ return
model.insert(-1, (shortcut,))
def __get_shortcut_from_buttons(self):