Use Python GTK best practices (#184)

* refactor: rename class `Application` to `DiffuseApplication`
* refactor: rename class `Diffuse` to `DiffuseWindow`
* refactor: remove unnecessary constructor parameters + docstrings
* refactor: move DiffuseWindow class to its own file
* refactor: move PaneHeader/Footer outside DiffuseWindow
* refactor: move FileDiffViewer outside DiffuseWindow
* docs: update CHANGELOG.md
This commit is contained in:
Creak 2022-12-12 21:18:58 -05:00 committed by GitHub
parent a2e7ac4967
commit 977d015c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1873 additions and 1818 deletions

View File

@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Translation: updated Swedish translation (@eson57) - Translation: updated Swedish translation (@eson57)
- Dialog: prompt only once if several files needs to be reloaded (@yuriiz) - Dialog: prompt only once if several files needs to be reloaded (@yuriiz)
- Use GTK3's Gtk.Application/Gtk.ApplicationWindow (@yuriiz) - Use GTK3's Gtk.Application/Gtk.ApplicationWindow (@yuriiz)
- Split `DiffuseApplication` and `DiffuseWindow` classes in their own files (@MightyCreak)
### Fixed ### Fixed

File diff suppressed because it is too large Load Diff

View File

@ -52,6 +52,7 @@ diffuse_sources = [
'resources.py', 'resources.py',
'utils.py', 'utils.py',
'widgets.py', 'widgets.py',
'window.py',
] ]
install_data(diffuse_sources, install_dir: moduledir) install_data(diffuse_sources, install_dir: moduledir)

1821
src/diffuse/window.py Normal file

File diff suppressed because it is too large Load Diff