Use the name of each action's class is its internal name. This makes it easier to...
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / colorset.cpp
index 42c23ce..a280858 100644 (file)
@@ -38,6 +38,8 @@
 #include <synfigapp/canvasinterface.h>
 #include <synfigapp/main.h>
 
+#include <synfigapp/general.h>
+
 #endif
 
 using namespace std;
@@ -49,8 +51,8 @@ using namespace Action;
 /* === M A C R O S ========================================================= */
 
 ACTION_INIT(Action::ColorSet);
-ACTION_SET_NAME(Action::ColorSet,"color_set");
-ACTION_SET_LOCAL_NAME(Action::ColorSet,"Apply Default Color");
+ACTION_SET_NAME(Action::ColorSet,"ColorSet");
+ACTION_SET_LOCAL_NAME(Action::ColorSet,N_("Apply Default Color"));
 ACTION_SET_TASK(Action::ColorSet,"set");
 ACTION_SET_CATEGORY(Action::ColorSet,Action::CATEGORY_VALUEDESC);
 ACTION_SET_PRIORITY(Action::ColorSet,0);
@@ -131,7 +133,7 @@ Action::ColorSet::prepare()
        clear();
 
        Action::Handle action;
-       action=Action::create("value_desc_set");
+       action=Action::create("ValueDescSet");
 
        action->set_param("canvas",get_canvas());
        action->set_param("canvas_interface",get_canvas_interface());