From 40c768cec659adb8c94016536b31d175ff998c83 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 25 Jan 2010 12:41:05 +0000 Subject: Notify on download completion using system-wide Ringhio notifications. - Uses ARexx currently due to includes for application.library v53 not having been released. - Shows a download complete message even if failed (but the user would already have seen a warning requester about that) svn path=/trunk/netsurf/; revision=9913 --- amiga/gui_options.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'amiga/gui_options.c') diff --git a/amiga/gui_options.c b/amiga/gui_options.c index a92503ce7..ee605f672 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -1,5 +1,5 @@ /* - * Copyright 2009 Chris Young + * Copyright 2009, 2010 Chris Young * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -362,6 +363,7 @@ void ami_gui_opts_open(void) BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE; BOOL disableanims, animspeeddisabled = FALSE; BOOL scaleselected = option_scale_quality, scaledisabled = FALSE; + BOOL download_notify_disabled = FALSE; char animspeed[10]; struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy; @@ -423,6 +425,12 @@ void ami_gui_opts_open(void) scaleselected = FALSE; } + if(ApplicationBase->lib_Version < 53) + { + download_notify_disabled = TRUE; + option_download_notify = FALSE; + } + fontsans.ta_Name = ASPrintf("%s.font",option_font_sans); fontserif.ta_Name = ASPrintf("%s.font",option_font_serif); fontmono.ta_Name = ASPrintf("%s.font",option_font_mono); @@ -1018,9 +1026,9 @@ void ami_gui_opts_open(void) LAYOUT_AddChild, gow->gadgets[GID_OPTS_NOTIFY] = CheckBoxObject, GA_ID, GID_OPTS_NOTIFY, GA_RelVerify, TRUE, - GA_Disabled, TRUE, + GA_Disabled, download_notify_disabled, GA_Text, gadlab[GID_OPTS_NOTIFY], - GA_Selected, FALSE, //option_download_notify, + GA_Selected, option_download_notify, CheckBoxEnd, LayoutEnd, LAYOUT_AddChild, gow->gadgets[GID_OPTS_DLDIR] = GetFileObject, -- cgit v1.2.3