aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-05 12:39:40 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:10:40 (GMT)
commit5f91d3183a1407222bb6929de0eb2bdc314a0bad (patch)
treeabc545f1492cee09d8c675c03abbeb7e6902becf /src/Screen.cc
parent964fa5e114b4bdde158578c10c821ae5613d4b41 (diff)
downloadfluxbox_paul-5f91d3183a1407222bb6929de0eb2bdc314a0bad.zip
fluxbox_paul-5f91d3183a1407222bb6929de0eb2bdc314a0bad.tar.bz2
Specializations of FbTk::Resource<X>::{setFromLua,pushToLua}
for various values of X.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 6757af0..6b8efe9 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -74,6 +74,7 @@
74#include "FbTk/STLUtil.hh" 74#include "FbTk/STLUtil.hh"
75#include "FbTk/KeyUtil.hh" 75#include "FbTk/KeyUtil.hh"
76#include "FbTk/Util.hh" 76#include "FbTk/Util.hh"
77#include "FbTk/Luamm.hh"
77 78
78//use GNU extensions 79//use GNU extensions
79#ifndef _GNU_SOURCE 80#ifndef _GNU_SOURCE
@@ -260,6 +261,19 @@ setFromString(const char *strval) {
260 setDefaultValue(); 261 setDefaultValue();
261} 262}
262 263
264template<>
265void FbTk::Resource<FbWinFrame::TabPlacement>::setFromLua(lua::state &l) {
266 lua::stack_sentry s(l, -1);
267
268 setFromString(l.isstring(-1) ? l.tostring(-1).c_str() : "");
269 l.pop();
270}
271
272template<>
273void FbTk::Resource<FbWinFrame::TabPlacement>::pushToLua(lua::state &l) const {
274 l.pushstring(getString());
275}
276
263} // end namespace FbTk 277} // end namespace FbTk
264 278
265 279