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 *surface=cairo_image_surface_create(CAIR
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 GdkPixbuf
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 execut
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
___
gtk-app-devel