1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
From: Evgeni Golov <evgeni@debian.org>
Date: Fri, 29 Mar 2013 23:14:44 +0100
Subject: load help files from Debian's locations
---
commander/src/commander-plugin.c | 2 +-
markdown/src/plugin.c | 3 +++
scope/src/scope.c | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/commander/src/commander-plugin.c b/commander/src/commander-plugin.c
index 099e9f7..41c6261 100644
--- a/commander/src/commander-plugin.c
+++ b/commander/src/commander-plugin.c
@@ -769,5 +769,5 @@ plugin_cleanup (void)
void
plugin_help (void)
{
- utils_open_browser (DOCDIR "/" PLUGIN "/README");
+ utils_open_browser ("/usr/share/doc/geany-plugin-commander/README");
}
diff --git a/markdown/src/plugin.c b/markdown/src/plugin.c
index dd8914b..e824cc3 100644
--- a/markdown/src/plugin.c
+++ b/markdown/src/plugin.c
@@ -46,6 +46,9 @@ PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE,
# define MARKDOWN_HELP_FILE MARKDOWN_DOC_DIR "/html/help.html"
#endif
+#undef MARKDOWN_HELP_FILE
+#define MARKDOWN_HELP_FILE "/usr/share/doc/geany-plugin-markdown/html/help.html"
+
#define MARKDOWN_PREVIEW_LABEL _("Markdown Preview")
/* Global data */
diff --git a/scope/src/scope.c b/scope/src/scope.c
index 02a8596..c196fb5 100644
--- a/scope/src/scope.c
+++ b/scope/src/scope.c
@@ -492,7 +492,7 @@ void configure_toolbar(void)
void plugin_help()
{
- char *helpfile = g_build_filename(PLUGINHTMLDOCDIR, "scope.html", NULL);
+ char *helpfile = g_build_filename("/usr/share/doc/geany-plugin-scope/html/", "scope.html", NULL);
utils_open_browser(helpfile);
g_free(helpfile);
}
|