Revision: 1595
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1595&view=rev
Author: frlan
Date: 2010-09-18 23:35:14 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Split declaration and definition of some variables
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-18 23:34:30 UTC (rev 1594)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-18 23:35:14 UTC (rev 1595)
@@ -458,9 +458,12 @@
/* Autocompletion for LaTeX specific stuff:
* Introducing \end{} or \endgroup{} after a \begin{}
- *
- * Function has been taken from Geany's core under terms of GPLv2+
- * where it was original developed. */
+
+ * Function is based on function which was inside
+ * Geany's core under terms of GPLv2+
+ * EXtended for GeanyLaTeX with some more autocompletion features
+ * for e.g. _{} and ^{}.*/
+
if (glatex_autocompletion_active == TRUE &&
!(glatex_autocompletion_only_for_latex == TRUE &&
editor->document->file_type->id != GEANY_FILETYPES_LATEX))
@@ -552,7 +555,6 @@
}
g_free(tmp);
g_free(end_construct);
-
}
/* After we have this, we need to ensure basic
@@ -569,7 +571,6 @@
indent);
g_free(construct);
}
-
g_free(buf);
}
@@ -577,13 +578,18 @@
* but no closing braces */
else if (glatex_autobraces_active == TRUE)
{
- gint line = sci_get_line_from_position(sci, pos -
- (editor_get_eol_char_len (editor) + 1));
- gint line_len = sci_get_line_length(sci, line) -
- editor_get_eol_char_len (editor);
+ gint line;
+
+ gint line_len;
gint i;
gchar *buf;
+ line = sci_get_line_from_position(sci, pos -
+ (editor_get_eol_char_len (editor) + 1));
+ line_len = sci_get_line_length(sci, line) -
+ editor_get_eol_char_len (editor);
+
+
/* Catching current line which has been 'finished'*/
buf = sci_get_line(sci, line);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1594
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1594&view=rev
Author: frlan
Date: 2010-09-18 23:34:30 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Turn autocompletion feature be turned on by default. Will be overwritten by configuration
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.tex
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2010-09-18 01:01:34 UTC (rev 1593)
+++ trunk/geanylatex/doc/geanylatex.tex 2010-09-18 23:34:30 UTC (rev 1594)
@@ -521,7 +521,7 @@
\pageref {sec:hidden_pref_autocompletion_context}.
This feature is by default file type depending, so it will only work
-on \TeX{}-like file types.
+on \TeX{}-like file types as well its turned on by default.
\subsection{Inserting \textbackslash{}usepackage\{\}-entry to header}
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-18 01:01:34 UTC (rev 1593)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-18 23:34:30 UTC (rev 1594)
@@ -1924,7 +1924,7 @@
glatex_set_toolbar_active = utils_get_setting_boolean(config, "general",
"glatex_set_toolbar_active", FALSE);
glatex_autocompletion_active = utils_get_setting_boolean(config, "general",
- "glatex_set_autocompletion", FALSE);
+ "glatex_set_autocompletion", TRUE);
glatex_autobraces_active = utils_get_setting_boolean(config, "autocompletion",
"glatex_set_autobraces", TRUE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1592
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1592&view=rev
Author: colombanw
Date: 2010-09-18 01:00:29 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
GeanyGenDoc: Add policy PASS to completely ignore a symbol
This is useful e.g. to fix some annoyances of some tag parser that
extracts for example all the variables even inside functions (such as
the PHP one), which clutters the symbol list and then makes many
documentation requests to fail simply because they matched a variable
and not the enclosing function.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/docs/manual.html
trunk/geany-plugins/geanygendoc/docs/manual.rst
trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.c
trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.h
trunk/geany-plugins/geanygendoc/src/ggd-doc-type.c
trunk/geany-plugins/geanygendoc/src/ggd.c
Modified: trunk/geany-plugins/geanygendoc/docs/manual.html
===================================================================
--- trunk/geany-plugins/geanygendoc/docs/manual.html 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/docs/manual.html 2010-09-18 01:00:29 UTC (rev 1592)
@@ -506,6 +506,11 @@
<dt><tt class="docutils literal">FORWARD</tt></dt>
<dd>Forward the documentation request to the parent. This is useful for symbols
that are documented by their parent, such as <a class="reference external" href="http://www.gtk.org/gtk-doc/">Gtk-Doc</a>'s enumerations.</dd>
+<dt><tt class="docutils literal">PASS</tt></dt>
+<dd>Completely ignore the symbol and handle the documentation request as if it
+hasn't existed at all. This can be useful to ignore e.g. variables if
+if they are extracted by the tag manager of the language, and you won't
+document them and don't want them to "eat" the documentation request.</dd>
</dl>
</dd>
<dt><tt class="docutils literal">children</tt> (enumeration)</dt>
@@ -554,7 +559,7 @@
<h2><a class="toc-backref" href="#id28">License</a></h2>
<div class="line-block">
<div class="line">GeanyGenDoc, a Geany plugin to ease generation of source code documentation</div>
-<div class="line">Copyright (C) 2010 Colomban Wendling <<a class="reference external" href="mailto:ban@herbesfolles.org">ban@herbesfolles.org</a>></div>
+<div class="line">Copyright (C) 2010 Colomban Wendling <ban(at)herbesfolles(dot)org></div>
</div>
<p>This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -622,7 +627,7 @@
</div>
<div class="footer">
<hr class="footer" />
-Generated on: 2010-08-16.
+Generated on: 2010-09-18.
</div>
</body>
Modified: trunk/geany-plugins/geanygendoc/docs/manual.rst
===================================================================
--- trunk/geany-plugins/geanygendoc/docs/manual.rst 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/docs/manual.rst 2010-09-18 01:00:29 UTC (rev 1592)
@@ -426,6 +426,12 @@
``FORWARD``
Forward the documentation request to the parent. This is useful for symbols
that are documented by their parent, such as `Gtk-Doc`_'s enumerations.
+
+ ``PASS``
+ Completely ignore the symbol and handle the documentation request as if it
+ hasn't existed at all. This can be useful to ignore e.g. variables if
+ if they are extracted by the tag manager of the language, and you won't
+ document them and don't want them to "eat" the documentation request.
``children`` (enumeration)
How the symbol's children can be used in the template. Possible values are:
Modified: trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.c 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.c 2010-09-18 01:00:29 UTC (rev 1592)
@@ -201,7 +201,8 @@
GgdPolicy policy;
} policies[] = {
{ "KEEP", GGD_POLICY_KEEP },
- { "FORWARD", GGD_POLICY_FORWARD }/*,
+ { "FORWARD", GGD_POLICY_FORWARD },
+ { "PASS", GGD_POLICY_PASS }/*,
{ "DUPLICATE", GGD_POLICY_DUPLICATE }*/
};
guint i;
Modified: trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.h
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.h 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/src/ggd-doc-setting.h 2010-09-18 01:00:29 UTC (rev 1592)
@@ -51,13 +51,15 @@
* _GgdPolicy:
* @GGD_POLICY_KEEP: Document the symbol
* @GGD_POLICY_FORWARD: Forward the documentation request to the parent symbol
+ * @GGD_POLICY_PASS: Ignore the symbol, do as if it didn't exist
*
* Possible policies for documenting symbols.
*/
typedef enum _GgdPolicy
{
GGD_POLICY_KEEP,
- GGD_POLICY_FORWARD/*,
+ GGD_POLICY_FORWARD,
+ GGD_POLICY_PASS/*,
GGD_POLICY_DUPLICATE*/
} GgdPolicy;
Modified: trunk/geany-plugins/geanygendoc/src/ggd-doc-type.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-doc-type.c 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/src/ggd-doc-type.c 2010-09-18 01:00:29 UTC (rev 1592)
@@ -157,13 +157,13 @@
* ggd_doc_type_resolve_setting:
* @doctype: A #GgdDocType
* @match: A match "pattern"
- * @nth_child: return location for the number of redirections to go to the final
+ * @nth_child: return location for the number of redirection to go to the final
* match
*
- * Resolve the setting that should be applied fo match @match. This is similar
- * to ggd_doc_type_get_setting() but applies the policy too (e.g. if @match
- * matches a setting of which the policy is FORWARD, this function will try to
- * resolve the parent and return it, and so on).
+ * Resolve the setting that should be applied of match @match. This is similar
+ * to ggd_doc_type_get_setting() but applies FORWARD policies too (e.g. if
+ * @match matches a setting of which the policy is FORWARD, this function will
+ * try to resolve the parent and return it, and so on).
*
* Returns: the matching #GgdDocSetting or %NULL if none matches.
*/
@@ -181,7 +181,7 @@
/*g_debug ("Resolving match \"%s\"...", child_match);*/
if (nth_child) (*nth_child) = 0;
setting = ggd_doc_type_get_setting (doctype, child_match);
- while (setting && setting->policy != GGD_POLICY_KEEP) {
+ while (setting && setting->policy == GGD_POLICY_FORWARD) {
gchar *parent_match = get_parent_match (child_match);
if (nth_child) (*nth_child)++;
Modified: trunk/geany-plugins/geanygendoc/src/ggd.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-17 20:05:28 UTC (rev 1591)
+++ trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-18 01:00:29 UTC (rev 1592)
@@ -519,6 +519,8 @@
g_return_val_if_fail (DOC_VALID (doc), FALSE);
+ again:
+
if (doc->tm_file) {
tag_array = doc->tm_file->tags_array;
tag = ggd_tag_find_from_line (tag_array, line + 1 /* it is a SCI line */);
@@ -531,6 +533,12 @@
GList *tag_list = NULL;
setting = get_setting_from_tag (doctype, doc, tag, &tag);
+ if (setting && setting->policy == GGD_POLICY_PASS) {
+ /* We want to completely skip this tag, so try previous line instead
+ * FIXME: this implementation is kinda ugly... */
+ line--;
+ goto again;
+ }
if (setting && setting->autodoc_children) {
tag_list = ggd_tag_find_children_filtered (tag_array, tag,
FILETYPE_ID (doc->file_type),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1591
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1591&view=rev
Author: colombanw
Date: 2010-09-17 20:05:28 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
GeanyGenDoc: Set default doctype to doxygen by default
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd-plugin.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd-plugin.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-09-17 20:01:27 UTC (rev 1590)
+++ trunk/geany-plugins/geanygendoc/src/ggd-plugin.c 2010-09-17 20:05:28 UTC (rev 1591)
@@ -81,7 +81,9 @@
NULL, 0, NULL, NULL, NULL, 0l
};
-/* global plugin options */
+/* global plugin options
+ * default values that needs to be set dynamically goes at the top of
+ * load_configuration() */
gchar *GGD_OPT_doctype[GEANY_MAX_BUILT_IN_FILETYPES] = { NULL };
gboolean GGD_OPT_save_to_refresh = FALSE;
gboolean GGD_OPT_indent = TRUE;
@@ -187,6 +189,9 @@
GError *err = NULL;
guint i;
+ /* default options that needs to be set dynamically */
+ GGD_OPT_doctype[0] = g_strdup ("doxygen");
+
plugin->config = ggd_opt_group_new ("General");
ggd_opt_group_add_string (plugin->config, &GGD_OPT_doctype[0], "doctype");
for (i = 1; i < GEANY_MAX_BUILT_IN_FILETYPES; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1590
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1590&view=rev
Author: frlan
Date: 2010-09-17 20:01:27 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Fix a memory leak on autoclosing of environments
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-17 20:00:24 UTC (rev 1589)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-17 20:01:27 UTC (rev 1590)
@@ -569,6 +569,8 @@
indent);
g_free(construct);
}
+
+ g_free(buf);
}
/* Now we are handling the case, a new line has been inserted
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1589
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1589&view=rev
Author: frlan
Date: 2010-09-17 20:00:24 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Update of documentation for moved LaTeX submenu
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.pdf
trunk/geanylatex/doc/geanylatex.tex
Modified: trunk/geanylatex/doc/geanylatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2010-09-17 17:50:45 UTC (rev 1588)
+++ trunk/geanylatex/doc/geanylatex.tex 2010-09-17 20:00:24 UTC (rev 1589)
@@ -93,9 +93,14 @@
\newpage
\section{News \& ChangeLog}
-\subsection*{Geany\LaTeX{} 0.5 -- 2010-06-13}
+\subsection{Upcoming Geany\LaTeX{} 0.6}
\begin{itemize}
+ \item Moved \LaTeX{} menu to a separate menu inside Geany main menu
+\end{itemize}
+\subsection{Geany\LaTeX{} 0.5 -- 2010-06-13}
+\begin{itemize}
+
\item Introduced custom templates for \LaTeX-Wizard
\item Added a \LaTeX-Wizard icon to the toolbar
\item Added shortcuts for inserting common list environments
@@ -117,9 +122,10 @@
\item Automatic adding of \{\} after typing of \_{} and \symbol{94}
\item Added automatic inserting of \{\} after typing a command and
hitting return in case of none pair is already present
+
\end{itemize}
-\subsection*{GeanyLaTeX{} 0.4 -- 2009-05-26}
+\subsection{Geany\LaTeX{} 0.4 -- 2009-05-26}
\begin{itemize}
\item Added a toolbar with frequently used format commands
\item Added a configuration dialog to configure basic options
@@ -215,11 +221,13 @@
\end{figure}
After Geany\LaTeX{} has been installed successful the plugin can be
-loaded through Geany's plugin manager and a new sub menu in the Tools
-menu will appear as well as new key bindings will be available inside
-Geany's key binding interface. Inside the sub menu you will find entries
-for functions supported by this version of the plugin. The main menu entry
-will be called something like \texttt{LaTeX}, depending on your locale.
+loaded through Geany's plugin manager. Depending on configuration a
+new menu inside Geany's main menu will appear, an menu entry for the
+\LaTeX{}-wizard will appear inside the Tools menu as well as new key
+bindings will be available inside Geany's key binding interface.
+Inside the new menu you will find entries for functions supported by
+this version of the plugin. The main menu entry will be called
+something like \texttt{LaTeX}, depending on your locale.
Also if the option for showing the toolbar is activated on configuration
dialog, the toolbar with common used format functions appears on at top
@@ -639,14 +647,14 @@
Please ensure, you reload the plugin once this option has been changed.
-\subsubsection{Remove \LaTeX{} menu if document is a non \TeX-type}
+\subsubsection{Remove \LaTeX{} menu if document is a non \TeX-type}
\label{deactivate_menubarentry_with_non_latex}
-Geany\LaTeX{} is enabling a separate menu inside Geany's main menu.
-On default, its getting activated and deactivated based on the file
-type of the current document. However, from time to time its annying
-to have the menu entry switched maybe each time on switching between
-two documents it can be set to keep even there is no LaTeX document
-activ.
+Geany\LaTeX{} is enabling a separate menu inside Geany's main menu.
+On default, its getting activated and deactivated based on the file
+type of the current document. However, from time to time its annying
+to have the menu entry switched maybe each time on switching between
+two documents it can be set to keep even there is no LaTeX document
+activ.
\begin{lstlisting}
[general]
@@ -657,17 +665,17 @@
glatex_deactivate_menubarentry_with_non_latex=false
\end{lstlisting}
-This option might make sense in combination with deactivation of
-toolbar items on changing to a non-\TeX{} document at
+This option might make sense in combination with deactivation of
+toolbar items on changing to a non-\TeX{} document at
\ref{deactivate_toolbaritems_with_non_latex}, page \pageref
{deactivate_toolbaritems_with_non_latex}.
\subsubsection{Add \LaTeX{} menu on startup}
-In case of you want to see always the \LaTeX{}-menu independent of
-you have a \LaTeX{} document open. To add the menu direct at startup
-time you might set \texttt{glatex\_add\_menu\_on\_startup} inside
-menu section of configuration file to true.
+In case of you want to see always the \LaTeX{}-menu independent of
+you have a \LaTeX{} document open. To add the menu direct at startup
+time you might set \texttt{glatex\_add\_menu\_on\_startup} inside
+menu section of configuration file to true.
\begin{lstlisting}
[general]
@@ -679,9 +687,9 @@
glatex_add_menu_on_startup=true
\end{lstlisting}
-This options makes only sense in combination with
-glatex\_deactivate\_menubarentry\_with\_non\_latex
-as described in chapter \ref{deactivate_menubarentry_with_non_latex},
+This options makes only sense in combination with
+glatex\_deactivate\_menubarentry\_with\_non\_latex
+as described in chapter \ref{deactivate_menubarentry_with_non_latex},
page \pageref {deactivate_menubarentry_with_non_latex}.
\subsubsection{Size of context for autocompletion}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1588
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1588&view=rev
Author: colombanw
Date: 2010-09-17 17:50:45 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
GeanyGenDoc: Fix documentation insertion position if indent pref is set
Don't insert documentation block at start-of-line + indent-width but at
start-of-line + n-indent-chars, which is different if tabs are used as
the indentation.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-14 20:52:44 UTC (rev 1587)
+++ trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-17 17:50:45 UTC (rev 1588)
@@ -350,7 +350,9 @@
line = adjust_start_line (sci, tag_array, tag, line);
pos = sci_get_position_from_line (sci, line);
if (GGD_OPT_indent) {
- pos += sci_get_line_indentation (sci, line);
+ while (isspace (sci_get_char_at (sci, pos))) {
+ pos++;
+ }
}
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1587
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1587&view=rev
Author: frlan
Date: 2010-09-14 20:52:44 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Add a hidden pref to allow enablng LaTeX at start of Geany
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.pdf
trunk/geanylatex/doc/geanylatex.tex
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/doc/geanylatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2010-09-14 20:01:45 UTC (rev 1586)
+++ trunk/geanylatex/doc/geanylatex.tex 2010-09-14 20:52:44 UTC (rev 1587)
@@ -640,7 +640,7 @@
Please ensure, you reload the plugin once this option has been changed.
\subsubsection{Remove \LaTeX{} menu if document is a non \TeX-type}
-
+\label{deactivate_menubarentry_with_non_latex}
Geany\LaTeX{} is enabling a separate menu inside Geany's main menu.
On default, its getting activated and deactivated based on the file
type of the current document. However, from time to time its annying
@@ -662,6 +662,28 @@
\ref{deactivate_toolbaritems_with_non_latex}, page \pageref
{deactivate_toolbaritems_with_non_latex}.
+\subsubsection{Add \LaTeX{} menu on startup}
+
+In case of you want to see always the \LaTeX{}-menu independent of
+you have a \LaTeX{} document open. To add the menu direct at startup
+time you might set \texttt{glatex\_add\_menu\_on\_startup} inside
+menu section of configuration file to true.
+
+\begin{lstlisting}
+[general]
+glatex_set_koma_active=false
+glatex_set_toolbar_active=true
+
+[menu]
+glatex_deactivate_menubarentry_with_non_latex=false
+glatex_add_menu_on_startup=true
+\end{lstlisting}
+
+This options makes only sense in combination with
+glatex\_deactivate\_menubarentry\_with\_non\_latex
+as described in chapter \ref{deactivate_menubarentry_with_non_latex},
+page \pageref {deactivate_menubarentry_with_non_latex}.
+
\subsubsection{Size of context for autocompletion}
\label{sec:hidden_pref_autocompletion_context}
Inside configuration file you can add a value to adjust the size of
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-14 20:01:45 UTC (rev 1586)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-14 20:52:44 UTC (rev 1587)
@@ -69,6 +69,7 @@
static gboolean glatex_set_koma_active = FALSE;
static gboolean glatex_deactivate_toolbaritems_with_non_latex = TRUE;
static gboolean glatex_deactivate_menubarentry_with_non_latex = TRUE;
+static gboolean glatex_add_menu_on_startup;
static gchar *glatex_ref_chapter_string = NULL;
static gchar *glatex_ref_page_string = NULL;
static gchar *glatex_ref_all_string = NULL;
@@ -420,7 +421,14 @@
if (doc != NULL)
{
toggle_toolbar_items_by_file_type(doc->file_type->id);
- check_for_menu(doc->file_type->id);
+ if (glatex_add_menu_on_startup == TRUE||
+ doc->file_type->id == GEANY_FILETYPES_LATEX)
+ {
+ if (main_menu_item == NULL)
+ {
+ add_menu_to_menubar();
+ }
+ }
}
}
@@ -1941,6 +1949,8 @@
"glatex_deactivate_toolbaritems_with_non_latex", TRUE);
glatex_deactivate_menubarentry_with_non_latex = utils_get_setting_boolean(config, "menu",
"glatex_deactivate_menubarentry_with_non_latex", TRUE);
+ glatex_add_menu_on_startup = utils_get_setting_boolean(config, "menu",
+ "glatex_add_menu_on_startup", FALSE);
glatex_ref_page_string = utils_get_setting_string(config, "reference",
"glatex_reference_page", _("page \\pageref{{{reference}}}"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.