From ba5a7e1b4ccd0a65b72532252ca922b8dea4cce3 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 30 Jul 2016 10:22:11 -0300 Subject: Remove help viewer It's very unlikely I'll every write documentation for HardInfo anyway. --- shell/shell.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'shell/shell.c') diff --git a/shell/shell.c b/shell/shell.c index 12bd2002..38ada329 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -816,7 +816,6 @@ void shell_init(GSList * modules) shell_status_update(_("Done.")); shell_status_set_enabled(FALSE); - shell_action_set_enabled("ContextHelpAction", FALSE); shell_action_set_enabled("RefreshAction", FALSE); shell_action_set_enabled("CopyAction", FALSE); shell_action_set_enabled("SaveGraphAction", FALSE); @@ -1778,22 +1777,6 @@ static void module_selected(gpointer data) shell_set_title(shell, title); g_free(title); - if (entry->flags & MODULE_FLAG_HAS_HELP) { - gchar *temp; - - shell_action_set_enabled("ContextHelpAction", TRUE); - - temp = g_strdup_printf("Help on %s \342\206\222 %s", - shell->selected_module->name, - entry->name); - shell_action_set_label("ContextHelpAction", temp); - - g_free(temp); - } else { - shell_action_set_enabled("ContextHelpAction", FALSE); - shell_action_set_label("ContextHelpAction", _("Context help")); - } - shell_action_set_enabled("RefreshAction", TRUE); shell_action_set_enabled("CopyAction", TRUE); @@ -1807,9 +1790,6 @@ static void module_selected(gpointer data) gtk_tree_store_clear(GTK_TREE_STORE(shell->info->model)); set_view_type(SHELL_VIEW_NORMAL, FALSE); - shell_action_set_enabled("ContextHelpAction", FALSE); - shell_action_set_label("ContextHelpAction", _("Context help")); - if (shell->selected_module->summaryfunc) { shell_show_summary(); } -- cgit v1.2.3