aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
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