diff pidgin/win32/gtkwin32dep.c @ 29431:2fc38fb61418

Make the "Execute a command" buddy pounce action use ShellExecute() on Windows so that it can open files of all types (e.g. MP3s) with their default associated application. Fixes #11333.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 14 Feb 2010 06:57:53 +0000
parents d9d388a27d01
children 2ad2e3490b23
line wrap: on
line diff
--- a/pidgin/win32/gtkwin32dep.c	Sun Feb 14 05:55:46 2010 +0000
+++ b/pidgin/win32/gtkwin32dep.c	Sun Feb 14 06:57:53 2010 +0000
@@ -157,6 +157,7 @@
 		wsinfo.lpVerb = w_verb;
 		wsinfo.lpFile = w_uri;
 		wsinfo.nShow = SW_SHOWNORMAL;
+		wsinfo.fMask |= SEE_MASK_FLAG_NO_UI;
 		if (clazz != NULL) {
 			w_clazz = g_utf8_to_utf16(clazz, -1, NULL, NULL, NULL);
 			wsinfo.fMask |= SEE_MASK_CLASSNAME;
@@ -181,6 +182,7 @@
 		sinfo.lpVerb = verb;
 		sinfo.lpFile = locale_uri;
 		sinfo.nShow = SW_SHOWNORMAL;
+		sinfo.fMask |= SEE_MASK_FLAG_NO_UI;
 		if (clazz != NULL) {
 			sinfo.fMask |= SEE_MASK_CLASSNAME;
 			sinfo.lpClass = clazz;