Arivald,
Arivald schrieb (15.05.2013 16:08 Uhr):
> W dniu 2013-05-15 15:53, Marc Patermann pisze:
>> gNeandr schrieb (15.05.2013 14:59 Uhr):
>>> On 15.05.2013 11:10, Marc Patermann wrote:
>>>> the third party extension we still currently use with Thunderbird 2 is
>>>> located in the menu bar.
>>>> File ... Foo
>>>> |- Bar 1
>>>> |- Bar 2
>>>> |- Bar 3
>>>>
>>>> The menu bar is hidden in recent Thunderbird versions by default.
>>>> (It can be unhidden, I know.)
>>>>
>>>> What is the way to include the UI elements to the Thunderbird UI
>>>> nowadays (outside the hidden menu bar)?
>>>>
>>>> Any pointer may help.
OK, this looks fine, thank you.
However I cannot get it work.
I found
https://developer.mozilla.org/en-US/docs/XUL/School_tutorial/Adding_Toolbars_and_Toolbar_Buttons
about adding the new toolbox to the UI.
Combining the two documents I'm at this (based on the existing
overlay.xul with menubar, which still works):
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://fooextension/skin/overlay.css"
type="text/css"?>
<overlay id="fooextension-overlay"
xmlns="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="Overlay.js"/>
<menubar id="mail-menubar">
<menu id="foomenu" label="foo Werkzeuge">
<menupopup id="foomenuitems">
<menuitem id="foomenu-password" label="Passwort ändern"
oncommand="fooOverlay.openfoopassword(event);"/>
<menuitem id="foomenu-delegate" label="Abwesenheitsnotiz"
oncommand="fooOverlay.openfoovacation(event);"/>
<menuitem id="foomenu-delegate" label="Vertreter-Zugriff"
oncommand="fooOverlay.openfoodelegate(event);"/>
</menupopup>
</menu>
</menubar>
<toolbarpalette id="fooWerkzeuge">
<toolbarbutton label="foo Werkzeuge" type="menu">
<menuitem label="Passwort ändern"
oncommand="fooOverlay.openfoopassword(event);" />
<menuitem label="Abwesenheitsnotiz"
oncommand="fooOverlay.openfoovacation(event);"/>
<menuitem label="Vertreter-Zugriff"
oncommand="fooOverlay.openfoodelegate(event);"/>
</toolbarbutton>
</toolbarpalette>
<window id="main-window">
<toolbox id="footoolbox">
<toolbar id="footoolbar" toolbarname="foo Werkzeuge"
customizable="true"
context="toolbar-context-menu" />
</toolbox>
</window>
</overlay>
Is there something missing or wrong?
The toolbar is not available anywhere in the UI.
Marc