diff options
author | jstebbins <[email protected]> | 2010-06-04 00:47:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-06-04 00:47:39 +0000 |
commit | 70ee5abfc5b28c7ed2f26ef0ec63a678d3681704 (patch) | |
tree | 80119c12cebcaacddabbe8712e5ba9d19f021d48 | |
parent | c9fbc84b470a17232b0ad70b6f416e9f1ddf56cc (diff) |
LinGui: make Help->Guide work on windows/mingw
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
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index ec29ff6c0..200e77f3d 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3177,6 +3177,10 @@ ghb_log(gchar *log, ...) 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}; @@ -3202,6 +3206,7 @@ browse_url(const gchar *url) argv[2] = NULL; result = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); +#endif } void |