summaryrefslogtreecommitdiff
path: root/src/plugins/pythonconsole
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-03-26 17:36:08 +0000
committerBastien Nocera <hadess@hadess.net>2011-03-27 05:15:02 +0100
commitedebbb33433e8e30b7c5b401a89b3367f274330a (patch)
treee9918bf818befb49d933e116ec49a0a3b3de7e1f /src/plugins/pythonconsole
parent5f7f6ca154d8828b579aa880f24c6190ff26eff8 (diff)
downloadtotem-edebbb33433e8e30b7c5b401a89b3367f274330a.tar.gz
pythonconsole: Fix calls to Gtk.Action()
stock_id isn't marked as allow-none, unfortunately. Fixing this allows the pythonconsole plugin to actually be activated successfully. Helps: bgo#645762
Diffstat (limited to 'src/plugins/pythonconsole')
-rw-r--r--src/plugins/pythonconsole/pythonconsole.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pythonconsole/pythonconsole.py b/src/plugins/pythonconsole/pythonconsole.py
index ec1875679..6e6b28636 100644
--- a/src/plugins/pythonconsole/pythonconsole.py
+++ b/src/plugins/pythonconsole/pythonconsole.py
@@ -83,7 +83,7 @@ class PythonConsolePlugin(gobject.GObject, Peas.Activatable):
data['action_group'] = Gtk.ActionGroup(name = 'Python')
- action = Gtk.Action(name = 'Python', label = 'Python', tooltip = _(u'Python Console Menu'))
+ action = Gtk.Action(name = 'Python', label = 'Python', tooltip = _(u'Python Console Menu'), stock_id = None)
data['action_group'].add_action(action)
action = Gtk.Action(name = 'PythonConsole', label = _(u'_Python Console'),
@@ -93,7 +93,7 @@ class PythonConsolePlugin(gobject.GObject, Peas.Activatable):
data['action_group'].add_action(action)
action = Gtk.Action(name = 'PythonDebugger', label = _(u'Python Debugger'),
- tooltip = _(u"Enable remote Python debugging with rpdb2"))
+ tooltip = _(u"Enable remote Python debugging with rpdb2"), stock_id = None)
if have_rpdb2:
action.connect('activate', self.enable_debugging)
else: