synfig.git
17 years agoFix r841. Previously it was setting the menu to quality 10, but using parameteric...
dooglus [Thu, 4 Oct 2007 22:20:47 +0000 (22:20 +0000)]
Fix r841.  Previously it was setting the menu to quality 10, but using parameteric rendering.

git-svn-id: http://svn.voria.com/code@842 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoShow the correct initially selected quality level in the "View > Preview Quality...
dooglus [Thu, 4 Oct 2007 21:53:26 +0000 (21:53 +0000)]
Show the correct initially selected quality level in the "View > Preview Quality" menu.

git-svn-id: http://svn.voria.com/code@841 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSorted by type, and added 'Time' to the list of acceptable types.
dooglus [Thu, 4 Oct 2007 21:53:18 +0000 (21:53 +0000)]
Sorted by type, and added 'Time' to the list of acceptable types.

git-svn-id: http://svn.voria.com/code@840 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent warnings when compiling with optimization.
dooglus [Thu, 4 Oct 2007 21:53:10 +0000 (21:53 +0000)]
Prevent warnings when compiling with optimization.

git-svn-id: http://svn.voria.com/code@839 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoShow filename and line number on a few error messages, and remove a noisy info message.
dooglus [Thu, 4 Oct 2007 21:53:00 +0000 (21:53 +0000)]
Show filename and line number on a few error messages, and remove a noisy info message.

git-svn-id: http://svn.voria.com/code@838 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoGive filename and line number in some warning messages.
dooglus [Thu, 4 Oct 2007 01:51:16 +0000 (01:51 +0000)]
Give filename and line number in some warning messages.

git-svn-id: http://svn.voria.com/code@837 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the bug that caused almost everything in the caret menu of the 'other' canvas...
dooglus [Thu, 4 Oct 2007 01:51:08 +0000 (01:51 +0000)]
Fix the bug that caused almost everything in the caret menu of the 'other' canvas to be disabled when the focused canvas was closed.  Use present() to present the other canvas, rather than manipulating selected_canvas_view directly.  This allows CanvasView::on_focus_in_event() to run and call insert_action_group() to re-enable the menu.

git-svn-id: http://svn.voria.com/code@836 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Thu, 4 Oct 2007 01:51:00 +0000 (01:51 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@835 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved some debugging code that I didn't mean to commit.
dooglus [Thu, 4 Oct 2007 01:50:52 +0000 (01:50 +0000)]
Removed some debugging code that I didn't mean to commit.

git-svn-id: http://svn.voria.com/code@834 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent the "Gtk-CRITICAL **: gtk_label_set_label: assertion `str != NULL' failed...
dooglus [Wed, 3 Oct 2007 21:42:38 +0000 (21:42 +0000)]
Prevent the "Gtk-CRITICAL **: gtk_label_set_label: assertion `str != NULL' failed" warning, and give 'view > play' an icon, too.

git-svn-id: http://svn.voria.com/code@833 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoDefault timesliders to 24fps, not 0fps, to prevent the warning: "GLib-GObject-WARNING...
dooglus [Wed, 3 Oct 2007 20:13:59 +0000 (20:13 +0000)]
Default timesliders to 24fps, not 0fps, to prevent the warning: "GLib-GObject-WARNING **: value "inf" of type `gdouble' is invalid or out of range for property `step-increment' of type `gdouble'".

git-svn-id: http://svn.voria.com/code@832 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent a warning from Gtk about ownership of floating reference. The code's still...
dooglus [Wed, 3 Oct 2007 19:57:56 +0000 (19:57 +0000)]
Prevent a warning from Gtk about ownership of floating reference.  The code's still not right, and will be leaking a little (when new dialogs are opened), but I'm sure there are much bigger leaks elsewhere.

git-svn-id: http://svn.voria.com/code@831 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoIf 'view->play' is interrupted with the 'stop' button, note that the playback has...
dooglus [Wed, 3 Oct 2007 19:35:48 +0000 (19:35 +0000)]
If 'view->play' is interrupted with the 'stop' button, note that the playback has stopped.

git-svn-id: http://svn.voria.com/code@830 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved a couple of debugpoints.
dooglus [Wed, 3 Oct 2007 17:51:13 +0000 (17:51 +0000)]
Removed a couple of debugpoints.

git-svn-id: http://svn.voria.com/code@829 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoDon't save settings which we can't find a value for. This prevents warnings on startup.
dooglus [Wed, 3 Oct 2007 17:41:32 +0000 (17:41 +0000)]
Don't save settings which we can't find a value for.  This prevents warnings on startup.

git-svn-id: http://svn.voria.com/code@828 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 17:41:23 +0000 (17:41 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@827 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix #1806852: sort PasteCanvas layers by z-depth even if they do have a non-zero...
dooglus [Wed, 3 Oct 2007 12:31:16 +0000 (12:31 +0000)]
Fix #1806852: sort PasteCanvas layers by z-depth even if they do have a non-zero time offset.

git-svn-id: http://svn.voria.com/code@826 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoApply 1805544: un/install the sifz examples properly in the Win32 installer. Patch...
pabs [Wed, 3 Oct 2007 05:25:36 +0000 (05:25 +0000)]
Apply 1805544: un/install the sifz examples properly in the Win32 installer. Patch by Atrus.

git-svn-id: http://svn.voria.com/code@825 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRevert r764. pxegeek on IRC reports:
dooglus [Wed, 3 Oct 2007 02:43:12 +0000 (02:43 +0000)]
Revert r764.  pxegeek on IRC reports:

  Looks like my build of 813 failed.  Looks like it was trying to render the logo
  synfig(5228): info: ValueNode::subsys_stop()
  synfig(5228): info: Importer::subsys_stop()
  synfig(5228): info: Target::subsys_stop()
  synfig(5228): info: Layer::subsys_stop()
  synfig(5228): info: Module::subsys_stop()
  I think it's hung - it shouldn't take this long. :(

Looks like it's hanging while stopping the module subsystem.  Maybe he has some modules I don't, and they're causing a crash.  I don't see any crash here.

git-svn-id: http://svn.voria.com/code@824 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoStop the "Gtk-WARNING **: node type doesn't match 2 (menu-main is type 7)" messages...
dooglus [Wed, 3 Oct 2007 02:18:10 +0000 (02:18 +0000)]
Stop the "Gtk-WARNING **: node type doesn't match 2 (menu-main is type 7)" messages.  The main menu is a popup, not a menubar.

git-svn-id: http://svn.voria.com/code@823 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:18:03 +0000 (02:18 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@822 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:55 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@821 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved debugpoint.
dooglus [Wed, 3 Oct 2007 02:17:47 +0000 (02:17 +0000)]
Removed debugpoint.

git-svn-id: http://svn.voria.com/code@820 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:38 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@819 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:31 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@818 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake stdout quieter.
dooglus [Wed, 3 Oct 2007 02:17:21 +0000 (02:17 +0000)]
Make stdout quieter.

git-svn-id: http://svn.voria.com/code@817 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove debugpoint.
dooglus [Wed, 3 Oct 2007 02:17:13 +0000 (02:17 +0000)]
Remove debugpoint.

git-svn-id: http://svn.voria.com/code@816 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Wed, 3 Oct 2007 02:17:04 +0000 (02:17 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@815 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo.
dooglus [Wed, 3 Oct 2007 02:16:55 +0000 (02:16 +0000)]
Fixed a typo.

git-svn-id: http://svn.voria.com/code@814 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoChanging the time slider on a child canvas wasn't updating the grandchild canvas...
dooglus [Tue, 2 Oct 2007 14:28:52 +0000 (14:28 +0000)]
Changing the time slider on a child canvas wasn't updating the grandchild canvas' time slider.  Now it does.

git-svn-id: http://svn.voria.com/code@813 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Tue, 2 Oct 2007 14:28:43 +0000 (14:28 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@812 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoCommented the "Adjust for time" code in valuenode_animated.cpp while trying to unders...
dooglus [Tue, 2 Oct 2007 13:30:12 +0000 (13:30 +0000)]
Commented the "Adjust for time" code in valuenode_animated.cpp while trying to understand what it's doing.

git-svn-id: http://svn.voria.com/code@811 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoWhen the user moves a canvas' time slider, update the time sliders of any open child...
dooglus [Tue, 2 Oct 2007 13:04:55 +0000 (13:04 +0000)]
When the user moves a canvas' time slider, update the time sliders of any open child canvas' workareas.

git-svn-id: http://svn.voria.com/code@810 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMake the linear interpolation linear. See http://dooglus.rincevent.net/synfig/linear...
dooglus [Mon, 1 Oct 2007 23:18:56 +0000 (23:18 +0000)]
Make the linear interpolation linear.  See dooglus.rincevent.net/synfig/linear.sifz for an example of how linear interpolation currently works.  Both circles are animated over the same distance with identical waypoints, but one of them has an extra linear waypoint at frame zero.  That extra waypoints makes its entire movement non-linear.

git-svn-id: http://svn.voria.com/code@809 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOnly fix the red border if we're not using the Gtk frame background color to draw...
dooglus [Mon, 1 Oct 2007 21:49:02 +0000 (21:49 +0000)]
Only fix the red border if we're not using the Gtk frame background color to draw the red border.

git-svn-id: http://svn.voria.com/code@808 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoKeep the red 'animate edit mode' border and the current keyframe name from leaving...
dooglus [Mon, 1 Oct 2007 21:48:48 +0000 (21:48 +0000)]
Keep the red 'animate edit mode' border and the current keyframe name from leaving artifacts when scrolling.

git-svn-id: http://svn.voria.com/code@807 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix typos.
dooglus [Mon, 1 Oct 2007 21:48:37 +0000 (21:48 +0000)]
Fix typos.

git-svn-id: http://svn.voria.com/code@806 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed the way that the decision is made which value to use when linking values togeth...
dooglus [Sun, 30 Sep 2007 20:48:47 +0000 (20:48 +0000)]
Fixed the way that the decision is made which value to use when linking values together.  Also, output some information about the decision to the console.  Also show an error message if the user tries to link two different exported values, or values of two different types, rather than failing silently as before.

git-svn-id: http://svn.voria.com/code@805 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Sun, 30 Sep 2007 20:48:39 +0000 (20:48 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@804 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMade a note that type names shouldn't be translated.
dooglus [Sun, 30 Sep 2007 20:48:30 +0000 (20:48 +0000)]
Made a note that type names shouldn't be translated.

git-svn-id: http://svn.voria.com/code@803 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoI messed up the last commit. Oops!
dooglus [Sat, 29 Sep 2007 20:13:43 +0000 (20:13 +0000)]
I messed up the last commit.  Oops!

git-svn-id: http://svn.voria.com/code@802 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years ago#include color.h to get the gamma_in() #define.
dooglus [Sat, 29 Sep 2007 20:04:14 +0000 (20:04 +0000)]
#include color.h to get the gamma_in() #define.

git-svn-id: http://svn.voria.com/code@801 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoPrevent a crash (for example when moving the mouse slowly over the bottom edge of...
dooglus [Sat, 29 Sep 2007 15:09:11 +0000 (15:09 +0000)]
Prevent a crash (for example when moving the mouse slowly over the bottom edge of the line in dooglus.rincevent.net/synfig/shape_crash.sifz at the default zoom level).

git-svn-id: http://svn.voria.com/code@800 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoReplace angle::epsilon with a #defined value instead. I don't know how to define...
dooglus [Fri, 28 Sep 2007 19:28:47 +0000 (19:28 +0000)]
Replace angle::epsilon with a #defined value instead.  I don't know how to define a static member variable in a template header file.

git-svn-id: http://svn.voria.com/code@799 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo in the last commit.
dooglus [Fri, 28 Sep 2007 15:24:30 +0000 (15:24 +0000)]
Fixed a typo in the last commit.

git-svn-id: http://svn.voria.com/code@798 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRefine the bounding rectangles for 'Vertical Bar' and 'Horizontal Bar' spherize types.
dooglus [Fri, 28 Sep 2007 15:19:58 +0000 (15:19 +0000)]
Refine the bounding rectangles for 'Vertical Bar' and 'Horizontal Bar' spherize types.

git-svn-id: http://svn.voria.com/code@797 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd Rect::horizontal_strip() and Rect::vertical_strip() to create infinite slices...
dooglus [Fri, 28 Sep 2007 15:19:48 +0000 (15:19 +0000)]
Add Rect::horizontal_strip() and Rect::vertical_strip() to create infinite slices of the plane.

git-svn-id: http://svn.voria.com/code@796 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUse std::min and std::max rather than my ad-hoc #defines.
dooglus [Fri, 28 Sep 2007 15:19:39 +0000 (15:19 +0000)]
Use std::min and std::max rather than my ad-hoc #defines.

git-svn-id: http://svn.voria.com/code@795 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFor the 'Range' convert type, when working with angles, if the link parameter is...
dooglus [Fri, 28 Sep 2007 03:01:15 +0000 (03:01 +0000)]
For the 'Range' convert type, when working with angles, if the link parameter is outside of the [min,max] rangle, the resulting angle is whichever of min and max is closest to the link parameter.

git-svn-id: http://svn.voria.com/code@794 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd a new function angle::abs() which returns the absolute (positive) value of an...
dooglus [Fri, 28 Sep 2007 02:26:58 +0000 (02:26 +0000)]
Add a new function angle::abs() which returns the absolute (positive) value of an angle.

git-svn-id: http://svn.voria.com/code@793 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoCommented out the deprecated angle type conversion operators. They weren't used...
dooglus [Fri, 28 Sep 2007 02:08:18 +0000 (02:08 +0000)]
Commented out the deprecated angle type conversion operators.  They weren't used anywhere (everything still compiles without them, anyway) and they were preventing the multiplication operators from working.  (g++ complains "error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second").

git-svn-id: http://svn.voria.com/code@792 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMove the deprecated type conversion operator prototypes to the end of their class...
dooglus [Fri, 28 Sep 2007 02:08:11 +0000 (02:08 +0000)]
Move the deprecated type conversion operator prototypes to the end of their class definitions.

git-svn-id: http://svn.voria.com/code@791 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo - the wrong method was marked as deprecated in angle::cos.
dooglus [Fri, 28 Sep 2007 02:08:05 +0000 (02:08 +0000)]
Fixed a typo - the wrong method was marked as deprecated in angle::cos.

git-svn-id: http://svn.voria.com/code@790 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOperator '!' is supposed to be true when an angle is 'no rotation'. It was failing...
dooglus [Fri, 28 Sep 2007 02:07:59 +0000 (02:07 +0000)]
Operator '!' is supposed to be true when an angle is 'no rotation'.  It was failing for 360 degrees, and also failing due to floating point rounding error.  Fixed both of these problems.

git-svn-id: http://svn.voria.com/code@789 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe zero(), one(), and half() functions weren't documented, and aren't used anywhere...
dooglus [Fri, 28 Sep 2007 02:07:52 +0000 (02:07 +0000)]
The zero(), one(), and half() functions weren't documented, and aren't used anywhere, but half() was returning a quarter rotation, and one() was returning a half rotation.  Surely they're both meant to return twice that?  Fixed accordingly, and commented them.

git-svn-id: http://svn.voria.com/code@788 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe comments for the inequality comparison operators seemed to suggest that positive...
dooglus [Fri, 28 Sep 2007 02:07:46 +0000 (02:07 +0000)]
The comments for the inequality comparison operators seemed to suggest that positive rotation is clockwise.  In Synfig, 0 degrees is due east, and positive rotation is counter-clockwise.  Amended the comments accordingly, and made a comment at the top stating that positive rotation is counter-clockwise.

git-svn-id: http://svn.voria.com/code@787 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the indentation.
dooglus [Fri, 28 Sep 2007 02:07:39 +0000 (02:07 +0000)]
Fix the indentation.

git-svn-id: http://svn.voria.com/code@786 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOperators == and != were returning that 90 degrees != (90+360) degrees, due to floati...
dooglus [Fri, 28 Sep 2007 02:07:33 +0000 (02:07 +0000)]
Operators == and != were returning that 90 degrees != (90+360) degrees, due to floating point rounding errors.  Allow an epsilon of difference.

git-svn-id: http://svn.voria.com/code@785 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe angle comparison code was considering 90+359 degrees to be greater than 90 degree...
dooglus [Fri, 28 Sep 2007 02:07:26 +0000 (02:07 +0000)]
The angle comparison code was considering 90+359 degrees to be greater than 90 degrees.  The comments claim otherwise.  Fix the code to correspond with the comments.  Similarly for <, >=, and <=.

git-svn-id: http://svn.voria.com/code@784 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSince angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180...
dooglus [Fri, 28 Sep 2007 02:07:20 +0000 (02:07 +0000)]
Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180 degrees.

git-svn-id: http://svn.voria.com/code@783 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAngles are stored in radians, not rotations.
dooglus [Fri, 28 Sep 2007 02:07:13 +0000 (02:07 +0000)]
Angles are stored in radians, not rotations.

git-svn-id: http://svn.voria.com/code@782 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove some debugging code I left in accidentally some time ago.
dooglus [Thu, 27 Sep 2007 22:43:42 +0000 (22:43 +0000)]
Remove some debugging code I left in accidentally some time ago.

git-svn-id: http://svn.voria.com/code@781 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed a typo in the previous commit.
dooglus [Thu, 27 Sep 2007 20:56:48 +0000 (20:56 +0000)]
Fixed a typo in the previous commit.

git-svn-id: http://svn.voria.com/code@780 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'subtract' convert type to work with times.
dooglus [Thu, 27 Sep 2007 20:52:03 +0000 (20:52 +0000)]
Allow the 'subtract' convert type to work with times.

git-svn-id: http://svn.voria.com/code@779 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'add' convert type to work with times.
dooglus [Thu, 27 Sep 2007 20:51:45 +0000 (20:51 +0000)]
Allow the 'add' convert type to work with times.

git-svn-id: http://svn.voria.com/code@778 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'range' convert type to work with 'time' values too.
dooglus [Thu, 27 Sep 2007 20:51:29 +0000 (20:51 +0000)]
Allow the 'range' convert type to work with 'time' values too.

git-svn-id: http://svn.voria.com/code@777 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd the 'range' convert type, for limiting a parameter to values between a given...
dooglus [Thu, 27 Sep 2007 20:43:40 +0000 (20:43 +0000)]
Add the 'range' convert type, for limiting a parameter to values between a given minimum and maximum.

git-svn-id: http://svn.voria.com/code@776 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agovector.h was assuming that its members would be laid out consequtively in memory...
dooglus [Thu, 27 Sep 2007 15:10:49 +0000 (15:10 +0000)]
vector.h was assuming that its members would be laid out consequtively in memory, without padding.  Is this a safe assumption?  Note that the same assumption is made in class bezier_base in the same file, but I didn't change that yet.

git-svn-id: http://svn.voria.com/code@775 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1509627: Work around a bug in gcc 4.1.2 and earlier. Compiling with -O2 or highe...
dooglus [Thu, 27 Sep 2007 15:10:39 +0000 (15:10 +0000)]
Fix 1509627: Work around a bug in gcc 4.1.2 and earlier.  Compiling with -O2 or higher was optimizing out a variable that we are using.

git-svn-id: http://svn.voria.com/code@774 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUse the http svn repository, not https, because using the https causes svn2cl to...
dooglus [Thu, 27 Sep 2007 00:31:17 +0000 (00:31 +0000)]
Use the http svn repository, not https, because using the https causes svn2cl to hang forever if the server isn't trusted locally.

git-svn-id: http://svn.voria.com/code@773 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoStop the 'warning: underquoted definition of ...' warnings by putting [...] around...
dooglus [Thu, 27 Sep 2007 00:30:33 +0000 (00:30 +0000)]
Stop the 'warning: underquoted definition of ...' warnings by putting [...] around AC_DEFUN definitions.

git-svn-id: http://svn.voria.com/code@772 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSame as the last commit, except for the 'splash screen' that is shown while Studio...
dooglus [Thu, 27 Sep 2007 00:30:24 +0000 (00:30 +0000)]
Same as the last commit, except for the 'splash screen' that is shown while Studio is loading, and while documents are loading.

git-svn-id: http://svn.voria.com/code@771 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoexport SYNFIG_DISABLE_POPUP_WINDOWS=1 to stop the "one moment please" staying on...
dooglus [Thu, 27 Sep 2007 00:30:16 +0000 (00:30 +0000)]
export SYNFIG_DISABLE_POPUP_WINDOWS=1 to stop the "one moment please" staying on top.  This is useful when debugging, because the 'one moment' often turns into 'several hours', and it's annoying to have an opaque strip in the centre of the screen for so long.

git-svn-id: http://svn.voria.com/code@770 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoReorder the members to avoid warnings.
dooglus [Wed, 26 Sep 2007 22:39:45 +0000 (22:39 +0000)]
Reorder the members to avoid warnings.

git-svn-id: http://svn.voria.com/code@769 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects...
dooglus [Wed, 26 Sep 2007 22:36:41 +0000 (22:36 +0000)]
The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects the default constructor of the types it supports (which includes Color) to initialise the constructed object.  I don't know what other code expects Color objects to be initialised, so let's play safe and initialise all colors for now.

git-svn-id: http://svn.voria.com/code@768 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix the crash that the previous commit half-fixed.
dooglus [Wed, 26 Sep 2007 19:10:53 +0000 (19:10 +0000)]
Fix the crash that the previous commit half-fixed.

studio::App::quit()                                                     at app.cpp:1575
  studio::Instance::safe_close ()                                       at instance.cpp:687
    [ handle magic ]
      ~CanvasView (this=0xa432378)                                      at canvasview.cpp:918
        ~WorkArea (this=0x8ed2a10)                                      at workarea.cpp:815
          [ handle magic ]
        ^   ~Canvas (this=0x8e8a2b8)                                    at canvas.cpp:94
        |     synfig::Canvas::clear ()                                  at canvas.cpp:136
        |       synfig::Canvas::erase (iter)                            at canvas.cpp:758
        |         synfig::Node::changed ()                              at node.cpp:194
        |           synfig::Canvas::on_changed ()                       at canvas.cpp:86
        |             synfig::Node::on_changed ()                       at node.cpp:290
        |               [ sigc magic ]
        |                 studio::CanvasView::on_dirty_preview ()       at canvasview.cpp:2774
        `- illegal -------  work_area->queue_render_preview();

git-svn-id: http://svn.voria.com/code@767 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoI thought this should prevent a crash, but it doesn't. __render_preview is still...
dooglus [Wed, 26 Sep 2007 16:59:45 +0000 (16:59 +0000)]
I thought this should prevent a crash, but it doesn't.  __render_preview is still being called after the WorkArea has been deleted.  Why?

git-svn-id: http://svn.voria.com/code@766 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd some extra console output while closing down.
dooglus [Wed, 26 Sep 2007 16:59:37 +0000 (16:59 +0000)]
Add some extra console output while closing down.

git-svn-id: http://svn.voria.com/code@765 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoUncommented the line that stops the module subsystem. There was a warning: "For...
dooglus [Wed, 26 Sep 2007 14:38:22 +0000 (14:38 +0000)]
Uncommented the line that stops the module subsystem.  There was a warning: "For some reason, uncommenting the next line will cause things to crash. This needs to be looked into at some point", but it doesn't seem to cause a crash.

git-svn-id: http://svn.voria.com/code@764 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSuppress valgrind warning about an error in libz.
dooglus [Wed, 26 Sep 2007 10:09:53 +0000 (10:09 +0000)]
Suppress valgrind warning about an error in libz.

git-svn-id: http://svn.voria.com/code@763 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFixed another set of uninitialised variables.
dooglus [Wed, 26 Sep 2007 09:56:03 +0000 (09:56 +0000)]
Fixed another set of uninitialised variables.

git-svn-id: http://svn.voria.com/code@762 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix a variable-read-before-set error.
dooglus [Wed, 26 Sep 2007 09:12:22 +0000 (09:12 +0000)]
Fix a variable-read-before-set error.

git-svn-id: http://svn.voria.com/code@761 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFinish fix for 1801220. I forgot about the call to change the frame background back...
dooglus [Wed, 26 Sep 2007 05:57:12 +0000 (05:57 +0000)]
Finish fix for 1801220.  I forgot about the call to change the frame background back to normal when not in edit mode.  We don't need that now.

git-svn-id: http://svn.voria.com/code@760 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAdd valgrind suppressions and .gitignore.
dooglus [Tue, 25 Sep 2007 22:25:06 +0000 (22:25 +0000)]
Add valgrind suppressions and .gitignore.

git-svn-id: http://svn.voria.com/code@759 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1801220: Some Ubuntu Themes don't show the red border in animate edit mode. ...
dooglus [Tue, 25 Sep 2007 21:56:58 +0000 (21:56 +0000)]
Fix 1801220: Some Ubuntu Themes don't show the red border in animate edit mode.  Draw the border by hand rather than relying on the Gtk theme to have left a pixel or two of background showing.

git-svn-id: http://svn.voria.com/code@758 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoImplement http://wiki.synfig.com/Wish_list : "Restore Default Layout". It's on the...
dooglus [Tue, 25 Sep 2007 21:25:25 +0000 (21:25 +0000)]
Implement wiki.synfig.com/Wish_list : "Restore Default Layout".  It's on the toolbox's "Dialogs" menu.

git-svn-id: http://svn.voria.com/code@757 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1776156: "region and outline position ducks aren't linked". They are now - there...
dooglus [Tue, 25 Sep 2007 15:51:56 +0000 (15:51 +0000)]
Fix 1776156: "region and outline position ducks aren't linked".  They are now - there's a checkbox for "Link Offsets".  I didn't add the option of not linking vertex ducks yet, or add similar for the draw tool.

git-svn-id: http://svn.voria.com/code@756 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOnly use gamma correction on R,G,B & Y, and only when it's turned on!
dooglus [Tue, 25 Sep 2007 12:39:14 +0000 (12:39 +0000)]
Only use gamma correction on R,G,B & Y, and only when it's turned on!

git-svn-id: http://svn.voria.com/code@755 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoSimplify the code by using colorconv_synfig2gdk() rather than repeating its functiona...
dooglus [Tue, 25 Sep 2007 12:29:10 +0000 (12:29 +0000)]
Simplify the code by using colorconv_synfig2gdk() rather than repeating its functionality here.  Incidentally, the last change fixed a bug illustrated here: wiki.synfig.com/images/d/d1/Color-editor-linear-bug.jpg -- the positions of the three R,G,B sliders should all be pointing at the same color, but they weren't.  The lower image shows how it looks after the previous commit - all three slider positions are the same color.

git-svn-id: http://svn.voria.com/code@754 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoThe color gradients displayed on the sliders in the color editor were being calculate...
dooglus [Tue, 25 Sep 2007 12:29:02 +0000 (12:29 +0000)]
The color gradients displayed on the sliders in the color editor were being calculated incorrectly when "File > Setup > Misc > Visually Linear Color Selection" was enabled, resulting in different colors being displayed at each of the R, G and B sliders' current positions.

git-svn-id: http://svn.voria.com/code@753 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoTidying.
dooglus [Tue, 25 Sep 2007 12:28:53 +0000 (12:28 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@752 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoMove the gamma_in and gamma_out macros into "color.h".
dooglus [Tue, 25 Sep 2007 09:13:23 +0000 (09:13 +0000)]
Move the gamma_in and gamma_out macros into "color.h".

git-svn-id: http://svn.voria.com/code@751 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemoved unused macros.
dooglus [Tue, 25 Sep 2007 08:33:54 +0000 (08:33 +0000)]
Removed unused macros.

git-svn-id: http://svn.voria.com/code@750 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1800783: "motion blur doesn't work on encapsulated layers". As before, but consid...
dooglus [Mon, 24 Sep 2007 23:25:10 +0000 (23:25 +0000)]
Fix 1800783: "motion blur doesn't work on encapsulated layers". As before, but consider motion blur even for PasteCanvas layers without a sub canvas.

git-svn-id: http://svn.voria.com/code@749 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoFix 1800783: "motion blur doesn't work on encapsulated layers". Now we take the z...
dooglus [Mon, 24 Sep 2007 23:25:02 +0000 (23:25 +0000)]
Fix 1800783: "motion blur doesn't work on encapsulated layers". Now we take the z-depth into account as well. We need to look through all the layers before optimizing any sub-canvases.

git-svn-id: http://svn.voria.com/code@748 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoNearly fix 1800783. Don't freeze dynamic parameters of PasteCanvas layers if there...
dooglus [Mon, 24 Sep 2007 23:24:53 +0000 (23:24 +0000)]
Nearly fix 1800783. Don't freeze dynamic parameters of PasteCanvas layers if there's a MotionBlur level above them. Currently this only works if the MotionBlur is above the PasteCanvas in the layer order, but that can be affected by the zdepth parameters, so the patch needs more work. Still, it's better than it was.

git-svn-id: http://svn.voria.com/code@747 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoRemove an unused prototype.
dooglus [Mon, 24 Sep 2007 20:48:26 +0000 (20:48 +0000)]
Remove an unused prototype.

git-svn-id: http://svn.voria.com/code@746 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoAllow the 'BLine Tangent' to be used to convert angles. The resulting value is the...
dooglus [Sun, 23 Sep 2007 20:25:41 +0000 (20:25 +0000)]
Allow the 'BLine Tangent' to be used to convert angles.  The resulting value is the angle of the tangent to the bline at the given point to the horizontal.

git-svn-id: http://svn.voria.com/code@745 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoImplemented feature request [ 1781903 ] make vertices/object move along paths. Added...
dooglus [Sun, 23 Sep 2007 18:50:21 +0000 (18:50 +0000)]
Implemented feature request [ 1781903 ] make vertices/object move along paths.  Added 'BLine Vector' and 'BLine Tangent' convert types to allow layers to move along arbitrary BLine paths.

git-svn-id: http://svn.voria.com/code@744 1f10aa63-cdf2-0310-b900-c93c546f37ac

17 years agoOops. Fixed a silly copy/paste error.
dooglus [Sun, 23 Sep 2007 00:10:00 +0000 (00:10 +0000)]
Oops.  Fixed a silly copy/paste error.

git-svn-id: http://svn.voria.com/code@743 1f10aa63-cdf2-0310-b900-c93c546f37ac