diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-27 17:59:40 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-27 17:59:40 +0000 |
commit | f23c9625edeb51b0e39ee1a8fe98442060e69d4e (patch) | |
tree | a4a9d732ca0153c9a441d8d237a56c7a427b5215 /hardinfo2 | |
parent | 96d673a3ba61dcdd348b422b2b9f2e1158cd6286 (diff) |
Cleanups
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/shell.c | 2 | ||||
-rw-r--r-- | hardinfo2/util.c | 5 |
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); } |