Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-05-30 01:42:16 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-05-30 01:42:16 (GMT)
commita23b6421db06b277c58034dd846d67ed990db2a4 (patch)
tree91ec25351e782a047074267eadc7f4fa03929ed0
parent3284fa3f44095f5d1647867f195feffedaef9d2b (diff)
Don't select the latest inserted image
-rw-r--r--frames_list.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/frames_list.py b/frames_list.py
index c61c673..90e9947 100644
--- a/frames_list.py
+++ b/frames_list.py
@@ -85,7 +85,8 @@ class FramesList(gtk.ScrolledWindow):
200 * height / width,
gtk.gdk.INTERP_TILES)
_iter = self.store.append([self.frames, preview_pixbuf])
- self.selection.select_iter(_iter)
+ if self.frames == 1:
+ self.selection.select_iter(_iter)
if self._animation and not self._animation_connected:
self._animation.connect("current-frame-updated", self._select_frame)
self._animation_connected = True