aboutsummaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2016-07-30 10:22:11 -0300
committerLeandro Pereira <leandro@hardinfo.org>2016-07-30 10:33:42 -0300
commitba5a7e1b4ccd0a65b72532252ca922b8dea4cce3 (patch)
treef8e7ed787f9c194f49be8cd4283f331bcb5ed116 /shell/shell.c
parent00951b7535e210bf5b90c53c85d728b074760123 (diff)
Remove help viewer
It's very unlikely I'll every write documentation for HardInfo anyway.
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c20
1 files changed, 0 insertions, 20 deletions
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();
}