more futile attempts to get the copy option to behave

This commit is contained in:
Chris Young 2013-05-12 20:33:06 +01:00
parent 6d7adac89e
commit 94205ed48c

View File

@ -639,11 +639,6 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
if(nsoption_bool(kiosk_mode) == true) return;
OffMenu(win,AMI_MENU_CUT);
OffMenu(win,AMI_MENU_COPY);
OffMenu(win,AMI_MENU_PASTE);
OffMenu(win,AMI_MENU_CLEAR);
if(content_get_type(c) <= CONTENT_CSS)
{
OnMenu(win,AMI_MENU_SAVEAS_TEXT);
@ -655,13 +650,20 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
{
OnMenu(win,AMI_MENU_COPY);
OnMenu(win,AMI_MENU_CLEAR);
} else {
OffMenu(win,AMI_MENU_COPY);
OffMenu(win,AMI_MENU_CLEAR);
}
if(browser_window_get_editor_flags(g->shared->bw) & BW_EDITOR_CAN_CUT)
OnMenu(win,AMI_MENU_CUT);
else
OffMenu(win,AMI_MENU_CUT);
if(browser_window_get_editor_flags(g->shared->bw) & BW_EDITOR_CAN_PASTE)
OnMenu(win,AMI_MENU_PASTE);
else
OffMenu(win,AMI_MENU_PASTE);
OnMenu(win,AMI_MENU_SELECTALL);
OnMenu(win,AMI_MENU_FIND);
@ -669,6 +671,10 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
}
else
{
OffMenu(win,AMI_MENU_CUT);
OffMenu(win,AMI_MENU_PASTE);
OffMenu(win,AMI_MENU_CLEAR);
OffMenu(win,AMI_MENU_SAVEAS_TEXT);
OffMenu(win,AMI_MENU_SAVEAS_COMPLETE);
#ifdef WITH_PDF_EXPORT
@ -688,6 +694,7 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
}
else
{
OffMenu(win,AMI_MENU_COPY);
OffMenu(win,AMI_MENU_SAVEAS_IFF);
}
}