Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d5d99c66 by lovetox at 2020-11-03T18:00:05+01:00
HTTPUpload: Correctly unpack headers
Fixes #10337
- - - - -
1 changed file:
- gajim/common/modules/httpupload.py
Changes:
=====================================
gajim/common/modules/httpupload.py
=====================================
@@ -217,7 +217,7 @@ def _upload_file(self, transfer):
message.props.request_headers.set_content_type(transfer.mime, None)
message.props.request_headers.set_content_length(transfer.size)
- for name, value in transfer.headers:
+ for name, value in transfer.headers.items():
message.props.request_headers.append(name, value)
message.connect('wrote-headers', self._on_wrote_headers, transfer)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d5d99c66b8b6ec014621b620caf1b12c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d5d99c66b8b6ec014621b620caf1b12c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e3a787f6 by wurstsalat at 2020-11-01T10:33:51+01:00
HtmlTextview: Fix warning regarding TargetList on destroy
- - - - -
1 changed file:
- gajim/gtk/htmltextview.py
Changes:
=====================================
gajim/gtk/htmltextview.py
=====================================
@@ -716,6 +716,7 @@ def __init__(self, account, standalone=False):
self.drag_dest_unset()
self.connect('copy-clipboard', self._on_copy_clipboard)
+ self.connect('destroy', self._on_destroy)
self.get_buffer().eol_tag = self.get_buffer().create_tag('eol')
self.account = account
@@ -726,6 +727,17 @@ def __init__(self, account, standalone=False):
self.connect('query-tooltip', self._query_tooltip)
self.create_tags()
+ def _on_destroy(self, *args):
+ # We restore the TextView’s drag destination to avoid a GTK warning
+ # when closing the control. ChatControlBase.shutdown() calls destroy()
+ # on the control’s main box, causing GTK to recursively destroy the
+ # child widgets. GTK then tries to set a target list on the TextView,
+ # resulting in a warning because the Widget has no drag destination.
+ self.drag_dest_set(
+ Gtk.DestDefaults.ALL,
+ None,
+ Gdk.DragAction.DEFAULT)
+
def create_tags(self):
color = app.css_config.get_value('.gajim-url', StyleAttr.COLOR)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e3a787f6b9d81e702f9eb2982fdd57b6…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e3a787f6b9d81e702f9eb2982fdd57b6…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ffeb83ab by lovetox at 2020-10-29T22:05:46+01:00
Util: Catch RuntimeError
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -755,6 +755,10 @@ def load_pixbuf(path, size=None):
GdkPixbuf.InterpType.BILINEAR)
return pixbuf
+ except RuntimeError as error:
+ log.warning('Loading pixbuf failed: %s', error)
+ return None
+
def get_thumbnail_size(pixbuf, size):
# Calculates the new thumbnail size while preserving the aspect ratio
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ffeb83ab176eb4613f185f2f69a292b1…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ffeb83ab176eb4613f185f2f69a292b1…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
fcda6a05 by lovetox at 2020-10-29T19:35:49+01:00
Interface: Fix string formatting
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -317,8 +317,8 @@ def handle_event_subscribed_presence(self, event):
bare_jid,
event.account,
title=_('Authorization accepted'),
- text=_('The contact "%s" has authorized you'
- ' to see their status.') % event.jid)
+ text=_('The contact "%(jid)s" has authorized you'
+ ' to see their status.') % {'jid': event.jid})
def show_unsubscribed_dialog(self, account, contact):
def _remove():
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fcda6a05d2476bb5895ac757d8221e77…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/fcda6a05d2476bb5895ac757d8221e77…
You're receiving this email because of your account on dev.gajim.org.