riscos: Try and fix up all the content changes
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
ddfa76b1fc
commit
865844ede7
|
@ -184,7 +184,8 @@ bool artworks_convert(struct content *c)
|
||||||
&used, NULL, NULL);
|
&used, NULL, NULL);
|
||||||
if (used >= 0) {
|
if (used >= 0) {
|
||||||
NSLOG(netsurf, INFO, "Alias$LoadArtWorksModules not defined");
|
NSLOG(netsurf, INFO, "Alias$LoadArtWorksModules not defined");
|
||||||
msg_data.error = messages_get("AWNotSeen");
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = messages_get("AWNotSeen");
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -194,7 +195,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "xos_cli: 0x%x: %s", error->errnum,
|
NSLOG(netsurf, INFO, "xos_cli: 0x%x: %s", error->errnum,
|
||||||
error->errmess);
|
error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -205,7 +207,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "AWRender_FileInitAddress: 0x%x: %s",
|
NSLOG(netsurf, INFO, "AWRender_FileInitAddress: 0x%x: %s",
|
||||||
error->errnum, error->errmess);
|
error->errnum, error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errorcode = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -216,7 +219,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "AWRender_RenderAddress: 0x%x: %s",
|
NSLOG(netsurf, INFO, "AWRender_RenderAddress: 0x%x: %s",
|
||||||
error->errnum, error->errmess);
|
error->errnum, error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -229,7 +233,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "awrender_init: 0x%x : %s",
|
NSLOG(netsurf, INFO, "awrender_init: 0x%x : %s",
|
||||||
error->errnum, error->errmess);
|
error->errnum, error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -245,7 +250,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "AWRender_DocBounds: 0x%x: %s",
|
NSLOG(netsurf, INFO, "AWRender_DocBounds: 0x%x: %s",
|
||||||
error->errnum, error->errmess);
|
error->errnum, error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -261,7 +267,8 @@ bool artworks_convert(struct content *c)
|
||||||
if (!aw->block) {
|
if (!aw->block) {
|
||||||
NSLOG(netsurf, INFO,
|
NSLOG(netsurf, INFO,
|
||||||
"failed to create block for ArtworksRenderer");
|
"failed to create block for ArtworksRenderer");
|
||||||
msg_data.error = messages_get("NoMemory");
|
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||||
|
msg_data.errordata.errormsg = messages_get("NoMemory");
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,8 @@ bool draw_convert(struct content *c)
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLOG(netsurf, INFO, "xdrawfile_bbox: 0x%x: %s",
|
NSLOG(netsurf, INFO, "xdrawfile_bbox: 0x%x: %s",
|
||||||
error->errnum, error->errmess);
|
error->errnum, error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errorcode = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,8 @@ bool sprite_convert(struct content *c)
|
||||||
|
|
||||||
/* check for bad data */
|
/* check for bad data */
|
||||||
if ((int)source_size + 4 != area->used) {
|
if ((int)source_size + 4 != area->used) {
|
||||||
msg_data.error = messages_get("BadSprite");
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errormsg = messages_get("BadSprite");
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -140,7 +141,8 @@ bool sprite_convert(struct content *c)
|
||||||
"xosspriteop_read_sprite_info: 0x%x: %s",
|
"xosspriteop_read_sprite_info: 0x%x: %s",
|
||||||
error->errnum,
|
error->errnum,
|
||||||
error->errmess);
|
error->errmess);
|
||||||
msg_data.error = error->errmess;
|
msg_data.errordata.errorcode = NSERROR_UNKNOWN;
|
||||||
|
msg_data.errordata.errorcode = error->errmess;
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1327,16 +1327,6 @@ static nserror ro_gui_url_bar_res_cb(hlcache_handle *handle,
|
||||||
r->height = content_get_height(handle);
|
r->height = content_get_height(handle);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CONTENT_MSG_QUERY:
|
|
||||||
/** \todo QUERY - Decide what is right here */
|
|
||||||
/* For now, the only safe decision is to cancel the fetch */
|
|
||||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
|
||||||
return NSERROR_OK;
|
|
||||||
|
|
||||||
case CONTENT_MSG_QUERY_FINISHED:
|
|
||||||
/** \todo QUERY - Decide what is right here */
|
|
||||||
return NSERROR_OK;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <oslib/wimp.h>
|
#include <oslib/wimp.h>
|
||||||
|
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
|
#include "utils/nsurl.h"
|
||||||
#include "netsurf/plotters.h"
|
#include "netsurf/plotters.h"
|
||||||
#include "desktop/sslcert_viewer.h"
|
#include "desktop/sslcert_viewer.h"
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ nserror theme_install_callback(struct hlcache_handle *handle,
|
||||||
|
|
||||||
case CONTENT_MSG_ERROR:
|
case CONTENT_MSG_ERROR:
|
||||||
theme_install_close(dialog_theme_install);
|
theme_install_close(dialog_theme_install);
|
||||||
ro_warn_user(event->data.error, 0);
|
ro_warn_user(event->data.errordata.errormsg, 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue