Re: Question about GdkEventButton in gtkmm-4.0

2022-10-07 Thread Aaron Scheinberg via gtkmm-list
Hi Kjell, Thanks for the quick response - that was very helpful and I have my code working now. Best, Aaron On Fri, Oct 7, 2022 at 1:51 AM Kjell Ahlstedt wrote: > Use Gtk::GestureClick. Some examples: > > https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/menus/popu

Re: Question about GdkEventButton in gtkmm-4.0

2022-10-07 Thread Kjell Ahlstedt via gtkmm-list
Use Gtk::GestureClick. Some examples: https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/menus/popup/examplewindow.cc https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/master/examples/book/popover/examplewindow.cc In most (perhaps all) situations where event si

Question about GdkEventButton in gtkmm-4.0

2022-10-06 Thread Aaron Scheinberg via gtkmm-list
Hello, I hope this is the right place for this, sorry if not! I'm trying to implement an example gtkmm 3.0 code in gtkmm 4.0 and ran into a problem. The goal is to get the cursor's coordinates and what type of click occurred when clicking on a button. In gtkmm 3.0, I could use GdkEventButton, as