Re: GdkPixbuf and click events

2017-08-03 Thread Eric Cashon via gtk-app-devel-list
Hi Ferdinand, You can also try putting the pixbuf in an image widget and that into an event box. Eric //gcc -Wall right_click1.c -o right_click1 `pkg-config --cflags --libs gtk+-3.0` #include static GdkPixbuf* draw_a_pixbuf() { cairo_surface_t

Re: GdkPixbuf and click events

2017-08-03 Thread infirit
Op 08/03/2017 om 12:02 AM schreef Ferdinand Ramirez via gtk-app-devel-list: > I have a program that adds a GdkPixbuf to a GtkTextView. I would like to > right click on the image and capture the mouse click event and execute a > callback function. Is there any way of achieving this using

Re: GdkPixbuf and click events

2017-08-03 Thread Chris Moller
I'm not sure it will work, but have you tried wrapping the pixbuf in a GtkEventBox? On 08/02/17 18:02, Ferdinand Ramirez via gtk-app-devel-list wrote: I have a program that adds a GdkPixbuf to a GtkTextView. I would like to right click on the image and capture the mouse click event and

GdkPixbuf and click events

2017-08-03 Thread Ferdinand Ramirez via gtk-app-devel-list
I have a program that adds a GdkPixbuf to a GtkTextView. I would like to right click on the image and capture the mouse click event and execute a callback function. Is there any way of achieving this using GdkPixbuf? Thanks, Ferdinand ___