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

Fix drawing zoom rubberband on GTK backends. #17877

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 10, 2020

PR Summary

Just like Qt, the drawing should only be done in the draw (paint) event, so move the rubberband draw there. Also, make it black-and-white like the Qt one.

Fixes #17773.

PR Checklist

  • [N/A] Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

@QuLogic QuLogic added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. GUI: gtk labels Jul 10, 2020
@QuLogic QuLogic added this to the v3.3.0 milestone Jul 10, 2020
Just like Qt, the drawing should only be done in the draw (paint) event,
so move the rubberband draw there. Also, make it black-and-white like
the Qt one.

Fixes matplotlib#17773.
@tacaswell
Copy link
Member

Anyone can merge this on green.

@dopplershift dopplershift merged commit b975b75 into matplotlib:master Jul 15, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jul 15, 2020
@QuLogic QuLogic deleted the gtk3-rubberband branch July 15, 2020 20:20
jklymak added a commit that referenced this pull request Jul 15, 2020
…877-on-v3.3.x

Backport PR #17877 on branch v3.3.x (Fix drawing zoom rubberband on GTK backends.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: gtk Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gtk3 rubberband is invisible
3 participants