Revision: 482 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=482&view=rev Author: frlan Date: 2009-02-15 22:55:55 +0000 (Sun, 15 Feb 2009)
Log Message: ----------- GeanyLaTeX: Moved initialization of keybdindings to separate function
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2009-02-15 22:55:16 UTC (rev 481) +++ trunk/geanylatex/src/geanylatex.c 2009-02-15 22:55:55 UTC (rev 482) @@ -852,6 +852,18 @@ insert_bibtex_entry(NULL, NULL); }*/
+void init_keybindings() +{ + /* init keybindins */ + keybindings_set_item(plugin_key_group, LATEX_WIZZARD_KB, kbwizard, + 0, 0, "run_latex_wizard", _("Run LaTeX-Wizard"), menu_latex_wizzard); + keybindings_set_item(plugin_key_group, LATEX_INSERT_LABEL_KB, kblabel_insert, + 0, 0, "insert_latex_label", _("Insert \label"), menu_latex_label); + keybindings_set_item(plugin_key_group, LATEX_INSERT_REF_KB, kbref_insert, + 0, 0, "insert_latex_ref", _("Insert \ref"), menu_latex_ref); + keybindings_set_item(plugin_key_group, LATEX_INSERT_NEWLINE, kb_insert_newline, + 0, 0, "insert_new_line", _("Insert linebreak \\ "), NULL); +}
void plugin_help() { @@ -948,18 +960,7 @@ G_CALLBACK(insert_latex_format), GINT_TO_POINTER(i)); }
- /* init keybindins */ - keybindings_set_item(plugin_key_group, LATEX_WIZZARD_KB, kbwizard, - 0, 0, "run_latex_wizard", _("Run LaTeX-Wizard"), menu_latex_wizzard); - keybindings_set_item(plugin_key_group, LATEX_INSERT_LABEL_KB, kblabel_insert, - 0, 0, "insert_latex_label", _("Insert \label"), menu_latex_label); - keybindings_set_item(plugin_key_group, LATEX_INSERT_REF_KB, kbref_insert, - 0, 0, "insert_latex_ref", _("Insert \ref"), menu_latex_ref); - keybindings_set_item(plugin_key_group, LATEX_INSERT_NEWLINE, kb_insert_newline, - 0, 0, "insert_new_line", _("Insert linebreak \\ "), NULL); -/* keybindings_set_item(plugin_key_group, LATEX_INSERT_BIBTEX_ENTRY_KB, - kb_bibtex_entry_insert, 0, 0, "insert_latex_bibtex_entry", _("Add BiBTeX entry"), - menu_latex_bibtex); */ + init_keybindings();
ui_add_document_sensitive(menu_latex_menu_special_char); ui_add_document_sensitive(menu_latex_ref);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org