aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/LuaUtil.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-25 13:41:32 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:11:33 (GMT)
commit7742efa7060f4468ab9ff0ea9dc3e6d9539f3622 (patch)
treefdd5eafe08f35abdc2b12a5430286453a4d0640e /src/FbTk/LuaUtil.cc
parentf01627a66ab53b25090b678d71ba78cd411c7452 (diff)
downloadfluxbox_paul-7742efa7060f4468ab9ff0ea9dc3e6d9539f3622.zip
fluxbox_paul-7742efa7060f4468ab9ff0ea9dc3e6d9539f3622.tar.bz2
Add readOnlySetField to FbTk::Lua
an equivalent of rawsetfield, but for "read only" tables.
Diffstat (limited to 'src/FbTk/LuaUtil.cc')
-rw-r--r--src/FbTk/LuaUtil.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbTk/LuaUtil.cc b/src/FbTk/LuaUtil.cc
index 700ef1a..01744bf 100644
--- a/src/FbTk/LuaUtil.cc
+++ b/src/FbTk/LuaUtil.cc
@@ -115,4 +115,13 @@ void Lua::readOnlySet(int index) {
115 pop(); 115 pop();
116} 116}
117 117
118void Lua::readOnlySetField(int index, const char *k) {
119 checkstack(1);
120 index = absindex(index);
121
122 pushstring(k);
123 insert(-2);
124 readOnlySet(index);
125}
126
118} // namespace FbTk 127} // namespace FbTk