summaryrefslogtreecommitdiffstats
path: root/src/selection-describer.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-06-11 21:29:07 +0000
committerMartin Owens <doctormo@gmail.com>2013-06-11 21:29:07 +0000
commitcd6b7f49054415a6ad7ad71f36e7987bd8af1657 (patch)
tree29414dd14c347745396b6f96c8b2d7a021a49921 /src/selection-describer.cpp
parentextensions. hpgl input. new import routine by TimeWaster (diff)
downloadinkscape-cd6b7f49054415a6ad7ad71f36e7987bd8af1657.tar.gz
inkscape-cd6b7f49054415a6ad7ad71f36e7987bd8af1657.zip
Fix bug where symbols weren't identified as such
Fixed bugs: - https://launchpad.net/bugs/1179224 (bzr r12366)
Diffstat (limited to '')
-rw-r--r--src/selection-describer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp
index 968a8bd22..dd64e6232 100644
--- a/src/selection-describer.cpp
+++ b/src/selection-describer.cpp
@@ -38,8 +38,9 @@
#include "sp-spiral.h"
static const gchar *
-type2term(GType type)
+type2term(SPItem *item)
{
+ GType type = G_OBJECT_TYPE( item );
if (type == SP_TYPE_ANCHOR)
//TRANSLATORS: "Link" means internet link (anchor)
{ return C_("Web", "Link"); }
@@ -68,6 +69,8 @@ type2term(GType type)
if (type == SP_TYPE_TEXT)
{ return C_("Object", "Text"); }
if (type == SP_TYPE_USE)
+ if (SP_IS_SYMBOL(item->firstChild()))
+ { return C_("Object", "Symbol"); }
// TRANSLATORS: "Clone" is a noun, type of object
{ return C_("Object", "Clone"); }
if (type == SP_TYPE_ARC)
@@ -85,7 +88,7 @@ static GSList *collect_terms (GSList *items)
{
GSList *r = NULL;
for (GSList *i = items; i != NULL; i = i->next) {
- const gchar *term = type2term (G_OBJECT_TYPE(i->data));
+ const gchar *term = type2term ( SP_ITEM(i->data) );
if (term != NULL && g_slist_find (r, term) == NULL)
r = g_slist_prepend (r, (void *) term);
}