From 7da20021ffd626030c05c5ae99edbdaea8f26ad5 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 15 Apr 2018 22:31:31 +0200 Subject: [PATCH] palemoon#975: Customizable toolbars - backward compatible (but unidirectional) --- toolkit/content/customizeToolbar.js | 4 +-- toolkit/content/widgets/toolbar.xml | 48 +++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/toolkit/content/customizeToolbar.js b/toolkit/content/customizeToolbar.js index d5288776ba..7400aaadc6 100644 --- a/toolkit/content/customizeToolbar.js +++ b/toolkit/content/customizeToolbar.js @@ -180,8 +180,8 @@ function persistCurrentSets() // Persist custom toolbar info on the // Attributes: // Names: "toolbarX" (X - the number of the toolbar) - // Values: "Name:HidingAttributeName-HidingAttributeValue:CurrentSet" - gToolbox.toolbarset.setAttribute("toolbar"+(++customCount), + // Values: "Name|HidingAttributeName-HidingAttributeValue|CurrentSet" + gToolbox.toolbarset.setAttribute("toolbar" + (++customCount), toolbar.toolbarName + gToolbarInfoSeparators[0] + hidingAttribute diff --git a/toolkit/content/widgets/toolbar.xml b/toolkit/content/widgets/toolbar.xml index e79843dbda..c371be317b 100644 --- a/toolkit/content/widgets/toolbar.xml +++ b/toolkit/content/widgets/toolbar.xml @@ -30,7 +30,7 @@ - [] + [] @@ -50,22 +50,52 @@