Re: Parent receiving child's button press event

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

 



the child should have its own handler, and that handler should return TRUE. this wil stop propagation up the widget tree.

On Tue, Aug 30, 2016 at 8:02 PM, Jim Heald <jhdoubleoseven@xxxxxxxxx> wrote:
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

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux