Mercurial > pidgin
changeset 10629:d93621a98f12
[gaim-migrate @ 12106]
This was removed when changes were made to specify that the http:// handler should open the file. Judging by the number of bug reports, it is still necessary.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Feb 2005 03:52:55 +0000 |
parents | 7283a335cf23 |
children | 781a0582d35f |
files | src/protocols/msn/notification.c |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Wed Feb 23 02:57:41 2005 +0000 +++ b/src/protocols/msn/notification.c Wed Feb 23 03:52:55 2005 +0000 @@ -972,6 +972,28 @@ g_free(session->passport_info.file); session->passport_info.file = NULL; } + else + { + /* + * Renaming file with .html extension, so that the + * win32 open_url will work. + */ + char *tmp; + + if ((tmp = + g_strdup_printf("%s.html", + session->passport_info.file)) != NULL) + { + if (g_rename(session->passport_info.file, + tmp) == 0) + { + g_free(session->passport_info.file); + session->passport_info.file = tmp; + } + else + g_free(tmp); + } + } } } /**************************************************************************