Nav links in context menu
Crispin Flowerday <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <1059342697.5610.27.camel@drno> |
Hi, Attached is a copy of the galeon-ui.xml file that will add the navigation links to all the menus. It also makes them closer to what galeon 1 had. You can use it by placing it directly over the top of the existing galeon-ui.xml file. You can see screenshots of the menus at http://patches.theflowerdays.com/screenshots/ The main problem with them is that the menu when an image is also a link is already large and adding the navigation as well makes it huge. tko suggested only adding the back button, but I felt that only adding one of the nav items would make it inconsistent, which is probably worse than have huge context menus. What do people think? PS You will also get the nav items in the sidebar, that requires code changes but I wanted to get peoples thoughts first. -- Crispin http://patches.theflowerdays.com
galeon-ui.xml
(text/xml, 19.9 KB)
<Root>
<commands>
<cmd name="FileNewWindow"
_tip="Open another Galeon window" pixtype="stock" pixname="gtk-new"/>
<cmd name="FileNewTab" _tip="Open a new tab in this window"/>
<cmd name="FileOpen" _label="Open"
_tip="Open a file" pixtype="stock" pixname="gtk-open" accel="*Control*O"/>
<cmd name="FileOpenSession" _label="Open Session..." _tip="Open a session"/>
<cmd name="FileSaveAs" _label="Save As"
_tip="Save the current page with a different name"
pixtype="stock" pixname="gtk-save-as"
accel="*Shift**Control*S"/>
<cmd name="FileOpenURI" _label="Open Location..."
_tip="Open a file from a specified location" pixtype="stock" pixname="gtk-open"/>
<cmd name="FilePrint" _label="Print"
_tip="Print the current page" pixtype="stock" pixname="gtk-print"
accel="*Control*P"/>
<cmd name="FileSendTo"
pixtype="stock" pixname="galeon-send-link"
_tip="Send the address of the current page by Email"/>
<cmd name="ViewPageSource"
pixtype="stock" pixname="galeon-viewsource"
_tip="Show the source of the current page"/>
<cmd name="FileCloseTab" _tip="Close the current page"
pixtype="stock" pixname="gtk-close"/>
<cmd name="EditCut" _label="Cut"
_tip="Cut the selection to the clipboard"
pixtype="stock" pixname="gtk-cut"/>
<cmd name="EditCopy" _label="Copy"
_tip="Copy the selection to the clipboard"
pixtype="stock" pixname="gtk-copy"/>
<cmd name="EditPaste" _label="Paste"
_tip="Paste the selection from the clipboard"
pixtype="stock" pixname="gtk-paste"/>
<cmd name="EditSelectAll" _label="Select All"
_tip="Select the entire page"/>
<cmd name="EditFind" _label="Find"
_tip="Search for a string in the current page"
pixtype="stock" pixname="gtk-find" accel="*Control*F"/>
<cmd name="EditFindNext"
_tip="Find next occurrence of the same string"/>
<cmd name="EditFindPrev"
_tip="Find previous occurrence of the same string"/>
<cmd name="ViewImagesAlways"
_tip="View all images" />
<cmd name="ViewImagesCurrent"
_tip="View images originating from current server only" />
<cmd name="ViewImagesNever"
_tip="Don't view any images" />
<cmd name="AllowImageSite"
_tip="Allow Images from this site to load" />
<cmd name="BlockImageSite"
_tip="Block Images from this site from loading" />
<cmd name="AllowCookieSite"
_tip="Allow Cookies from this site to accepted" />
<cmd name="BlockCookieSite"
_tip="Block Cookies from this site from being accepted" />
<cmd name="AllowPopupSite"
_tip="Allow Popups from this site to be accepted" />
<cmd name="Zoom In" _label="Zoom In"
_tip="Show the contents in more detail"/>
<cmd name="Zoom Out" _label="Zoom Out"
_tip="Show the contents in less detail"/>
<cmd name="Zoom Normal" _label="Normal Size"
_tip="Show the contents at the normal size"/>
<cmd name="SettingsPreferences" _label="Preferences" _tip="Configure the application"
pixtype="stock" pixname="gtk-preferences"/>
<cmd name="ToolsPDM" _tip="Edit your personal data"/>
<cmd name="SettingsToolbarEditor" _label="Toolbar" _tip="Edit the main toolbar"/>
<cmd name="HelpContents" _label="Contents" _tip="Open the Galeon manual"
accel="F1"/>
<cmd name="About" _label="About..." _tip="About this application"
pixtype="stock" pixname="About"/>
<cmd name="BookmarksAddDefault" _label="Add Bookmark"
_tip="Add a bookmark to the default folder"/>
<cmd name="BookmarksEdit" _label="Edit Bookmarks"
_tip="Open a bookmarks editor"/>
<cmd name="GoBack" _label="_Back"
_tip="Go to the previous visited page"
sensitive="0"/>
<cmd name="GoUp" _label="_Up"
_tip="Go up one level"
sensitive="0"/>
<cmd name="GoHome" _label="_Home"
_tip="Go to the home page"/>
<cmd name="GoMyportal" _label="_My Portal"
_tip="Go to the My Portal"/>
<cmd name="GoForward" _label="_Forward"
_tip="Go to the next visited page"
sensitive="0"/>
<cmd name="GoStop" _label="_Stop"
sensitive="0"
_tip="Stop current data transfer"/>
<cmd name="GoReload" _label="_Reload"
_tip="Display the latest content of the current page"/>
<cmd name="GoGo" _label="_Go"
_tip="Load the URL in the location entry"/>
<cmd name="EPOpenInNewWindow" _label="Open in New Window"
_tip="Open the link in a new Galeon window"/>
<cmd name="EPOpenInNewTab" _label="Open in New Tab"
_tip="Open the link in a new tab in this window"/>
<cmd name="EPCopyLinkLocation" _label="Copy Link Address"
_tip="Copy the link address to the clipboard"/>
<cmd name="EPCopyEmail" _label="Copy Email Address"
_tip="Copy the Email address to the clipboard"/>
<cmd name="EPDownloadLink" _label="Download Link"
_tip="Download the link"/>
<cmd name="EPAddBookmark" _label="Add Bookmark"
_tip="Add a bookmark for the link to the default folder"/>
<cmd name="EPOpenImage" _label="Open Image"
_tip="Open the image in this window"/>
<cmd name="EPOpenImageInNewWindow" _label="Open Image in New Window"
_tip="Open the image in a new Galeon window"/>
<cmd name="EPOpenImageInNewTab" _label="Open Image in New Tab"
_tip="Open the image in a new tab in this window"/>
<cmd name="EPSaveImageAs" _label="Save Image As..."
_tip="Save the image"/>
<cmd name="EPSetImageAsBackground" _label="Use Image As Background"
_tip="Use the image as the desktop background image"/>
<cmd name="EPCopyImageLocation" _label="Copy Image Address"
_tip="Copy the image address to the clipboard"/>
<cmd name="EPBlockImageSite" _label="Block Images From This Site"
_tip="Block images from this image's originating host"/>
<cmd name="EPAllowImageSite" _label="Allow Images From This Site"
_tip="Allow images from this image's originating host"/>
<cmd name="DPCopyLocation" _label="Copy Page Address"
_tip="Copy the current page address to the clipboard"/>
<cmd name="DPOpenFrame" _label="Open Frame"
_tip="Open the frame in this window"/>
<cmd name="DPOpenFrameInNewWindow" _label="Open Frame in New Window"
_tip="Open the frame in a new Galeon window"/>
<cmd name="DPOpenFrameInNewTab" _label="Open Frame in New Tab"
_tip="Open the frame in a new tab in this window"/>
<cmd name="DPReloadFrame" _label="Reload Frame"
_tip="Display the latest content of the frame"/>
<cmd name="DPAddFrameBookmark" _label="Add Bookmark for Frame"/>
<cmd name="DPSavePageAs" _label="Save Page As..."/>
<cmd name="DPSaveBackgroundAs" _label="Save Background As..."/>
<cmd name="DPAddPageBookmark" verb="Add Bookmark"/>
<cmd name="PPVGotoFirst" _label="First"/>
<cmd name="PPVGotoLast" _label="Last"/>
<cmd name="PPVGoBack" _label="Previous"/>
<cmd name="PPVGoForward" _label="Next"/>
</commands>
<keybindings>
<accel name="*Control*S" verb="FileSaveAs"/>
<accel name="*Control*KP_Add" verb="Zoom In"/>
<accel name="*Control*KP_Subtract" verb="Zoom Out"/>
</keybindings>
<menu>
<submenu name="File" _label="_File">
<menuitem name="FileNewWindow" verb=""
_label="_New Window"
accel="*Control*n"/>
<menuitem name="FileNewTab" verb="" _label="New _Tab" accel="*Control*t"/>
<menuitem name="FileOpen" verb="" _label="_Open..."/>
<separator/>
<menuitem name="FileSaveAs" verb="" _label="Save _As..."/>
<separator/>
<menuitem name="FilePrint" verb="" _label="_Print..."/>
<menuitem name="FileSendTo" verb=""
_label="_Send Link To..."/>
<menuitem name="Page Source"
_label="_View Source"
verb="ViewPageSource"/>
<separator/>
<menuitem name="FileCloseTab" verb="" _label="_Close" accel="*Control*W"/>
<menuitem name="FileQuit" verb="FileQuit" _label="_Quit" accel="*Control*Q"
_tip="Close all windows and quit" pixtype="stock" pixname="Exit"/>
</submenu>
<submenu name="Edit" _label="_Edit">
<menuitem name="EditCut" verb="" _label="Cu_t" accel="*Control*X"/>
<menuitem name="EditCopy" verb="" _label="_Copy" accel="*Control*c"/>
<menuitem name="EditPaste" verb="" _label="_Paste" accel="*Control*v"/>
<separator/>
<menuitem name="EditSelectAll" verb="" _label="Select _All" accel="*Control*a"/>
<separator/>
<menuitem name="EditFind" verb="" _label="_Find..."/>
<menuitem name="EditFindNext" verb=""
accel="*Control*G" _label="Find Ne_xt"/>
<menuitem name="EditFindPrev" verb=""
accel="*Shift**Control*G" _label="Find Pre_vious"/>
<separator/>
<menuitem name="PDM" verb="ToolsPDM" _label="P_ersonal Data"/>
<menuitem name="EditToolbar" _label="T_oolbar"
verb="SettingsToolbarEditor"/>
<menuitem name="EditPrefs"
_label="P_references"
_tip="Edit Galeon preferences"
pixtype="stock" pixname="gtk-preferences"
verb="EditPrefs"/>
</submenu>
<submenu name="View" _label="_View">
<menuitem name="View Toolbar" id="View Toolbar" type="toggle"
_tip="Change the visibility of the main toolbar"
_label="_Toolbar" verb=""/>
<menuitem name="View Bookmarks Toolbars" id="View Bookmarks Toolbars" type="toggle"
_tip="Change the visibility of the bookmarks toolbars"
_label="_Bookmarks Toolbars" verb=""/>
<menuitem name="View Statusbar" id="View Statusbar"
_tip="Change the visibility of the statusbar"
type="toggle" _label="St_atusbar" verb=""/>
<menuitem name="View Sidebar" id="View Sidebar" type="toggle"
_tip="Change the visibility of the side pane"
_label="_Side Pane" verb="" accel="F9"/>
<menuitem name="View Fullscreen" id="View Fullscreen"
_tip="Toggle fullscreen mode"
type="toggle" _label="_Fullscreen" verb="" accel="F11"/>
<separator/>
<submenu name="Images" _label="I_mages">
<menuitem name="BlockImageSite"
_label="_Block Images From This Site" verb=""/>
<menuitem name="AllowImageSite"
_label="_Allow Images From This Site" verb=""/>
<separator/>
<menuitem _label="_Always"
name="ViewImagesAlways" id="ViewImagesAlways"
type="radio" group="view_images" />
<menuitem _label="_From Current Server Only"
name="ViewImagesCurrent" id="ViewImagesCurrent"
type="radio" group="view_images" />
<menuitem _label="_Never"
name="ViewImagesNever" id="ViewImagesNever"
type="radio" group="view_images" />
</submenu>
<placeholder name="EncodingMenuPlaceholder"/>
<separator/>
<menuitem name="Zoom In"
_label="Zoom _In" accel="*Control*plus"
pixtype="stock" pixname="zoom-in"
verb="Zoom In"/>
<menuitem name="Zoom Out"
_label="Zoom _Out" accel="*Control*minus"
pixtype="stock" pixname="zoom-out"
verb="Zoom Out"/>
<menuitem name="Zoom Normal"
_label="_Normal Size"
pixtype="stock" pixname="zoom-100"
verb="Zoom Normal"/>
<separator/>
<menuitem name="GoStop"
pixtype="stock" pixname="gtk-stop"
verb="" accel="Escape"/>
<menuitem name="GoReload"
pixtype="stock" pixname="gtk-refresh"
verb="" accel="*Control*R"/>
</submenu>
<submenu name="Web" _label="_Web">
<submenu name="Cookies" _label="C_ookies">
<menuitem name="BlockCookieSite"
_label="_Block Cookies From This Site" verb=""/>
<menuitem name="AllowCookieSite"
_label="_Allow Cookies From This Site" verb=""/>
<separator/>
<menuitem _label="A_lways Allow"
_tip="Always accept cookies"
name="AcceptCookiesAlways" id="AcceptCookiesAlways"
type="radio" group="accept_cookies" />
<menuitem _label="Allow _From Current Server Only"
_tip="Only allow cookies from a page's own server"
name="AcceptCookiesCurrent" id="AcceptCookiesCurrent"
type="radio" group="accept_cookies" />
<menuitem _label="_Never Allow"
_tip="Never accept cookies"
name="AcceptCookiesNever" id="AcceptCookiesNever"
type="radio" group="accept_cookies" />
</submenu>
<submenu name="Popups" _label="_Popups">
<menuitem name="AllowPopupSite"
_label="_Allow Popups From This Site" verb=""/>
<separator/>
<menuitem name="ShortcutsPopups" id="Allow Popups" type="toggle"
_label="A_lways Allow" _tip="Always allow popup windows"
verb=""/>
</submenu>
<separator/>
<menuitem name="ShortcutsJava" id="Allow Java" type="toggle"
_label="Allow _Java" _tip="Toggle allowing of java applets to run"
verb=""/>
<menuitem name="ShortcutsJavaScript" id="Allow JavaScript" type="toggle"
_label="Allow Java_Script" _tip="Toggle allowing of javascript code to run"
verb=""/>
<separator/>
<menuitem name="Java Console"
_label="Java _Console" _tip="Show Java console window"
verb="ShowJavaConsole"/>
<menuitem name="JavaScript Console"
_label="J_avaScript Console" _tip="Show JavaScript console window"
verb="ShowJSConsole"/>
</submenu>
<submenu name="Go" _label="_Go">
<menuitem name="GoBack"
pixtype="stock" pixname="gtk-go-back"
verb="" accel="*Alt*Left"/>
<menuitem name="GoForward"
pixtype="stock" pixname="gtk-go-forward"
verb="" accel="*Alt*Right"/>
<menuitem name="GoUp"
pixtype="stock" pixname="gtk-go-up"
verb="" accel="*Alt*Up"/>
<separator/>
<menuitem name="GoHome"
pixtype="stock" pixname="gtk-home"
verb="" accel="*Alt*Home"/>
<menuitem name="GoMyportal" verb=""/>
<menuitem name="GoLocation" _label="_Location..."
_tip="Specify a location to visit"
verb="" accel="*Ctrl*l"/>
<separator/>
<menuitem name="History" verb="ToolsHistory"
pixtype="stock" pixname="galeon-history"
_label="_History" accel="*Control*H"
_tip="Show browser history window"/>
<placeholder name="RecentHistory" delimit="top"/>
</submenu>
<submenu name="Bookmarks" _label="_Bookmarks">
<menuitem name="BookmarksAddDefault" verb="" _label="_Add Bookmark"
_tip="Add a bookmark for the current location to the default folder"
pixtype="stock" pixname="gtk-add" accel="*Control*d"/>
<menuitem name="BookmarksEdit" verb="" _label="_Edit Bookmarks"
_tip="Open a bookmarks editor"
accel="*Control*b"/>
<placeholder name="BookmarksPlaceholder" delimit="top"/>
</submenu>
<submenu name="Tabs" _label="_Tabs">
<menuitem name="Previous Tab" verb="TabsPrevious" _label="_Previous Tab"
accel="*Control*Page_Up" _tip="View previous tab"/>
<menuitem name="Next Tab" verb="TabsNext" _label="_Next Tab"
accel="*Control*Page_Down" _tip="View next tab"/>
<separator/>
<menuitem name="Tab Left" verb="TabsMoveLeft" _label="Move Tab _Left"
accel="*Shift**Control*Page_Up" _tip="Move this tab left"/>
<menuitem name="Tab Right" verb="TabsMoveRight" _label="Move Tab _Right"
accel="*Shift**Control*Page_Down" _tip="Move this tab right"/>
<separator/>
<menuitem name="Clone Tab" verb="TabsClone" _label="_Clone Tab"
accel="*Shift**Control*c" _tip="Create a copy of this tab"/>
<menuitem name="Move Tab to New Window" verb="TabsDetach" _label="_Detach Tab"
accel="*Shift**Control*m" _tip="Detach this tab into its own window"/>
</submenu>
<submenu name="Help" _label="_Help">
<menuitem name="HelpContents" verb=""
pixtype="stock" pixname="gtk-help"
_label="_Contents"/>
<menuitem name="About" verb="" _label="_About"/>
</submenu>
</menu>
<popups>
<popup name="GaleonEmbedInputPopup">
<menuitem name="EditCut"
pixtype="stock" pixname="gtk-cut"
verb=""/>
<menuitem name="EditCopy"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<menuitem name="EditPaste"
pixtype="stock" pixname="gtk-paste"
verb=""/>
<separator/>
<menuitem name="EditSelectAll" verb=""/>
<placeholder name="NavigationItems">
<separator/>
<menuitem name="GoBack"
pixtype="stock" pixname="gtk-go-back"
verb=""/>
<menuitem name="GoForward"
pixtype="stock" pixname="gtk-go-forward"
verb=""/>
<menuitem name="GoReload"
pixtype="stock" pixname="gtk-refresh"
verb=""/>
</placeholder>
</popup>
<popup name="GaleonEmbedDocumentPopup">
<placeholder name="NavigationItems">
<menuitem name="GoBack"
pixtype="stock" pixname="gtk-go-back"
verb=""/>
<menuitem name="GoForward"
pixtype="stock" pixname="gtk-go-forward"
verb=""/>
<menuitem name="GoReload"
pixtype="stock" pixname="gtk-refresh"
verb=""/>
<separator/>
</placeholder>
<placeholder name="FrameItems">
<menuitem name="DPOpenFrame" verb=""/>
<menuitem name="DPOpenFrameInNewWindow" verb=""/>
<menuitem name="DPOpenFrameInNewTab" verb=""/>
<menuitem name="DPReloadFrame" verb=""/>
<menuitem name="DPAddFrameBookmark" verb=""/>
<separator/>
</placeholder>
<menuitem name="DPCopyLocation"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<menuitem name="DPSavePageAs"
pixtype="stock" pixname="gtk-save"
verb=""/>
<submenu name="DPOpenWith" _label="Open With"/>
<menuitem name="DPSaveBackgroundAs" verb=""/>
<menuitem name="DPViewSource" _label="Page Source"
verb="ViewPageSource"/>
<placeholder name="BookmarksInContext" delimit="top"/>
</popup>
<popup name="GaleonEmbedElementPopup">
<placeholder name="LinkItems">
<menuitem name="EPOpenInNewWindow"
pixtype="stock" pixname="gtk-open"
verb=""/>
<menuitem name="EPOpenInNewTab" verb=""/>
<menuitem name="EPCopyLinkLocation"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<menuitem name="EPDownloadLink" verb=""/>
<menuitem name="EPAddBookmark"
pixtype="stock" pixname="gtk-add"
verb=""/>
</placeholder>
<placeholder name="EmailLinkItems">
<menuitem name="EPCopyEmail"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<menuitem name="EPCopyLinkLocation"
pixtype="stock" pixname="gtk-copy"
verb=""/>
</placeholder>
<placeholder name="BetweenElements1">
<separator/>
</placeholder>
<placeholder name="ImageItems">
<menuitem name="EPOpenImage"
pixtype="stock" pixname="gtk-open"
verb=""/>
<submenu name="EPOpenImageWith" _label="Open Image With"/>
<menuitem name="EPOpenImageInNewWindow" verb=""/>
<menuitem name="EPOpenImageInNewTab" verb=""/>
<menuitem name="EPSaveImageAs"
pixtype="stock" pixname="gtk-save"
verb=""/>
<menuitem name="EPSetImageAsBackground" verb=""/>
<menuitem name="EPCopyImageLocation"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<menuitem name="EPBlockImageSite"
pixtype="stock" pixname="gtk-dialog-error"
verb=""/>
<menuitem name="EPAllowImageSite"
pixtype="stock" pixname="gtk-apply"
verb=""/>
</placeholder>
<placeholder name="NavigationItems">
<separator/>
<menuitem name="GoBack"
pixtype="stock" pixname="gtk-go-back"
verb=""/>
<menuitem name="GoForward"
pixtype="stock" pixname="gtk-go-forward"
verb=""/>
<menuitem name="GoReload"
pixtype="stock" pixname="gtk-refresh"
verb=""/>
</placeholder>
</popup>
<popup name="GaleonEmbedSelectionPopup">
<menuitem name="EditCopy"
pixtype="stock" pixname="gtk-copy"
verb=""/>
<placeholder name="NavigationItems">
<separator/>
<menuitem name="GoBack"
pixtype="stock" pixname="gtk-go-back"
verb=""/>
<menuitem name="GoForward"
pixtype="stock" pixname="gtk-go-forward"
verb=""/>
<menuitem name="GoReload"
pixtype="stock" pixname="gtk-refresh"
verb=""/>
</placeholder>
</popup>
</popups>
<dockitem name="Toolbar" behavior="exclusive" config="0">
</dockitem>
<dockitem name="PrintPreview" behavior="exclusive">
<toolitem name="PPVGotoFirst"
pixtype="stock" pixname="gtk-goto-first"
verb="PPVGotoFirst"/>
<toolitem name="PPVGoBack"
pixtype="stock" pixname="gtk-go-back"
verb="PPVGoBack"/>
<toolitem name="PPVGoForward"
pixtype="stock" pixname="gtk-go-forward"
priority="1"
verb="PPVGoForward"/>
<toolitem name="PPVGotoLast"
pixtype="stock" pixname="gtk-goto-last"
verb="PPVGotoLast"/>
<toolitem name="Close" _label="Close"
pixtype="stock" pixname="gtk-close"
priority="1"
verb="PPVClose"/>
</dockitem>
<status resize_grip="0">
<item name="main"/>
<control name="SecurityIconWrapper"/>
<control name="PopupIconWrapper"/>
<control name="ProgressWrapper"/>
</status>
</Root>