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);