From b3ce064b42dede2552f79bf7e6c4c6eead7f24a0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 31 Jul 2009 09:42:33 +0200 Subject: Use g_hash_table_remove_all() to remove all items --- src/ephy-window.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/ephy-window.c b/src/ephy-window.c index 7cef32739..c38436961 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -3256,12 +3256,6 @@ ephy_window_set_is_popup (EphyWindow *window, g_object_notify (G_OBJECT (window), "is-popup"); } -static gboolean -remove_true (void) -{ - return TRUE; -} - static void ephy_window_dispose (GObject *object) { @@ -3304,7 +3298,7 @@ ephy_window_dispose (GObject *object) priv->idle_resize_handler = 0; } - g_hash_table_foreach_remove (priv->tabs_to_remove, (GHRFunc) remove_true, NULL); + g_hash_table_remove_all (priv->tabs_to_remove); g_object_unref (priv->enc_menu); priv->enc_menu = NULL; -- cgit v1.2.3