X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fvaluedescconnect.cpp;h=eea57f0b3d619e03ef3c60af2e3aa8fefc9009a1;hb=a9d08207afd2628f4d6f520ee75ba5d2a35048d9;hp=062edeed710a7bd4c883f88d21c513bf9783a71d;hpb=d780ceae6fd8c579b28cd5b6dd1e9688e130fd2d;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp index 062edee..eea57f0 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescconnect.cpp @@ -48,7 +48,7 @@ using namespace Action; /* === M A C R O S ========================================================= */ -ACTION_INIT(Action::ValueDescConnect); +ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescConnect); ACTION_SET_NAME(Action::ValueDescConnect,"value_desc_connect"); ACTION_SET_LOCAL_NAME(Action::ValueDescConnect,N_("Connect")); ACTION_SET_TASK(Action::ValueDescConnect,"connect"); @@ -67,6 +67,15 @@ Action::ValueDescConnect::ValueDescConnect() { } +synfig::String +Action::ValueDescConnect::get_local_name()const +{ + // TRANSLATORS: This is used in the 'history' dialog when a connection is made. + return strprintf(_("Connect '%s' to '%s'"), + value_desc.get_description(false).c_str(), + value_node->get_id().c_str()); +} + Action::ParamVocab Action::ValueDescConnect::get_param_vocab() { @@ -111,15 +120,10 @@ Action::ValueDescConnect::is_candidate(const ParamList &x) ValueDesc value_desc=x.find("dest")->second.get_value_desc(); ValueNode::Handle value_node=x.find("src")->second.get_value_node(); if(value_desc.get_value_type()==value_node->get_type()) - { - printf("%s:%d\n", __FILE__, __LINE__); return true; - } } - printf("%s:%d\n", __FILE__, __LINE__); return true; } - printf("%s:%d\n", __FILE__, __LINE__); return false; }