aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-05 12:39:40 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:52:46 (GMT)
commit60cd98604ae0ee62d64e3bc852898f69dae221d4 (patch)
tree198c36f2199c1441ff2c5cc76fb21896762c9a01 /src/Screen.cc
parentfc21fd822e527dbd918c6565e0e2cea82b0466f4 (diff)
downloadfluxbox_pavel-60cd98604ae0ee62d64e3bc852898f69dae221d4.zip
fluxbox_pavel-60cd98604ae0ee62d64e3bc852898f69dae221d4.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 86799da..3435843 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