[gedit] snippets, tools: data=None just in case.



commit 28f5cf87a47491a7b3c6c3b8ecc1a9c3d8489b0d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Sep 2 13:43:53 2011 +0200

    snippets, tools: data=None just in case.

 plugins/externaltools/tools/windowactivatable.py |    2 +-
 plugins/snippets/snippets/windowactivatable.py   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/tools/windowactivatable.py b/plugins/externaltools/tools/windowactivatable.py
index 42773b3..3002c13 100644
--- a/plugins/externaltools/tools/windowactivatable.py
+++ b/plugins/externaltools/tools/windowactivatable.py
@@ -175,7 +175,7 @@ class WindowActivatable(GObject.Object, Gedit.WindowActivatable):
         self._action_group.add_actions([('ExternalToolManager', None,
                                          _('Manage _External Tools...'), None,
                                          _("Opens the External Tools Manager"),
-                                         lambda action, data: self.open_dialog()),
+                                         lambda action, data=None: self.open_dialog()),
                                         ('ExternalTools', None,
                                          _('External _Tools'), None,
                                          _("External tools"), None)])
diff --git a/plugins/snippets/snippets/windowactivatable.py b/plugins/snippets/snippets/windowactivatable.py
index 02f9da3..6c368a7 100644
--- a/plugins/snippets/snippets/windowactivatable.py
+++ b/plugins/snippets/snippets/windowactivatable.py
@@ -199,7 +199,7 @@ class WindowActivatable(GObject.Object, Gedit.WindowActivatable, Signals):
         def create_configure_dialog(self):
                 SharedData().show_manager(self.window, self.plugin_info.get_data_dir())
 
-        def on_action_snippets_activate(self, action, data):
+        def on_action_snippets_activate(self, action, data=None):
                 self.create_configure_dialog()
 
         def accelerator_activated(self, group, obj, keyval, mod):



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