Use the new Layer::get_non_empty_description() method to show the description (or...
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / layermove.cpp
index 3c0fdf4..4d67c77 100644 (file)
@@ -44,7 +44,7 @@ using namespace Action;
 
 /* === M A C R O S ========================================================= */
 
-ACTION_INIT(Action::LayerMove);
+ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerMove);
 ACTION_SET_NAME(Action::LayerMove,"layer_move");
 ACTION_SET_LOCAL_NAME(Action::LayerMove,N_("Move Layer"));
 ACTION_SET_TASK(Action::LayerMove,"move");
@@ -66,6 +66,15 @@ Action::LayerMove::LayerMove():
 {
 }
 
+synfig::String
+Action::LayerMove::get_local_name()const
+{
+       if (layer)
+               return strprintf("%s '%s'", _("Move Layer"), layer->get_non_empty_description().c_str());
+       else
+               return _("Move Layer");
+}
+
 Action::ParamVocab
 Action::LayerMove::get_param_vocab()
 {