SF.net SVN: geany-plugins:[513] trunk/geanylatex
frlan at users.sourceforge.net
frlan at xxxxx
Sat Feb 28 01:35:11 UTC 2009
Revision: 513
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=513&view=rev
Author: frlan
Date: 2009-02-28 01:35:11 +0000 (Sat, 28 Feb 2009)
Log Message:
-----------
GeanyLaTeX: Don't react on some keybindings in case of no document is open.
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2009-02-27 20:30:12 UTC (rev 512)
+++ trunk/geanylatex/ChangeLog 2009-02-28 01:35:11 UTC (rev 513)
@@ -1,3 +1,8 @@
+2009-02-28 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * Don't react on some keybindings in case of no document is open.
+
+
2009-02-18 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Formating of selected text
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2009-02-27 20:30:12 UTC (rev 512)
+++ trunk/geanylatex/src/geanylatex.c 2009-02-28 01:35:11 UTC (rev 513)
@@ -908,21 +908,29 @@
static void kblabel_insert(G_GNUC_UNUSED guint key_id)
{
+ if (NULL == document_get_current())
+ return;
insert_label_activated(NULL, NULL);
}
static void kbref_insert(G_GNUC_UNUSED guint key_id)
{
+ if (NULL == document_get_current())
+ return;
insert_ref_activated(NULL, NULL);
}
static void kbwizard(G_GNUC_UNUSED guint key_id)
{
+ if (NULL == document_get_current())
+ return;
wizard_activated(NULL, NULL);
}
static void kb_insert_newline(G_GNUC_UNUSED guint key_id)
{
+ if (NULL == document_get_current())
+ return;
glatex_insert_string("\\\\\n", TRUE);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list