Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use more efficient form of signal_connect for mouse handlers #56

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

jwahlstrand
Copy link
Collaborator

@jwahlstrand jwahlstrand commented Oct 15, 2023

This is another cleanup from the Gtk4 port. I had used the user friendly, less efficient version of signal_connect to set up the mouse event handlers. This uses the faster compiled version, which was done in the Gtk.jl version. It allocates less and is slightly faster when calling imshow in ImageView.

Also:
Fixes #57
Fixes #58

@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2023

Codecov Report

Merging #56 (ba38e5a) into master (e12ad63) will decrease coverage by 0.79%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   94.58%   93.79%   -0.79%     
==========================================
  Files           6        6              
  Lines        1089     1096       +7     
==========================================
- Hits         1030     1028       -2     
- Misses         59       68       +9     
Files Coverage Δ
src/graphics_interaction.jl 91.63% <100.00%> (-3.14%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jwahlstrand jwahlstrand merged commit 42c0bda into master Oct 19, 2023
17 checks passed
@jwahlstrand jwahlstrand deleted the jw/handlers branch November 10, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants