diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-07 20:52:08 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-07 20:52:08 +0000 |
commit | 33c48cfcd90f838df5ec2a896b40d70c48e2d48f (patch) | |
tree | 74b83b2f3b004cd6ad0270b6bb1f1e78b537c28c /amiga/menu.c | |
parent | 2aee9f4c09491a994f1000e04fe9daf9b9806998 (diff) | |
download | netsurf-33c48cfcd90f838df5ec2a896b40d70c48e2d48f.tar.gz netsurf-33c48cfcd90f838df5ec2a896b40d70c48e2d48f.tar.bz2 |
Start of local history window in Amiga build; doesn't work yet
svn path=/trunk/netsurf/; revision=6727
Diffstat (limited to 'amiga/menu.c')
-rwxr-xr-x | amiga/menu.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/amiga/menu.c b/amiga/menu.c index 93f5380b5..067f3187f 100755 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -89,11 +89,11 @@ void ami_init_menulabs(void) menulab[20] = ami_utf8_easy((char *)messages_get("ClearNS")); menulab[21] = ami_utf8_easy((char *)messages_get("Browser")); menulab[22] = ami_utf8_easy((char *)messages_get("FindTextNS")); - menulab[23] = ami_utf8_easy((char *)messages_get("size")); + menulab[23] = NM_BARLABEL; menulab[24] = ami_utf8_easy((char *)messages_get("normal")); - menulab[25] = ami_utf8_easy((char *)messages_get("double")); - menulab[26] = NM_BARLABEL; - menulab[27] = ami_utf8_easy((char *)messages_get("HistGlobalNS")); + menulab[25] = ami_utf8_easy((char *)messages_get("HistLocal")); + menulab[26] = ami_utf8_easy((char *)messages_get("HistGlobalNS")); + menulab[27] = NM_BARLABEL; menulab[28] = ami_utf8_easy((char *)messages_get("ShowCookies")); menulab[29] = ami_utf8_easy((char *)messages_get("Hotlist")); menulab[30] = ami_utf8_easy((char *)messages_get("HotlistAdd")); @@ -136,11 +136,11 @@ struct NewMenu *ami_create_menu(ULONG type) { NM_ITEM,0,"Z",0,0,0,}, // clear selection {NM_TITLE,0,0,0,0,0,}, // browser { NM_ITEM,0,"F",0,0,0,}, // find in page - { NM_ITEM,0,0,0,0,0,}, // size - { NM_SUB,0,0,0,0,0,}, // normal - { NM_SUB,0,0,0,0,0,}, // double + {NM_IGNORE,0,0,0,0,0,}, // size { NM_ITEM,NM_BARLABEL,0,0,0,0,}, + { NM_ITEM,0,0,0,0,0,}, // local history { NM_ITEM,0,0,0,0,0,}, // global history + { NM_ITEM,NM_BARLABEL,0,0,0,0,}, { NM_ITEM,0,0,0,0,0,}, // cookies {NM_TITLE,0,0,0,0,0,}, // hotlist { NM_ITEM,0,0,0,0,0,}, // add to hotlist @@ -591,11 +591,16 @@ void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item) } break; + case 2: // local history + if(gwin->bw && gwin->bw->history) + ami_history_open(gwin->bw, gwin->bw->history); + break; + case 3: // global history ami_open_tree(global_history_tree,AMI_TREE_HISTORY); break; - case 4: // cookies tree + case 5: // cookies tree ami_open_tree(cookies_tree,AMI_TREE_COOKIES); break; } |