diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-05-11 13:02:16 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-05-11 13:02:16 +0000 |
| commit | 956c2cb14b2dd3d57936f0325d07abf6a408154b (patch) | |
| tree | 0c08bc17e651768d62e9fe81795745daacfe71d5 /src/sp-item.cpp | |
| parent | Fix for 169759 : HIG compliant Edit menu (diff) | |
| download | inkscape-956c2cb14b2dd3d57936f0325d07abf6a408154b.tar.gz inkscape-956c2cb14b2dd3d57936f0325d07abf6a408154b.zip | |
UI. Filtered objects count (patch by David Mathog).
Translations. Inkscape.pot and French translation update.
(bzr r11355)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index e0a9b97f2..d182c7d07 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -967,6 +967,19 @@ gchar *SPItem::description() } /** + * Returns 1 if the item is filtered, 0 otherwise. Used with groups/lists to determine how many, or if any, are filtered + * + */ +int SPItem::ifilt() +{ + int retval=0; + if (((SPItemClass *) G_OBJECT_GET_CLASS(this))->description) { + if ( style && style->filter.href && style->filter.href->getObject() ) { retval=1; } + } + return retval; +} + +/** * Allocates unique integer keys. * \param numkeys Number of keys required. * \return First allocated key; hence if the returned key is n |
