Rev 7943 | Rev 7970 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7943 | Rev 7945 | ||
---|---|---|---|
Line 459... | Line 459... | ||
459 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
459 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
460 | open_new_window = false; |
460 | open_new_window = false; |
461 | return; |
461 | return; |
462 | case COPY_LINK_URL: |
462 | case COPY_LINK_URL: |
463 | strncpy(#new_clip_url, PageLinks.GetURL(PageLinks.active), URL_SIZE); |
463 | strncpy(#new_clip_url, PageLinks.GetURL(PageLinks.active), URL_SIZE); |
464 | if ( strcmp(#new_clip_url, "./", 2) ) |
- | |
465 | { |
- | |
466 | Clipboard__CopyText( GetAbsoluteURL(#new_clip_url, history.current()) ); |
464 | GetAbsoluteURL(#new_clip_url, history.current()); |
467 | } |
- | |
468 | else { |
- | |
469 | Clipboard__CopyText( PageLinks.GetURL(PageLinks.active) ); |
465 | Clipboard__CopyText(#new_clip_url); |
470 | } |
- | |
471 | notify("'URL copied to clipboard'O"); |
466 | notify("'URL copied to clipboard'O"); |
472 | return; |
467 | return; |
473 | case DOWNLOAD_LINK_CONTENTS: |
468 | case DOWNLOAD_LINK_CONTENTS: |
474 | if (!downloader_opened) { |
469 | if (!downloader_opened) { |
475 | strcpy(#downloader_edit, PageLinks.GetURL(PageLinks.active)); |
470 | strcpy(#downloader_edit, PageLinks.GetURL(PageLinks.active)); |
476 | if ( strcmp(#downloader_edit, "./", 2) ) |
- | |
477 | { |
- | |
478 | GetAbsoluteURL(#downloader_edit, history.current()); |
471 | GetAbsoluteURL(#downloader_edit, history.current()); |
479 | } |
- | |
480 | CreateThread(#Downloader,#downloader_stak+4092); |
472 | CreateThread(#Downloader,#downloader_stak+4092); |
481 | } |
473 | } |
482 | return; |
474 | return; |
483 | case OPEN_FILE: |
475 | case OPEN_FILE: |
484 | EventOpenDialog(); |
476 | EventOpenDialog(); |
Line 546... | Line 538... | ||
546 | 538 | ||
547 | bool HandleUrlFiles(dword _path, _data) |
539 | bool HandleUrlFiles(dword _path, _data) |
548 | { |
540 | { |
549 | dword url_from_file; |
541 | dword url_from_file; |
550 | if (!UrlExtIs(_path, "url")) return false; |
542 | if (!UrlExtIs(_path, "url")) return false; |
551 | url_from_file = strstri(_data, "URL="); |
- | |
552 | if (url_from_file == -1) return false; |
543 | if (! url_from_file = strstri(_data, "URL=")) return false; |
553 | replace_char(url_from_file, '\n', '\0', strlen(url_from_file)); |
544 | replace_char(url_from_file, '\n', '\0', strlen(url_from_file)); |
- | 545 | OpenPage(url_from_file); |
|
554 | OpenPage(url_from_file); |
546 | return true; |
Line 555... | Line 547... | ||
555 | } |
547 | } |
556 | 548 | ||
557 | bool GetLocalFileData(dword _path) |
549 | bool GetLocalFileData(dword _path) |