[latexila] LaTeX menu: add skeleton to implement LaTeX menu in liblatexila



commit 58b362db63ee7d08671736f2a6a660f39b34551e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Oct 24 20:16:33 2017 +0200

    LaTeX menu: add skeleton to implement LaTeX menu in liblatexila

 docs/reference/latexila-docs.xml      |    1 +
 docs/reference/latexila-sections.txt  |    5 +++++
 po/POTFILES.in                        |    1 +
 src/liblatexila/Makefile.am           |    6 ++++--
 src/liblatexila/latexila-latex-menu.c |   31 +++++++++++++++++++++++++++++++
 src/liblatexila/latexila-latex-menu.h |   31 +++++++++++++++++++++++++++++++
 src/liblatexila/latexila.h            |    1 +
 7 files changed, 74 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/latexila-docs.xml b/docs/reference/latexila-docs.xml
index 26b23cd..fd110bb 100644
--- a/docs/reference/latexila-docs.xml
+++ b/docs/reference/latexila-docs.xml
@@ -36,6 +36,7 @@
 
     <chapter>
       <title>Misc</title>
+      <xi:include href="xml/latex-menu.xml"/>
       <xi:include href="xml/synctex.xml"/>
       <xi:include href="xml/utils.xml"/>
     </chapter>
diff --git a/docs/reference/latexila-sections.txt b/docs/reference/latexila-sections.txt
index a2ddeb9..114cbe2 100644
--- a/docs/reference/latexila-sections.txt
+++ b/docs/reference/latexila-sections.txt
@@ -131,6 +131,11 @@ latexila_build_view_get_type
 </SECTION>
 
 <SECTION>
+<FILE>latex-menu</FILE>
+latexila_latex_menu_do_something
+</SECTION>
+
+<SECTION>
 <FILE>post-processor</FILE>
 LatexilaPostProcessor
 LatexilaPostProcessorType
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 51b6488..0964a41 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -31,6 +31,7 @@ src/liblatexila/latexila-build-tools.c
 src/liblatexila/latexila-build-tools-default.c
 src/liblatexila/latexila-build-tools-personal.c
 src/liblatexila/latexila-build-view.c
+src/liblatexila/latexila-latex-menu.c
 src/liblatexila/latexila-post-processor-all-output.c
 src/liblatexila/latexila-post-processor.c
 src/liblatexila/latexila-post-processor-latex.c
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index 81b9d51..e19facb 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -27,6 +27,7 @@ liblatexila_headers =                         \
        latexila-build-tools-default.h          \
        latexila-build-tools-personal.h         \
        latexila-build-view.h                   \
+       latexila-latex-menu.h                   \
        latexila-post-processor.h               \
        latexila-post-processor-all-output.h    \
        latexila-post-processor-latex.h         \
@@ -47,6 +48,7 @@ liblatexila_sources =                         \
        latexila-build-tools-default.c          \
        latexila-build-tools-personal.c         \
        latexila-build-view.c                   \
+       latexila-latex-menu.c                   \
        latexila-post-processor.c               \
        latexila-post-processor-all-output.c    \
        latexila-post-processor-latex.c         \
@@ -100,7 +102,7 @@ INTROSPECTION_GIRS = Latexila.gir
 
 Latexila.gir: liblatexila.la
 Latexila_gir_NAMESPACE = Latexila
-Latexila_gir_INCLUDES = Gtk-3.0
+Latexila_gir_INCLUDES = Gtk-3.0 Tepl-3
 Latexila_gir_LIBS = liblatexila.la
 Latexila_gir_FILES = $(liblatexila_la_SOURCES) $(nodist_liblatexila_la_SOURCES)
 Latexila_gir_SCANNERFLAGS = $(WARN_SCANNERFLAGS)
@@ -117,7 +119,7 @@ latexila.vapi: Latexila.gir
 
 VAPIGEN_VAPIS = latexila.vapi
 
-latexila_vapi_DEPS = gio-2.0 gtk+-3.0
+latexila_vapi_DEPS = gio-2.0 gtk+-3.0 Tepl-3
 latexila_vapi_FILES = Latexila.gir
 
 noinst_DATA += latexila.vapi
diff --git a/src/liblatexila/latexila-latex-menu.c b/src/liblatexila/latexila-latex-menu.c
new file mode 100644
index 0000000..b0b853b
--- /dev/null
+++ b/src/liblatexila/latexila-latex-menu.c
@@ -0,0 +1,31 @@
+/*
+ * This file is part of LaTeXila.
+ *
+ * Copyright (C) 2017 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * LaTeXila is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * LaTeXila is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * SECTION:latex-menu
+ * @title: LatexilaLatexMenu
+ * @short_description: LaTeX and Math menus
+ */
+
+#include "latexila-latex-menu.h"
+
+void
+latexila_latex_menu_do_something (void)
+{
+}
diff --git a/src/liblatexila/latexila-latex-menu.h b/src/liblatexila/latexila-latex-menu.h
new file mode 100644
index 0000000..628d311
--- /dev/null
+++ b/src/liblatexila/latexila-latex-menu.h
@@ -0,0 +1,31 @@
+/*
+ * This file is part of LaTeXila.
+ *
+ * Copyright (C) 2017 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * LaTeXila is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * LaTeXila is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef LATEXILA_LATEX_MENU_H
+#define LATEXILA_LATEX_MENU_H
+
+#include <tepl/tepl.h>
+
+G_BEGIN_DECLS
+
+void latexila_latex_menu_do_something (void);
+
+G_END_DECLS
+
+#endif /* LATEXILA_LATEX_MENU_H */
diff --git a/src/liblatexila/latexila.h b/src/liblatexila/latexila.h
index 5be04c7..41a6f6f 100644
--- a/src/liblatexila/latexila.h
+++ b/src/liblatexila/latexila.h
@@ -33,6 +33,7 @@
 #include "latexila-build-tools-default.h"
 #include "latexila-build-tools-personal.h"
 #include "latexila-build-view.h"
+#include "latexila-latex-menu.h"
 #include "latexila-post-processor.h"
 #include "latexila-post-processor-all-output.h"
 #include "latexila-post-processor-latex.h"


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