Call win api ShellExecute to open url in default browser.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3350
b64f7644-9d1e-0410-96f1-
a4d463321fa5
static void
browse_url(const gchar *url)
{
+#if defined(_WIN32)
+ HINSTANCE r;
+ r = ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
+#else
gboolean result;
char *argv[] =
{"xdg-open",NULL,NULL,NULL};
argv[2] = NULL;
result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL,
NULL, NULL, NULL);
+#endif
}
void