summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-20 11:14:58 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-20 11:14:58 +0800
commitf72d9cbdc9a3a73ca39858503fcb862fdaf01661 (patch)
tree82216c2f25757f44f0daedd12acbf4ce0f42ee2a
parent3a6a1951171016cb888817d2c8c03d6e2347a694 (diff)
downloadibus-f72d9cbdc9a3a73ca39858503fcb862fdaf01661.tar.gz
ibus-f72d9cbdc9a3a73ca39858503fcb862fdaf01661.tar.xz
ibus-f72d9cbdc9a3a73ca39858503fcb862fdaf01661.zip
Add border for the shortcut view.
-rw-r--r--setup/keyboardshortcut.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup/keyboardshortcut.py b/setup/keyboardshortcut.py
index d85165f..9503939 100644
--- a/setup/keyboardshortcut.py
+++ b/setup/keyboardshortcut.py
@@ -39,9 +39,12 @@ class KeyboardShortcutSelection(gtk.VBox):
self.pack_start(label, False, True, 4)
# shortcuts view
+ viewport = gtk.Viewport()
+ viewport.set_shadow_type(gtk.SHADOW_IN)
self.__shortcut_view = gtk.TreeView()
self.__shortcut_view.set_size_request(-1, 100)
- self.pack_start(self.__shortcut_view, True, True, 4)
+ viewport.add(self.__shortcut_view)
+ self.pack_start(viewport, True, True, 4)
# key code
hbox = gtk.HBox()