Makes items on places toolbar show up as a button during customize so that they can easily be moved. r=ben@mozilla.org bug=327364
git-svn-id: svn://10.0.0.236/trunk@191512 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
00618619a6
commit
fa749291d3
@ -272,7 +272,7 @@
|
||||
#ifdef MOZ_PLACES
|
||||
<toolbarbutton id="bookmarksBarShowPlaces"
|
||||
oncommand="PlacesBrowserShim.showHistory()"/>
|
||||
<toolbaritem flex="1" id="bookmarksBarContainer">
|
||||
<toolbaritem flex="1" id="bookmarksBarContainer" title="&bookmarksItem.title;">
|
||||
<hbox id="bookmarksBarContent" flex="1" context="placesContext"/>
|
||||
</toolbaritem>
|
||||
<toolbarbutton id="places-bookmark"
|
||||
@ -342,11 +342,11 @@
|
||||
label="&downloads.label;"
|
||||
tooltiptext="&downloads.tooltip;"/>
|
||||
|
||||
#ifndef MOZ_PLACES
|
||||
<toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
observes="viewHistorySidebar"
|
||||
tooltiptext="&historyButton.tooltip;"/>
|
||||
|
||||
#ifndef MOZ_PLACES
|
||||
<toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
||||
observes="viewBookmarksSidebar"
|
||||
tooltiptext="&bookmarksButton.tooltip;"
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE bindings [
|
||||
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
|
||||
%browserDTD;
|
||||
]>
|
||||
|
||||
<bindings id="placesToolbarBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||
@ -17,7 +22,9 @@
|
||||
<xul:hbox class="toolbar-drop-indicator"/>
|
||||
</xul:hbox>
|
||||
<xul:hbox flex="1">
|
||||
<children/>
|
||||
<xul:hbox class="bookmarks-toolbar-items places-toolbar-items" flex="1">
|
||||
<children/>
|
||||
</xul:hbox>
|
||||
<xul:hbox mousethrough="always"
|
||||
flex="1"
|
||||
pack="end">
|
||||
@ -32,6 +39,9 @@
|
||||
/>
|
||||
</xul:toolbarbutton>
|
||||
</xul:hbox>
|
||||
<xul:toolbarbutton class="bookmark-item bookmarks-toolbar-customize"
|
||||
mousethrough="never"
|
||||
label="&bookmarksToolbarItem.label;"/>
|
||||
</xul:hbox>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
@ -70,8 +80,8 @@
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<field name="_dropIndicatorBar">document.getAnonymousNodes(this)[0].firstChild</field>
|
||||
<field name="_chevron">document.getAnonymousNodes(this)[0].childNodes[1].firstChild.firstChild</field>
|
||||
<field name="_dropIndicatorBar">document.getAnonymousElementByAttribute(this, "class", "toolbar-drop-indicator-bar")</field>
|
||||
<field name="_chevron">document.getAnonymousElementByAttribute(this, "class", "chevron")</field>
|
||||
|
||||
<field name="_selection">null</field>
|
||||
|
||||
|
||||
@ -195,6 +195,10 @@ toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
toolbarpaletteitem[place="toolbar"] .places-toolbar-items {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ::::: bookmark menus ::::: */
|
||||
|
||||
.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
|
||||
|
||||
@ -127,6 +127,10 @@ toolbarpaletteitem[place="toolbar"] .bookmarks-toolbar-items {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
toolbarpaletteitem[place="toolbar"] .places-toolbar-items {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ::::: bookmark menus ::::: */
|
||||
|
||||
menu.bookmark-item,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user