Closed
Bug 293755
Opened 19 years ago
Closed 19 years ago
"image" attribute on prefpane element doesn't work (typo)
Categories
(Toolkit :: Preferences, defect)
Toolkit
Preferences
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: twanno, Assigned: twanno)
Details
Attachments
(1 obsolete file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 When you specify the image attribute in a prefpane, like: <prefpane image="chrome://myExtension/skin/myImage.png"> The pane button associated with that prefpane will not contain that image. Reproducible: Always Steps to Reproduce: 1.Create an extension with preferences a la prefWindow V 2.define a image on the image attribute on a prefpane 3.notice that the pane button will not contain the image when opening the extensions preference dialog Actual Results: No image shows on the pane button Expected Results: The pane button should contain the image specified by the prefpane's image attribute Will add patch soon
Assignee | ||
Comment 1•19 years ago
|
||
Patch so the correct attribute is inherited (and set) on the pane button binding in preferences.xml
Attachment #183284 -
Flags: approval-aviary1.1a2?
Assignee | ||
Updated•19 years ago
|
Attachment #183284 -
Flags: first-review?(bugs)
Comment 2•19 years ago
|
||
I believe it's supposed to be "image=src". I'd also try to catch someone on IRC to get this reviewed before august :)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Image attribute on prefpane (prefwindow V) is not set to pane button image → "image" attribute on prefpane element doesn't work (typo)
Assignee | ||
Updated•19 years ago
|
Flags: blocking1.8b3?
Flags: blocking-aviary1.1?
Comment on attachment 183284 [details] [diff] [review] fix to use the correct inheritance/attribute on the pane button image Please request approval when reviews have been granted.
Attachment #183284 -
Flags: first-review?(mconnor)
Attachment #183284 -
Flags: first-review?(bugs)
Attachment #183284 -
Flags: approval-aviary1.1a2?
Comment 4•19 years ago
|
||
Comment on attachment 183284 [details] [diff] [review] fix to use the correct inheritance/attribute on the pane button image this seems wrong, shouldn't it be inherits src=image, if image is the attribute you're looking to use here? is panebutton image="" even supported? better to email ben since he hasn't written docs yet..
Assignee | ||
Comment 5•19 years ago
|
||
(In reply to comment #4) > (From update of attachment 183284 [details] [diff] [review] [edit]) > this seems wrong, shouldn't it be inherits src=image, if image is the attribute > you're looking to use here? > For every prefpane a panebutton is created on preference window load: http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#508 The pane button (actually a radio button) is created and when a image is specified (http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#921) the src attribute of the pane(=radio) button is set to the value of that image attribute: http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#542 that created radio button (pane button) has a binding associated with it: http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#1019 And because the src attribute is set to that radio button (and not the image attribute), in the panebutton binding the src attribute of the image child is inherited (and not the src=image). In short: the image attribute of the prefpane element is inherited to the src attribute on a radio button. And that radio button has a binding (prefbutton) with an image as child that uses that src attribute. (I hope I am understandable, the last part is a bit hard to explain) > is panebutton image="" even supported? better to email ben since he hasn't > written docs yet.. > http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#542 http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/preferences.xml#921 I should say it is meant to be supported...
Comment 6•19 years ago
|
||
Comment on attachment 183284 [details] [diff] [review] fix to use the correct inheritance/attribute on the pane button image ok, makes sense, the way it works maybe doesn't make as much sense to me, but this seems to be the right fix, as it stands.
Attachment #183284 -
Flags: first-review?(mconnor) → first-review+
Assignee | ||
Updated•19 years ago
|
Attachment #183284 -
Flags: approval-aviary1.1a2?
Comment 7•19 years ago
|
||
Comment on attachment 183284 [details] [diff] [review] fix to use the correct inheritance/attribute on the pane button image a=chofmann
Attachment #183284 -
Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Comment on attachment 183284 [details] [diff] [review] fix to use the correct inheritance/attribute on the pane button image mozilla/toolkit/content/widgets/preferences.xml 1.15
Attachment #183284 -
Attachment is obsolete: true
Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•19 years ago
|
||
Updating the specifics for this bug for future reference
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta3
Updated•19 years ago
|
Flags: blocking1.8b3?
Flags: blocking-aviary1.1?
Updated•18 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•