From b2376c1656e7cd39bc2a6243189a8a8126370c18 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 13 Feb 2010 17:31:10 +0000 Subject: Proper download notification code, should also open the file if the notification is double-clicked, although it doesn't seem to work. svn path=/trunk/netsurf/; revision=10037 --- amiga/gui.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index d787f6dcc..b1c23376b 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1,5 +1,5 @@ /* - * Copyright 2008-9 Chris Young + * Copyright 2008-2010 Chris Young * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -81,6 +81,8 @@ #include #include #include +#include +#include #include "amiga/stringview/stringview.h" #include "amiga/stringview/urlhistory.h" @@ -130,7 +132,6 @@ ULONG throbber_width,throbber_height,throbber_frames,throbber_update_interval; BOOL rmbtrapped; BOOL locked_screen = FALSE; BOOL screen_closed = FALSE; -uint32 ami_appid; struct MsgPort *applibport = NULL; ULONG applibsig = 0; @@ -732,6 +733,7 @@ void gui_init2(int argc, char** argv) REGAPP_HasPrefsWindow, TRUE, REGAPP_CanCreateNewDocs, TRUE, REGAPP_UniqueApplication, TRUE, + REGAPP_Description, "Small as a mouse, fast as a cheetah and available for free. NetSurf is a multi-platform web browser.", TAG_DONE); } else @@ -744,6 +746,7 @@ void gui_init2(int argc, char** argv) REGAPP_HasPrefsWindow, TRUE, REGAPP_CanCreateNewDocs, TRUE, REGAPP_UniqueApplication, TRUE, + REGAPP_Description, "Small as a mouse, fast as a cheetah and available for free. NetSurf is a multi-platform web browser.", TAG_DONE); } @@ -1699,6 +1702,18 @@ void ami_handle_applib(void) case APPLIBMT_ForceQuit: ami_quit_netsurf(); break; + + case APPLIBMT_CustomMsg: + { + struct ApplicationCustomMsg *applibcustmsg = applibmsg; + STRPTR tempmsg; + if(tempmsg = ASPrintf("\"%s\"",applibcustmsg->customMsg)) + { + OpenWorkbenchObjectA(tempmsg, NULL); + FreeVec(tempmsg); + } + } + break; } ReplyMsg((struct Message *)applibmsg); } -- cgit v1.2.3