X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Flayerlower.cpp;h=68cad973cc5708f06e2895f9771de4054f516f01;hb=00d3f64784330d389413303e9429245adf8c978c;hp=4db1009813d48c71613d56a671b364a332e233da;hpb=50fa53ead451a223b405b1f9543f57e6e8e94a90;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp b/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp index 4db1009..68cad97 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/layerlower.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -46,7 +47,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ ACTION_INIT_NO_GET_LOCAL_NAME(Action::LayerLower); -ACTION_SET_NAME(Action::LayerLower,"layer_lower"); +ACTION_SET_NAME(Action::LayerLower,"LayerLower"); ACTION_SET_LOCAL_NAME(Action::LayerLower,N_("Lower Layer")); ACTION_SET_TASK(Action::LayerLower,"lower"); ACTION_SET_CATEGORY(Action::LayerLower,Action::CATEGORY_LAYER); @@ -67,20 +68,7 @@ Action::LayerLower::LayerLower() synfig::String Action::LayerLower::get_local_name()const { - String ret; - - if (layers.empty()) - return _("Lower Layer"); - - ret = strprintf("%s '%s'", - (layers.size() == 1 - ? _("Lower Layer") - : _("Lower Layers")), - (*layers.begin())->get_non_empty_description().c_str()); - - for(std::list::const_iterator iter=++layers.begin(); iter!=layers.end(); ++iter) - ret += strprintf(", '%s'", ((*iter)->get_non_empty_description().c_str())); - return ret; + return get_layer_descriptions(layers, _("Lower Layer"), _("Lower Layers")); } Action::ParamVocab