Page 1 of 1

Detect right click on Gadgets

Posted: Wed Jun 10, 2015 7:46 pm
by PureGuy
Hi,

I know how to detect a right-click event on gadgets like ButtonGadget on Windows,
but how to do on Linux?

Re: Detect right click on Gadgets

Posted: Wed Jun 10, 2015 9:27 pm
by Shardik
You may define a callback for a GDK event handler. I have already demonstrated how to implement it in this example which detects a right click into a ListViewGadget.

Re: Detect right click on Gadgets

Posted: Wed Jun 10, 2015 10:12 pm
by PureGuy
Thanks Shardik,

it is working great now using GdkEventHandler and PostEvent :D