From 08fac9e5be78a1ba9ee576cd000fe05cb2e56a4e Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 5 Aug 2009 13:11:05 -0300 Subject: Oops. Make it possible to reopen the help viewer --- hardinfo2/help-viewer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hardinfo2/help-viewer.c b/hardinfo2/help-viewer.c index b0a6c581..9aca1e60 100644 --- a/hardinfo2/help-viewer.c +++ b/hardinfo2/help-viewer.c @@ -22,6 +22,7 @@ #include #include "config.h" +#include "shell.h" #include "markdown-text-view.h" #include "help-viewer.h" @@ -269,6 +270,7 @@ void help_viewer_open_page(HelpViewer *hv, const gchar *page) void help_viewer_destroy(HelpViewer *hv) { + Shell *shell; GSList *item; for (item = hv->back_stack; item; item = item->next) { @@ -284,6 +286,9 @@ void help_viewer_destroy(HelpViewer *hv) g_free(hv->current_file); g_free(hv->help_directory); + + shell = shell_get_main_shell(); + shell->help_viewer = NULL; } static gboolean destroy_me(GtkWidget *widget, gpointer data) -- cgit v1.2.3