SF.net SVN: geany-plugins:[1587] trunk/geanylatex

frlan at users.sourceforge.net frlan at xxxxx
Tue Sep 14 20:52:45 UTC 2010


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.



More information about the Plugins-Commits mailing list