From 523661760a021e4f472b3a4b5ad3aec1c6d669d3 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 29 Sep 2010 16:10:01 +0200 Subject: [PATCH] Layoutbox: Use oocairo instead of image Signed-off-by: Uli Schlachter --- lib/awful/widget/layoutbox.lua.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/awful/widget/layoutbox.lua.in b/lib/awful/widget/layoutbox.lua.in index e449c599e..f0eda695b 100644 --- a/lib/awful/widget/layoutbox.lua.in +++ b/lib/awful/widget/layoutbox.lua.in @@ -10,8 +10,7 @@ local button = require("awful.button") local layout = require("awful.layout") local tag = require("awful.tag") local beautiful = require("beautiful") -local capi = { image = image, - screen = screen, +local capi = { oocairo = oocairo, widget = widget } --- Layoutbox widget. @@ -20,7 +19,7 @@ module("awful.widget.layoutbox") local function update(w, screen) local layout = layout.getname(layout.get(screen)) if layout and beautiful["layout_" ..layout] then - w.image = capi.image(beautiful["layout_" ..layout]) + w.image = capi.oocairo.image_surface_create_from_png(beautiful["layout_" ..layout]) else w.image = nil end