diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-06-05 12:39:40 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-16 23:36:35 (GMT) |
commit | 3b7c1a3c220b7ccec0dee7804d36dabfe81449c4 (patch) | |
tree | e8b8aaf22411231fbfee9f16a8c91f8ed3c3f3f3 /src/Screen.cc | |
parent | e27268fc69b776f533a2082d2ca9c13fe863cd80 (diff) | |
download | fluxbox_pavel-3b7c1a3c220b7ccec0dee7804d36dabfe81449c4.zip fluxbox_pavel-3b7c1a3c220b7ccec0dee7804d36dabfe81449c4.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.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 725d4b5..e065d7a 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -76,6 +76,7 @@ | |||
76 | #include "FbTk/STLUtil.hh" | 76 | #include "FbTk/STLUtil.hh" |
77 | #include "FbTk/KeyUtil.hh" | 77 | #include "FbTk/KeyUtil.hh" |
78 | #include "FbTk/Util.hh" | 78 | #include "FbTk/Util.hh" |
79 | #include "FbTk/Luamm.hh" | ||
79 | 80 | ||
80 | //use GNU extensions | 81 | //use GNU extensions |
81 | #ifndef _GNU_SOURCE | 82 | #ifndef _GNU_SOURCE |
@@ -278,6 +279,19 @@ setFromString(const char *strval) { | |||
278 | setDefaultValue(); | 279 | setDefaultValue(); |
279 | } | 280 | } |
280 | 281 | ||
282 | template<> | ||
283 | void FbTk::Resource<FbWinFrame::TabPlacement>::setFromLua(lua::state &l) { | ||
284 | lua::stack_sentry s(l, -1); | ||
285 | |||
286 | setFromString(l.isstring(-1) ? l.tostring(-1).c_str() : ""); | ||
287 | l.pop(); | ||
288 | } | ||
289 | |||
290 | template<> | ||
291 | void FbTk::Resource<FbWinFrame::TabPlacement>::pushToLua(lua::state &l) const { | ||
292 | l.pushstring(getString()); | ||
293 | } | ||
294 | |||
281 | } // end namespace FbTk | 295 | } // end namespace FbTk |
282 | 296 | ||
283 | 297 | ||