Julien Danjou
4d0a025f51
luaclass: add handling of {new,}index of missing properties (FS#584)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou
a916f2cd55
image: port to new class system
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou
dc61d258f0
luaclass: optimize type handling
...
We use lua_class_t pointer as key in the registry to store metatable we
will compare.
lauxlib uses a string, which sucks, because it forces to do a
pushliteral() each time you want to get a metatable from the registry,
which is slower.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou
27fd05320e
button: use new object system
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:46 +02:00
Julien Danjou
073e0377dd
Revert "key, button: use as simple table"
...
This reverts commit d7454f4307
.
Conflicts:
button.h
key.h
lib/awful/titlebar.lua.in
lib/naughty.lua.in
wibox.c
wibox.h
widget.c
2009-08-14 16:48:52 +02:00
Julien Danjou
047d04d438
luaobject: import __tostring as object meta function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 16:09:14 +02:00
Julien Danjou
c1d99f0960
luaobject: emit signal on new object
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 15:48:18 +02:00
Julien Danjou
dea2b6303a
luaobject: import signals meta methods in objects
...
Signed-off-by: Julien Danjou <julien@danjou.info>
Conflicts:
2009-07-29 15:48:18 +02:00
Julien Danjou
d7454f4307
key, button: use as simple table
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-28 10:44:54 +02:00
Julien Danjou
339fb53d56
luaobject: add and use item system
...
Now, each object can store items.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-28 10:29:30 +02:00
Julien Danjou
5eadbc0116
key: change setmodifiers to tomodifiers
...
This is more Lua compliant.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-17 17:05:47 +02:00
Julien Danjou
a8115bd45e
luaobject: ref take index number as argument
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-16 17:15:20 +02:00
Julien Danjou
c95ba76d2f
luaobject: use object header and standard gc everywhere
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-16 16:26:45 +02:00
Julien Danjou
95180799cc
button: change copy method
...
We know also copy release.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-08 14:00:43 +02:00
Julien Danjou
43902aed69
luaa: fix memory leak in __gc
...
We need to wipe the ref_array.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-08 09:53:20 +02:00
Julien Danjou
39c351d112
button: add modifiers field in __newindex
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:32:39 +02:00
Julien Danjou
6d8ae55850
key: modularize modifiers set
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:12:24 +02:00
Julien Danjou
42bcd7288d
button: add support for modifiers in __index
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:44:25 +02:00
Julien Danjou
5476665ba2
button: return 0 on index with unknown elem
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:43:54 +02:00
Julien Danjou
9b4cd23539
button: add missing documentation for button element
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:43:23 +02:00
Julien Danjou
21e8c0c89e
button: add support for AnyButton
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 12:34:30 +02:00
Julien Danjou
cbcbb68f7e
xutil: remove useless conversion function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 12:34:13 +02:00
Julien Danjou
308ef7de5d
mouse: split button out
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 10:46:09 +02:00