Rev 7920 | Rev 7943 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7920 | Rev 7936 | ||
---|---|---|---|
Line 129... | Line 129... | ||
129 | Downloader(); |
129 | Downloader(); |
130 | ExitProcess(); |
130 | ExitProcess(); |
131 | } else if (!strncmp(#param, "-source ", 8)) { |
131 | } else if (!strncmp(#param, "-source ", 8)) { |
132 | source_mode = true; |
132 | source_mode = true; |
133 | history.add(#param + 8); |
133 | history.add(#param + 8); |
- | 134 | } else if (!strncmp(#param, "-new ", 5)) { |
|
- | 135 | history.add(#param + 5); |
|
134 | } else { |
136 | } else { |
135 | if (GetProcessesCount("WEBVIEW") == 1) { |
137 | if (GetProcessesCount("WEBVIEW") == 1) { |
136 | history.add(#param); |
138 | history.add(#param); |
137 | } else { |
139 | } else { |
138 | shared_url = memopen(#webview_shared, URL_SIZE+1, SHM_OPEN + SHM_WRITE); |
140 | shared_url = memopen(#webview_shared, URL_SIZE+1, SHM_OPEN + SHM_WRITE); |
Line 161... | Line 163... | ||
161 | loop() switch(@WaitEventTimeout(30)) |
163 | loop() switch(@WaitEventTimeout(30)) |
162 | { |
164 | { |
163 | case evMouse: |
165 | case evMouse: |
164 | edit_box_mouse stdcall (#address_box); |
166 | edit_box_mouse stdcall (#address_box); |
165 | mouse.get(); |
167 | mouse.get(); |
166 | if (PageLinks.HoverAndProceed(mouse.x, WB1.list.first + mouse.y, WB1.list.y, WB1.list.first)) |
168 | PageLinks.HoverAndProceed(mouse.x, WB1.list.first + mouse.y, WB1.list.y, WB1.list.first); |
167 | && (mouse.pkm) && (mouse.up) { |
169 | if (PageLinks.active == -1) && (mouse.pkm) && (mouse.up) { |
168 | if (WB1.list.MouseOver(mouse.x, mouse.y)) EventShowPageMenu(); |
170 | if (WB1.list.MouseOver(mouse.x, mouse.y)) EventShowPageMenu(); |
169 | break; |
171 | break; |
170 | } |
172 | } |
171 | if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage(); |
173 | if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage(); |
172 | scrollbar_v_mouse (#scroll_wv); |
174 | scrollbar_v_mouse (#scroll_wv); |
Line 626... | Line 628... | ||
626 | } |
628 | } |
Line 627... | Line 629... | ||
627 | 629 | ||
628 | void EventClickLink(dword _click_URL) |
630 | void EventClickLink(dword _click_URL) |
629 | { |
631 | { |
- | 632 | char new_url[URL_SIZE+1]; |
|
Line 630... | Line 633... | ||
630 | char new_url[URL_SIZE+1]; |
633 | char new_url_full[URL_SIZE+1]; |
631 | 634 | ||
632 | if (open_new_window) { |
635 | if (open_new_window) { |
- | 636 | strncpy(#new_url, _click_URL, sizeof(new_url)); |
|
- | 637 | GetAbsoluteURL(#new_url, history.current()); |
|
633 | strcpy(#new_url, _click_URL); |
638 | strcpy(#new_url_full, "-new "); |
634 | GetAbsoluteURL(#new_url, history.current()); |
639 | strncat(#new_url_full, #new_url, sizeof(new_url_full)); |
635 | RunProgram(#program_path, #new_url); |
640 | RunProgram(#program_path, #new_url_full); |
Line 636... | Line 641... | ||
636 | return; |
641 | return; |
637 | } |
642 | } |