summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.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-ellipse.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-ellipse.cpp')
-rw-r--r--src/sp-ellipse.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index 7c6066054..aad0336a7 100644
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
@@ -427,8 +427,8 @@ void SPEllipse::set(unsigned int key, gchar const* value) {
}
}
-gchar* SPEllipse::description() {
- return g_strdup(_("<b>Ellipse</b>"));
+const char* SPEllipse::display_name() {
+ return _("Ellipse");
}
@@ -507,8 +507,8 @@ void SPCircle::set(unsigned int key, gchar const* value) {
}
}
-gchar* SPCircle::description() {
- return g_strdup(_("<b>Circle</b>"));
+const char* SPCircle::display_name() {
+ return _("Circle");
}
/* <path sodipodi:type="arc"> element */
@@ -681,7 +681,7 @@ void SPArc::modified(guint flags) {
}
-gchar* SPArc::description() {
+const char* SPArc::display_name() {
gdouble len = fmod(this->end - this->start, SP_2PI);
if (len < 0.0) {
@@ -690,12 +690,12 @@ gchar* SPArc::description() {
if (!(fabs(len) < 1e-8 || fabs(len - SP_2PI) < 1e-8)) {
if (this->closed) {
- return g_strdup(_("<b>Segment</b>"));
+ return _("Segment");
} else {
- return g_strdup(_("<b>Arc</b>"));
+ return _("Arc");
}
} else {
- return g_strdup(_("<b>Ellipse</b>"));
+ return _("Ellipse");
}
}