From 03451a4c296f6c797ccbf07abb4c7561c054cb72 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 10 Apr 2007 15:10:26 +0000 Subject: [PATCH] Fix 1697728: Code for 'End' was commented out, and code for 'Begin' was going to the end for some reason. git-svn-id: http://svn.voria.com/code@451 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 4 +--- synfig-studio/trunk/src/synfigapp/canvasinterface.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 7ce3871..36e9f71 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1310,11 +1310,9 @@ CanvasView::init_menus() action=Gtk::Action::create("seek-prev-second", Gtk::Stock::GO_BACK,_("Seek Backward"),_("Seek Backward")); action_group->add( action, sigc::bind(sigc::mem_fun(*canvas_interface().get(), &synfigapp::CanvasInterface::seek_time),Time(-1))); - // Broken...!? - /* action=Gtk::Action::create("seek-end", Gtk::Stock::GOTO_LAST,_("Seek to End"),_("Seek to End")); action_group->add(action,sigc::bind(sigc::mem_fun(*canvas_interface().get(), &synfigapp::CanvasInterface::seek_time),Time::end())); - */ + action=Gtk::Action::create("seek-begin", Gtk::Stock::GOTO_FIRST,_("Seek to Begin"),_("Seek to Begin")); action_group->add( action, sigc::bind(sigc::mem_fun(*canvas_interface().get(), &synfigapp::CanvasInterface::seek_time),Time::begin())); diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index 0f6872a..9b1f6a9 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -843,7 +843,7 @@ CanvasInterface::seek_time(synfig::Time time) } if(time<=synfig::Time::begin()) { - set_time(get_canvas()->rend_desc().get_time_end()); + set_time(get_canvas()->rend_desc().get_time_start()); return; } -- 2.7.4