Philipp Hörist pushed to branch gtk4 at gajim / gajim


Commits:
dbe2b48e by Philipp Hörist at 2024-11-05T22:22:47+01:00
config

- - - - -
58669589 by Philipp Hörist at 2024-11-05T23:46:30+01:00
fix: Preview: Don’t guess mime-type of thumbnails

- - - - -


2 changed files:

- gajim/common/preview.py
- pyproject.toml


Changes:

=====================================
gajim/common/preview.py
=====================================
@@ -414,7 +414,9 @@ def _on_thumb_load_finished(data: bytes | None,
             return
 
         preview.thumbnail = data
-        preview.mime_type = guess_mime_type(preview.orig_path, data)
+        # Thumbnails are stored always as PNG, we don’t know the
+        # mime-type of the original picture
+        preview.mime_type = ''
         preview.file_size = os.path.getsize(preview.orig_path)
 
         preview.update_widget(data=data)


=====================================
pyproject.toml
=====================================
@@ -81,6 +81,13 @@ version = {attr = "gajim.__version__"}
 line-length = 88
 skip-string-normalization = true
 target-version = ["py310", "py311", "py312"]
+extend-exclude = "gajim|mac|scripts|typings|win|test"
+required-version = "24.10.0"
+
+# 
/(\.direnv|\.eggs|\.git|\.hg|\.ipynb_checkpoints|\.mypy_cache|\.nox|\.pytest_c
+#                                   
ache|\.ruff_cache|\.tox|\.svn|\.venv|\.vscod
+#                                   e|__pypackages__|_build|buck-
+#    
 
 [tool.codespell]
 skip = 
"*__pycache__*,_build_root,build,debian_build,dist,shared-modules,test,*.egg-info,.git,*.po,*.pot,*.nsi,*.spec"



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/510e66ba60dfdf6919ab79bc414b123a9fea5583...586695896d4412cd9e5f3efcdf590610f0b42f10

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/510e66ba60dfdf6919ab79bc414b123a9fea5583...586695896d4412cd9e5f3efcdf590610f0b42f10
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to