aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-02-11 18:02:37 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-02-11 18:03:02 +0100
commit07ca9fbe8d963d0bc612534ca0a94d4da754d4c7 (patch)
tree91de2f3092216696d0dc156bc52803258946c3f3 /src
parent83cfb3c850e785cd980b12a1d085c6d39ac33756 (diff)
downloadmsec-07ca9fbe8d963d0bc612534ca0a94d4da754d4c7.tar
msec-07ca9fbe8d963d0bc612534ca0a94d4da754d4c7.tar.gz
msec-07ca9fbe8d963d0bc612534ca0a94d4da754d4c7.tar.bz2
msec-07ca9fbe8d963d0bc612534ca0a94d4da754d4c7.tar.xz
msec-07ca9fbe8d963d0bc612534ca0a94d4da754d4c7.zip
fix menu accelerators after conversion to gtk3
regression introduced in commit 0949ade542bde947eb6091130f1a752e1d55152d by pygi-convert.sh
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 78b5907..9fc0739 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -210,13 +210,14 @@ class MsecGui:
# building menus
for topmenu, items in menus:
# file menu
- filemenu = Gtk.MenuItem(topmenu)
+ filemenu = Gtk.MenuItem(topmenu, use_underline=True)
menubar.add(filemenu)
menu = Gtk.Menu()
filemenu.set_submenu(menu)
group = None
for submenu, callback in items:
- menuitem = Gtk.MenuItem(submenu)
+ menuitem = Gtk.MenuItem(submenu, use_underline=True)
+ #menuitem = Gtk.MenuItem(submenu)
if callback:
menuitem.connect('activate', callback)
else: