[totem] pythonconsole: Fix calls to Gtk.Action()



commit edebbb33433e8e30b7c5b401a89b3367f274330a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Mar 26 17:36:08 2011 +0000

    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

 src/plugins/pythonconsole/pythonconsole.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/pythonconsole/pythonconsole.py b/src/plugins/pythonconsole/pythonconsole.py
index ec18756..6e6b286 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:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]