From 8a77de83772994a21e1287d60e7225878697c61a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 19 Dec 2009 15:57:53 +0000 Subject: Save favicon as part of icon for save_complete drawers and PDFs svn path=/trunk/netsurf/; revision=9744 --- amiga/menu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'amiga/menu.c') diff --git a/amiga/menu.c b/amiga/menu.c index 7ceb9191d..e3da503a0 100755 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -48,6 +48,7 @@ #include "content/fetch.h" #include "amiga/gui_options.h" #include "amiga/print.h" +#include "amiga/download.h" BOOL menualreadyinit; const char * const netsurf_version; @@ -514,6 +515,8 @@ void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item) UnLock(lock); save_complete(gwin->bw->current_content,fname); SetComment(fname,gwin->bw->current_content->url); + ami_superimpose_favicon(fname, + gwin->bw->window->favicon, NULL); } ami_update_pointer(gwin->win,GUI_POINTER_DEFAULT); } @@ -532,6 +535,8 @@ void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item) ami_update_pointer(gwin->win,GUI_POINTER_WAIT); save_as_pdf(gwin->bw->current_content,fname); SetComment(fname,gwin->bw->current_content->url); + ami_superimpose_favicon(fname, + gwin->bw->window->favicon, "pdf"); ami_update_pointer(gwin->win,GUI_POINTER_DEFAULT); } #endif -- cgit v1.2.3