rules: define geometry properties

Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Cedric GESTES 2009-09-07 17:18:21 +02:00 committed by Julien Danjou
parent 1442687830
commit 62b0a9d8f1
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ function apply(c)
elseif property == "switchtotag" and value elseif property == "switchtotag" and value
and entry.properties["tag"] then and entry.properties["tag"] then
atag.viewonly(entry.properties["tag"]) atag.viewonly(entry.properties["tag"])
elseif property == "height" or property == "width" or
property == "x" or property == "y" then
local geo = c:geometry();
geo[property] = value
c:geometry(geo);
elseif type(c[property]) == "function" then elseif type(c[property]) == "function" then
c[property](c, value) c[property](c, value)
else else