Commit 79ba66e4 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

lua/api: default Constraint type always to pw-global

now that interest is declared on G_TYPE_OBJECT by default
(in optional Interest function arguments), this conditional default
no longer works as expected...

besides, it may be confusing to have a different default depending
on the interest type
parent 941b0324
......@@ -402,8 +402,7 @@ object_interest_new_add_constraint (lua_State *L, GType type,
if (lua_gettable (L, constraint_idx) == LUA_TNUMBER)
ctype = lua_tointeger (L, -1);
ctype = g_type_is_a (type, WP_TYPE_GLOBAL_PROXY) ?
lua_pop (L, 1);
/* get t[1] (the subject) and t[2] (the verb) */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment