summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0b0b05)
raw | patch | inline | side by side (parent: d0b0b05)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 22 Jul 2007 18:03:54 +0000 (18:03 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 22 Jul 2007 18:03:54 +0000 (18:03 +0000) |
src/sp-tspan.cpp | patch | blob | history |
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index c53a75d5dd1defd06866919e903fe2cca344ec2d..67b5217b9da7e1d54e76db7f1e1f94a6cea99f30 100644 (file)
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
# include "config.h"
#endif
+#include <glibmm/i18n.h>
+
#include <livarot/Path.h>
#include "svg/stringstream.h"
#include "attributes.h"
static void sp_tspan_modified(SPObject *object, unsigned flags);
static void sp_tspan_bbox(SPItem const *item, NRRect *bbox, NR::Matrix const &transform, unsigned const flags);
static Inkscape::XML::Node *sp_tspan_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
+static char *sp_tspan_description (SPItem *item);
static SPItemClass *tspan_parent_class;
sp_object_class->write = sp_tspan_write;
item_class->bbox = sp_tspan_bbox;
+ item_class->description = sp_tspan_description;
}
static void
return repr;
}
+static char *
+sp_tspan_description(SPItem *item)
+{
+ g_return_val_if_fail(SP_IS_TSPAN(item), NULL);
+
+ return g_strdup(_("<b>Text span</b>"));
+}
+
+
/*#####################################################
# SPTEXTPATH
#####################################################*/