Add context menu for plain text content.

All non-HTML contents now have context menus activated

svn path=/trunk/netsurf/; revision=12922
This commit is contained in:
Chris Young 2011-10-02 16:46:21 +00:00
parent 71552e84d8
commit 602c2502e7

View File

@ -489,6 +489,12 @@ void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y)
menuhascontent = true; menuhascontent = true;
} }
if(content_get_type(cc) == CONTENT_TEXTPLAIN)
{
ami_context_menu_add_submenu(ctxmenuobj, CMSUB_SEL, gwin->bw);
menuhascontent = true;
}
if(content_get_type(cc) == CONTENT_HTML) if(content_get_type(cc) == CONTENT_HTML)
{ {
curbox = html_get_box_tree(gwin->bw->current_content); curbox = html_get_box_tree(gwin->bw->current_content);