lua-users home
lua-l archive

Re: lgi: gdk.Event.triggers_context_menu: bad argument

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2014年1月20日 00:41:28 -0500, Rena wrote:
> Having a strange issue with button events with lgi. When right-clicking
> a tab in this program I get an error:
> 
> ./test.lua:34: bad argument #2 to 'triggers_context_menu' (Gdk.Event
> expected, got userdata)
> 
> but there isn't even a second argument?
Thank you for the testcase. This is caused by strange hierarchy of 
Gdk.Event type - it is actually union of more specific types, which 
renders generic Gdk.Event methods unreachable on specific event types.
I pushed workaround into lgi master, your testcase works fine now.
Pavel

AltStyle によって変換されたページ (->オリジナル) /