Parent receiving child's button press event



Hello,

I have a grid set up where some event boxes are attached. Each eventbox (which we'll call a column) contains a box with children (which we'll call tiles) that are also eventboxes. 

What I want is for right clicking a tile to produce one menu (Edit/Delete) whereas right clicking an empty space produces another (which would be Add). I set this up and connected the signals, but when I right click a tile it produces both the Add menu and the Edit/Delete menu.

Therefore, my problem is that right clicking a tile also sends the button-press signal to the column. 

My question is what would be the best way to filter these events to ensure the parent isn't receiving its childrens' events? I.e. how can I either prevent the parent from receiving a signal from the child or possibly in the handler for a column make sure there's no tile at the coordinates of the click event?

Thanks!

Jim


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