Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-05-31 02:33:59 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-05-31 02:33:59 (GMT)
commit173be7afc970f984d5e1ce9f37621784ca335e27 (patch)
tree89c0a06e05ef7d13727534ebabe5e03072ecae2a
parented1b8370a2ddb7035e1982318bf92fcc35b156e2 (diff)
Return mode by default
-rw-r--r--TODO1
-rw-r--r--activity.py2
-rw-r--r--animation.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/TODO b/TODO
index da37c1c..c2ef312 100644
--- a/TODO
+++ b/TODO
@@ -4,6 +4,5 @@ New functions:
Fixes:
- Enable drag and drop between frames.
Bugs:
- - Doesn't load in return mode by default.
- Doesn't select another frame when the last frame is removed.
- Bad scaled image in the first frame only in first time.
diff --git a/activity.py b/activity.py
index 7bd580a..d2e54f0 100644
--- a/activity.py
+++ b/activity.py
@@ -92,13 +92,13 @@ class AnimateActivity(activity.Activity):
returnbutton = RadioToolButton(icon_name="media-playlist-repeat")
returnbutton.set_tooltip(_("Repeat Mode"))
+ returnbutton.set_active(True)
returnbutton.connect("clicked", self._set_return_mode)
options_toolbar.insert(returnbutton, -1)
normalmode = RadioToolButton(icon_name='normal-mode')
normalmode.props.group = returnbutton
normalmode.set_tooltip(_('Normal Mode'))
- normalmode.set_active(True)
normalmode.connect("clicked", self._set_normal_mode)
options_toolbar.insert(normalmode, -1)
diff --git a/animation.py b/animation.py
index 9c1b93f..b9e9097 100644
--- a/animation.py
+++ b/animation.py
@@ -44,7 +44,7 @@ class Animation(gtk.Image):
self._current_image = 0
self._timeout = None
- self._mode = NORMAL_MODE
+ self._mode = RETURN_MODE
self._running = False
self.images = []
self.images_reverse = False