gadgetviewer icon indicating copy to clipboard operation
gadgetviewer copied to clipboard

GTK3 support

Open jchelly opened this issue 2 years ago • 2 comments
trafficstars

This branch contains (incomplete) modifications to make gadgetviewer compile with GTK3.

jchelly avatar Jun 22 '23 08:06 jchelly

This is now mostly working, but not efficient.

jchelly avatar Jun 23 '23 11:06 jchelly

This branch will need at least GTK 3.20 now.

jchelly avatar Jun 30 '23 15:06 jchelly

Switching off animations in gtk-3 makes this branch perform much more like the gtk-2 version, on Cosma at least.

jchelly avatar Apr 10 '25 12:04 jchelly

This is still likely to be a bit slower because the images are generated by the Fortran code are in a different format from the 32 bit ARGB needed by Cairo, so there's a conversion to do on every frame. To eliminate that I'd have to get a pointer to the Cairo surface data, have the image generation code update the surface directly, then mark the surface as updated.

jchelly avatar Apr 10 '25 12:04 jchelly