The XUL for the status bar item looks like this:
<statusbar id="status-bar">
<statusbarpanel id="stockwatcher2"
label="Loading..."
context="stockmenu"
onclick="StockWatcher.refreshInformation()"
/>
</statusbar>
The XUL for the menu is:
<popupset id="mainPopupSet">
<popup id="stockmenu" position="after_start">
<menuitem label="Refresh Now" default="true"
oncommand="StockWatcher.refreshInformation()"/>
<menuseparator/>
<menuitem label="Apple (AAPL)" oncommand="StockWatcher.watchStock
('AAPL')"/>
... (more menu items)
</popup>
</popupset>
This works in Firefox but not in Thunderbird. Any idea what's up?
Eric Shepherd
Developer Documentation Lead
she...@mozilla.com
-Mark
Eric Shepherd
Developer Documentation Lead
she...@mozilla.com
It could be a scope problem.
-mark
Eric Shepherd
Developer Documentation Lead
she...@mozilla.com
On 11/8/06, Eric Shepherd <eshe...@mozilla.com> wrote:
> I'm updating an extension I wrote for Firefox to work in the status
> bar in Thunderbird, and everything's working except that when I right-
> click it, the context menu isn't popping up.
>
> The XUL for the status bar item looks like this:
>
> <statusbar id="status-bar">
> <statusbarpanel id="stockwatcher2"
> label="Loading..."
> context="stockmenu"
> onclick="StockWatcher.refreshInformation()"
> />
> </statusbar>
>
> The XUL for the menu is:
>
> <popupset id="mainPopupSet">
> <popup id="stockmenu" position="after_start">
> <menuitem label="Refresh Now" default="true"
> oncommand="StockWatcher.refreshInformation()"/>
> <menuseparator/>
> <menuitem label="Apple (AAPL)" oncommand="StockWatcher.watchStock
> ('AAPL')"/>
> ... (more menu items)
> </popup>
> </popupset>
>
> This works in Firefox but not in Thunderbird. Any idea what's up?
>
> Eric Shepherd
> Developer Documentation Lead
> she...@mozilla.com
>
>
>
> _______________________________________________
> dev-extensions mailing list
> dev-ext...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-extensions
>