Commit 5f8cd8b9 authored by Matthias Clasen's avatar Matthias Clasen

Turn off icon cache validation by default

svn path=/trunk/; revision=18823
parent 0c8ef275
2007-09-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcache.c: Turn off icon cache validation unless
icon theme debugging is turned on.
2007-09-13 Matthias Clasen <mclasen@redhat.com> 2007-09-13 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version to 2.12.1 * configure.in: Bump version to 2.12.1
......
...@@ -127,14 +127,19 @@ _gtk_icon_cache_new_for_path (const gchar *path) ...@@ -127,14 +127,19 @@ _gtk_icon_cache_new_for_path (const gchar *path)
info.n_directories = 0; info.n_directories = 0;
info.flags = CHECK_OFFSETS|CHECK_STRINGS; 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); if (!_gtk_icon_cache_validate (&info))
g_warning ("Icon cache '%s' is invalid\n", cache_filename); {
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)); GTK_NOTE (ICONTHEME, g_print ("found cache for %s\n", path));
cache = g_new0 (GtkIconCache, 1); cache = g_new0 (GtkIconCache, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment