Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
e39dba6b by wurstsalat at 2023-01-13T13:48:30+01:00
fix: AvatarChooser: Fix file filter for Windows
This was introduced in 16cd4ebdb69903024d54a46ee9e648e835875fdc
but doesn't work on Windows
- - - - -
1 changed file:
- gajim/gtk/filechoosers.py
Changes:
=====================================
gajim/gtk/filechoosers.py
=====================================
@@ -112,7 +112,13 @@ class BaseAvatarChooserDialog:
_title = _('Choose Avatar…')
_preview_size = (100, 100)
- _filters = [Filter(_('Images'), ['image/*'], True)]
+
+ if _require_native():
+ _filters = [Filter(_('PNG files'), '*.png', True),
+ Filter(_('JPEG files'), '*.jp*g', False),
+ Filter(_('SVG files'), '*.svg', False)]
+ else:
+ _filters = [Filter(_('Images'), ['image/*'], True)]
class NativeFileChooserDialog(Gtk.FileChooserNative, BaseFileChooser):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e39dba6ba7bc73c391b1d1ddf5e803fb…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e39dba6ba7bc73c391b1d1ddf5e803fb…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
cf79eb93 by mesonium at 2023-01-13T08:46:55+00:00
fix: Audio Preview: Sync clock to make short files play properly on Win
- - - - -
1 changed file:
- gajim/gtk/preview_audio.py
Changes:
=====================================
gajim/gtk/preview_audio.py
=====================================
@@ -17,6 +17,7 @@
from typing import Any
import logging
+import sys
from pathlib import Path
from gi.repository import Gdk
@@ -207,7 +208,15 @@ def _setup_audio_player(self, file_path: Path) -> None:
assert audioconvert is not None
assert scaletempo is not None
assert audioresample is not None
- autoaudiosink.set_property('sync', False)
+
+ # On Windows the first fraction of an audio
+ # would not play if not synced.
+ # On Linux there can be a delay before playback starts with sync,
+ # which is however not the case on Windows.
+ if sys.platform == 'win32':
+ autoaudiosink.set_property('sync', True)
+ else:
+ autoaudiosink.set_property('sync', False)
audio_sink.add(audioconvert)
audio_sink.add(scaletempo)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cf79eb939a981e09b494797c6a0cc5ee…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/cf79eb939a981e09b494797c6a0cc5ee…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
e57c3b87 by wurstsalat at 2023-01-12T19:03:19+01:00
fix: ChatStack DnD: Add workaround for mis-fired drag-motion signal
Fixes #11226
- - - - -
1 changed file:
- gajim/gtk/chat_stack.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -673,8 +673,13 @@ def _on_drag_motion(self,
_context: Gdk.DragContext,
_x_coord: int,
_y_coord: int,
- _time: int
+ time: int
) -> bool:
+
+ if time == 0:
+ # Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/5518
+ return False
+
self._drop_area.set_no_show_all(False)
self._drop_area.show_all()
return True
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e57c3b875d355cf407fc73bb94527f0a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e57c3b875d355cf407fc73bb94527f0a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a2476a3c by Philipp Hörist at 2023-01-12T18:14:07+01:00
fix: Preview: Handle exceptions while decrypting
- - - - -
1 changed file:
- gajim/common/preview.py
Changes:
=====================================
gajim/common/preview.py
=====================================
@@ -535,7 +535,13 @@ def _on_finished(self, request: HTTPRequest) -> None:
if preview.is_aes_encrypted:
if preview.key is not None and preview.iv is not None:
- data = aes_decrypt(preview.key, preview.iv, data)
+ try:
+ data = aes_decrypt(preview.key, preview.iv, data)
+ except Exception as error:
+ log.exception('Decryption failed')
+ preview.info_message = _('Decryption failed')
+ preview.update_widget()
+ return
if preview.mime_type == 'application/octet-stream':
if preview.orig_path is not None:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a2476a3c82ced7ac7e8f96bf637a3d25…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a2476a3c82ced7ac7e8f96bf637a3d25…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
7ae72c8d by Philipp Hörist at 2023-01-10T18:45:27+01:00
fix: HTTP: Parse uri with correct flags
- - - - -
1 changed file:
- nbxmpp/http.py
Changes:
=====================================
nbxmpp/http.py
=====================================
@@ -252,7 +252,7 @@ class HTTPRequest(GObject.GObject):
Gio.FileCreateFlags.REPLACE_DESTINATION,
self._cancellable)
- uri = GLib.Uri.parse(uri_string, GLib.UriFlags.HAS_PASSWORD)
+ uri = GLib.Uri.parse(uri_string, GLib.UriFlags(Soup.HTTP_URI_FLAGS))
self._message.set_uri(uri)
if self._request_body_data is not None:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/7ae72c8deb14f03de6d05076…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/7ae72c8deb14f03de6d05076…
You're receiving this email because of your account on dev.gajim.org.