Make Zoom/Maximize inactive if a single terminal
This commit is contained in:
parent
c1f92495d8
commit
9103961902
|
@ -151,12 +151,16 @@ class TerminalPopupMenu(object):
|
|||
menu.append(Gtk.MenuItem())
|
||||
|
||||
if not terminal.is_zoomed():
|
||||
sensitive = not terminal.get_toplevel() == terminal.get_parent()
|
||||
|
||||
item = Gtk.MenuItem.new_with_mnemonic(_('_Zoom terminal'))
|
||||
item.connect('activate', terminal.zoom)
|
||||
item.set_sensitive(sensitive)
|
||||
menu.append(item)
|
||||
|
||||
item = Gtk.MenuItem.new_with_mnemonic(_('Ma_ximise terminal'))
|
||||
item.connect('activate', terminal.maximise)
|
||||
item.set_sensitive(sensitive)
|
||||
menu.append(item)
|
||||
|
||||
menu.append(Gtk.MenuItem())
|
||||
|
|
Loading…
Reference in New Issue