[gedit-latex] Tidy LaTeXMenuAction



commit 32ad3519fd0f91a94f324034a98ba3f24264ead8
Author: John Stowers <john stowers gmail com>
Date:   Thu Aug 18 10:15:25 2011 +1200

    Tidy LaTeXMenuAction

 latex/latex/actions.py |   28 +++++-----------------------
 1 files changed, 5 insertions(+), 23 deletions(-)
---
diff --git a/latex/latex/actions.py b/latex/latex/actions.py
index 2e486e0..e52e366 100644
--- a/latex/latex/actions.py
+++ b/latex/latex/actions.py
@@ -184,14 +184,10 @@ class LaTeXFontFamilyAction(LaTeXIconAction):
     def activate(self, context):
         pass
 
-class LaTeXFontFamilyMenuAction(LaTeXAction):
+
+class LaTeXFontFamilyMenuAction(LaTeXMenuAction):
     label = "Font Family"
-    accelerator = None
     tooltip = "Font Family"
-    stock_id = None
-
-    def activate(self, context):
-        pass
 
 
 class LaTeXBoldAction(LaTeXTemplateAction):
@@ -306,14 +302,9 @@ class LaTeXStructureAction(LaTeXIconAction):
         pass
 
 
-class LaTeXStructureMenuAction(LaTeXAction):
+class LaTeXStructureMenuAction(LaTeXMenuAction):
     label = "Structure"
-    accelerator = None
     tooltip = "Structure"
-    stock_id = None
-
-    def activate(self, context):
-        pass
 
 
 class LaTeXPartAction(LaTeXTemplateAction):
@@ -417,14 +408,10 @@ class LaTeXBuildAction(LaTeXIconAction):
         pass
 
 
-class LaTeXBuildMenuAction(LaTeXAction):
+class LaTeXBuildMenuAction(LaTeXMenuAction):
     label = "Build"
-    accelerator = None
     tooltip = "Build"
-    stock_id = None
 
-    def activate(self, context):
-        pass
 
 class LaTeXBuildImageAction(LaTeXIconAction):
     label = "Build Image"
@@ -467,14 +454,9 @@ class LaTeXJustifyRightAction(LaTeXTemplateAction):
     template_source = "\\begin{flushright}$_\\end{flushright}"
 
 
-class LaTeXMathMenuAction(LaTeXAction):
+class LaTeXMathMenuAction(LaTeXMenuAction):
     label = "Math"
-    accelerator = None
     tooltip = "Math"
-    stock_id = None
-
-    def activate(self, context):
-        pass
 
 
 class LaTeXMathAction(LaTeXTemplateAction):



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