Fix duplicated accelerators (#831)

Fixes #11186
This commit is contained in:
Paul Culley 2019-07-04 21:11:30 -05:00 committed by Sam Manzi
parent b039a199d7
commit a9b4e22fb0
12 changed files with 20 additions and 20 deletions

View File

@ -353,7 +353,7 @@ class ViewManager(CLIManager):
Initialize the actions lists for the UIManager
"""
self._app_actionlist = [
('quit', self.quit, "<PRIMARY>q"),
('quit', self.quit, None if is_quartz() else "<PRIMARY>q"),
('preferences', self.preferences_activate),
('about', self.display_about_box), ]

View File

@ -308,7 +308,7 @@ class GeoGraphyView(OsmGps, NavigationView):
another method.
"""
NavigationView.define_actions(self)
self._add_action('PrintView', self.printview, '<Primary>P')
self._add_action('PrintView', self.printview, '<PRIMARY><SHIFT>P')
def config_connect(self):
"""

View File

@ -157,7 +157,7 @@ class FanChart2WayView(fanchart2way.FanChart2WayGrampsGUI, NavigationView):
"""
NavigationView.define_actions(self)
self._add_action('PrintView', self.printview, "<PRIMARY>P")
self._add_action('PrintView', self.printview, "<PRIMARY><SHIFT>P")
self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
def build_tree(self):

View File

@ -152,7 +152,7 @@ class FanChartDescView(fanchartdesc.FanChartDescGrampsGUI, NavigationView):
"""
NavigationView.define_actions(self)
self._add_action('PrintView', self.printview, "<PRIMARY>P")
self._add_action('PrintView', self.printview, "<PRIMARY><SHIFT>P")
self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
def build_tree(self):

View File

@ -165,7 +165,7 @@ class FanChartView(fanchart.FanChartGrampsGUI, NavigationView):
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -232,7 +232,7 @@ class FanChartView(fanchart.FanChartGrampsGUI, NavigationView):
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Fan Chart View</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>
@ -249,7 +249,7 @@ class FanChartView(fanchart.FanChartGrampsGUI, NavigationView):
"""
NavigationView.define_actions(self)
self._add_action('PrintView', self.printview, "<PRIMARY>P")
self._add_action('PrintView', self.printview, "<PRIMARY><SHIFT>P")
self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
def build_tree(self):

View File

@ -92,7 +92,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -172,7 +172,7 @@ _UI_DEF = [
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>

View File

@ -82,7 +82,7 @@ _UI_DEF = ['''
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -133,7 +133,7 @@ _UI_DEF = ['''
<property name="icon-name">document-print</property>
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>

View File

@ -90,7 +90,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -170,7 +170,7 @@ _UI_DEF = [
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>

View File

@ -82,7 +82,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -136,7 +136,7 @@ _UI_DEF = [
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>

View File

@ -89,7 +89,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -156,7 +156,7 @@ _UI_DEF = [
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>

View File

@ -90,7 +90,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',

View File

@ -85,7 +85,7 @@ _UI_DEF = [
<section id='CommonEdit' groups='RW'>
<item>
<attribute name="action">win.PrintView</attribute>
<attribute name="label" translatable="yes">_Print...</attribute>
<attribute name="label" translatable="yes">Print...</attribute>
</item>
</section>
''',
@ -139,7 +139,7 @@ _UI_DEF = [
<property name="action-name">win.PrintView</property>
<property name="tooltip_text" translatable="yes">'''
'''Print or save the Map</property>
<property name="label" translatable="yes">_Print...</property>
<property name="label" translatable="yes">Print...</property>
<property name="use-underline">True</property>
</object>
<packing>