From 8a9fdae124e2e976c05b190ca83c65e07ca913a4 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 1 Dec 2006 12:01:22 +0000 Subject: More and more and more cleanups --- hardinfo2/shell.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 096b126a..b93ff05c 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -882,12 +882,6 @@ moreinfo_handle_normal(GKeyFile * key_file, gchar * group, gchar ** keys) } } -static gboolean -g_true(gpointer key, gpointer value, gpointer data) -{ - return TRUE; -} - static void module_selected_show_info(ShellModuleEntry * entry, gboolean reload) { @@ -910,7 +904,7 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) /* recreate the iter hash table only if we're not reloading the module section */ if (!reload) { if (update_tbl != NULL) { - g_hash_table_foreach_remove(update_tbl, g_true, NULL); + g_hash_table_foreach_remove(update_tbl, (GHRFunc) gtk_true, NULL); } update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); } -- cgit v1.2.3