Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extension Location on the chrome

19 views
Skip to first unread message

Agus

unread,
Nov 15, 2009, 9:11:18 PM11/15/09
to dev-ext...@lists.mozilla.org
Hi Everybody,

I'm developing a Firefox extension, but I have troubles with the
location of the toolbar, it's setting into the bookmark toolbar, and
for example when I open the customize window the toolbar disapear
until I close that window.
Anyway, I can't find information about how can i set te location of
the toolbar. Also I can't see the toolbar buttons into my Customize
menu.

Regards,
Agustín.

Jorge Villalobos

unread,
Nov 21, 2009, 9:11:09 PM11/21/09
to Agus, dev-ext...@lists.mozilla.org

Jorge Villalobos

unread,
Nov 21, 2009, 9:11:09 PM11/21/09
to Agus, dev-ext...@lists.mozilla.org

lucy

unread,
Nov 22, 2009, 10:50:45 AM11/22/09
to

I've had trouble with this in the past. I found the follow XUL useful.
It automatically puts the icons between the home button and the
location input. Users can remove or move the icons using View ->
Toolbars --> Customize.

I earlier tried making them also be in their own toolbar so that they
could quickly be shown/hidden, but then they aren't put in the home
toolbar and possibly aren't customizable.

I've never had your problem, though, of icons disappearing when the
customize window is open. I hope this helps anyway.

<toolbarpalette id="BrowserToolbarPalette">
<toolbar
id="pd-toolbar"
toolbarname="ProcrasDonate Toolbar"
accesskey="P"
class="chromeclass-toolbar"
context="toolbar-context-menu"
hidden="false" persist="hidden"
defaultset="PD-classify-toolbar-button,PD-progress-toolbar-
button" />
<toolbarbutton id="PD-classify-toolbar-button"
autoCheck="true"
label="ProcrasDonating"
tooltiptext="Current activity: Unsorted. To re-
classify this site click this icon."

oncommand="myOverlay.url_bar_listener.toolbar_manager.onClassifyButtonCommand
();"
image="chrome://ProcrasDonate/skin/
UnsortedIcon.png"
class="toolbarbutton-1 chromeclass-toolbar-
additional"/>

<toolbarbutton id="PD-progress-toolbar-button"
autoCheck="true"
label="PD: 0"
tooltiptext="Progress towards weekly
ProcrasDonate goal"

oncommand="myOverlay.url_bar_listener.toolbar_manager.onProgressButtonPDCommand
();"
image="chrome://ProcrasDonate/skin/
IconBar0.png"
class="toolbarbutton-1 chromeclass-toolbar-
additional"/>
</toolbarpalette>

0 new messages