[epiphany] Use g_hash_table_remove_all() to remove all items
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Use g_hash_table_remove_all() to remove all items
- Date: Fri, 31 Jul 2009 08:12:54 +0000 (UTC)
commit b3ce064b42dede2552f79bf7e6c4c6eead7f24a0
Author: Benjamin Otte <otte gnome org>
Date: Fri Jul 31 09:42:33 2009 +0200
Use g_hash_table_remove_all() to remove all items
src/ephy-window.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 7cef327..c384369 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]