Mercurial > pidgin.yaz
diff src/win32/win32dep.c @ 10240:95ca0db2d01d
[gaim-migrate @ 11377]
Removing trust parameter for gaim_notify_uri (see gaim-devel over past few
days). Removed URI scheme filtering for win32. Instead we'll allow what ever
the default http browser allows.
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Mon, 22 Nov 2004 22:13:12 +0000 |
parents | c1b581074aaf |
children | 20e750dd21a0 |
line wrap: on
line diff
--- a/src/win32/win32dep.c Mon Nov 22 21:56:46 2004 +0000 +++ b/src/win32/win32dep.c Mon Nov 22 22:13:12 2004 +0000 @@ -507,6 +507,24 @@ RestoreWndFromTray(GDK_WINDOW_HWND(window->window)); } +void wgaim_notify_uri(const char *uri) { + SHELLEXECUTEINFO sinfo; + + memset(&sinfo, 0, sizeof(sinfo)); + sinfo.cbSize = sizeof(sinfo); + sinfo.fMask = SEE_MASK_CLASSNAME; + sinfo.lpVerb = "open"; + sinfo.lpFile = uri; + sinfo.nShow = SW_SHOWNORMAL; + sinfo.lpClass = "http"; + + /* We'll allow whatever URI schemes are supported by the + default http browser. + */ + if(!ShellExecuteEx(&sinfo)) + gaim_debug_error("wgaim", "Error opening URI: %s error: %d\n", uri, (int)sinfo.hInstApp); +} + void wgaim_init(HINSTANCE hint) { WORD wVersionRequested; WSADATA wsaData;