deprecate awesome.load_image
Signed-off-by: delta <darkussdelta@gmail.com>
This commit is contained in:
parent
0f950cbb62
commit
51b98dce38
6
luaa.c
6
luaa.c
|
@ -327,14 +327,12 @@ luaA_pixbuf_to_surface(lua_State *L)
|
||||||
* @treturn gears.surface A cairo surface as light user datum.
|
* @treturn gears.surface A cairo surface as light user datum.
|
||||||
* @treturn nil|string The error message, if any.
|
* @treturn nil|string The error message, if any.
|
||||||
* @staticfct load_image
|
* @staticfct load_image
|
||||||
|
* @deprecated awesome.pixbuf_to_surface
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
luaA_load_image(lua_State *L)
|
luaA_load_image(lua_State *L)
|
||||||
{
|
{
|
||||||
/* TODO: Deprecate this function, Lua can use GdkPixbuf directly plus
|
luaA_deprecate(L, "awesome.pixbuf_to_surface");
|
||||||
* awesome.pixbuf_to_surface
|
|
||||||
*/
|
|
||||||
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
const char *filename = luaL_checkstring(L, 1);
|
const char *filename = luaL_checkstring(L, 1);
|
||||||
cairo_surface_t *surface = draw_load_image(L, filename, &error);
|
cairo_surface_t *surface = draw_load_image(L, filename, &error);
|
||||||
|
|
Loading…
Reference in New Issue