summaryrefslogtreecommitdiffstats
path: root/src/sp-offset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-offset.cpp')
-rw-r--r--src/sp-offset.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/sp-offset.cpp b/src/sp-offset.cpp
index ef18acc8e..f9759cac1 100644
--- a/src/sp-offset.cpp
+++ b/src/sp-offset.cpp
@@ -339,18 +339,20 @@ void SPOffset::update(SPCtx *ctx, guint flags) {
SPShape::update(ctx, flags);
}
-gchar* SPOffset::description() {
+const char* SPOffset::display_name() {
if ( this->sourceHref ) {
- // TRANSLATORS COMMENT: %s is either "outset" or "inset" depending on sign
- return g_strdup_printf(_("<b>Linked offset</b>, %s by %f pt"),
- (this->rad >= 0)? _("outset") : _("inset"), fabs (this->rad));
+ return _("Linked Offset");
} else {
- // TRANSLATORS COMMENT: %s is either "outset" or "inset" depending on sign
- return g_strdup_printf(_("<b>Dynamic offset</b>, %s by %f pt"),
- (this->rad >= 0)? _("outset") : _("inset"), fabs (this->rad));
+ return _("Dynamic Offset");
}
}
+gchar* SPOffset::description() {
+ // TRANSLATORS COMMENT: %s is either "outset" or "inset" depending on sign
+ return g_strdup_printf(_("%s by %f pt"), (this->rad >= 0) ?
+ _("outset") : _("inset"), fabs (this->rad));
+}
+
void SPOffset::set_shape() {
if ( this->originalPath == NULL ) {
// oops : no path?! (the offset object should do harakiri)