]> granicus.if.org Git - handbrake/commitdiff
LinGui: make gdk pixbuf loaders work under mingw
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 13 Mar 2016 00:16:32 +0000 (17:16 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 13 Mar 2016 00:17:35 +0000 (17:17 -0700)
Makes my icons work on windows :)

gtk/src/main.c

index ac14413f25617026a88fc43d70247c9ca325ff35..cd23dae2ce1b08a3e71fdcd47c5b60871446f1f1 100644 (file)
@@ -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