Closed
Bug 675690
Opened 13 years ago
Closed 13 years ago
Full Screen menuitem should be disabled when no windows are open
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.5
People
(Reporter: stefanh, Assigned: stefanh)
References
Details
Attachments
(1 file)
1.55 KB,
patch
|
mnyromyr
:
review+
|
Details | Diff | Splinter Review |
When I fixed bug 606297, I forgot to disable the menuitem when the only open window is the hidden one. Also, I don't think we should keep the Recently Closed Tabs menu enabled - it relies on stuff that's not available (no browser).
Assignee | ||
Comment 1•13 years ago
|
||
Bah, the Zoom menuitem is missing its label when no windows are open :-(
Assignee | ||
Comment 2•13 years ago
|
||
(In reply to comment #1)
> Bah, the Zoom menuitem is missing its label when no windows are open :-(
Filed bug 676279 for this, since it felt like a different beast.
Assignee | ||
Comment 3•13 years ago
|
||
Ah, right, I forgot: We also have a js error from the remaining Recently Closed Windows menu because of the updateGoMenu residing in sessionHistoryUI.js. Including that file in hiddenWindow.xul, make us hit sessionHistoryUI.js, line 70 where getWebNavigation() is null...
Assignee | ||
Comment 4•13 years ago
|
||
I'm going to file a new bug for the "Recently Closed ... " menus. I think it'll take a bit more time to fix them properly. Ideally, they should be enabled.
Summary: Disable Full Screen menuitem and Recently Closed Tabs menu if hiddenwindow is the only window → Full Screen menuitem should be disabled when no windows are open
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #550437 -
Flags: review?(mnyromyr)
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to comment #4)
> I'm going to file a new bug for the "Recently Closed ... " menus. I think
> it'll take a bit more time to fix them properly. Ideally, they should be
> enabled.
Filed bug 676330.
Comment 7•13 years ago
|
||
Comment on attachment 550437 [details] [diff] [review]
Simple fix
>diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js
>- 'menuitem_reload', 'menu_UseStyleSheet', 'charsetMenu',
>- 'View:PageSource', 'View:PageInfo', 'menu_translate',
>- 'cookie_deny', 'cookie_default',
>+ 'View:FullScreen', 'menuitem_reload', 'menu_UseStyleSheet',
>+ 'charsetMenu', 'View:PageSource', 'View:PageInfo',
>+ 'menu_translate', 'cookie_deny', 'cookie_default',
Bah, this is why "stuffing stuff into lines" is just bad — you want to do a single small change and you have to reorder the world. :-(
Permission granted to reformat disabledItems to one command id per line to get it straight.
Attachment #550437 -
Flags: review?(mnyromyr) → review+
Assignee | ||
Comment 8•13 years ago
|
||
I just added 'View:FullScreen' after 'cookie_default'
http://hg.mozilla.org/comm-central/rev/5f9ac7a79f69
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.5
You need to log in
before you can comment on or make changes to this bug.
Description
•