aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 14:51:46 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-27 14:51:46 +0000
commit0f224e134234a6fb880613babd45942ece918f92 (patch)
treed453a4912c514a45955c2badcd8e0b187b6af5da /hardinfo2/shell.c
parente5c7cba7ec1deb207ff5b6b93815d8d15e84d270 (diff)
Cleanups. Fallback to using hardcoded paths if binreloc fails. Add GTK+ log handler (shows errors and warnings in a graphical window).
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 40cb8d58..5e602cfa 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -520,6 +520,10 @@ shell_init(void)
shell->moreinfo = info_tree_new(TRUE);
shell->loadgraph = load_graph_new(75);
+ shell_action_set_property("CopyAction", "is-important", TRUE);
+ shell_action_set_property("RefreshAction", "is-important", TRUE);
+ shell_action_set_property("ReportAction", "is-important", TRUE);
+
gtk_paned_pack1(GTK_PANED(shell->hpaned), shell->tree->scroll,
SHELL_PACK_RESIZE, SHELL_PACK_SHRINK);
gtk_paned_pack1(GTK_PANED(shell->vpaned), shell->info->scroll,
@@ -546,16 +550,12 @@ shell_init(void)
gtk_widget_show_all(shell->hpaned);
load_graph_configure_expose(shell->loadgraph);
-
gtk_widget_hide(shell->notebook);
shell_action_set_enabled("RefreshAction", FALSE);
shell_action_set_enabled("CopyAction", FALSE);
shell_action_set_active("SidePaneAction", TRUE);
shell_action_set_active("ToolbarAction", TRUE);
- shell_action_set_property("CopyAction", "is-important", TRUE);
- shell_action_set_property("RefreshAction", "is-important", TRUE);
- shell_action_set_property("ReportAction", "is-important", TRUE);
}
static gboolean