Re: GdkPixbuf and click events

2017-08-03 Thread Eric Cashon via gtk-app-devel-list
view, 0, 0, 1, 1); gtk_container_add(GTK_CONTAINER(window), grid); gtk_widget_show_all(window); gtk_main(); g_object_unref(pixbuf); return 0; } -Original Message- From: Ferdinand Ramirez via gtk-app-devel-list To: gtk-app-devel-list Sent: Th

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 GdkPixbuf

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 execut

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 ___ gtk-app-devel