summaryrefslogtreecommitdiffstats
path: root/src/sp-offset.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-09-20 04:45:16 +0000
committerMartin Owens <doctormo@gmail.com>2013-09-20 04:45:16 +0000
commiteb3598e7e27619c759ef33bb9ec4ffb8898523de (patch)
tree3793d7310b4cdea6ffaea3fe7ee837b3ede065cf /src/sp-offset.cpp
parentFix make check after merge of cppify branch (diff)
downloadinkscape-eb3598e7e27619c759ef33bb9ec4ffb8898523de.tar.gz
inkscape-eb3598e7e27619c759ef33bb9ec4ffb8898523de.zip
Refactor status-bar text for multiple items, was very broken
Fixed bugs: - https://launchpad.net/bugs/1199192 (bzr r12550)
Diffstat (limited to '')
-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)