Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6020 → Rev 6021

/programs/cmm/browser/WebView.c
218,7 → 218,7
http_free stdcall (http_transfer);
http_transfer=0;
GetAbsoluteURL(#URL);
History.back();
history.back();
strcpy(#editURL, #URL);
DrawEditBox();
OpenPage();
225,7 → 225,7
}
else
{
History.add(#URL);
history.add(#URL);
ESI = http_transfer;
bufpointer = ESI.http_msg.content_ptr;
bufsize = ESI.http_msg.content_received;
295,14 → 295,14
{
case SCAN_CODE_BS:
case BACK_BUTTON:
if (History.back()) {
strcpy(#URL, History.current());
if (history.back()) {
strcpy(#URL, history.current());
OpenPage();
}
return;
case FORWARD_BUTTON:
if (History.forward()) {
strcpy(#URL, History.current());
if (history.forward()) {
strcpy(#URL, history.current());
OpenPage();
}
return;
400,7 → 400,7
StopLoading();
souce_mode = false;
strcpy(#editURL, #URL);
History.add(#URL);
history.add(#URL);
if (!strncmp(#URL,"WebView:",8))
{
SetPageDefaults();
498,7 → 498,7
if (http_transfer > 0)
{
StopLoading();
History.back();
history.back();
}
 
strcpy(#URL, PageLinks.GetURL(PageLinks.active));
506,7 → 506,7
if (URL[0] == '#')
{
strcpy(#anchor, #URL+strrchr(#URL, '#'));
strcpy(#URL, History.current());
strcpy(#URL, history.current());
WB1.list.first=WB1.list.count-WB1.list.visible;
ShowPage();
return;
530,15 → 530,15
CreateThread(#Downloader,#downloader_stak+4092);
}
else RunProgram("@open", #URL);
strcpy(#editURL, History.current());
strcpy(#URL, History.current());
strcpy(#editURL, history.current());
strcpy(#URL, history.current());
return;
}
if (!strncmp(#URL,"mailto:", 7))
{
notify(#URL);
strcpy(#editURL, History.current());
strcpy(#URL, History.current());
strcpy(#editURL, history.current());
strcpy(#URL, history.current());
return;
}
OpenPage();
/programs/cmm/browser/history.h
5,15 → 5,15
int t;
free(history_pointer);
history_pointer = malloc(History.items.data_size+256);
history_pointer = malloc(history.items.data_size+256);
strcat(history_pointer, "<html><head><title>History</title></head><body><h1>History</h1>");
strcat(history_pointer, "<h2>Visited pages</h2><blockquote><br>");
for (i=1; i<History.items.count; i++)
for (i=1; i<history.items.count; i++)
{
strcat(history_pointer, " <a href='");
strcat(history_pointer, History.items.get(i));
strcat(history_pointer, history.items.get(i));
strcat(history_pointer, "'>");
strcat(history_pointer, History.items.get(i));
strcat(history_pointer, history.items.get(i));
strcat(history_pointer, "</a><br>");
}
strcat(history_pointer, "</blockquote><h2>Cached images</h2>");