[gedit-latex/pietro-on-jimmy-3-14] Removed useless action creation



commit 7d4a482091db72bdda9e70e70d6802f8e3dda6f8
Author: Pietro Battiston <pbattiston src gnome org>
Date:   Fri Oct 3 00:01:52 2014 +0200

    Removed useless action creation

 latex/appactivatable.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/latex/appactivatable.py b/latex/appactivatable.py
index 9134bf3..a5059a2 100644
--- a/latex/appactivatable.py
+++ b/latex/appactivatable.py
@@ -24,7 +24,6 @@ from .resources import Resources
 from .config import MENUACTIONS
 
 from .preferences.tools import ToolPreferences
-from .tools import ToolAction
 
 class LaTeXAppActivatable(GObject.Object, Gedit.AppActivatable):
     __gtype_name__ = "GeditLaTeXAppActivatable"
@@ -94,10 +93,8 @@ class LaTeXAppActivatable(GObject.Object, Gedit.AppActivatable):
             # hopefully unique action name
             name = "Tool%sAction" % i
 
-            # create action
-            action = ToolAction(tool)
             actionlink = "win." + name
-            self.latex_tools_menu.append_item(Gio.MenuItem.new(_(action.label), actionlink))
+            self.latex_tools_menu.append_item(Gio.MenuItem.new(_(tool.label), actionlink))
 
             accelerator = None
             if tool.accelerator and len(tool.accelerator) > 0:


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