diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-05 12:57:49 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-05 12:57:49 -0300 |
commit | b7c88c3c58d58dd071745771eb062f7f42a8cdbd (patch) | |
tree | bc311a555785b23f38cc9df94a3397d2a30676fb /hardinfo2/callbacks.c | |
parent | 06a36849aa90e34459509f7e3bda37ae3335e7dc (diff) |
Add Help Viewer
Diffstat (limited to 'hardinfo2/callbacks.c')
-rw-r--r-- | hardinfo2/callbacks.c | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/hardinfo2/callbacks.c b/hardinfo2/callbacks.c index f1f6e335..1d27b5f7 100644 --- a/hardinfo2/callbacks.c +++ b/hardinfo2/callbacks.c @@ -19,15 +19,16 @@ #include <stdlib.h> #include <gtk/gtk.h> -#include <hardinfo.h> -#include <callbacks.h> -#include <iconcache.h> +#include "hardinfo.h" +#include "callbacks.h" +#include "iconcache.h" -#include <shell.h> -#include <report.h> -#include <syncmanager.h> +#include "shell.h" +#include "report.h" +#include "syncmanager.h" +#include "help-viewer.h" -#include <config.h> +#include "config.h" void cb_sync_manager() { @@ -135,7 +136,18 @@ void cb_open_web_page() void cb_open_online_docs() { - open_url("http://wiki.hardinfo.org/Documentation"); + Shell *shell; + + shell = shell_get_main_shell(); + if (shell->help_viewer) { + help_viewer_open_page(shell->help_viewer, "index.hlp"); + } else { + gchar *help_dir; + + help_dir = g_build_filename(params.path_data, "doc", NULL); + shell->help_viewer = help_viewer_new(help_dir, "index.hlp"); + g_free(help_dir); + } } void cb_report_bug() |