[PATCH] gtkiconcache.c: debug code moved to #ifdef G_ENABLE_DEBUG
- From: Kajtár Zsolt <kajtarzsolt googlemail com>
- To: gtk-devel-list gnome org
- Subject: [PATCH] gtkiconcache.c: debug code moved to #ifdef G_ENABLE_DEBUG
- Date: Sat, 22 Nov 2008 15:26:24 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all!
I was looking around in the GTK+2.0 2.14.4 code and found that there's some
debug code left out from the G_ENABLE_DEBUG ifdef. Here's a patch to fix this:
- --------------------
- --- gtk+2.0-2.14.4/gtk/gtkiconcache.c.orig 2008-11-22 07:35:50.000000000 +0100
+++ gtk+2.0-2.14.4/gtk/gtkiconcache.c 2008-11-22 07:41:05.000000000 +0100
@@ -125,12 +125,12 @@
if (!map)
goto done;
+#ifdef G_ENABLE_DEBUG
info.cache = g_mapped_file_get_contents (map);
info.cache_size = g_mapped_file_get_length (map);
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))
- --------------------
I plan to send a more serious patch for gtkicontheme.c as well.
Is it fine to send it here?
- --
Kajtar Zsolt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkkoFpAACgkQyBOVYiJltRZtwQCgpa3KGiJOZ73CC9KM2yasASgF
Yj8AoOVb6RtJAp0J8Rzo2lsQdBhj3H0J
=z5Ke
-----END PGP SIGNATURE-----
I was looking around in the GTK+2.0 2.14.4 code and found that there's some
debug code left out from the G_ENABLE_DEBUG ifdef. Here's a patch to fix this:
--- gtk+2.0-2.14.4/gtk/gtkiconcache.c.orig 2008-11-22 07:35:50.000000000 +0100
+++ gtk+2.0-2.14.4/gtk/gtkiconcache.c 2008-11-22 07:41:05.000000000 +0100
@@ -125,12 +125,12 @@
if (!map)
goto done;
+#ifdef G_ENABLE_DEBUG
info.cache = g_mapped_file_get_contents (map);
info.cache_size = g_mapped_file_get_length (map);
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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]