Closed
Bug 512828
Opened 16 years ago
Closed 15 years ago
add a cmd_viewAllHeader and cmd_viewNormalHeader to the MessageWindowController
Categories
(Thunderbird :: Mail Window Front End, defect)
Thunderbird
Mail Window Front End
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0b4
People
(Reporter: joachim.herb, Assigned: joachim.herb)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
8.45 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3
If a copy of the menu id="viewheadersmenu" should be added to another place, e.g. through a addon as described in http://forums.mozillazine.org/viewtopic.php?f=29&t=1405155&p=7359805#p7359805 the internal handling has to be copied also to a new function. The reason for this is that the function InitViewHeadersMenu() uses the id of the menuitems in hard coded from. See:
http://mxr.mozilla.org/comm-central/source/mail/base/content/mailWindowOverlay.xul#1105
http://mxr.mozilla.org/comm-central/source/mail/base/content/mailWindowOverlay.js#401
The menu entries for "Add Star" and Tagging are initialized with functions (InitMessageMark(), InitMessageTags(this)) which dynamically update the menu check property.
Why not add a cmd_viewAllHeader and cmd_viewNormalHeader to the MessageWindowController in http://mxr.mozilla.org/comm-central/source/mail/base/content/messageWindow.js#679
Then this infrastructure could be used also for toggling the header view.
Reproducible: Always
Assignee | ||
Updated•16 years ago
|
Version: unspecified → Trunk
Comment 1•16 years ago
|
||
herb: can you make a patch for that?
Assignee | ||
Comment 2•15 years ago
|
||
I changed the internal handling following the example of the "Add Star" menu item.
Comment 3•15 years ago
|
||
Thx for the patch! For future reference, please make sure to flag the patch for review. Else its easily left sitting in bugzilla.
http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree
I'll take a look at this later.
Assignee: nobody → herb
Severity: enhancement → normal
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: Change the internal handling of the menu "All Header" / "Normal Header" → dd a cmd_viewAllHeader and cmd_viewNormalHeader to the MessageWindowController
Target Milestone: --- → Thunderbird 3.0b4
Updated•15 years ago
|
Attachment #397356 -
Flags: review?(mkmelin+mozilla)
Updated•15 years ago
|
Summary: dd a cmd_viewAllHeader and cmd_viewNormalHeader to the MessageWindowController → add a cmd_viewAllHeader and cmd_viewNormalHeader to the MessageWindowController
Comment 4•15 years ago
|
||
Comment on attachment 397356 [details] [diff] [review]
Change internal handling of All Header / Normal Header
Mozilla code style is "no tabs!", besides that looks good, thx!
I also adjusted the patch not to use magic numbers.
Attachment #397356 -
Flags: review?(mkmelin+mozilla) → review+
Comment 5•15 years ago
|
||
changeset: 3571:b95b20eded49
http://hg.mozilla.org/comm-central/rev/b95b20eded49
->FIXED
If you have other stuff that's making it hard to develop extensions, do feel free to submit a patch for it!
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•