XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

gajim activity

mesonium opened merge request !1423: Improve Gstreamer Error Handling and Reporting at gajim / gajim

Before we only reported unhelpful tracebacks on stdout. We hide these now and instead print exactly which component was missing. Also added a test based on the test_ui_preview.py test to verify that error handling works as expected. For example ERROR gajim.gtk.voice_message_recorder_widget:voice_message_recorder_widget.py:59 Error while initializing VoiceMessageRecorder Traceback (most recent call last): File "~/gajim/src/gajim/gtk/voice_message_recorder_widget.py", line 57, in __init__…

João Sacramento opened merge request !1422: Clipboard: Paste images in any format, without freezing at gajim / gajim

Fixes #12876 Based on the analysis and proposals in !1417 (closed), !1418 (closed) and !1419 (closed) by @arekmx, restructured as discussed in #12876. Problem Command+V only pastes images offered as PNG or BMP. Preview offers iPhone photos with an HDR gain map as TIFF only, so nothing happens, without any message. Pasted images are encoded to PNG with Gdk.Texture.save_to_png_bytes() on the main thread. For a 12 MP photo the window freezes for several seconds, and the PNG is large (6 to 19 MB).…

João Sacramento commented on issue #12876 at gajim / gajim

Thanks! On transparency: yes, JPEG has no alpha, so I'd decide per image: PNG if the image actually uses transparency (browser images, SVGs, screenshots of windows), JPEG otherwise. The texture's memory format alone isn't enough: this photo comes out of the TIFF as r8g8b8a8-premultiplied, i.e. with an alpha channel although the photo has no transparency. So the check would have to look at the alpha values, e.g. with Pillow's getextrema() on the alpha channel. For the same photo on an M1, JPEG…

lovetox accepted merge request !1414: imprv: ContactPopover: Simplify the context menu of links at gajim / gajim

Based on !1413 (merged); only the last commit is new. Problem Right-clicking a link in the contact popover (XMPP address, email, phone number) shows GTK's default context menu for labels. It always lists Cut, Copy, Paste and Delete, but they do nothing: the label is not editable and nothing is selected. Only Select All works. To copy the plain address, one has to choose Select All and then Copy. "Copy Link Address" copies the URI with its scheme (xmpp:, mailto:, tel:). Before (Gajim 2.7.0): Fix…

lovetox accepted merge request !1411: fix: Application: Release the logout inhibitor before the core shutdown at gajim / gajim

Summary Follow-up to 2483efb3 ("fix: Application: Complete the shutdown when the session ends", #12868). 2483efb3 runs the core shutdown and releases the logout inhibitor in the GApplication shutdown handler when the main loop ended before the shutdown completed. This MR makes that path robust: Run the core shutdown while still holding the logout inhibitor, and release the inhibitor in a finally block afterwards. The session waits for the outstanding transactions to be committed instead of…

João Sacramento commented on merge request !1411 at gajim / gajim

@karolyi Re-ran both cases on macOS with 3270931a, using the same simulation as before (query-end emitted after login, then quit from an idle callback): Simulated session end: Session end signal received → Shutdown Application → Main loop ended before the shutdown completed → Shutdown core → the archive and settings commits → Release logout inhibitor. The process exits. _shutdown_core() raising: Shutdown core → Core shutdown failed with the traceback → Release logout inhibitor. The process…

lovetox accepted merge request !1399: fix: Conversation: Fix /me preview, styling offsets and long message freeze at gajim / gajim

Problem Multi-line /me messages: the chat list row wrapped the whole text in … before taking the last line, so the markup became invalid (second line) and the row kept showing the previous message. Styling spans are byte offsets into the text of a block, but the label shows the stripped text, so leading whitespace shifted the styling: hello *world* end rendered d* end in bold. The same happened for a text block after a code block, which starts with a line break. A message of 40,000 characters…

lovetox accepted merge request !1413: fix: ContactPopover: Close popover when a link is activated at gajim / gajim

Problem Activating a link in the contact popover (the XMPP address, email or phone number) opens its target but leaves the popover open: With several accounts, the XMPP address opens Start / Join Chat, and the popover stays visible behind that window. With one account, the address opens the chat directly. If that chat is already shown, nothing seems to happen and the popover just stays open. The info rows of the popover were also never finalized: the template callback for activate-link kept a…