diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-09-20 17:43:57 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-09-20 17:43:57 +0000 |
| commit | 0a836d1870bb87d5be3e4d900718f903371c8e56 (patch) | |
| tree | 7d218dc0e9d81e2f7d3eddcefad9640769dc89b3 /src/sp-use.cpp | |
| parent | Compact of SVG icons whith the help of ~suv and Martin Owens (diff) | |
| parent | Merge Google Summer of Code unit improvement. (diff) | |
| download | inkscape-0a836d1870bb87d5be3e4d900718f903371c8e56.tar.gz inkscape-0a836d1870bb87d5be3e4d900718f903371c8e56.zip | |
Update to trunk
(bzr r11950.1.146)
Diffstat (limited to 'src/sp-use.cpp')
| -rw-r--r-- | src/sp-use.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp index 44935e61d..05e1f0e66 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -226,12 +226,17 @@ void SPUse::print(SPPrintContext* ctx) { } } +const char* SPUse::display_name() { + if(this->child && SP_IS_SYMBOL( this->child )) { + return _("Symbol"); + } + return _("Clone"); +} + gchar* SPUse::description() { if (this->child) { if( SP_IS_SYMBOL( this->child ) ) { - char *symbol_desc = SP_ITEM(this->child)->title(); - return g_strdup_printf(_("<b>'%s' Symbol</b>"), symbol_desc ); - g_free(symbol_desc); + return g_strdup_printf(_("called %s"), SP_ITEM(this->child)->title()); } static unsigned recursion_depth = 0; @@ -248,12 +253,12 @@ gchar* SPUse::description() { char *child_desc = SP_ITEM(this->child)->getDetailedDescription(); --recursion_depth; - char *ret = g_strdup_printf(_("<b>Clone</b> of: %s"), child_desc); + char *ret = g_strdup_printf(_("of: %s"), child_desc); g_free(child_desc); return ret; } else { - return g_strdup(_("<b>Orphaned clone</b>")); + return g_strdup(_("[orphaned]")); } } |
