Skip to content

Cleanup and py3fy backend_gtk3. #10621

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

Merged
merged 1 commit into from
Feb 28, 2018
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 27, 2018

_pixmapBack was never used on the GTK3 backend (it only exists in the
old GTK2 backend).

PR Summary

PR Checklist

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

@anntzer anntzer added this to the v3.0 milestone Feb 27, 2018

hbox.show_all()
self.set_extra_widget(hbox)

def get_filename_from_user (self):
@cbook.deprecated("3.0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this get sorted(self.filetypes.items()) as an alternative?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added, but I think this is such an obscure API that I'll skip the note in the deprecation docs.

@@ -340,14 +335,10 @@ def __init__(self, canvas, num):
self.set_window_title("Figure %d" % num)
try:
self.window.set_icon_from_file(window_icon)
except (SystemExit, KeyboardInterrupt):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these not being re-raised anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now catch Exception, which is everything but SystemExit, KeyboardInterrupt (and GeneratorExit, which is irrelevant here). SystemExit and KeyboardInterrupt are not caught at all and just get raised normally.

_pixmapBack was never used on the GTK3 backend (it only exists in the
old GTK2 backend).
@timhoffm timhoffm merged commit 060ff63 into matplotlib:master Feb 28, 2018
@anntzer anntzer deleted the cleanup-gtk3 branch February 28, 2018 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants