Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c947c797 by wurstsalat at 2022-09-29T17:18:37+00:00
perf: Styling: Parse emojis for Darwin only
- - - - -
1 changed file:
- gajim/common/styling.py
Changes:
=====================================
gajim/common/styling.py
=====================================
@@ -18,6 +18,7 @@
from typing import Match
import string
+import sys
import re
from dataclasses import dataclass
from dataclasses import field
@@ -208,7 +209,11 @@ def process(text: Union[str, bytes], level: int = 0) -> ParsingResult:
for line in block.text.splitlines(keepends=True):
block.spans += _parse_line(line, offset, offset_bytes)
block.uris += _parse_uris(line, offset, offset_bytes)
- block.emojis += _parse_emojis(line, offset)
+ if sys.platform == 'darwin':
+ # block.emojis is used for replacing emojis with Gtk.Images
+ # Necessary for MessageTextview (darwin) only
+ block.emojis += _parse_emojis(line, offset)
+
offset += len(line)
offset_bytes += len(line.encode())
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c947c797637a648d22cef70f9f08c912…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c947c797637a648d22cef70f9f08c912…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch emoji-parsing-darwin at gajim / gajim
Commits:
2f4fc205 by wurstsalat at 2022-09-29T09:49:22+02:00
ci: Windows: Add libheif dependency
This adds a GdkPixbuf loader for HEIF and AVIF images, see #11020
- - - - -
c947c797 by wurstsalat at 2022-09-29T17:18:37+00:00
perf: Styling: Parse emojis for Darwin only
- - - - -
2 changed files:
- gajim/common/styling.py
- win/_base.sh
Changes:
=====================================
gajim/common/styling.py
=====================================
@@ -18,6 +18,7 @@
from typing import Match
import string
+import sys
import re
from dataclasses import dataclass
from dataclasses import field
@@ -208,7 +209,11 @@ def process(text: Union[str, bytes], level: int = 0) -> ParsingResult:
for line in block.text.splitlines(keepends=True):
block.spans += _parse_line(line, offset, offset_bytes)
block.uris += _parse_uris(line, offset, offset_bytes)
- block.emojis += _parse_emojis(line, offset)
+ if sys.platform == 'darwin':
+ # block.emojis is used for replacing emojis with Gtk.Images
+ # Necessary for MessageTextview (darwin) only
+ block.emojis += _parse_emojis(line, offset)
+
offset += len(line)
offset_bytes += len(line.encode())
=====================================
win/_base.sh
=====================================
@@ -89,6 +89,7 @@ function install_deps {
mingw-w64-"${ARCH}"-python-pip \
mingw-w64-"${ARCH}"-adwaita-icon-theme \
mingw-w64-"${ARCH}"-libwebp \
+ mingw-w64-"${ARCH}"-libheif \
mingw-w64-"${ARCH}"-sqlite3 \
mingw-w64-"${ARCH}"-goocanvas \
mingw-w64-"${ARCH}"-gspell \
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/71010ae347ae2e70016c13733dc54c7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/71010ae347ae2e70016c13733dc54c7…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
2f4fc205 by wurstsalat at 2022-09-29T09:49:22+02:00
ci: Windows: Add libheif dependency
This adds a GdkPixbuf loader for HEIF and AVIF images, see #11020
- - - - -
1 changed file:
- win/_base.sh
Changes:
=====================================
win/_base.sh
=====================================
@@ -89,6 +89,7 @@ function install_deps {
mingw-w64-"${ARCH}"-python-pip \
mingw-w64-"${ARCH}"-adwaita-icon-theme \
mingw-w64-"${ARCH}"-libwebp \
+ mingw-w64-"${ARCH}"-libheif \
mingw-w64-"${ARCH}"-sqlite3 \
mingw-w64-"${ARCH}"-goocanvas \
mingw-w64-"${ARCH}"-gspell \
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2f4fc20518caacedca808f7e0f6341ca…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2f4fc20518caacedca808f7e0f6341ca…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5a7d980b by Philipp Hörist at 2022-09-28T22:10:04+02:00
fix: Notifications: Show correct message sender for MUC notifications
Fixes #11177
- - - - -
1 changed file:
- gajim/gtk/chat_stack.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -371,7 +371,7 @@ def _issue_notification(self, event: events.MessageReceived) -> None:
if isinstance(contact, GroupchatContact):
msg_type = 'group-chat-message'
- title += f' {contact.nickname} ({contact.name})'
+ title += f' {event.resource} ({contact.name})'
assert contact.nickname is not None
needs_highlight = helpers.message_needs_highlight(
text, contact.nickname, client.get_own_jid().bare)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5a7d980b186d0e4da42ecc15bad63c78…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5a7d980b186d0e4da42ecc15bad63c78…
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:
5ac9a4b9 by Philipp Hörist at 2022-09-28T21:50:41+02:00
fix: TCP: Improve detection of broken connection
Issue a disconnected signal on any zero data read
- - - - -
1 changed file:
- nbxmpp/tcp.py
Changes:
=====================================
nbxmpp/tcp.py
=====================================
@@ -257,11 +257,8 @@ class TCPConnection(Connection):
data = data.get_data()
if not data:
- if self._state == TCPState.DISCONNECTING:
- self._log.info('Reveived zero data on _read_async()')
- self._finalize('disconnected')
- else:
- self._log.warning('Reveived zero data on _read_async()')
+ self._log.info('Reveived zero data on _read_async()')
+ self._finalize('disconnected')
return
self._renew_keepalive_timer()
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5ac9a4b900616dce521ce690…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5ac9a4b900616dce521ce690…
You're receiving this email because of your account on dev.gajim.org.