From df068471bbac5533cec4e1407a4afcdd41210b5b Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 13 Apr 2012 19:55:56 +0000 Subject: [PATCH] Load a menu accelerator map named gramps.accel if such a file exists in const.DATA_DIR svn: r19319 --- src/gui/grampsgui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/grampsgui.py b/src/gui/grampsgui.py index 93214157a..470a21876 100644 --- a/src/gui/grampsgui.py +++ b/src/gui/grampsgui.py @@ -329,4 +329,6 @@ def startgtkloop(errors, argparser): gobject.threads_init() gobject.timeout_add(100, __startgramps, errors, argparser, priority=100) + if os.path.exists(os.path.join(const.DATA_DIR, "gramps.accel")): + gtk.accel_map_load(os.path.join(const.DATA_DIR, "gramps.accel")) gtk.main()