SF.net SVN: geany-plugins:[432] trunk/spellcheck
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Feb 2 20:56:20 UTC 2009
Revision: 432
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=432&view=rev
Author: eht16
Date: 2009-02-02 20:56:20 +0000 (Mon, 02 Feb 2009)
Log Message:
-----------
Implement plugin_help() to open the Readme file in Geany.
Modified Paths:
--------------
trunk/spellcheck/ChangeLog
trunk/spellcheck/src/Makefile.am
trunk/spellcheck/src/scplugin.c
Modified: trunk/spellcheck/ChangeLog
===================================================================
--- trunk/spellcheck/ChangeLog 2009-02-02 20:55:00 UTC (rev 431)
+++ trunk/spellcheck/ChangeLog 2009-02-02 20:56:20 UTC (rev 432)
@@ -2,6 +2,8 @@
* configure.in, Makefile.am:
Install documentation files into the geany-plugins doc dir.
+ * src/Makefile.am, src/scplugin.c:
+ Implement plugin_help() to open the Readme file in Geany.
2009-01-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/spellcheck/src/Makefile.am
===================================================================
--- trunk/spellcheck/src/Makefile.am 2009-02-02 20:55:00 UTC (rev 431)
+++ trunk/spellcheck/src/Makefile.am 2009-02-02 20:56:20 UTC (rev 432)
@@ -4,4 +4,4 @@
spellcheck_la_LDFLAGS = -module -avoid-version
spellcheck_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS) @ENCHANT_LIBS@
-AM_CFLAGS = @GEANY_CFLAGS@ @ENCHANT_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\"
+AM_CFLAGS = @GEANY_CFLAGS@ @ENCHANT_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DDOCDIR=\""$(docdir)"\"
Modified: trunk/spellcheck/src/scplugin.c
===================================================================
--- trunk/spellcheck/src/scplugin.c 2009-02-02 20:55:00 UTC (rev 431)
+++ trunk/spellcheck/src/scplugin.c 2009-02-02 20:56:20 UTC (rev 432)
@@ -41,6 +41,7 @@
#include "keybindings.h"
#include "utils.h"
#include "ui_utils.h"
+#include "filetypes.h"
#include "geanyfunctions.h"
@@ -282,6 +283,22 @@
}
+void plugin_help(void)
+{
+ gchar *readme = g_build_filename(DOCDIR, "README", NULL);
+
+ if (g_file_test(readme, G_FILE_TEST_EXISTS))
+ {
+ document_open_file(readme, FALSE, filetypes_index(GEANY_FILETYPES_REST), NULL);
+ }
+ else
+ {
+ utils_open_browser("http://plugins.geany.org/spellcheck/");
+ }
+ g_free(readme);
+}
+
+
void plugin_cleanup(void)
{
guint i;
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