Revision: 1290 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1290&view=re... Author: frlan Date: 2010-04-24 11:46:46 +0000 (Sat, 24 Apr 2010)
Log Message: ----------- GeanyLaTeX: Replace some test for active document by g_return_if_fail()
Modified Paths: -------------- trunk/geanylatex/src/latexkeybindings.c
Modified: trunk/geanylatex/src/latexkeybindings.c =================================================================== --- trunk/geanylatex/src/latexkeybindings.c 2010-04-23 21:32:34 UTC (rev 1289) +++ trunk/geanylatex/src/latexkeybindings.c 2010-04-24 11:46:46 UTC (rev 1290) @@ -23,132 +23,131 @@
void glatex_kblabel_insert(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_label_activated(NULL, NULL); }
+ void glatex_kbref_insert(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_ref_activated(NULL, NULL); }
void glatex_kbref_insert_environment(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_environment_dialog(NULL, NULL); }
+ void glatex_kbwizard(G_GNUC_UNUSED guint key_id) { glatex_wizard_activated(NULL, NULL); }
+ void glatex_kb_insert_newline(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_string("\\\n", TRUE); }
+ void glatex_kb_insert_newitem(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_string("\item ", TRUE); }
+ void glatex_kb_replace_special_chars(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_replace_special_character(); }
+ void glatex_kb_format_bold(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_BOLD)); }
+ void glatex_kb_format_italic(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_ITALIC)); }
+ void glatex_kb_format_typewriter(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_TYPEWRITER)); }
+ void glatex_kb_format_centering(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_CENTER)); }
+ void glatex_kb_format_left(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_LEFT)); }
+ void glatex_kb_format_right(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_latex_format(NULL, GINT_TO_POINTER(LATEX_RIGHT)); }
+ void glatex_kb_insert_description_list(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_list_environment(GLATEX_LIST_DESCRIPTION); }
+ void glatex_kb_insert_itemize_list(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_list_environment(GLATEX_LIST_ITEMIZE); }
+ void glatex_kb_insert_enumerate_list(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_list_environment(GLATEX_LIST_ENUMERATE); }
+ void glatex_kb_structure_lvlup(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_structure_lvlup(); }
+ void glatex_kb_structure_lvldown(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_structure_lvldown(); }
+ void glatex_kb_usepackage_dialog(G_GNUC_UNUSED guint key_id) { - if (NULL == document_get_current()) - return; + g_return_if_fail(document_get_current != NULL); glatex_insert_usepackage_dialog(NULL, NULL); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.