mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Granting some dude's wish.
This commit is contained in:
parent
c947a7da15
commit
ba7177f6c6
@ -4426,6 +4426,9 @@ by @NAME@'s plug-ins or @NAME@'s helper applications.
|
||||
*popup.openFrameInWindow.mnemonic: i
|
||||
*popup.editLink.labelString: Open Link in Composer
|
||||
*popup.editLink.mnemonic: e
|
||||
*popup.fileBookmarksSubmenu.labelString: File Bookmark
|
||||
*popup.fileBookmarksSubmenu.mnemonic: l
|
||||
|
||||
! ------------------------
|
||||
! back
|
||||
! forward
|
||||
|
@ -35,6 +35,11 @@
|
||||
#ifdef EDITOR
|
||||
#include "EditorFrame.h"
|
||||
#endif
|
||||
|
||||
#ifdef XFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
#include "BookmarkMenu.h" // Need for file bookmark generate function
|
||||
#endif
|
||||
|
||||
#include "bkmks.h"
|
||||
#include "net.h"
|
||||
#include "layers.h"
|
||||
@ -219,6 +224,22 @@ MenuSpec XFE_HTMLView::copyImage_spec[] = {
|
||||
{ NULL },
|
||||
};
|
||||
|
||||
#ifdef XFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
MenuSpec XFE_HTMLView::fileBookmark_spec[] =
|
||||
{
|
||||
{
|
||||
"fileBookmarksSubmenu",
|
||||
DYNA_FANCY_CASCADEBUTTON,
|
||||
NULL,
|
||||
NULL,
|
||||
False,
|
||||
(void *) True, // Only headers
|
||||
XFE_BookmarkMenu::generate
|
||||
},
|
||||
{ NULL },
|
||||
};
|
||||
#endif
|
||||
|
||||
extern Boolean fe_IsPageLoaded (MWContext *context);
|
||||
|
||||
XFE_HTMLView::XFE_HTMLView(XFE_Component *toplevel_component,
|
||||
@ -2051,6 +2072,10 @@ XFE_HTMLView::doPopup(MWContext *context, CL_Layer *layer,
|
||||
if (isFrame) ADD_SPEC ( openFrameNew_spec );
|
||||
#ifdef EDITOR
|
||||
if (isBrowserLink) ADD_SPEC ( openLinkEdit_spec );
|
||||
#endif
|
||||
#ifdef XFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
ADD_MENU_SEPARATOR;
|
||||
if (isBrowserLink) ADD_SPEC ( fileBookmark_spec );
|
||||
#endif
|
||||
ADD_MENU_SEPARATOR;
|
||||
if (isBrowser) ADD_SPEC ( page_details_spec );
|
||||
|
@ -125,6 +125,10 @@ private:
|
||||
static MenuSpec copyLink_spec[];
|
||||
static MenuSpec copyImage_spec[];
|
||||
|
||||
#ifdef XFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
static MenuSpec fileBookmark_spec[];
|
||||
#endif
|
||||
|
||||
URL_Struct *m_urlUnderMouse;
|
||||
URL_Struct *m_imageUnderMouse;
|
||||
URL_Struct *m_backgroundUnderMouse;
|
||||
|
@ -286,6 +286,10 @@ ifdef XFE_PREF_ADVANCED_PASSIVE_FTP
|
||||
DEFINES += -DXFE_PREF_ADVANCED_PASSIVE_FTP
|
||||
endif
|
||||
|
||||
ifdef XFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
DEFINES += -DXFE_FILE_BOOKMARK_IN_LINK_CONTEXT_MENU
|
||||
endif
|
||||
|
||||
ifdef MOZ_MAIL_NEWS
|
||||
CPPSRCS += \
|
||||
TextEditorView.cpp \
|
||||
|
Loading…
Reference in New Issue
Block a user