[dots] Add missing accelerators for new menu entries
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] Add missing accelerators for new menu entries
- Date: Thu, 2 Dec 2010 00:04:36 +0000 (UTC)
commit 0d7be93f3d53ce1fb380437389d18dbdeb726b41
Author: Fernando Herrera <fherrera onirica com>
Date: Thu Dec 2 00:58:39 2010 +0100
Add missing accelerators for new menu entries
data/app_window.xml | 2 +-
dots/app_window.py | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/app_window.xml b/data/app_window.xml
index 74cae9f..473c940 100644
--- a/data/app_window.xml
+++ b/data/app_window.xml
@@ -202,7 +202,7 @@
<object class="GtkMenu" id="menu5">
<property name="visible">True</property>
<child>
- <object class="GtkMenuItem" id="translate">
+ <object class="GtkMenuItem" id="menu_translate">
<property name="visible">True</property>
<property name="label" translatable="yes">_Translate</property>
<property name="related_action">action_translate</property>
diff --git a/dots/app_window.py b/dots/app_window.py
index ef57993..a11d127 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -428,11 +428,13 @@ class AppWindow(object):
def _menu_add_accels(self):
accel_group = gtk.AccelGroup()
self.window.add_accel_group(accel_group)
+ self._add_control_key(self.main_xml.get_object('menu_new'), accel_group, 'n')
self._add_control_key(self.main_xml.get_object('menu_open'), accel_group, 'o')
self._add_control_key(self.main_xml.get_object('menu_save'), accel_group, 's')
self._add_shift_control_key(self.main_xml.get_object('menu_save_as'), accel_group, 's')
self._add_control_key(self.main_xml.get_object('menu_print'), accel_group, 'p')
self._add_control_key(self.main_xml.get_object('menu_quit'), accel_group, 'q')
+ self._add_control_key(self.main_xml.get_object('menu_translate'), accel_group, 't')
self._add_control_key(self.main_xml.get_object('ascii_radio'), accel_group, 'a')
self._add_control_key(self.main_xml.get_object('braille_radio'), accel_group, 'b')
self._add_control_key(self.main_xml.get_object('line_check'), accel_group, 'l')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]