summaryrefslogtreecommitdiffstats
path: root/src/sp-spiral.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-spiral.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 'src/sp-spiral.cpp')
-rw-r--r--src/sp-spiral.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp
index 8d2954c6e..ab7cc5c9d 100644
--- a/src/sp-spiral.cpp
+++ b/src/sp-spiral.cpp
@@ -227,12 +227,14 @@ void SPSpiral::update_patheffect(bool write) {
shape->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
}
-gchar* SPSpiral::description() {
- SPSpiral* item = this;
+const char* SPSpiral::display_name() {
+ return _("Spiral");
+}
- // TRANSLATORS: since turn count isn't an integer, please adjust the
+gchar* SPSpiral::description() {
+ // TRANSLATORS: since turn count isn't an integer, please adjust the
// string as needed to deal with an localized plural forms.
- return g_strdup_printf (_("<b>Spiral</b> with %3f turns"), SP_SPIRAL(item)->revo);
+ return g_strdup_printf (_("with %3f turns"), SP_SPIRAL(this)->revo);
}
/**