summaryrefslogtreecommitdiff
path: root/gtk/gtkiconcache.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-09-14 02:11:01 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-09-14 02:11:01 +0000
commit5f8cd8b9fb473e18228e9c5af731ced283430d67 (patch)
treef23dbf94edddfed71b958f94ac641500cfece4af /gtk/gtkiconcache.c
parent0c8ef27591e8310607d1dc2455fbb457e50fef96 (diff)
downloadgtk+-5f8cd8b9fb473e18228e9c5af731ced283430d67.tar.gz
Turn off icon cache validation by default
svn path=/trunk/; revision=18823
Diffstat (limited to 'gtk/gtkiconcache.c')
-rw-r--r--gtk/gtkiconcache.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c
index 7cce5083ae..021b64c898 100644
--- a/gtk/gtkiconcache.c
+++ b/gtk/gtkiconcache.c
@@ -127,14 +127,19 @@ _gtk_icon_cache_new_for_path (const gchar *path)
info.n_directories = 0;
info.flags = CHECK_OFFSETS|CHECK_STRINGS;
- if (!_gtk_icon_cache_validate (&info))
+#ifdef G_ENABLE_DEBUG
+ if (gtk_debug_flags & GTK_DEBUG_ICONTHEME)
{
- g_mapped_file_free (map);
- g_warning ("Icon cache '%s' is invalid\n", cache_filename);
+ if (!_gtk_icon_cache_validate (&info))
+ {
+ g_mapped_file_free (map);
+ g_warning ("Icon cache '%s' is invalid\n", cache_filename);
- goto done;
+ goto done;
+ }
}
-
+#endif
+
GTK_NOTE (ICONTHEME, g_print ("found cache for %s\n", path));
cache = g_new0 (GtkIconCache, 1);