From fba46de9cbe8778919f68a7d24e242c7ee3f1331 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 11 Mar 2004 02:19:14 +0000 Subject: [project @ 2004-03-11 02:19:13 by bursa] Add source_data to content structure and remove equivalents from individual contents. svn path=/import/netsurf/; revision=606 --- riscos/menus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'riscos/menus.c') diff --git a/riscos/menus.c b/riscos/menus.c index d874eb13e..dda598b89 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -286,6 +286,8 @@ void ro_gui_menu_selection(wimp_selection *selection) void ro_gui_menu_warning(wimp_message_menu_warning *warning) { + char icon[20] = "file_xxx"; + struct content *c = current_gui->data.browser.bw->current_content; os_error *error; if (warning->selection.items[0] != 0) @@ -304,8 +306,11 @@ void ro_gui_menu_warning(wimp_message_menu_warning *warning) case -1: default: /* Save */ gui_current_save_type = GUI_SAVE_SOURCE; + if (c) + sprintf(icon, "file_%x", + ro_content_filetype(c)); ro_gui_set_icon_string(dialog_saveas, - ICON_SAVE_ICON, "file_faf"); + ICON_SAVE_ICON, icon); ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_PATH, messages_get("SaveSource")); -- cgit v1.2.3