[gedit-latex] Put list actions in toolbar menu on combined toolbar
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Put list actions in toolbar menu on combined toolbar
- Date: Thu, 18 Aug 2011 01:41:54 +0000 (UTC)
commit 4d8a1bc4d8afaf429f2ec126052b61aef8b4e72b
Author: John Stowers <john stowers gmail com>
Date: Thu Aug 18 13:39:17 2011 +1200
Put list actions in toolbar menu on combined toolbar
data/ui/ui-toolbar-combined.builder | 11 +++++++----
latex/base/config.py | 2 ++
latex/latex/actions.py | 11 +++++++++++
3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/ui-toolbar-combined.builder b/data/ui/ui-toolbar-combined.builder
index 0c2ca94..405d509 100644
--- a/data/ui/ui-toolbar-combined.builder
+++ b/data/ui/ui-toolbar-combined.builder
@@ -51,10 +51,13 @@
<menuitem action="LaTeXJustifyRightAction" />
</menu>
</toolitem>
- <separator />
- <toolitem action="LaTeXItemizeAction" />
- <toolitem action="LaTeXEnumerateAction" />
- <toolitem action="LaTeXDescriptionAction" />
+ <toolitem action="LaTeXListActionDefault">
+ <menu action="LaTeXListMenuAction">
+ <menuitem action="LaTeXItemizeAction" />
+ <menuitem action="LaTeXEnumerateAction" />
+ <menuitem action="LaTeXDescriptionAction" />
+ </menu>
+ </toolitem>
<separator />
<toolitem action="LaTeXStructureActionDefault">
<menu action="LaTeXStructureMenuAction">
diff --git a/latex/base/config.py b/latex/base/config.py
index 7072e15..bc688b7 100644
--- a/latex/base/config.py
+++ b/latex/base/config.py
@@ -25,6 +25,7 @@ base.config
# actions
from ..latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction, \
+ LaTeXListMenuAction, LaTeXListActionDefault, \
LaTeXItemizeAction, LaTeXEnumerateAction, LaTeXFontFamilyAction, LaTeXFontFamilyMenuAction, LaTeXBoldAction, \
LaTeXItalicAction, LaTeXEmphasizeAction, LaTeXDescriptionAction, LaTeXStructureMenuAction, LaTeXPartAction, LaTeXChapterAction, \
LaTeXSectionAction, LaTeXSubsectionAction, LaTeXParagraphAction, LaTeXSubparagraphAction, LaTeXStructureActionDefault, \
@@ -39,6 +40,7 @@ from ..latex.actions import LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAc
from ..bibtex.actions import BibTeXMenuAction, BibTeXNewEntryAction
ACTIONS = [LaTeXMenuAction, LaTeXNewAction, LaTeXChooseMasterAction,
+ LaTeXListMenuAction, LaTeXListActionDefault,
LaTeXItemizeAction, LaTeXEnumerateAction, LaTeXFontFamilyAction, LaTeXFontFamilyMenuAction, LaTeXBoldAction,
LaTeXItalicAction, LaTeXEmphasizeAction, LaTeXDescriptionAction, LaTeXStructureMenuAction, LaTeXPartAction, LaTeXChapterAction,
LaTeXSectionAction, LaTeXSubsectionAction, LaTeXParagraphAction, LaTeXSubparagraphAction, LaTeXStructureActionDefault,
diff --git a/latex/latex/actions.py b/latex/latex/actions.py
index 5d78a69..eaf9cd4 100644
--- a/latex/latex/actions.py
+++ b/latex/latex/actions.py
@@ -269,6 +269,11 @@ class LaTeXFrakturAction(LaTeXTemplateAction):
template_source = "\ensuremath{\mathfrak{$_}}"
+class LaTeXListMenuAction(LaTeXMenuAction):
+ label = "List"
+ tooltip = "List"
+
+
class LaTeXItemizeAction(LaTeXTemplateAction):
label = "Itemize"
tooltip = "Itemize"
@@ -276,6 +281,12 @@ class LaTeXItemizeAction(LaTeXTemplateAction):
template_source = "\\begin{itemize}\n\t\\item $_\n\\end{itemize}"
+class LaTeXListActionDefault(LaTeXItemizeAction):
+ menu_tool_action = True
+ label = "List"
+ tooltip = "List"
+
+
class LaTeXEnumerateAction(LaTeXTemplateAction):
label = "Enumerate"
tooltip = "Enumerate"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]