diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-05-31 02:33:59 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-05-31 02:33:59 (GMT) |
commit | 173be7afc970f984d5e1ce9f37621784ca335e27 (patch) | |
tree | 89c0a06e05ef7d13727534ebabe5e03072ecae2a | |
parent | ed1b8370a2ddb7035e1982318bf92fcc35b156e2 (diff) |
Return mode by default
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | activity.py | 2 | ||||
-rw-r--r-- | animation.py | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -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 |