Revision: 1185 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1185&view=re... Author: frlan Date: 2010-03-20 10:06:05 +0000 (Sat, 20 Mar 2010)
Log Message: ----------- GeanyLaTeX: Add a menu entry for insert package function
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-03-20 09:35:51 UTC (rev 1184) +++ trunk/geanylatex/src/geanylatex.c 2010-03-20 10:06:05 UTC (rev 1185) @@ -50,6 +50,7 @@ static GtkWidget *menu_latex_format_insert = NULL; static GtkWidget *menu_latex_format_insert_submenu = NULL; static GtkWidget *menu_latex_insert_environment = NULL; +static GtkWidget *menu_latex_insert_usepackage = NULL; static GtkWidget *menu_latex_replacement = NULL; static GtkWidget *menu_latex_replacement_submenu = NULL; static GtkWidget *menu_latex_replace_selection = NULL; @@ -1801,6 +1802,14 @@ g_signal_connect(menu_latex_insert_environment, "activate", G_CALLBACK(glatex_insert_environment_dialog), NULL);
+ menu_latex_insert_usepackage = gtk_menu_item_new_with_mnemonic( + _("Insert Package")); + ui_widget_set_tooltip_text(menu_latex_insert_environment, + _("A small dialog to insert \usepcakge{} into header of current file")); + gtk_container_add(GTK_CONTAINER(menu_latex_menu), menu_latex_insert_usepackage); + g_signal_connect(menu_latex_insert_usepackage, "activate", + G_CALLBACK(glatex_insert_usepackage_dialog), NULL); + menu_latex_bibtex = gtk_menu_item_new_with_mnemonic(_("_BibTeX")); gtk_container_add(GTK_CONTAINER(menu_latex_menu), menu_latex_bibtex);
@@ -1878,6 +1887,7 @@ ui_add_document_sensitive(menu_latex_bibtex); ui_add_document_sensitive(menu_latex_format_insert); ui_add_document_sensitive(menu_latex_insert_environment); + ui_add_document_sensitive(menu_latex_insert_usepackage); ui_add_document_sensitive(menu_latex_replacement);
gtk_widget_show_all(menu_latex);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org