Revision: 1586
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1586&view=rev
Author: frlan
Date: 2010-09-14 20:01:45 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Add a hidden pref to deactivated toggeling of LaTeX menu on changing from/to non-TeX documents
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 19:31:28 UTC (rev 1585)
+++ trunk/geanylatex/doc/geanylatex.tex 2010-09-14 20:01:45 UTC (rev 1586)
@@ -615,8 +615,8 @@
command line.
\subsubsection{Deactivate toolbar items if document is a non \TeX-type}
-
-By defaul, Geany\LaTeX{} is deactivating buttons inside toolbar, which
+\label{deactivate_toolbaritems_with_non_latex}
+By default, Geany\LaTeX{} is deactivating buttons inside toolbar, which
don't make much sense to be applied on non-\TeX{} file types. As
this is not always wished, its possible to turn this feature off
via a hidden preferences.
@@ -639,6 +639,29 @@
Please ensure, you reload the plugin once this option has been changed.
+\subsubsection{Remove \LaTeX{} menu if document is a non \TeX-type}
+
+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]
+glatex_set_koma_active=false
+glatex_set_toolbar_active=true
+
+[menu]
+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
+\ref{deactivate_toolbaritems_with_non_latex}, page \pageref
+{deactivate_toolbaritems_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 19:31:28 UTC (rev 1585)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-14 20:01:45 UTC (rev 1586)
@@ -68,6 +68,7 @@
/* Options for plugin */
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 gchar *glatex_ref_chapter_string = NULL;
static gchar *glatex_ref_page_string = NULL;
static gchar *glatex_ref_all_string = NULL;
@@ -324,7 +325,10 @@
if (ft_id != GEANY_FILETYPES_LATEX &&
main_menu_item != NULL)
{
- remove_menu_from_menubar();
+ if (glatex_deactivate_menubarentry_with_non_latex == TRUE)
+ {
+ remove_menu_from_menubar();
+ }
}
}
@@ -659,7 +663,8 @@
if (doc->index < 2)
deactivate_toolbar_items();
- if (doc->index < 1)
+ if (doc->index < 1 &&
+ glatex_deactivate_menubarentry_with_non_latex == TRUE)
remove_menu_from_menubar();
}
@@ -1928,11 +1933,15 @@
}
/* Increase value by an offset as we add a new line so 2 really means 2 */
glatex_autocompletion_context_size = glatex_autocompletion_context_size + 2;
+
glatex_autocompletion_only_for_latex = utils_get_setting_boolean(config, "autocompletion",
"glatex_autocompletion_only_for_latex", TRUE);
glatex_deactivate_toolbaritems_with_non_latex = utils_get_setting_boolean(config, "toolbar",
"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_ref_page_string = utils_get_setting_string(config, "reference",
"glatex_reference_page", _("page \\pageref{{{reference}}}"));
glatex_ref_chapter_string = utils_get_setting_string(config, "reference",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1585
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1585&view=rev
Author: frlan
Date: 2010-09-14 19:31:28 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Insert LaTeX menu variable at Help - 1
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2010-09-14 19:31:05 UTC (rev 1584)
+++ trunk/geanylatex/ChangeLog 2010-09-14 19:31:28 UTC (rev 1585)
@@ -1,6 +1,6 @@
2010-09-14 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
- * Place LaTeX menu in front of help menu entry (hard coded)
+ * Place LaTeX menu in front of help menu entry.
2010-09-12 Frank Lanitz <frank(a)frank.uvena.de>
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-14 19:31:05 UTC (rev 1584)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-14 19:31:28 UTC (rev 1585)
@@ -1955,11 +1955,14 @@
{
GtkWidget *tmp = NULL;
gint i;
+ GtkMenuShell *menubar;
+ menubar = GTK_MENU_SHELL(
+ ui_lookup_widget(geany->main_widgets->window, "menubar1"));
+
menu_latex = gtk_menu_item_new_with_mnemonic(_("_LaTeX"));
gtk_menu_shell_insert(
- GTK_MENU_SHELL(ui_lookup_widget(geany->main_widgets->window,
- "menubar1")), menu_latex, 8);
+ menubar,menu_latex, g_list_length(menubar->children)- 1);
menu_latex_menu = gtk_menu_new();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_latex), menu_latex_menu);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1584
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1584&view=rev
Author: frlan
Date: 2010-09-14 19:31:05 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
GeanyLaTeX: Place LaTeX menu in front of help menu entry (hard coded)
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2010-09-13 21:08:36 UTC (rev 1583)
+++ trunk/geanylatex/ChangeLog 2010-09-14 19:31:05 UTC (rev 1584)
@@ -1,3 +1,8 @@
+2010-09-14 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * Place LaTeX menu in front of help menu entry (hard coded)
+
+
2010-09-12 Frank Lanitz <frank(a)frank.uvena.de>
* Moved LaTeX menu out of Tool menu and put it into generic menubar item.
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2010-09-13 21:08:36 UTC (rev 1583)
+++ trunk/geanylatex/src/geanylatex.c 2010-09-14 19:31:05 UTC (rev 1584)
@@ -1955,9 +1955,11 @@
{
GtkWidget *tmp = NULL;
gint i;
+
menu_latex = gtk_menu_item_new_with_mnemonic(_("_LaTeX"));
- gtk_container_add(GTK_CONTAINER(ui_lookup_widget(geany->main_widgets->window,
- "menubar1")), menu_latex);
+ gtk_menu_shell_insert(
+ GTK_MENU_SHELL(ui_lookup_widget(geany->main_widgets->window,
+ "menubar1")), menu_latex, 8);
menu_latex_menu = gtk_menu_new();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu_latex), menu_latex_menu);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1583
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1583&view=rev
Author: frlan
Date: 2010-09-13 21:08:36 +0000 (Mon, 13 Sep 2010)
Log Message:
-----------
Some further small update of German translation
Modified Paths:
--------------
trunk/geany-plugins/po/de.po
Modified: trunk/geany-plugins/po/de.po
===================================================================
--- trunk/geany-plugins/po/de.po 2010-09-13 21:07:48 UTC (rev 1582)
+++ trunk/geany-plugins/po/de.po 2010-09-13 21:08:36 UTC (rev 1583)
@@ -1995,7 +1995,7 @@
#: ../geanylatex/src/formatpatterns.c:41
msgid "Slanted"
-msgstr "Auswahl geneigt formatieren"
+msgstr "Geneigt (Slanted)"
#: ../geanylatex/src/formatpatterns.c:42
msgid "Typewriter"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1577
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1577&view=rev
Author: frlan
Date: 2010-09-12 19:35:52 +0000 (Sun, 12 Sep 2010)
Log Message:
-----------
Update of ChangeLog
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2010-09-12 19:35:00 UTC (rev 1576)
+++ trunk/geanylatex/ChangeLog 2010-09-12 19:35:52 UTC (rev 1577)
@@ -1,6 +1,7 @@
2010-09-12 Frank Lanitz <frank(a)frank.uvena.de>
- * Moved LaTeX menu out of Tool menu and put it into generic menubar
+ * Moved LaTeX menu out of Tool menu and put it into generic menubar item.
+ Make this menubar item be triggered by filetype.
* Fix a bug that keeps fonzt size choose from tools menu active even
there is no document open.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.