From f1ba111f2d535e0086e12b665bac35c26bc21f3a Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 17 Mar 2006 06:27:57 +0000 Subject: [PATCH] describe clipped/masked objects in statusbar --- src/sp-item.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; clipped", s); + g_free (s); + s = snew; + } + if (s && item->mask_ref->getObject()) { + gchar *snew = g_strdup_printf ("%s; masked", s); + g_free (s); + s = snew; + } + return s; } g_assert_not_reached(); -- 2.30.2