From 527fc9c9994e752b6100fc0de0ebd53ebd376342 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 14 Jun 2013 22:52:14 +0000 Subject: When add a pair of cards go to the end of the list Signed-off-by: Gonzalo Odiard --- 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() -- cgit v0.9.1