Revision: 2162
http://synfig.svn.sourceforge.net/synfig/?rev=2162&view=rev
Author: dooglus
Date: 2008-11-06 17:29:46 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
Update the scrollbar that controls the time ruler along the bottom of the
canvas when the start and end time of the movie is modified. Previously it
wasn't updating immediately.
Modified Paths:
--------------
synfig-studio/trunk/src/gtkmm/canvasview.cpp
Modified: synfig-studio/trunk/src/gtkmm/canvasview.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/canvasview.cpp 2008-11-06 10:36:52 UTC
(rev 2161)
+++ synfig-studio/trunk/src/gtkmm/canvasview.cpp 2008-11-06 17:29:46 UTC
(rev 2162)
@@ -1980,6 +1980,18 @@
}
//clamp time to big bounds...
+ if(time_window_adjustment().get_value() < begin_time)
+ {
+ time_window_adjustment().set_value(begin_time);
+ time_window_adjustment().value_changed();
+ }
+
+ if(time_window_adjustment().get_value() +
time_window_adjustment().get_page_size() > end_time)
+ {
+ time_window_adjustment().set_value(end_time -
time_window_adjustment().get_page_size());
+ time_window_adjustment().value_changed();
+ }
+
if(time_adjustment().get_value() < begin_time)
{
time_adjustment().set_value(begin_time);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl