diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2009-04-30 10:30:47 +0000 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2009-04-30 10:30:47 +0000 |
commit | 083768985c5d7f71c98891db7ba3be12e987f4ec (patch) | |
tree | c4d77d88ce38d7142e22c6e48c6cd378689c5857 /hardinfo2/util.c | |
parent | 9db4d58b378d0811a836fee50292ab4a34a19297 (diff) |
Make module unloading more reliable
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index a8bb8b8c..d1c7a9ca 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -626,16 +626,10 @@ void module_unload_all(void) GPOINTER_TO_INT(merge_id->data)); } - gtk_tree_store_clear(GTK_TREE_STORE(shell->tree->model)); sync_manager_clear_entries(); - - /* TODO FIXME clear shell::update_tbl */ - - gtk_tree_store_clear(GTK_TREE_STORE(shell->tree->model)); - gtk_tree_store_clear(GTK_TREE_STORE(shell->info->model)); - gtk_tree_store_clear(GTK_TREE_STORE(shell->moreinfo->model)); - - gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(shell->info->view), FALSE); + shell_clear_timeouts(shell); + shell_clear_tree_models(shell); + shell_reset_title(shell); g_slist_free(shell->tree->modules); g_slist_free(shell->merge_ids); @@ -771,19 +765,6 @@ static void module_entry_free(gpointer data, gpointer user_data) } } -void module_free(ShellModule * module) -{ - g_free(module->name); - g_object_unref(module->icon); - g_module_close(module->dll); - - DEBUG("module_free: module->entries, %p\n", module->entries); - g_slist_foreach(module->entries, (GFunc) module_entry_free, NULL); - g_slist_free(module->entries); - - g_free(module); -} - ModuleAbout *module_get_about(ShellModule * module) { ModuleAbout *(*get_about) (void); |