Having an event box pass unhandled events to its child

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

 



In my last email, that unfortunately no one answered, I asked how to get right click to work on any widget.  Since I didn't find a solution to that I thought to do a work around by putting the widget I want to add right-click to into an event box. So I packed my widget into an event box and figured out that I need to put the eventbox "above" in order to catch all the events. That all works find and I can now catch right click and any other event in the eventbox. But I was then stuck on how to get the eventbox to pass on events that it does not want to handle into its child widget. This is against normal gtk behaviour that only passes events from a child to a parent, and not the other way around. I realize that if I manage to pass an event from the parent eventbox to the child, I will have to make some mechanism to break recursion so that the child will pass on the event to the parent that passes the event to the child, ad out-of-memory crash.

Was I clear? Should I include a code example?

Thanks a lot!
Dov

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://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