Merge pull request #883 from rcalixte/fix_groupwindow
window.py: Fix window group toggle keybind
This commit is contained in:
commit
d9aaa549c5
@ -768,7 +768,7 @@ class Window(Container, Gtk.Window):
|
|||||||
# change
|
# change
|
||||||
child.set_current_page(child.get_current_page())
|
child.set_current_page(child.get_current_page())
|
||||||
|
|
||||||
def set_groups(self, new_group, term_list):
|
def set_groups(self, new_group, term_list):
|
||||||
"""Set terminals in term_list to new_group"""
|
"""Set terminals in term_list to new_group"""
|
||||||
for terminal in term_list:
|
for terminal in term_list:
|
||||||
terminal.set_group(None, new_group)
|
terminal.set_group(None, new_group)
|
||||||
@ -802,7 +802,7 @@ class Window(Container, Gtk.Window):
|
|||||||
|
|
||||||
def group_win_toggle(self, widget):
|
def group_win_toggle(self, widget):
|
||||||
"""Toggle grouping to all windows in the current window"""
|
"""Toggle grouping to all windows in the current window"""
|
||||||
if widget.group == 'Window':
|
if widget.group:
|
||||||
self.ungroup_win(widget)
|
self.ungroup_win(widget)
|
||||||
else:
|
else:
|
||||||
self.group_win(widget)
|
self.group_win(widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user