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

No application singleton #262

Merged
merged 10 commits into from Feb 5, 2020
Merged

No application singleton #262

merged 10 commits into from Feb 5, 2020

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Jan 26, 2020

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

What is the current behavior?

Gaphor has one Application singleton. This does not match the current model.

Issue Number: N/A

What is the new behavior?

Application will be an ordinary object, instantiated as part of the Gtk.Application startup and bound to the Gtk.Application lifecycle.

  • Make Application an ordinary object
  • Update documentation

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This PR builds on #259.

@amolenaar amolenaar force-pushed the no-application-singleton branch 3 times, most recently from 9eb3a84 to 341a503 Compare January 26, 2020 20:22
@amolenaar amolenaar changed the title WIP: No application singleton No application singleton Jan 27, 2020
And reuse it by tests as well.
Handlers are registered on the session for now. This maintains backwards
compatibility.
Just instantiate the session. Only use application when multiple
sessions are in play.
Convert test_undo to pytest and remove test_issue_132.
no longer a special singleton thingy.
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

Really nice job!

gaphor/UML/tests/test_properties.py Outdated Show resolved Hide resolved
tests/test_undo.py Show resolved Hide resolved
@danyeaw danyeaw added the chore Maintenance related PR label Feb 2, 2020
@danyeaw danyeaw mentioned this pull request Feb 2, 2020
3 tasks
@amolenaar amolenaar added this to the 1.2.0 milestone Feb 5, 2020
@amolenaar amolenaar merged commit 7cddc92 into master Feb 5, 2020
@amolenaar amolenaar deleted the no-application-singleton branch February 9, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants