G
Test plan Open Gajim In Gtk Inspector, Adwaita tab, choose Adaptive Layout Keep the Titlebar Buttons hidden Navigate through the UI We should see no more crashes.
G
Not sure if this is the best approach to deliver the info to the user.
G
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__…
G
Opened !1422. @arekmx it's ready for testing on 27.2.1.
G
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).…
G
Thanks! I'll start with the GajimClipboard refactor and ping you when there's something to test.
G
Please feel free to implement this (as I'm not really familiar with gajim ways of doing things). I'll happily test. Thanks!
G
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…
G
Test plan Use Gajim on a touch device Open a MUC Try to scroll by first touching an avatar Scrolling should work. Before it triggered the button action. Caveat: Not tested on a real touch device.
G
I consider this fixed now.
G
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…
G
lovetox (12d2858d) at 26 Nov 23:18 imprv: ContactPopover: Simplify the context menu of links
G
lovetox (8f87f954) at 26 Nov 23:15 fix: Application: Release the logout inhibitor after the core shutdown
G
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…
G
Removed, the lookup is already limited to the current chat by account and JID.
G
Done, moved to get_contact_popover_link_menu() in gtk/menus.py.
G
There's no Gdk constant for it: Gdk only has BUTTON_PRIMARY/MIDDLE/SECONDARY, and 0 means "any button" (GtkGestureSingle:button). It needs to be 0 here: on macOS, Ctrl+click is the primary button with Ctrl, which triggers_context_menu() accepts; with BUTTON_SECONDARY, Ctrl+click would still open the label's default menu. I added a comment.
G
\o/ @lovetox, it's your call now.
G
@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…
G
Changed to GLib.source_remove().
G
yeah .. i think this is redundant, the name of the var is clear enough.
G
We use GLib.source_remove() across the rest of the codebase
G
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…
G
lovetox (4232b156) at 26 Nov 20:47 fix: Conversation: Show long messages as plain text ... and 3 more commits
G
is there an enum available for "0", if yes would be nice to use that for readability.
G
Can you please move the menu creation code into gtk/menus.py
G
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…
G
lovetox (ec26b110) at 26 Nov 20:07 fix: ContactPopover: Fix info row leak ... and 1 more commit