From 07ca9fbe8d963d0bc612534ca0a94d4da754d4c7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 11 Feb 2014 18:02:37 +0100 Subject: fix menu accelerators after conversion to gtk3 regression introduced in commit 0949ade542bde947eb6091130f1a752e1d55152d by pygi-convert.sh --- NEWS | 2 ++ src/msec/msecgui.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index da9e599..7b9e92a 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix menu accelerators after conversion to gtk3 + Version 1.2 - February 11 2014, Thierry Vignaud - revert "don't pass '--noscripts' to 'rpm -Va' (#62644)" 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: -- cgit v1.2.1