Gajim - 2024-10-21


  1. vril

    Hi everyone, I noticed that some friends who use Gajim on Windows do not see when they are added to private groups. Did any of you happen?

  2. lovetox

    Does "not see" mean your are not joined ? Or what do you expect to see exactly?

  3. sch

    Does Gajim support Dynamic Forms? Do you know of working examples? https://xmpp.org/extensions/xep-0336.html XEP-0336: Data Forms - Dynamic Forms

  4. b7g7

    why does Gajim not accept self signed certificate? I cannot preview images sent to my server, on Conversations images are visible

  5. b7g7

    (E) nbxmpp.http Request(xxxx): g-tls-error-quark: Unacceptable TLS certificate (2)

  6. lovetox

    Because it's not implemented

  7. b7g7

    lovetox, are you planning to implement this?

  8. lovetox

    Me personally? No it's not on my list of things I want to work on

  9. lovetox

    Contributions are welcome though

  10. vril

    > Does "not see" mean your are not joined ? Or what do you expect to see exactly? Hmm yes.. they do not receive the request of joining in. Next days I will go to watch and I will have more details

  11. meson

    cal0pteryx, why have you changed it to Gtk.GestureClick? Anyway, I've noticed that the released event is never emitted for yet-to-be-find-out reasons: https://dev.gajim.org/gajim/gajim/-/blob/gtk4/gajim/gtk/preview_audio.py?ref_type=heads#L141

  12. meson

    cal0pteryx, why have you changed it to Gtk.GestureClick? Anyway, I've noticed that the released event is never emitted during a play-back for yet-to-be-find-out reasons: https://dev.gajim.org/gajim/gajim/-/blob/gtk4/gajim/gtk/preview_audio.py?ref_type=heads#L141

  13. meson

    never emitted actually*

  14. meson

    https://stackoverflow.com/questions/72303475/gtk4-gestureclick-no-released-signal-emitted this is from 2022: > The GTK scale widget appears to have some issue with not emitting the released signal.

  15. meson

    Nice bug.

  16. meson

    12 hours ago someone wrote in this thread: > I found an easier way... put the GtkScale widget in a GtkBox (or other container), attach the GtkGestureClick to the parent and set its propagation phase to GTK_PHASE_CAPTURE. You'll get Pressed and Released that way. I will try that out.

  17. meson

    12 hours ago someone wrote in this thread: > I found an easier way... put the GtkScale widget in a GtkBox (or other container), attach the GtkGestureClick to the parent and set its propagation phase to GTK_PHASE_CAPTURE. You'll get Pressed and Released that way. I will try that out.

  18. meson

    Works \o/, so the preview audio is almost fixed I hope, unless there more bugs I haven't encountered yet.

  19. meson

    cal0pteryx, you have added the comment > # TODO GTK4: release eventcontrollers in do_unroot, though the docs say: > Widgets will remove all event controllers automatically when they are destroyed, there is normally no need to call this function.

  20. meson

    Another topic, I get a huge cursor currently on Plasma 6.2.1.1 Wayland with the Gtk4 build and the warning > ../gdk/wayland/gdkcursor-wayland.c:210 cursor image size (64) not an integer multiple of theme size (24) but it looks like it's going to be fixed in Gtk soon-ish https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7760 :)

  21. meson

    and https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7722

  22. lovetox

    meson: but that a widget gets destroyed all references to it must be released

  23. lovetox

    Depends where the callback for your event points to

  24. lovetox

    If it points to a method on the widget itself it's a cycle

  25. lovetox

    Hence release it in unroot

  26. meson

    lovetox, makes sense.

  27. meson

    About setting colors in DrawingArea: before I had used style_context, state flags and render_background, but the latter is now deprecated. How else could I access colors defined in gajim.css to use them for cairo fill() and stroke() ?

  28. cal0pteryx

    meson: currently we're using SignalManager to connect signals. This class keeps track of handler ids and lets us disconnect all handlers using _disconnect_all() in do_unroot. That's what the comment was about

  29. cal0pteryx

    I think in gajim's theme window there should be examples of color conversion between gajim.css and rgba values

  30. cal0pteryx

    css_config should include the logic I think

  31. meson

    cal0pteryx: css_config was either None or get_value was None weirdly

  32. meson

    cal0pteryx: css_config was either None or app.css.config_get_value was None weirdly

  33. debacle

    cal0pteryx lovetox Is the gtk4 branch db-compatible with the latest release? I.e. can I go forward and backward without shooting my own foot?

  34. meson

    cal0pteryx: css_config was either None or app.css_config.get_value was None weirdly

  35. meson

    debacle: I hope so :) as I just do so

    šŸ¤£ 1
  36. cal0pteryx

    debacle: there shouldn't be any changes to the db code.

    šŸ™ 1
  37. meson

    cal0pteryx: does `app.css_config.get_value(selector, attr)` only access selectors defined in theme.py? And where are the defaults for those in theme.py, I couldn't find any for eg `.gajim-group-row` in any *.css file.

  38. lovetox

    could be a old one

  39. lovetox

    we allowed to theme the group row in the roster

  40. lovetox

    but i dont think we do anymore

  41. meson

    I am bit puzzled, I've added `.audiovisualizer { background: #0a66c2: }` to gajim.css and tried to get the value by `app.css_config.get_value('.audiovisualizer', StyleAttr.BACKGROUND)`. `app.css_config` is not None, but `get_value` always None. > CSSConfig handles loading and storing of all relevant Gajim style files > The order in which CSSConfig loads the styles > 1. gajim.css

  42. Eduard T

    Link Mauve, I fixed the AUR package, fyi

  43. lovetox

    meson, you cannot get values from gajim.css

  44. lovetox

    this is for values in default.css

  45. lovetox

    but what are you trying to solve here, this whole thing is for gajims theme option, i dont want to extend this really, and certainly not to single widgets backgrounds

  46. meson

    lovetox: I want to have the theme accent colors for the visualizer for the three states: default not-yet-played, played and seek

  47. lovetox

    maybe try that

  48. lovetox

    https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/css-variables.html

  49. meson

    Thanks, will check it out tomorrow.

  50. Link Mauve

    Hi, Iā€™ve checked the Tor proxy in an accountā€™s proxy preferences, and now itā€™s stuck in Connecting state; how can I debug that?

  51. Link Mauve

    I do have the tor daemon running.

  52. amogus

    it takes a while, be patient. if its not connected within 5 minutes, somethings wrong

  53. Link Mauve

    It says 2024-10-21T21:45:41 (I) nbxmpp.connection (linkmauve.fr) Connect Error: g-io-error-quark: HTTP proxy connection failed: 501 (40)

  54. Link Mauve

    But there should be no HTTP proxy involved, tor exposes a SOCKS5 proxy instead.

  55. Link Mauve

    meson, GTKā€Æ4 highly encourages you to create widgets, instead of using a GtkDrawingArea.

  56. Link Mauve

    That way you can benefit from all of the CSS machinery.

  57. Link Mauve

    Eduard T, thanks, Iā€™ve been unavailable this week and unlikely to have time for it now either.

    šŸ‘ 1
  58. meson

    > meson, GTKā€Æ4 highly encourages you to create widgets, instead of using a GtkDrawingArea. I will check out what's the difference to what I've done. Thanks

  59. Link Mauve

    meson, https://blog.gtk.org/2020/04/23/custom-widgets-in-gtk-4-introduction/ and https://blog.gtk.org/2020/04/23/custom-widgets-in-gtk-4-introduction/ might help you with that.

  60. hannibal

    Link Mauve, the links are the same

  61. Link Mauve

    meson, https://blog.gtk.org/2020/04/23/custom-widgets-in-gtk-4-introduction/ and https://blog.gtk.org/2020/04/24/custom-widgets-in-gtk-4-drawing/ might help you with that.

  62. Link Mauve

    Oops, thanks fixed!

  63. meson

    Link Mauve: ah yes, that introduces Gsk and snapshots, but the plan was first to stick with render_func and DrawingArea in order to not make too many big changes.

  64. Link Mauve

    meson, maybe ignore the wrong theme for now then?

  65. meson

    I think I found a workaround, which I will try out tomorrow.

  66. meson

    Later we can move everything, where it makes sense, to snapshop rendering

  67. lovetox

    Link Mauve, are you sure your server offers connection on the 5222 port and you A record points at the right ip?

  68. lovetox

    there is no srv record resolution over TOR

  69. lovetox

    seems more like you maybe configured websocket connection maybe in your account settings

  70. lovetox

    but i would need to see more from that log

  71. Link Mauve

    lovetox, Iā€™ve overridden the connection settings to the .onion address, port 5222, and PLAIN connection, and now Iā€™m trying to make Prosody to accept that.

  72. Link Mauve

    The connection should be secure despite PLAIN, because itā€™s going over tor to the .onion domain.

  73. Link Mauve

    Even though I use my @linkmauve.fr JID.

  74. Link Mauve

    But when I check the Tor proxy in Gajim, with no other configuration, it picks HTTP instead of SOCKS5 which is Torā€™s default.

  75. lovetox

    you would need to share more of the log

  76. lovetox

    we make many http queries, these need to go over a http proxy

  77. Link Mauve

    Not a SOCKS5 proxy?

  78. lovetox

    no idea

  79. lovetox

    you showed one single line

  80. lovetox

    it maybe related or not

  81. Link Mauve

    Should I try with a new profile to get back to the default values?

  82. lovetox

    you should share the log

  83. lovetox

    and not try and error

  84. Link Mauve

    My current log doesnā€™t use HTTP since I configured it to use SOCKS5 instead.

  85. Link Mauve

    Iā€™m talking about the default Gajim configuration.

  86. lovetox

    the log show detailed informations, when it connects to what ip

  87. cve-1312

    Hi, I just registered on the gitlab, I'm willing send a MR, but it seems I can't fork the repo for now. Should I ask that here? :)

  88. cve-1312

    Username is the same as here, cve-1312

  89. debacle

    FYI: Just uploaded a #Gajim git snapshot of the #GTK4 branch to #Debian experimental.

  90. debacle

    FYI: Just uploaded a Gajim git snapshot of the GTK4 branch to Debian experimental.