From ef4b7e75c4420550a87387e63a299e46fef9e96d Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 11 Apr 2013 00:51:05 +0200 Subject: Show message box on error. --- atari/hotlist.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/atari/hotlist.c b/atari/hotlist.c index c25640b66..dbf9f1bb1 100755 --- a/atari/hotlist.c +++ b/atari/hotlist.c @@ -44,9 +44,6 @@ #include "atari/gemtk/gemtk.h" #include "atari/res/netsurf.rsh" -//TODO: remove/add guiwin handle on close / open - so that the list -// is kept tiny. - extern GRECT desk_area; struct atari_hotlist hl; @@ -124,7 +121,8 @@ void hotlist_init(void) handle = wind_create(flags, 0, 0, desk_area.g_w, desk_area.g_h); hl.window = gemtk_wm_add(handle, GEMTK_WM_FLAG_DEFAULTS, NULL); if( hl.window == NULL ) { - LOG(("Failed to allocate Hotlist")); + gemtk_msg_box_show(GEMTK_MSG_BOX_ALERT, + "Failed to allocate Hotlist"); return; } wind_set_str(handle, WF_NAME, (char*)messages_get("Hotlist")); -- cgit v1.2.3