wibox.layout.*: add get direction method

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
dodo 2011-03-30 04:05:59 +02:00 committed by Uli Schlachter
parent af756bb0d1
commit 2f3bc619cb
3 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,7 @@ local function get_layout(dir)
local ret = widget_base.make_widget()
ret.draw = draw_dir
ret.fit = function(box, ...) return ... end
ret.get_dir = function () return dir end
ret._emit_updated = function()
ret:emit_signal("widget::updated")
end

View File

@ -132,6 +132,7 @@ local function get_layout(dir)
ret.reset = reset
ret.fill_space = fill_space
ret.widgets = {}
ret.get_dir = function () return dir end
ret._emit_updated = function()
ret:emit_signal("widget::updated")
end

View File

@ -85,6 +85,7 @@ local function get_layout(dir)
ret.add = add
ret.reset = reset
ret.widgets = {}
ret.get_dir = function () return dir end
ret._emit_updated = function()
ret:emit_signal("widget::updated")
end