Skip to content

Commit

Permalink
Merge pull request #512 from Seraff/master
Browse files Browse the repository at this point in the history
Fixing problems with pasting from clipboard after tabs reorder
  • Loading branch information
gsemet committed May 2, 2015
2 parents 98408a5 + 3bdae0b commit 7d0d58e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/guake/guake_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7d0d58e

Please sign in to comment.