diff options
author | John Stebbins <[email protected]> | 2016-03-12 17:16:32 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-12 17:17:35 -0700 |
commit | f2e320ae17cbc10a0c621d717ab78a54ff9e3eb1 (patch) | |
tree | f0bce110e9a0dfb293c3455bb302796f9a2153ab /gtk/src | |
parent | dcf215dccefa9128a02ec1790a967bd25a427c06 (diff) |
LinGui: make gdk pixbuf loaders work under mingw
Makes my icons work on windows :)
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/main.c | 5 |
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 |