comparison 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
comparison
equal deleted inserted replaced
10239:d0558652e0c4 10240:95ca0db2d01d
505 505
506 void wgaim_systray_maximize( GtkWidget *window ) { 506 void wgaim_systray_maximize( GtkWidget *window ) {
507 RestoreWndFromTray(GDK_WINDOW_HWND(window->window)); 507 RestoreWndFromTray(GDK_WINDOW_HWND(window->window));
508 } 508 }
509 509
510 void wgaim_notify_uri(const char *uri) {
511 SHELLEXECUTEINFO sinfo;
512
513 memset(&sinfo, 0, sizeof(sinfo));
514 sinfo.cbSize = sizeof(sinfo);
515 sinfo.fMask = SEE_MASK_CLASSNAME;
516 sinfo.lpVerb = "open";
517 sinfo.lpFile = uri;
518 sinfo.nShow = SW_SHOWNORMAL;
519 sinfo.lpClass = "http";
520
521 /* We'll allow whatever URI schemes are supported by the
522 default http browser.
523 */
524 if(!ShellExecuteEx(&sinfo))
525 gaim_debug_error("wgaim", "Error opening URI: %s error: %d\n", uri, (int)sinfo.hInstApp);
526 }
527
510 void wgaim_init(HINSTANCE hint) { 528 void wgaim_init(HINSTANCE hint) {
511 WORD wVersionRequested; 529 WORD wVersionRequested;
512 WSADATA wsaData; 530 WSADATA wsaData;
513 char *perlenv; 531 char *perlenv;
514 char *newenv; 532 char *newenv;