Update to new API

svn path=/trunk/netsurf/; revision=12557
This commit is contained in:
Chris Young 2011-07-02 17:41:25 +00:00
parent a6d4f9cb30
commit b415e6dabc
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y)
(curbox->gadget->type == GADGET_PASSWORD))))
{
BOOL disabled_readonly = selection_read_only(gwin->bw->sel);
BOOL disabled_noselection = !selection_defined(gwin->bw->sel);
BOOL disabled_noselection = !browser_window_has_selection(gwin->bw);
IDoMethod(ctxmenuobj,PM_INSERT,
NewObject(POPUPMENU_GetItemClass(), NULL,

View File

@ -921,7 +921,7 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
#ifdef WITH_PDF_EXPORT
OnMenu(win,AMI_MENU_SAVEAS_PDF);
#endif
if(selection_defined(g->shared->bw->sel))
if(browser_window_has_selection(g->shared->bw))
{
OnMenu(win,AMI_MENU_COPY);
OnMenu(win,AMI_MENU_CLEAR);