Kaydet (Commit) 50705596 authored tarafından Enrico Tröger's avatar Enrico Tröger

added check for existing documentation, otherwise try online documentation


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@253 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst dbd46efb
......@@ -2239,6 +2239,13 @@ on_help1_activate (GtkMenuItem *menuitem,
#else
gchar *uri = g_strconcat("file://", DOCDIR, "index.html", NULL);
#endif
if (! g_file_test(uri + 7, G_FILE_TEST_IS_REGULAR))
{
g_free(uri);
uri = g_strconcat(GEANY_HOMEPAGE, "manual/index.html", NULL);
}
utils_start_browser(uri);
g_free(uri);
}
......@@ -2255,6 +2262,13 @@ on_help_shortcuts1_activate (GtkMenuItem *menuitem,
#else
gchar *uri = g_strconcat("file://", DOCDIR, "apa.html", NULL);
#endif
if (! g_file_test(uri + 7, G_FILE_TEST_IS_REGULAR))
{
g_free(uri);
uri = g_strconcat(GEANY_HOMEPAGE, "manual/apa.html", NULL);
}
utils_start_browser(uri);
g_free(uri);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment