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/ephy-favicon.h | 64 ---------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 embed/ephy-favicon.h (limited to 'embed/ephy-favicon.h') diff --git a/embed/ephy-favicon.h b/embed/ephy-favicon.h deleted file mode 100644 index 97206cde5..000000000 --- a/embed/ephy-favicon.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2002 Jorn Baayen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#include -#include -#include - -#include "ephy-favicon-cache.h" - -#ifndef __EPHY_FAVICON_H -#define __EPHY_FAVICON_H - -G_BEGIN_DECLS - -#define EPHY_TYPE_FAVICON (ephy_favicon_get_type ()) -#define EPHY_FAVICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_FAVICON, EphyFavicon)) -#define EPHY_FAVICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EPHY_TYPE_FAVICON, EphyFaviconClass)) -#define EPHY_IS_FAVICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_FAVICON)) -#define EPHY_IS_FAVICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_FAVICON)) -#define EPHY_FAVICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_FAVICON, EphyFaviconClass)) - -typedef struct EphyFaviconPrivate EphyFaviconPrivate; - -typedef struct -{ - GtkImage parent; - - EphyFaviconPrivate *priv; -} EphyFavicon; - -typedef struct -{ - GtkImageClass parent_class; - - void (*changed) (EphyFavicon *favicon); -} EphyFaviconClass; - -GType ephy_favicon_get_type (void); - -GtkWidget *ephy_favicon_new (const char *url); - -void ephy_favicon_set_url (EphyFavicon *favicon, - const char *url); - -const char *ephy_favicon_get_url (EphyFavicon *favicon); - -G_END_DECLS - -#endif /* __EPHY_FAVICON_H */ -- cgit v1.2.3