imagebox: fix index return value
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e0730d0da8
commit
a7a8c2d024
|
@ -103,15 +103,18 @@ luaA_imagebox_index(lua_State *L, awesome_token_t token)
|
|||
case A_TK_IMAGE:
|
||||
if(d->image)
|
||||
return luaA_image_userdata_new(L, d->image);
|
||||
else
|
||||
return 0;
|
||||
case A_TK_BG:
|
||||
luaA_pushcolor(L, &d->bg);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** The __newindex method for a imagebox object.
|
||||
* \param L The Lua VM state.
|
||||
* \param token The key token.
|
||||
|
|
Loading…
Reference in New Issue