mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Update to new API
svn path=/trunk/netsurf/; revision=12557
This commit is contained in:
parent
a6d4f9cb30
commit
b415e6dabc
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user