From a34d841d7964cdf3cef591700ba3e8baaea4723d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 21 Oct 2004 18:44:08 +0000 Subject: Implement for cached themes. 2004-10-21 Matthias Clasen * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Implement for cached themes. * gtk/gtkiconcache.h: * gtk/gtkiconcache.c (_gtk_icon_cache_has_icon): New function. * gtk/updateiconcache.c (scan_directory): Don't skip .icon files which are listed before their images. (foreach_remove_func): Instead filter lonely .icon files out here. * gtk/gtkicontheme.c (theme_dir_get_icon_suffix): Filter out the HAS_ICON_FILE flag. --- gtk/gtkiconcache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkiconcache.h') diff --git a/gtk/gtkiconcache.h b/gtk/gtkiconcache.h index ee9d48aeb3..010ebfe939 100644 --- a/gtk/gtkiconcache.h +++ b/gtk/gtkiconcache.h @@ -26,6 +26,8 @@ typedef struct _GtkIconCache GtkIconCache; GtkIconCache *_gtk_icon_cache_new_for_path (const gchar *path); gboolean _gtk_icon_cache_has_directory (GtkIconCache *cache, const gchar *directory); +gboolean _gtk_icon_cache_has_icon (GtkIconCache *cache, + const gchar *icon_name); void _gtk_icon_cache_add_icons (GtkIconCache *cache, const gchar *directory, GHashTable *hash_table); -- cgit v1.2.1