Closed
Bug 531795
Opened 16 years ago
Closed 16 years ago
missing icons on new added toolbarbuttons and menues
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: friedemannkunze, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.9.1.5) Gecko/20091121 Thunderbird/3.0
In Thunderbird V2 there were no problems like them and the add-on (xpi) is there still working fine.
But some tests with Thunderbird V3 RC1 with the same add-on results in inconsistent handling:
On new added toolbarbuttons and menues the defined icons would not be displayed. Also after restart Thunderbird the same behaviour is on it.
Here I send you my used code in the xpi; I hope you can understand:
File: cmbtTbOverlayRM.xul
...
<!-- Add buttons to main-window. They have to be added manual to the toolbar. -->
<toolbarpalette id="MailToolbarPalette">
<toolbarbutton
id="cmbtTbOverlayRM-button-search"
class="toolbarbutton-1"
label="Show addresse(s)"
tooltiptext="Show addresse(s)"
onclick="cmbtTbOverlayRM.onCommandButtonSearch(event);"
/>
<toolbarbutton
id="cmbtTbOverlayRM-button-assign"
class="toolbarbutton-1"
label="Archive message(s)"
tooltiptext="Archive message(s)"
onclick="cmbtTbOverlayRM.onCommandButtonAssign(event);"
/>
</toolbarpalette>
<menubar id="mail-menubar">
<menu id="cmbtTbOverlayRM-menu" label="combit Relationship Manager" insertafter="tasksMenu">
<menupopup id="cmbtTbOverlayRM-menupopup">
<menuitem class="menuitem-iconic" id="cmbtTbOverlayRM-menupopup-assign" label="" image="chrome://combiticoncrm/icons/assign_cRM_small.png" oncommand="cmbtTbOverlayRM.onCommandMenuItemAssign(event);"/>
<menuitem class="menuitem-iconic" id="cmbtTbOverlayRM-menupopup-search" label="" image="chrome://combiticoncrm/icons/search_cRM_small.png" oncommand="cmbtTbOverlayRM.onCommandMenuItemSearch(event);"/>
<menuseparator/>
<menuitem class="menuitem-iconic" id="cmbtTbOverlayRM-menupopup-config" label="" image="chrome://combiticoncrm/icons/config_cRM_small.png" oncommand="cmbtTbOverlayRM.onCommandMenuItemConfig(event);"/>
</menupopup>
</menu>
</menubar>
...
File: cmbtOverlayRM.css
...
/* icon: cmbtTbOverlayRM-button-search*/
#cmbtTbOverlayRM-button-search
{
list-style-image: url("chrome://combiticoncrm/icons/search_cRM_big.png");
}
toolbar[iconsize="small"] #cmbtTbOverlayRM-button-search
{
list-style-image: url("chrome://combiticoncrm/icons/search_cRM_small.png");
}
#cmbtTbOverlayRM-button-search[disabled="true"]
{
list-style-image: url("chrome://combiticoncrm/icons/search_cRM_big_o.png");
}
toolbar[iconsize="small"] #cmbtTbOverlayRM-button-search[disabled="true"]
{
list-style-image: url("chrome://combiticoncrm/icons/search_cRM_small_o.png");
}
...
File: chrome.manifest
...
content combiticoncrm chrome/icons/
content combitchromepackagecrm chrome/content/
overlay chrome://messenger/content/mailWindowOverlay.xul chrome://combitchromepackagecrm/content/cmbtTbOverlayRM.xul
skin combitchromepackagecrm classic/1.0 chrome/skin/
style chrome://global/content/customizeToolbar.xul chrome://combitchromepackagecrm/content/cmbtTbOverlayRM.css
...
Reproducible: Always
| Reporter | ||
Updated•16 years ago
|
Version: unspecified → 3.0
| Reporter | ||
Comment 1•16 years ago
|
||
I found the problem as decribed above:
I was using the wrong path for loading the icons. I had stored the icons in path 'icons'. But this only works in TB 2. Now I adjusted the path to 'skin' and moved the icons there. Now it works fine with TB 2 and TB 3!
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•