Skip to content

Fix tooltips for svg files and images with the svg extension but different content

Krifa75 requested to merge Krifa75/eog:fix-toolitps into master

Without knowing the size of the image, the query-tooltip signal will continuously send jobs trying to retrieve the image data, resulting in high CPU usage (with the command top we see that it exceeds 100%).

It happens for all svg files and for files with the svg extension but with different content.

For getting the size of an svg file I use rsvg_handle_get_intrinsic_size_in_pixels introduced into 2.52 which is why I updated the meson file.

I'm also planning to convert some Jobs into GTask, I wonder if it would be great for Eog and that I submit a Merge Request ?

Thanks ! 😃

Merge request reports