projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved keyframedial to the first row as well as the animate button
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
widget_curves.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp
index
4b43405
..
b4a5678
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/widget_curves.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/widget_curves.cpp
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Gerco Ballintijn
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-290,10
+291,13
@@
struct studio::Widget_Curves::CurveStruct : sigc::trackable
return -channels[chan].values[time];
}
return -channels[chan].values[time];
}
- static bool is_supported(const synfigapp::ValueDesc& x)
+ static bool is_
not_
supported(const synfigapp::ValueDesc& x)
{
return x.get_value_type() == ValueBase::TYPE_STRING
{
return x.get_value_type() == ValueBase::TYPE_STRING
- && x.get_value_type() == ValueBase::TYPE_CANVAS;
+ || x.get_value_type() == ValueBase::TYPE_CANVAS
+ || x.get_value_type() == ValueBase::TYPE_GRADIENT
+ || x.get_value_type() == ValueBase::TYPE_LIST
+ || x.get_value_type() == ValueBase::TYPE_SEGMENT;
}
};
}
};
@@
-371,7
+375,7
@@
Widget_Curves::set_value_descs(std::list<synfigapp::ValueDesc> value_descs)
std::list<synfigapp::ValueDesc>::iterator iter;
for(iter=value_descs.begin();iter!=value_descs.end();++iter)
{
std::list<synfigapp::ValueDesc>::iterator iter;
for(iter=value_descs.begin();iter!=value_descs.end();++iter)
{
- if (
! CurveStruct::is
_supported(*iter))
+ if (
CurveStruct::is_not
_supported(*iter))
continue;
try {
continue;
try {