summaryrefslogtreecommitdiff
path: root/src/option.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-03-15 16:06:29 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-03-15 16:06:29 +0100
commitf8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345 (patch)
tree38d61b9e1a4a3f447f47475e46ea2b17ae3dcd69 /src/option.cpp
parentcb423b48a53ae10fd401d32a28c3e365a70b3b7e (diff)
downloadunity-window-decorator-f8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345.tar.gz
unity-window-decorator-f8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345.tar.bz2
Added base class for get/setOption(s) functions.
Diffstat (limited to 'src/option.cpp')
-rw-r--r--src/option.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/option.cpp b/src/option.cpp
index 0140812..d90fbfc 100644
--- a/src/option.cpp
+++ b/src/option.cpp
@@ -582,6 +582,13 @@ CompOption::Restriction::operator= (const CompOption::Restriction &rest)
}
CompOption *
+CompOption::Class::getOption (const CompString &name) const
+{
+ CompOption *o = CompOption::findOption (getOptions (), name);
+ return o;
+}
+
+CompOption *
CompOption::findOption (CompOption::Vector &options,
CompString name,
unsigned int *index)