Joe:
I program in Gtkmm so my advice may not be applicable but...
What I do to get a png file of an image is to
1. Get a pointer to the cairo context (cr) from what is passed to the
on_draw() callback from your image widget.
2. in the callback, execute cr->pop_group_to_source();
3. create a po
Some years ago, I used GtkGlArea in C with:
GtkWidget *gl_area = gtk_gl_area_new ();
gtk_widget_add_events (gl_area, GDK_BUTTON_PRESS_MASK);
g_signal_connect (gl_area, "button-press-event",
G_CALLBACK (button_press), molecule);
s
On 02.07.2018 22:11, Johannes Bauer wrote:
> I'm writing a small toy application that uses OpenGL. Actually
> converting it from GLUT to GTK/GL. I'm using a glade 3.22.1 generated UI
> with Gtk 3.22.30 from Python3.
So that you can see what I'm doing (wrong), here's the full source code
of my stu
Hey list,
I'm writing a small toy application that uses OpenGL. Actually
converting it from GLUT to GTK/GL. I'm using a glade 3.22.1 generated UI
with Gtk 3.22.30 from Python3.
I'm having two issues: The more pressing one is that I cannot seem to
figure out how to capute mouse events on my GtkGLA