summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-03-17 06:27:57 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-03-17 06:27:57 +0000
commit69b1fe5d56ec98de3f546a866eb53fc93ea03830 (patch)
tree564c58823fdc63bfd2e83fe599842905b0543134 /src/sp-item.cpp
parentadd setting clip/mask bbox in sp_item_invoke_show to fix 1449541 (diff)
downloadinkscape-69b1fe5d56ec98de3f546a866eb53fc93ea03830.tar.gz
inkscape-69b1fe5d56ec98de3f546a866eb53fc93ea03830.zip
describe clipped/masked objects in statusbar
(bzr r257)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index c40490c41..4dbdb127d 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -788,7 +788,18 @@ sp_item_description(SPItem *item)
g_assert(SP_IS_ITEM(item));
if (((SPItemClass *) G_OBJECT_GET_CLASS(item))->description) {
- return ((SPItemClass *) G_OBJECT_GET_CLASS(item))->description(item);
+ gchar *s = ((SPItemClass *) G_OBJECT_GET_CLASS(item))->description(item);
+ if (s && item->clip_ref->getObject()) {
+ gchar *snew = g_strdup_printf ("%s; <i>clipped</i>", s);
+ g_free (s);
+ s = snew;
+ }
+ if (s && item->mask_ref->getObject()) {
+ gchar *snew = g_strdup_printf ("%s; <i>masked</i>", s);
+ g_free (s);
+ s = snew;
+ }
+ return s;
}
g_assert_not_reached();