mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 328779: Statusbar text for bookmark menu items, Patch by Dave Townsend <mossop@blueprintit.co.uk> r=annie.sullivan@gmail.com sr=ben@mozilla.org
This commit is contained in:
parent
79254475ac
commit
7038dc011b
@ -165,7 +165,7 @@
|
|||||||
element = document.createElementNS(XULNS, "menuitem");
|
element = document.createElementNS(XULNS, "menuitem");
|
||||||
element.setAttribute("label", child.title);
|
element.setAttribute("label", child.title);
|
||||||
element.setAttribute("url", child.uri);
|
element.setAttribute("url", child.uri);
|
||||||
element.setAttribute("statustext", child.url);
|
element.setAttribute("statustext", child.uri);
|
||||||
element.className = "menuitem-iconic bookmark-item";
|
element.className = "menuitem-iconic bookmark-item";
|
||||||
}
|
}
|
||||||
else if (PlacesController.nodeIsSeparator(child)) {
|
else if (PlacesController.nodeIsSeparator(child)) {
|
||||||
@ -605,7 +605,7 @@
|
|||||||
for (var i = 0; i < this._self.supportedDropTypes.length; ++i)
|
for (var i = 0; i < this._self.supportedDropTypes.length; ++i)
|
||||||
flavorSet.appendFlavour(this._self.supportedDropTypes[i]);
|
flavorSet.appendFlavour(this._self.supportedDropTypes[i]);
|
||||||
return flavorSet;
|
return flavorSet;
|
||||||
},
|
}
|
||||||
|
|
||||||
})]]></field>
|
})]]></field>
|
||||||
|
|
||||||
|
@ -602,7 +602,7 @@
|
|||||||
for (var i = 0; i < this._self.supportedDropTypes.length; ++i)
|
for (var i = 0; i < this._self.supportedDropTypes.length; ++i)
|
||||||
flavorSet.appendFlavour(this._self.supportedDropTypes[i]);
|
flavorSet.appendFlavour(this._self.supportedDropTypes[i]);
|
||||||
return flavorSet;
|
return flavorSet;
|
||||||
},
|
}
|
||||||
|
|
||||||
})]]></field>
|
})]]></field>
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
return this.view.QueryInterface(Ci.nsINavHistoryResult);
|
return this.view.QueryInterface(Ci.nsINavHistoryResult);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
@ -480,8 +481,8 @@
|
|||||||
var dragService =
|
var dragService =
|
||||||
Cc["@mozilla.org/widget/dragservice;1"].
|
Cc["@mozilla.org/widget/dragservice;1"].
|
||||||
getService(Ci.nsIDragService);
|
getService(Ci.nsIDragService);
|
||||||
var session = dragService.getCurrentSession();
|
var dragSession = dragService.getCurrentSession();
|
||||||
session.canDrop = this._viewObserver.canDrop(-1, 1);
|
dragSession.canDrop = this._viewObserver.canDrop(-1, 1);
|
||||||
}
|
}
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
@ -669,7 +670,7 @@
|
|||||||
onCycleCell: function VO_onCycleCell(row, column) { },
|
onCycleCell: function VO_onCycleCell(row, column) { },
|
||||||
onPerformAction: function VO_onPerformAction(action) { },
|
onPerformAction: function VO_onPerformAction(action) { },
|
||||||
onPerformActionOnRow: function VO_onPerformActionOnRow(action, row) { },
|
onPerformActionOnRow: function VO_onPerformActionOnRow(action, row) { },
|
||||||
onPerformActionOnCell: function VO_onPerformActionOnCell(action, row, column) { },
|
onPerformActionOnCell: function VO_onPerformActionOnCell(action, row, column) { }
|
||||||
})]]></field>
|
})]]></field>
|
||||||
|
|
||||||
<field name="_nextSelection">[]</field>
|
<field name="_nextSelection">[]</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user