[gdk-pixbuf] Fix loader.cache detection on win32
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] Fix loader.cache detection on win32
- Date: Fri, 5 Nov 2010 23:41:25 +0000 (UTC)
commit 4b9cde87c74cd0547ace6281f936243fd99017ac
Author: Kazuki Iwamoto <iwm maid org>
Date: Fri Nov 5 19:40:33 2010 -0400
Fix loader.cache detection on win32
Bug 631295
gdk-pixbuf/gdk-pixbuf-io.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index d9d4c8e..6a5dbce 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -256,18 +256,18 @@ get_toplevel (void)
}
static char *
-get_sysconfdir (void)
+get_libdir (void)
{
- static char *sysconfdir = NULL;
+ static char *libdir = NULL;
- if (sysconfdir == NULL)
- sysconfdir = g_build_filename (get_toplevel (), "etc", NULL);
+ if (libdir == NULL)
+ libdir = g_build_filename (get_toplevel (), "lib", NULL);
- return sysconfdir;
+ return libdir;
}
-#undef GDK_PIXBUF_SYSCONFDIR
-#define GDK_PIXBUF_SYSCONFDIR get_sysconfdir()
+#undef GDK_PIXBUF_LIBDIR
+#define GDK_PIXBUF_LIBDIR get_libdir()
static void
correct_prefix (gchar **path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]