зеркало из https://github.com/mozilla/gecko-dev.git
Add a few more EDITOR ifdefs
This commit is contained in:
Родитель
b8ac3006fb
Коммит
6919c23c56
|
@ -84,7 +84,9 @@ fe_icon XFE_BookmarkView::openedFolderMenuDest = { 0 };
|
|||
|
||||
MenuSpec XFE_BookmarkView::open_popup_spec[] = {
|
||||
{ xfeCmdOpenLinkNew, PUSHBUTTON },
|
||||
#ifdef EDITOR
|
||||
{ xfeCmdOpenLinkEdit, PUSHBUTTON },
|
||||
#endif
|
||||
MENU_SEPARATOR,
|
||||
{ NULL },
|
||||
};
|
||||
|
@ -414,7 +416,9 @@ XFE_BookmarkView::isCommandEnabled(CommandType cmd, void *calldata,
|
|||
return TRUE;
|
||||
}
|
||||
else if (IS_CMD(xfeCmdOpenLinkNew)
|
||||
#ifdef EDITOR
|
||||
|| IS_CMD(xfeCmdOpenLinkEdit)
|
||||
#endif
|
||||
|| IS_CMD(xfeCmdSaveLink)
|
||||
|| IS_CMD(xfeCmdCopyLink)
|
||||
)
|
||||
|
@ -759,7 +763,9 @@ XFE_BookmarkView::handlesCommand(CommandType cmd, void *calldata,
|
|||
// Popup commands
|
||||
|| IS_CMD(xfeCmdShowPopup)
|
||||
|| IS_CMD(xfeCmdOpenLinkNew)
|
||||
#ifdef EDITOR
|
||||
|| IS_CMD(xfeCmdOpenLinkEdit)
|
||||
#endif
|
||||
|| IS_CMD(xfeCmdSaveLink)
|
||||
|| IS_CMD(xfeCmdCopyLink)
|
||||
)
|
||||
|
|
|
@ -144,10 +144,12 @@ MenuSpec XFE_HTMLView::openFrameNew_spec[] = {
|
|||
{ xfeCmdOpenFrameInWindow , PUSHBUTTON },
|
||||
{ NULL },
|
||||
};
|
||||
#ifdef EDITOR
|
||||
MenuSpec XFE_HTMLView::openLinkEdit_spec[] = {
|
||||
{ xfeCmdOpenLinkEdit, PUSHBUTTON },
|
||||
{ NULL },
|
||||
};
|
||||
#endif
|
||||
MenuSpec XFE_HTMLView::go_spec[] = {
|
||||
{ xfeCmdBack, PUSHBUTTON },
|
||||
{ xfeCmdForward, PUSHBUTTON },
|
||||
|
@ -1274,10 +1276,12 @@ XFE_HTMLView::isCommandEnabled(CommandType cmd, void *calldata, XFE_CommandInfo*
|
|||
{
|
||||
return True;
|
||||
}
|
||||
#ifdef EDITOR
|
||||
else if (IS_CMD(xfeCmdOpenLinkEdit))
|
||||
{
|
||||
return True;
|
||||
}
|
||||
#endif
|
||||
else if (IS_CMD(xfeCmdSaveLink))
|
||||
{
|
||||
return True;
|
||||
|
@ -1386,7 +1390,9 @@ XFE_HTMLView::handlesCommand(CommandType cmd, void *calldata, XFE_CommandInfo*)
|
|||
|| IS_CMD(xfeCmdOpenLinkNew)
|
||||
|| IS_CMD(xfeCmdOpenFrameNew)
|
||||
|| IS_CMD(xfeCmdOpenFrameInWindow)
|
||||
#ifdef EDITOR
|
||||
|| IS_CMD(xfeCmdOpenLinkEdit)
|
||||
#endif
|
||||
|| IS_CMD(xfeCmdSaveLink)
|
||||
|| IS_CMD(xfeCmdCopyLink)
|
||||
|| IS_CMD(xfeCmdCopyImage)
|
||||
|
|
|
@ -1196,7 +1196,10 @@ XFE_CALLBACK_DEFN(XFE_MsgView, showPopup)(XFE_NotificationCenter *,
|
|||
}
|
||||
|
||||
if (isBrowserLink) ADD_SPEC ( openLinkNew_spec );
|
||||
#ifdef EDITOR
|
||||
if (isBrowserLink) ADD_SPEC ( openLinkEdit_spec );
|
||||
#endif
|
||||
|
||||
ADD_MENU_SEPARATOR;
|
||||
|
||||
ADD_SPEC ( repl_spec );
|
||||
|
|
Загрузка…
Ссылка в новой задаче