aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-27 17:59:40 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-27 17:59:40 +0000
commitf23c9625edeb51b0e39ee1a8fe98442060e69d4e (patch)
treea4a9d732ca0153c9a441d8d237a56c7a427b5215
parent96d673a3ba61dcdd348b422b2b9f2e1158cd6286 (diff)
Cleanups
-rw-r--r--hardinfo2/shell.c2
-rw-r--r--hardinfo2/util.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index d6290419..096b126a 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -609,7 +609,7 @@ shell_init(GSList *modules)
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);
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index 67b17985..129b921f 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -373,7 +373,7 @@ static ShellModule *module_load(gchar *filename) {
module = g_new0(ShellModule, 1);
if (params.gui_running) {
- gchar *dot = g_strrstr(filename, G_MODULE_SUFFIX) - 1;
+ gchar *dot = g_strrstr(filename, "." G_MODULE_SUFFIX);
*dot = '\0';
@@ -477,7 +477,8 @@ static GSList *modules_load(gchar **module_list)
if (dir) {
while ((filename = (gchar*)g_dir_read_name(dir))) {
- if (module_in_module_list(filename, module_list) &&
+ if (g_strrstr(filename, "." G_MODULE_SUFFIX) &&
+ module_in_module_list(filename, module_list) &&
((module = module_load(filename)))) {
modules = g_slist_append(modules, module);
}