From 523609c8f5f7840d3465f89dd084d6139858cbce Mon Sep 17 00:00:00 2001 From: Matt Housh Date: Mon, 17 Sep 2007 14:25:13 -0500 Subject: [PATCH] gtk: added missing iconcache patch, oops --- gtk/gtkiconcache.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gtk/gtkiconcache.patch diff --git a/gtk/gtkiconcache.patch b/gtk/gtkiconcache.patch new file mode 100644 index 000000000..245ec11ef --- /dev/null +++ b/gtk/gtkiconcache.patch @@ -0,0 +1,27 @@ +--- trunk/gtk/gtkiconcache.c 2007/09/14 01:01:59 18822 ++++ trunk/gtk/gtkiconcache.c 2007/09/14 02:11:01 18823 +@@ -127,14 +127,19 @@ + 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);