mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix for bug #387718: the location bar dropdown should show a star next to bookmarked results r=gavin
This commit is contained in:
parent
e860010ddf
commit
a1f34414b7
@ -224,6 +224,7 @@
|
|||||||
completeselectedindex="true"
|
completeselectedindex="true"
|
||||||
tabscrolling="true"
|
tabscrolling="true"
|
||||||
showcommentcolumn="true"
|
showcommentcolumn="true"
|
||||||
|
showimagecolumn="true"
|
||||||
enablehistory="true"
|
enablehistory="true"
|
||||||
maxrows="10"
|
maxrows="10"
|
||||||
newlines="stripsurroundingwhitespace"
|
newlines="stripsurroundingwhitespace"
|
||||||
|
@ -977,6 +977,23 @@ statusbarpanel#statusbar-display {
|
|||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#treecolAutoCompleteImage {
|
||||||
|
max-width : 36px;
|
||||||
|
padding-end: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-treebody::-moz-tree-image(favicon, treecolAutoCompleteImage) {
|
||||||
|
list-style-image: url("chrome://browser/skin/places/starPage.png");
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
|
||||||
|
list-style-image: url("chrome://browser/skin/places/pageStarred.png");
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
|
.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
|
||||||
color: #555566;
|
color: #555566;
|
||||||
}
|
}
|
||||||
|
@ -970,6 +970,23 @@ statusbarpanel#statusbar-display {
|
|||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#treecolAutoCompleteImage {
|
||||||
|
max-width : 36px;
|
||||||
|
padding-end: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-treebody::-moz-tree-image(favicon, treecolAutoCompleteImage) {
|
||||||
|
list-style-image: url("chrome://browser/skin/places/starPage.png");
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
|
||||||
|
list-style-image: url("chrome://browser/skin/places/pageStarred.png");
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
|
.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
|
||||||
color: #555566;
|
color: #555566;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
interface nsIAutoCompletePopup;
|
interface nsIAutoCompletePopup;
|
||||||
|
|
||||||
[scriptable, uuid(AC029254-06DD-4dff-878C-A292117DE2D3)]
|
[scriptable, uuid(8a5918dc-89ba-4bd0-934c-90e9c21568b8)]
|
||||||
interface nsIAutoCompleteInput : nsISupports
|
interface nsIAutoCompleteInput : nsISupports
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -96,7 +96,13 @@ interface nsIAutoCompleteInput : nsISupports
|
|||||||
* Option to show a second column in the popup which contains
|
* Option to show a second column in the popup which contains
|
||||||
* the comment for each autocomplete result
|
* the comment for each autocomplete result
|
||||||
*/
|
*/
|
||||||
attribute unsigned long showCommentColumn;
|
attribute boolean showCommentColumn;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Option to show a third column in the popup which contains
|
||||||
|
* an additional image for each autocomplete result
|
||||||
|
*/
|
||||||
|
attribute boolean showImageColumn;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Number of milliseconds after a keystroke before a search begins
|
* Number of milliseconds after a keystroke before a search begins
|
||||||
|
@ -339,13 +339,26 @@ nsFormFillController::SetMaxRows(PRUint32 aMaxRows)
|
|||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsFormFillController::GetShowCommentColumn(PRUint32 *aShowCommentColumn)
|
nsFormFillController::GetShowImageColumn(PRBool *aShowImageColumn)
|
||||||
|
{
|
||||||
|
*aShowImageColumn = PR_FALSE;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP nsFormFillController::SetShowImageColumn(PRBool aShowImageColumn)
|
||||||
|
{
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsFormFillController::GetShowCommentColumn(PRBool *aShowCommentColumn)
|
||||||
{
|
{
|
||||||
*aShowCommentColumn = PR_FALSE;
|
*aShowCommentColumn = PR_FALSE;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsFormFillController::SetShowCommentColumn(PRUint32 aShowCommentColumn)
|
NS_IMETHODIMP nsFormFillController::SetShowCommentColumn(PRBool aShowCommentColumn)
|
||||||
{
|
{
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,10 @@
|
|||||||
onset="this.setAttribute('showcommentcolumn', val); return val;"
|
onset="this.setAttribute('showcommentcolumn', val); return val;"
|
||||||
onget="return this.getAttribute('showcommentcolumn') == 'true';"/>
|
onget="return this.getAttribute('showcommentcolumn') == 'true';"/>
|
||||||
|
|
||||||
|
<property name="showImageColumn"
|
||||||
|
onset="this.setAttribute('showimagecolumn', val); return val;"
|
||||||
|
onget="return this.getAttribute('showimagecolumn') == 'true';"/>
|
||||||
|
|
||||||
<property name="timeout"
|
<property name="timeout"
|
||||||
onset="this.setAttribute('timeout', val); return val;"
|
onset="this.setAttribute('timeout', val); return val;"
|
||||||
onget="return parseInt(this.getAttribute('timeout')) || 50;"/>
|
onget="return parseInt(this.getAttribute('timeout')) || 50;"/>
|
||||||
@ -533,7 +537,8 @@
|
|||||||
<field name="mInput">null</field>
|
<field name="mInput">null</field>
|
||||||
<field name="mPopupOpen">false</field>
|
<field name="mPopupOpen">false</field>
|
||||||
<field name="mShowCommentCol">false</field>
|
<field name="mShowCommentCol">false</field>
|
||||||
|
<field name="mShowImageCol">false</field>
|
||||||
|
|
||||||
<constructor><![CDATA[
|
<constructor><![CDATA[
|
||||||
this.setAttribute("ignorekeys", "true");
|
this.setAttribute("ignorekeys", "true");
|
||||||
]]></constructor>
|
]]></constructor>
|
||||||
@ -576,7 +581,8 @@
|
|||||||
this.invalidate();
|
this.invalidate();
|
||||||
|
|
||||||
this.showCommentColumn = this.mInput.showCommentColumn;
|
this.showCommentColumn = this.mInput.showCommentColumn;
|
||||||
|
this.showImageColumn = this.mInput.showImageColumn;
|
||||||
|
|
||||||
this.setAttribute("width", aWidth < 100 ? 100 : aWidth);
|
this.setAttribute("width", aWidth < 100 ? 100 : aWidth);
|
||||||
|
|
||||||
document.popupNode = null;
|
document.popupNode = null;
|
||||||
@ -674,7 +680,7 @@
|
|||||||
onget="return this.mShowCommentColumn;">
|
onget="return this.mShowCommentColumn;">
|
||||||
<setter><![CDATA[
|
<setter><![CDATA[
|
||||||
if (!val && this.mShowCommentColumn) {
|
if (!val && this.mShowCommentColumn) {
|
||||||
// reset the flex on the value column and add the comment column
|
// reset the flex on the value column and remove the comment column
|
||||||
document.getElementById("treecolAutoCompleteValue").setAttribute("flex", 1);
|
document.getElementById("treecolAutoCompleteValue").setAttribute("flex", 1);
|
||||||
this.removeColumn("treecolAutoCompleteComment");
|
this.removeColumn("treecolAutoCompleteComment");
|
||||||
} else if (val && !this.mShowCommentColumn) {
|
} else if (val && !this.mShowCommentColumn) {
|
||||||
@ -687,6 +693,23 @@
|
|||||||
]]></setter>
|
]]></setter>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
<property name="showImageColumn"
|
||||||
|
onget="return this.mShowImageColumn;">
|
||||||
|
<setter>
|
||||||
|
<![CDATA[
|
||||||
|
if (!val && this.mShowImageColumn) {
|
||||||
|
// remove the image column
|
||||||
|
this.removeColumn("treecolAutoCompleteImage");
|
||||||
|
} else if (val && !this.mShowImageColumn) {
|
||||||
|
// add the image column
|
||||||
|
this.addColumn({id: "treecolAutoCompleteImage", flex: 1});
|
||||||
|
}
|
||||||
|
this.mShowImageColumn = val;
|
||||||
|
return val;
|
||||||
|
]]>
|
||||||
|
</setter>
|
||||||
|
</property>
|
||||||
|
|
||||||
<method name="addColumn">
|
<method name="addColumn">
|
||||||
<parameter name="aAttrs"/>
|
<parameter name="aAttrs"/>
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
|
Loading…
Reference in New Issue
Block a user