aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-19 14:52:38 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-19 14:52:38 +0000
commit8708504c28caeee4bd3e95b6b6d739970863f19c (patch)
treeede48c1cf75ce7c38ffd75a5fd4eba11a0bb1020 /hardinfo2/shell.c
parentf128a3b3f241c7280339a2be8f3e6c18295bb526 (diff)
Started working on report generation without GUI.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index cf5d6d74..d3d55b40 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -309,6 +309,7 @@ create_window(void)
gtk_main_iteration();
}
+#if 0
static void
shell_tree_modules_load(ShellTree * shelltree)
{
@@ -395,6 +396,7 @@ shell_tree_modules_load(ShellTree * shelltree)
g_error("No module could be loaded. Check permissions on %s and try again.", path_lib);
}
}
+#endif
static void view_menu_select_entry(gpointer data, gpointer data2)
{
@@ -509,7 +511,7 @@ add_modules_to_gui(gpointer data, gpointer user_data)
}
void
-shell_init(void)
+shell_init(GSList *modules)
{
if (shell) {
g_error("Shell already created");
@@ -543,7 +545,8 @@ shell_init(void)
shell_status_set_enabled(TRUE);
shell_status_update("Loading modules...");
- shell_tree_modules_load(shell->tree);
+ shell->tree->modules = modules ? modules : modules_load();
+
g_slist_foreach(shell->tree->modules, add_modules_to_gui, shell->tree);
gtk_tree_view_expand_all(GTK_TREE_VIEW(shell->tree->view));