summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-12 17:16:32 -0700
committerJohn Stebbins <[email protected]>2016-03-12 17:17:35 -0700
commitf2e320ae17cbc10a0c621d717ab78a54ff9e3eb1 (patch)
treef0bce110e9a0dfb293c3455bb302796f9a2153ab
parentdcf215dccefa9128a02ec1790a967bd25a427c06 (diff)
LinGui: make gdk pixbuf loaders work under mingw
Makes my icons work on windows :)
-rw-r--r--gtk/src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index ac14413f2..cd23dae2c 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -814,6 +814,11 @@ main(int argc, char *argv[])
GError *error = NULL;
GOptionContext *context;
+#if defined(_WIN32)
+ // Tell gdk pixbuf where it's loader config file is.
+ _putenv_s("GDK_PIXBUF_MODULE_FILE", "ghb.exe.local/loaders.cache");
+#endif
+
hb_global_init();
#ifdef ENABLE_NLS