Skip to content

Remove ServiceEvent #3394

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 8 commits into from
Jul 22, 2024
Merged

Remove ServiceEvent #3394

merged 8 commits into from
Jul 22, 2024

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Jul 19, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • Make architecture rules a bit more strict
  • Only apply UI language settings if main app is started. This ensures the core modules (m.n. gaphor.i18n) do not have a external dependencies.
  • Remove ServiceEvent. It was never used as such, and it's the wrong abstraction for an event (e.i. not related to function)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Now we can identify where gi libraries are used and limit its usage.
By default use the system locale, only switch to English
when the application is started.

This gives a bit more freedom when Gaphor is used as library, and
avoids warning messages.
ServiceEvent is not a very useful abstraction for model changes.
@github-actions github-actions bot added the python Pull requests that update Python code label Jul 19, 2024
@amolenaar amolenaar requested a review from danyeaw July 19, 2024 18:10
@amolenaar amolenaar changed the title Tighten architecture Remove ServiceEvent Jul 19, 2024
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.

Thanks @amolenaar. I fixed a merge conflict and made one more update for the ShutdownService in the filemanager.

@danyeaw danyeaw added chore Maintenance related PR and removed python Pull requests that update Python code labels Jul 22, 2024
@danyeaw danyeaw merged commit a6c3d75 into main Jul 22, 2024
20 checks passed
@danyeaw danyeaw deleted the tighten-architecture branch July 22, 2024 21:51
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.

2 participants