diff options
author | Balint Reczey <balint.reczey@ericsson.com> | 2010-08-01 10:45:42 +0000 |
---|---|---|
committer | Balint Reczey <balint.reczey@ericsson.com> | 2010-08-01 10:45:42 +0000 |
commit | a89c52939f265909c82e4ba14bf55f4529564cb8 (patch) | |
tree | d005452f072def279fb6d400af0fabae1954da9e /gtk/help_dlg.c | |
parent | ed7871ca54a08c7b173d4825bae5d2afb10cf868 (diff) | |
download | wireshark-a89c52939f265909c82e4ba14bf55f4529564cb8.tar.gz |
Use local copy of Wireshark documentation on UNIX if it's available.
Installation has to be done manually to the location specified by --docdir
configure option.
svn path=/trunk/; revision=33683
Diffstat (limited to 'gtk/help_dlg.c')
-rw-r--r-- | gtk/help_dlg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/help_dlg.c b/gtk/help_dlg.c index e703442724..4b8220e79a 100644 --- a/gtk/help_dlg.c +++ b/gtk/help_dlg.c @@ -107,8 +107,13 @@ void help_topic_html(const gchar *topic) { url = g_string_new(""); - /* try to open the HTML page from wireshark.org instead */ - g_string_append_printf(url, "http://www.wireshark.org/docs/wsug_html_chunked/%s", topic); + if (g_file_test(DOC_DIR "/wsug_html_chunked", G_FILE_TEST_IS_DIR)) { + /* try to open the HTML page from wireshark.org instead */ + g_string_append_printf(url, "file://" DOC_DIR "/wsug_html_chunked/%s", topic); + } else { + /* try to open the HTML page from wireshark.org instead */ + g_string_append_printf(url, "http://www.wireshark.org/docs/wsug_html_chunked/%s", topic); + } browser_open_url(url->str); |