g_slice_free(ImageCache, ic);
}
+void
+image_cache_set_size(ImageCache *ic, guint cache_size)
+{
+guint old;
+
+old=ic->cache_max;
+ic->cache_max=cache_size;
+if (old>cache_size)
+ image_cache_gc(ic, cache_size);
+}
+
static void
image_cache_stats(ImageCache *ic)
{
ImageCache *image_cache_new(guint cache_max);
void image_cache_free(ImageCache *ic);
void image_cache_clear(ImageCache *ic);
+void image_cache_set_size(ImageCache *ic, guint cache_size);
void image_cache_gc(ImageCache *ic, gint max);
void image_cache_invalidate(ImageCache *ic, const gchar *key);
void image_cache_invalidate_by_image(ImageCache *ic, GdkPixbuf *pixbuf);