summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-02-13 17:31:10 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-02-13 17:31:10 +0000
commitb2376c1656e7cd39bc2a6243189a8a8126370c18 (patch)
treea115ade28c6d058dd60ba1896e3b506d5ce15b0c /amiga/gui.c
parent30e97149ef74cd6513359beb3334da48fe6d473a (diff)
downloadnetsurf-b2376c1656e7cd39bc2a6243189a8a8126370c18.tar.gz
netsurf-b2376c1656e7cd39bc2a6243189a8a8126370c18.tar.bz2
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
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c19
1 files changed, 17 insertions, 2 deletions
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 <chris@unsatisfactorysoftware.co.uk>
+ * Copyright 2008-2010 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
@@ -81,6 +81,8 @@
#include <libraries/application.h>
#include <proto/application.h>
#include <desktop/searchweb.h>
+#include <proto/wb.h>
+#include <proto/utility.h>
#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);
}