summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-07-16 06:58:23 +0000
committernicholasbishop <nicholasbishop@users.sourceforge.net>2007-07-16 06:58:23 +0000
commit246c048743b2b3d9847a0a0d15c4160e5227c12b (patch)
tree094e19dab1973de6b0eac6306c9471cd1d9ba093 /src/util
parentsimplify (diff)
downloadinkscape-246c048743b2b3d9847a0a0d15c4160e5227c12b.tar.gz
inkscape-246c048743b2b3d9847a0a0d15c4160e5227c12b.zip
Filter effects dialog:
* Made a lot of strings translatable * Fixed the filter primitive input settings to work more like other ComboBoxEnums. (bzr r3253)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/enums.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/enums.h b/src/util/enums.h
index e7a6fd868..cac211c89 100644
--- a/src/util/enums.h
+++ b/src/util/enums.h
@@ -55,6 +55,16 @@ public:
return (E)0;
}
+ bool is_valid_key(const Glib::ustring& key) const
+ {
+ for(int i = 0; i < end; ++i) {
+ if(_data[i].key == key)
+ return true;
+ }
+
+ return false;
+ }
+
const Glib::ustring& get_label(const E e) const
{
return _data[e].label;