summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-05-06 01:26:37 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-05-06 01:26:37 +0000
commitf01ebe264894ecba42ae2dadee50f5675bfda68e (patch)
treeae3588050af78554111024732a6b58830fa48d7b /riscos
parent419300753256843b162cfbe8c738f2a294f125aa (diff)
downloadnetsurf-f01ebe264894ecba42ae2dadee50f5675bfda68e.tar.gz
netsurf-f01ebe264894ecba42ae2dadee50f5675bfda68e.tar.bz2
[project @ 2004-05-06 01:26:37 by jmb]
Remove Object->Reload menu entry as it does nothing. Save the correct URL when exporting the URL of an object (previously it saved the URL of the link target (if appropriate) of ofla (if not). Now save the URL of the object. TODO - saving of link targets and their URLs svn path=/import/netsurf/; revision=834
Diffstat (limited to 'riscos')
-rw-r--r--riscos/menus.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/riscos/menus.c b/riscos/menus.c
index 44f12aaac..1c593afb1 100644
--- a/riscos/menus.c
+++ b/riscos/menus.c
@@ -120,14 +120,14 @@ static wimp_MENU(2) object_export_menu = {
/* Object submenu
*/
-static wimp_MENU(5) object_menu = {
+static wimp_MENU(4) object_menu = {
{ "Object" }, 7,2,7,0, 300, 44, 0,
{
{ wimp_MENU_GIVE_WARNING, (wimp_menu *)1, DEFAULT_FLAGS, { "ObjInfo" } },
{ wimp_MENU_GIVE_WARNING, (wimp_menu *)1, DEFAULT_FLAGS, { "ObjSave" } },
{ 0, (wimp_menu *)&object_export_menu, DEFAULT_FLAGS, { "Export" } },
- { wimp_MENU_SEPARATE, (wimp_menu *)&link_menu, DEFAULT_FLAGS, { "SaveURL" } },
- { wimp_MENU_LAST, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "ObjReload" } }
+ { wimp_MENU_LAST /*wimp_MENU_SEPARATE*/, (wimp_menu *)&link_menu, DEFAULT_FLAGS, { "SaveURL" } },
+// { wimp_MENU_LAST, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "ObjReload" } }
}
};
@@ -344,6 +344,16 @@ void ro_gui_create_menu(wimp_menu *menu, int x, int y, gui_window *g)
current_menu_x = x;
current_menu_y = y;
current_gui = g;
+ if (menu != iconbar_menu) {
+ if (find_object_box() == NULL && menu == browser_menu) {
+ menu->entries[1].sub_menu = (wimp_menu*)1;
+ menu->entries[1].icon_flags |= wimp_ICON_SHADED;
+ }
+ else if (menu == browser_menu) {
+ menu->entries[1].sub_menu = (wimp_menu*)&object_menu;
+ menu->entries[1].icon_flags &= ~wimp_ICON_SHADED;
+ }
+ }
wimp_create_menu(menu, x, y);
}
@@ -654,8 +664,9 @@ void ro_gui_menu_warning(wimp_message_menu_warning *warning)
ro_gui_menu_prepare_save(box->object);
error = xwimp_create_sub_menu((wimp_menu *) dialog_saveas,
warning->pos.x, warning->pos.y);
- if (!error && box->href)
- save_link = url_join(box->href, c->url);
+ if (!error/* && box->href*/)
+ save_link = xstrdup(box->object->url);
+// save_link = url_join(box->href, c->url);
}
break;
case MENU_VIEW: /* View -> */