diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-07-22 18:03:54 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-07-22 18:03:54 +0000 |
| commit | e20350c225ad4e48d9de4bae16cbc1e2f36f0849 (patch) | |
| tree | e60fbc31a59244346a881dc81a11c6ff9be1f906 /src | |
| parent | Added xml:space=preserve attribute on <text> nodes and sodipodi:role=line att... (diff) | |
| download | inkscape-e20350c225ad4e48d9de4bae16cbc1e2f36f0849.tar.gz inkscape-e20350c225ad4e48d9de4bae16cbc1e2f36f0849.zip | |
tspan statusbar description
(bzr r3275)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-tspan.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp index c53a75d5d..67b5217b9 100644 --- a/src/sp-tspan.cpp +++ b/src/sp-tspan.cpp @@ -27,6 +27,8 @@ # include "config.h" #endif +#include <glibmm/i18n.h> + #include <livarot/Path.h> #include "svg/stringstream.h" #include "attributes.h" @@ -55,6 +57,7 @@ static void sp_tspan_update(SPObject *object, SPCtx *ctx, guint flags); 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; @@ -102,6 +105,7 @@ sp_tspan_class_init(SPTSpanClass *classname) sp_object_class->write = sp_tspan_write; item_class->bbox = sp_tspan_bbox; + item_class->description = sp_tspan_description; } static void @@ -272,6 +276,15 @@ sp_tspan_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) 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 #####################################################*/ |
