diff --git a/src/guake/guake_notebook.py b/src/guake/guake_notebook.py index c5ecabb79..8256a4920 100644 --- a/src/guake/guake_notebook.py +++ b/src/guake/guake_notebook.py @@ -24,6 +24,14 @@ def __init__(self, *args, **kwargs): # used to kill the process when closing a tab self.pid_list = [] + def reorder_child(self, child, position): + """ We should also reorder elements in term_list + """ + old_pos = self.get_children().index(child) + terms = self.term_list + terms[old_pos], terms[position] = terms[position], terms[old_pos] + super(GuakeNotebook, self).reorder_child(child, position) + def has_term(self): return self.term_list