Rev 7936 | Rev 7945 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7936 | Rev 7943 | ||
---|---|---|---|
Line 386... | Line 386... | ||
386 | } |
386 | } |
Line 387... | Line 387... | ||
387 | 387 | ||
388 | 388 | ||
- | 389 | void ProcessEvent(dword id__) |
|
389 | void ProcessEvent(dword id__) |
390 | { |
390 | { |
391 | char new_clip_url[URL_SIZE+1]; |
391 | switch (id__) |
392 | switch (id__) |
392 | { |
393 | { |
393 | case ENCODINGS...ENCODINGS+6: |
394 | case ENCODINGS...ENCODINGS+6: |
Line 457... | Line 458... | ||
457 | open_new_window = true; |
458 | open_new_window = true; |
458 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
459 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
459 | open_new_window = false; |
460 | open_new_window = false; |
460 | return; |
461 | return; |
461 | case COPY_LINK_URL: |
462 | case COPY_LINK_URL: |
- | 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()) ); |
|
- | 467 | } |
|
- | 468 | else { |
|
462 | Clipboard__CopyText(PageLinks.GetURL(PageLinks.active)); |
469 | Clipboard__CopyText( PageLinks.GetURL(PageLinks.active) ); |
- | 470 | } |
|
463 | notify("'URL copied to clipboard'O"); |
471 | notify("'URL copied to clipboard'O"); |
464 | return; |
472 | return; |
465 | case DOWNLOAD_LINK_CONTENTS: |
473 | case DOWNLOAD_LINK_CONTENTS: |
466 | if (!downloader_opened) { |
474 | if (!downloader_opened) { |
467 | strcpy(#downloader_edit, PageLinks.GetURL(PageLinks.active)); |
475 | strcpy(#downloader_edit, PageLinks.GetURL(PageLinks.active)); |
- | 476 | if ( strcmp(#downloader_edit, "./", 2) ) |
|
- | 477 | { |
|
- | 478 | GetAbsoluteURL(#downloader_edit, history.current()); |
|
- | 479 | } |
|
468 | CreateThread(#Downloader,#downloader_stak+4092); |
480 | CreateThread(#Downloader,#downloader_stak+4092); |
469 | } |
481 | } |
470 | return; |
482 | return; |
471 | case OPEN_FILE: |
483 | case OPEN_FILE: |
472 | EventOpenDialog(); |
484 | EventOpenDialog(); |