Revision: 1585 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1585&view=re... 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@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.
plugins-commits@lists.geany.org