aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-favicon-cache.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-01 01:59:32 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-01 01:59:32 +0800
commit383b14ee06a64bcdc7ec310dc1797be1d7d6d20e (patch)
tree65dc5232b79f7c335a062512255ff2db3b3a6d79 /embed/ephy-favicon-cache.h
parentcbbf7c86bcc83b0225dd37272d4c1740641a2980 (diff)
downloadgsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar.gz
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar.bz2
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar.lz
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar.xz
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.tar.zst
gsoc2013-epiphany-383b14ee06a64bcdc7ec310dc1797be1d7d6d20e.zip
Remove cancelled downloads from the downloads hash; and remove partially
2004-02-29 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_class_init), (kill_download), (ephy_favicon_cache_finalize), (favicon_name_build), (favicon_download_completed_cb), (favicon_download_cancelled_cb), (ephy_favicon_cache_download), (ephy_favicon_cache_get): * embed/ephy-favicon-cache.h: Remove cancelled downloads from the downloads hash; and remove partially downloaded favicons.
Diffstat (limited to 'embed/ephy-favicon-cache.h')
-rw-r--r--embed/ephy-favicon-cache.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/embed/ephy-favicon-cache.h b/embed/ephy-favicon-cache.h
index 6c6958228..c4f229ccc 100644
--- a/embed/ephy-favicon-cache.h
+++ b/embed/ephy-favicon-cache.h
@@ -1,5 +1,7 @@
/*
* Copyright (C) 2002 Jorn Baayen
+ * Copyright (C) 2003-2004 Marco Pesenti Gritti
+ * Copyright (C) 2004 Christian Persch
*
* 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
@@ -18,12 +20,12 @@
* $Id$
*/
+#ifndef EPHY_FAVICON_CACHE_H
+#define EPHY_FAVICON_CACHE_H
+
#include <glib-object.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
-#ifndef __EPHY_FAVICON_CACHE_H
-#define __EPHY_FAVICON_CACHE_H
-
G_BEGIN_DECLS
#define EPHY_TYPE_FAVICON_CACHE (ephy_favicon_cache_get_type ())
@@ -33,37 +35,34 @@ G_BEGIN_DECLS
#define EPHY_IS_FAVICON_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_FAVICON_CACHE))
#define EPHY_FAVICON_CACHE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_FAVICON_CACHE, EphyFaviconCacheClass))
-typedef struct EphyFaviconCachePrivate EphyFaviconCachePrivate;
+typedef struct EphyFaviconCacheClass EphyFaviconCacheClass;
+typedef struct EphyFaviconCache EphyFaviconCache;
+typedef struct EphyFaviconCachePrivate EphyFaviconCachePrivate;
-enum
-{
- EPHY_NODE_FAVICON_PROP_URL = 2,
- EPHY_NODE_FAVICON_PROP_FILENAME = 3,
- EPHY_NODE_FAVICON_PROP_LAST_USED = 4
-};
-
-typedef struct
+struct EphyFaviconCache
{
GObject parent;
/*< private >*/
EphyFaviconCachePrivate *priv;
-} EphyFaviconCache;
+};
-typedef struct
+struct EphyFaviconCacheClass
{
GObjectClass parent_class;
- void (*changed) (EphyFaviconCache *cache, const char *url);
-} EphyFaviconCacheClass;
+ /* Signals */
+ void (*changed) (EphyFaviconCache *cache,
+ const char *url);
+};
-GType ephy_favicon_cache_get_type (void);
+GType ephy_favicon_cache_get_type (void);
-EphyFaviconCache *ephy_favicon_cache_new (void);
+EphyFaviconCache *ephy_favicon_cache_new (void);
-GdkPixbuf *ephy_favicon_cache_get (EphyFaviconCache *cache,
- const char *url);
+GdkPixbuf *ephy_favicon_cache_get (EphyFaviconCache *cache,
+ const char *url);
G_END_DECLS
-#endif /* __EPHY_FAVICON_CACHE_H */
+#endif /* EPHY_FAVICON_CACHE_H */