From 51b98dce3879545f71762100beeff117a26b53f1 Mon Sep 17 00:00:00 2001 From: delta Date: Thu, 28 Nov 2024 00:44:34 +0100 Subject: [PATCH] deprecate awesome.load_image Signed-off-by: delta --- luaa.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/luaa.c b/luaa.c index bf1800ce9..274a2fb38 100644 --- a/luaa.c +++ b/luaa.c @@ -327,14 +327,12 @@ luaA_pixbuf_to_surface(lua_State *L) * @treturn gears.surface A cairo surface as light user datum. * @treturn nil|string The error message, if any. * @staticfct load_image + * @deprecated awesome.pixbuf_to_surface */ static int luaA_load_image(lua_State *L) { - /* TODO: Deprecate this function, Lua can use GdkPixbuf directly plus - * awesome.pixbuf_to_surface - */ - + luaA_deprecate(L, "awesome.pixbuf_to_surface"); GError *error = NULL; const char *filename = luaL_checkstring(L, 1); cairo_surface_t *surface = draw_load_image(L, filename, &error);