Make "Zoom/Maximize terminal" inactive with one pane only
Bug #1518081 reported by
Egmont Koblinger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
If there's only one pane, the right click -> "Zoom terminal" or "Maximize terminal" options don't do anything (and they don't even change to "Restore all terminals").
I recommend to make them insensitive in this case.
Related branches
Changed in terminator: | |
importance: | Undecided → Wishlist |
Changed in terminator: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In the mean time... the "widget in children" check at the beginning of zoom() in terminatorlib/ window. py is incorrect. It only evaluates to True if there's only a single terminal _and_ there are no multiple tabs open (otherwise get_children() returns a Notebook object). The second condition should be irrelevant here.
In turn, the 'zoom' signal handler is installed in paned.py and this code is only executed when you have multiple panes.
It's yet unclear to me if there's another path to call that zoom() method, and also how the 'zoom' signal handler gets removed when other panes are closed.
The condition should be changed to a more robust one, one that really checks whether the given terminal is the only one in the current tab. This is the same check that we'll need for the original request too.