diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-06-14 22:52:14 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-06-14 22:52:14 (GMT) |
commit | 527fc9c9994e752b6100fc0de0ebd53ebd376342 (patch) | |
tree | d9cca36cb5720590ee3389f0396d382e83733ec3 | |
parent | fc2763a5492b2028a2133e17422b4236a5df8370 (diff) |
When add a pair of cards go to the end of the list
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | cardlist.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cardlist.py b/cardlist.py index 4e2d347..8c23db0 100644 --- a/cardlist.py +++ b/cardlist.py @@ -185,6 +185,10 @@ class CardList(gtk.EventBox): if not load: self.model.mark_modified() self.pair_list_modified = True + # workaround, this is not working + # self.tray.scroll_to_item(pair) + adj = self.tray._viewport.get_vadjustment() + adj.set_value(adj.get_upper()) if show: self.show_all() |