1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
Index: gazpacho/widgets/base/menueditor/widgets.py
===================================================================
--- gazpacho/widgets/base/menueditor/widgets.py (revisión: 2563)
+++ gazpacho/widgets/base/menueditor/widgets.py (copia de trabajo)
@@ -114,7 +114,7 @@
def load(self, xml_node):
"""Inverse to_xml method: creates a menushell from a xml node"""
uim = self.gadget.project.uim
- default_action_group = uim.get_action_group('default')
+ default_action_group = uim.get_action_group('DefaultActions')
for node in xml_node.childNodes:
if node.nodeType != node.ELEMENT_NODE:
continue
@@ -2407,7 +2407,7 @@
"""Creates a menuitem and a submenu for it"""
project = self.gadget.project
uim = project.uim
- default_action_group = uim.get_action_group('default')
+ default_action_group = uim.get_action_group('DefaultActions')
if default_action_group:
item = MenuItem(_('New Menu'), self.gadget, default_action_group)
submenu = Menu(self.gadget)
@@ -2442,7 +2442,7 @@
"""Creates a menuitem"""
project = self.gadget.project
uim = project.uim
- default_action_group = uim.get_action_group('default')
+ default_action_group = uim.get_action_group('DefaultActions')
if default_action_group:
item = MenuItem(_('New Action'), self.gadget, default_action_group)
item.show_all()
Index: gazpacho/widgets/base/bars.py
===================================================================
--- gazpacho/widgets/base/bars.py (revisión: 2563)
+++ gazpacho/widgets/base/bars.py (copia de trabajo)
@@ -58,8 +58,8 @@
# create default action group if it doesn't exist
project = context.get_project()
- if project.uim.get_action_group('default') is None:
- project.add_action_group(GActionGroup('default'))
+ if project.uim.get_action_group('DefaultActions') is None:
+ project.add_action_group(GActionGroup('DefaultActions'))
project.uim.add_ui(gadget, ui_string)
new_widget = project.uim.get_widget(gadget)
@@ -145,8 +145,8 @@
def post_create(self, context, menuBar, interactive):
# create default action group if it doesn't exist
project = context.get_project()
- if project.uim.get_action_group('default') is None:
- project.add_action_group(GActionGroup('default'))
+ if project.uim.get_action_group('DefaultActions') is None:
+ project.add_action_group(GActionGroup('DefaultActions'))
# Add the basic UI definition
gadget = Gadget.from_widget(menuBar)
Index: examples/uimanager.glade
===================================================================
--- examples/uimanager.glade (revisión: 2563)
+++ examples/uimanager.glade (copia de trabajo)
@@ -2,7 +2,7 @@
<glade-interface>
<widget class="GtkUIManager" id="uimanager">
<child>
- <widget class="GtkActionGroup" id="default">
+ <widget class="GtkActionGroup" id="DefaultActions">
<child>
<widget class="GtkAction" id="Quit">
<property name="name">Quit</property>
|