diff options
author | wiz <wiz> | 2007-09-18 10:44:56 +0000 |
---|---|---|
committer | wiz <wiz> | 2007-09-18 10:44:56 +0000 |
commit | c2cc711780bd2c919b6a2cc936e9cb1a7ccd39b2 (patch) | |
tree | b8d425a96069466d5da3abbafd80c6b6b0bd596b /x11/gtk2/patches | |
parent | 9739a490929c2804408bdb9789f4d296c7a6fee6 (diff) | |
download | pkgsrc-c2cc711780bd2c919b6a2cc936e9cb1a7ccd39b2.tar.gz |
Add patch recommended in release announcement:
GtkIconCache now runs _gtk_icon_cache_validate() for every cache loaded. This
causes a big chunk of each icon cache file to be paged in; this makes apps slow
at startup when it is likely that other apps have caused the icon caches to be
paged out.
Bump PKGREVISION.
Diffstat (limited to 'x11/gtk2/patches')
-rw-r--r-- | x11/gtk2/patches/patch-ab | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/gtk2/patches/patch-ab b/x11/gtk2/patches/patch-ab new file mode 100644 index 00000000000..acec918d41f --- /dev/null +++ b/x11/gtk2/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.18 2007/09/18 10:44:57 wiz Exp $ + +http://bugzilla.gnome.org/show_bug.cgi?id=476342 + +From upstream SVN: + Revision 18823 - (view) (annotate) - [select for diffs] + Modified Fri Sep 14 02:11:01 2007 UTC (4 days, 6 hours ago) by matthiasc + File length: 13336 byte(s) + Diff to previous 17898 + + Turn off icon cache validation by default + +--- gtk/gtkiconcache.c.orig 2007-09-13 20:35:41.000000000 +0000 ++++ gtk/gtkiconcache.c +@@ -127,6 +127,9 @@ _gtk_icon_cache_new_for_path (const gcha + info.n_directories = 0; + info.flags = CHECK_OFFSETS|CHECK_STRINGS; + ++#ifdef G_ENABLE_DEBUG ++ if (gtk_debug_flags & GTK_DEBUG_ICONTHEME) ++ { + if (!_gtk_icon_cache_validate (&info)) + { + g_mapped_file_free (map); +@@ -134,6 +137,8 @@ _gtk_icon_cache_new_for_path (const gcha + + goto done; + } ++ } ++#endif + + GTK_NOTE (ICONTHEME, g_print ("found cache for %s\n", path)); + |