diff options
author | Benjamin Otte <otte@gnome.org> | 2009-07-31 15:42:33 +0800 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-07-31 16:12:25 +0800 |
commit | b3ce064b42dede2552f79bf7e6c4c6eead7f24a0 (patch) | |
tree | 185a1a56b6771752db331ae0505050e4a23671db /src | |
parent | abfc3054e628d11250160b21a01866b923eb56a6 (diff) | |
download | gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar.gz gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar.bz2 gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar.lz gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar.xz gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.tar.zst gsoc2013-epiphany-b3ce064b42dede2552f79bf7e6c4c6eead7f24a0.zip |
Use g_hash_table_remove_all() to remove all items
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; |