[gedit-latex] Tidy default Toolbar menu actions
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Tidy default Toolbar menu actions
- Date: Thu, 18 Aug 2011 01:41:39 +0000 (UTC)
commit d689cf17b7f202a34b28ddf7123d6de2cc1c6d55
Author: John Stowers <john stowers gmail com>
Date: Thu Aug 18 10:29:09 2011 +1200
Tidy default Toolbar menu actions
data/ui/ui-toolbar-combined.builder | 2 +-
data/ui/ui-toolbar-normal.builder | 2 +-
latex/base/config.py | 4 ++--
latex/latex/actions.py | 8 ++++++--
4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/ui-toolbar-combined.builder b/data/ui/ui-toolbar-combined.builder
index 8571a05..224f120 100644
--- a/data/ui/ui-toolbar-combined.builder
+++ b/data/ui/ui-toolbar-combined.builder
@@ -64,7 +64,7 @@
</menu>
</toolitem>
<separator />
- <toolitem action="LaTeXMathAction">
+ <toolitem action="LaTeXMathActionDefault">
<menu action="LaTeXMathMenuAction">
<menuitem action="LaTeXMathAction" />
<menuitem action="LaTeXDisplayMathAction" />
diff --git a/data/ui/ui-toolbar-normal.builder b/data/ui/ui-toolbar-normal.builder
index 247a88f..c0c4bc9 100644
--- a/data/ui/ui-toolbar-normal.builder
+++ b/data/ui/ui-toolbar-normal.builder
@@ -63,7 +63,7 @@
</menu>
</toolitem>
<separator />
- <toolitem action="LaTeXMathAction">
+ <toolitem action="LaTeXMathActionDefault">
<menu action="LaTeXMathMenuAction">
<menuitem action="LaTeXMathAction" />
<menuitem action="LaTeXDisplayMathAction" />
diff --git a/latex/base/config.py b/latex/base/config.py
index 78b01f0..9563a2d 100644
--- a/latex/base/config.py
+++ b/latex/base/config.py
@@ -29,7 +29,7 @@ from ..latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAc
LaTeXItalicAction, LaTeXEmphasizeAction, LaTeXDescriptionAction, LaTeXStructureMenuAction, LaTeXPartAction, LaTeXChapterAction, \
LaTeXSectionAction, LaTeXSubsectionAction, LaTeXParagraphAction, LaTeXSubparagraphAction, LaTeXStructureAction, \
LaTeXGraphicsAction, LaTeXUseBibliographyAction, LaTeXTableAction, LaTeXListingAction, LaTeXJustifyLeftAction, \
- LaTeXJustifyCenterAction, LaTeXJustifyRightAction, LaTeXMathMenuAction, LaTeXMathAction, LaTeXDisplayMathAction, \
+ LaTeXJustifyCenterAction, LaTeXJustifyRightAction, LaTeXMathMenuAction, LaTeXMathActionDefault, LaTeXMathAction, LaTeXDisplayMathAction, \
LaTeXEquationAction, LaTeXUnEqnArrayAction, LaTeXEqnArrayAction, LaTeXUnderlineAction, LaTeXSmallCapitalsAction, \
LaTeXRomanAction, LaTeXSansSerifAction, LaTeXTypewriterAction, LaTeXCloseEnvironmentAction, LaTeXBlackboardBoldAction, \
LaTeXCaligraphyAction, LaTeXFrakturAction, LaTeXBuildImageAction, LaTeXSaveAsTemplateAction, \
@@ -42,7 +42,7 @@ ACTIONS = [LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction,
LaTeXItalicAction, LaTeXEmphasizeAction, LaTeXDescriptionAction, LaTeXStructureMenuAction, LaTeXPartAction, LaTeXChapterAction,
LaTeXSectionAction, LaTeXSubsectionAction, LaTeXParagraphAction, LaTeXSubparagraphAction, LaTeXStructureAction,
LaTeXGraphicsAction, LaTeXUseBibliographyAction, LaTeXTableAction, LaTeXListingAction, LaTeXJustifyLeftAction,
- LaTeXJustifyCenterAction, LaTeXJustifyRightAction, LaTeXMathMenuAction, LaTeXMathAction, LaTeXDisplayMathAction,
+ LaTeXJustifyCenterAction, LaTeXJustifyRightAction, LaTeXMathMenuAction, LaTeXMathActionDefault, LaTeXMathAction, LaTeXDisplayMathAction,
LaTeXEquationAction, LaTeXUnEqnArrayAction, LaTeXEqnArrayAction, LaTeXUnderlineAction, LaTeXSmallCapitalsAction,
LaTeXRomanAction, LaTeXSansSerifAction, LaTeXTypewriterAction, LaTeXCloseEnvironmentAction, LaTeXBlackboardBoldAction,
LaTeXCaligraphyAction, LaTeXFrakturAction, LaTeXBuildImageAction, LaTeXSaveAsTemplateAction,
diff --git a/latex/latex/actions.py b/latex/latex/actions.py
index e52e366..da944a3 100644
--- a/latex/latex/actions.py
+++ b/latex/latex/actions.py
@@ -460,14 +460,18 @@ class LaTeXMathMenuAction(LaTeXMenuAction):
class LaTeXMathAction(LaTeXTemplateAction):
- menu_tool_action = True
-
label = "Mathematical Environment"
tooltip = "Mathematical Environment"
icon_name = "math"
template_source = "$ $_ $"
+class LaTeXMathActionDefault(LaTeXMathAction):
+ menu_tool_action = True
+ label = "Math"
+ tooltip = "Math"
+
+
class LaTeXDisplayMathAction(LaTeXTemplateAction):
label = "Centered Formula"
tooltip = "Centered Formula"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]