summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Cardona <remi@gentoo.org>2007-09-21 18:58:29 +0000
committerRemi Cardona <remi@gentoo.org>2007-09-21 18:58:29 +0000
commit21ed120309643c5857def5e6dc0c8d12f7abd9ab (patch)
treeee13e1217b2b1b644597decc229f4361abf4a594 /x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch
parentalpha stable wrt #193251 (diff)
downloadhistorical-21ed120309643c5857def5e6dc0c8d12f7abd9ab.tar.gz
historical-21ed120309643c5857def5e6dc0c8d12f7abd9ab.tar.bz2
historical-21ed120309643c5857def5e6dc0c8d12f7abd9ab.zip
Add x11-libs/gtk+-2.12.0 (Gnome 2.20)
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch')
-rw-r--r--x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch b/x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch
new file mode 100644
index 000000000000..99311df5fd96
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-2.12.0-icon-cache-speedup.patch
@@ -0,0 +1,28 @@
+diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gtk+-2.12.0.orig/gtk/gtkiconcache.c gtk+-2.12.0/gtk/gtkiconcache.c
+--- gtk+-2.12.0.orig/gtk/gtkiconcache.c 2007-09-13 16:35:41.000000000 -0400
++++ gtk+-2.12.0/gtk/gtkiconcache.c 2007-09-14 15:33:01.000000000 -0400
+@@ -127,14 +127,19 @@ _gtk_icon_cache_new_for_path (const gcha
+ 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);