From 594097cc0181cfea7e8205448a7b6e315e311a36 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 11 Jan 2003 20:12:48 +0000 Subject: Reimplement favicons. Now all exit crashes related to connections left 2003-01-11 Marco Pesenti Gritti * embed/Makefile.am: * embed/ephy-embed-favicon.c: * embed/ephy-embed-favicon.h: * embed/ephy-embed-shell.c: (ephy_embed_shell_get_favicon_cache): * embed/ephy-favicon-cache.c: (ephy_favicon_cache_class_init), (ephy_favicon_cache_new), (ephy_favicon_cache_load), (icon_is_obsolete), (icons_added_cb), (icons_removed_cb), (remove_obsolete_icons), (ephy_favicon_cache_save), (ephy_favicon_cache_init), (kill_download), (cleanup_downloads_hash), (ephy_favicon_cache_finalize), (favicon_name_build), (favicon_download_completed_cb), (ephy_favicon_cache_download), (ephy_favicon_cache_get): * embed/ephy-favicon-cache.h: * embed/ephy-favicon.c: * embed/ephy-favicon.h: * embed/mozilla/mozilla-embed-shell.cpp: * src/ephy-tab.c: (ephy_tab_init), (ephy_tab_favicon_cb), (ephy_tab_location_cb), (ephy_tab_get_location), (ephy_tab_get_favicon_url): * src/ephy-tab.h: * src/ephy-window.c: (update_favicon_control): * src/toolbar.c: (toolbar_setup_favicon_ebox), (toolbar_update_favicon): Reimplement favicons. Now all exit crashes related to connections left open by favicons should be fixed. --- embed/mozilla/mozilla-embed-shell.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'embed/mozilla/mozilla-embed-shell.cpp') diff --git a/embed/mozilla/mozilla-embed-shell.cpp b/embed/mozilla/mozilla-embed-shell.cpp index 249b7dd50..58c692eb4 100644 --- a/embed/mozilla/mozilla-embed-shell.cpp +++ b/embed/mozilla/mozilla-embed-shell.cpp @@ -484,6 +484,10 @@ mozilla_embed_shell_finalize (GObject *object) { MozillaEmbedShell *mes; + /* Destroy EphyEmbedShell before because some + * services depend on xpcom */ + G_OBJECT_CLASS (parent_class)->finalize (object); + g_return_if_fail (object != NULL); g_return_if_fail (IS_MOZILLA_EMBED_SHELL (object)); @@ -498,8 +502,6 @@ mozilla_embed_shell_finalize (GObject *object) gtk_moz_embed_pop_startup (); g_free (mes->priv); - - G_OBJECT_CLASS (parent_class)->finalize (object); } static void -- cgit v1.2.3