Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
10cb5866 by Stephen Paul Weber at 2022-02-23T18:21:27+01:00
XEP-0260 <candidate port="" /> is optional
XEP-0065 specifies that the default is 1080.
Previously, sending Gajim a <candidate/> with no port would result in a
backtrace, since int() does not accept NoneType. Now it will correctly fall
back to the default port.
- - - - -
1 changed file:
- gajim/common/jingle_transport.py
Changes:
=====================================
gajim/common/jingle_transport.py
=====================================
@@ -154,16 +154,13 @@ def make_transport(self, candidates=None, add_candidates=True):
def parse_transport_stanza(self, transport):
candidates = []
for candidate in transport.iterTags('candidate'):
- typ = 'direct' # default value
- if candidate.has_attr('type'):
- typ = candidate['type']
cand = {
'state': 0,
'target': self.ourjid,
'host': candidate['host'],
- 'port': int(candidate['port']),
+ 'port': int(candidate.get('port', 1080)),
'candidate_id': candidate['cid'],
- 'type': typ,
+ 'type': candidate.get('type', 'direct'),
'priority': candidate['priority']
}
candidates.append(cand)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/10cb58663bbbf6dcc7e9738ad8a6739e…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/10cb58663bbbf6dcc7e9738ad8a6739e…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
e8e1d53f by wurstsalat at 2022-02-20T15:47:03+01:00
Apply emoji label workaround for MacOS
- - - - -
2 changed files:
- gajim/common/settings.py
- gajim/gtk/conversation/plain_widget.py
Changes:
=====================================
gajim/common/settings.py
=====================================
@@ -212,7 +212,9 @@ def _setup_installation_defaults() -> None:
if IS_PORTABLE:
APP_SETTINGS['use_keyring'] = False
- if sys.platform == 'win32':
+ if sys.platform in ('win32', 'darwin'):
+ # Cairo does not support color emojis fonts on
+ # Windows and MacOS
APP_SETTINGS['dev_use_message_label'] = False
@staticmethod
=====================================
gajim/gtk/conversation/plain_widget.py
=====================================
@@ -51,9 +51,10 @@ def __init__(self, account: str, selectable: bool) -> None:
self._account = account
- # We use a Gtk.Textview on Windows, since there is no support for
- # rendering color fonts (Emojis) on Windows yet, see:
+ # We use a Gtk.Textview on Windows and MacOS, since there is no support
+ # for rendering color fonts (Emojis) on Windows/MacOS yet, see:
# https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/244
+ # https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/9
if app.settings.get('dev_use_message_label'):
self._text_widget = MessageLabel(self._account, selectable)
else:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e8e1d53f41e3a482350aef3a22f00f4b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e8e1d53f41e3a482350aef3a22f00f4b…
You're receiving this email because of your account on dev.gajim.org.