Gajim - 2024-04-15


  1. meson

    I try to experiment with a push-to-talk button, but after holding the button down, the release-button event isn't fired. Do you have any suggestion how to accomplish this correctly? Otherwise I will leave that for now.

  2. cal0pteryx

    meson: https://lazka.github.io/pgi-docs/index.html#Gtk-3.0/classes/Widget.html#Gtk.Widget.signals.button_release_event

  3. cal0pteryx

    Might need an event mask in the button

  4. meson

    Event mask _in the buttom_? I tried that with no luck. But doesn't it actually say the event mask must be added to the GDK Window?

  5. cal0pteryx

    To the window of the button. Yes, I'd have to experiment myself to find out where exactly to add this

  6. meson

    No problem. Whenever you got too much time ;)

  7. cal0pteryx

    meson: https://dev.gajim.org/gajim/gajim/-/blob/master/gajim/gtk/avatar_selector.py#L202

  8. cal0pteryx

    Just an example

  9. meson

    Thanks, it works if I press and release quickly, but not after long pressing. I will think about it more tomorrow

  10. meson

    I guess it looses focus?

  11. lovetox

    did you try the button.clicked event?

  12. lovetox

    docs say its triggered once the button is released

  13. lovetox

    https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Button.html#signals

  14. lovetox

    also it has released and pressed signals

  15. lovetox

    also it says you can use the Widget.button_press_event

  16. meson

    Thanks, works now o/

  17. meson

    But I needed to grab the focus and temporarily set the popup menu to non-modal

  18. meson

    Tomorrow refactoring and cleaning up a little bit and then it should be quasi ready.

  19. fjklp

    gui stuff sounds miserable :)

  20. meson

    UI is always the hardest part

  21. lovetox

    personally i hate push to talk

  22. lovetox

    you have no good way to tell the user that this is a push to talk function

  23. lovetox

    which normally results in 1 second files beeing sent

  24. meson

    lovetox: it would first start recording after a delay when pressed

  25. lovetox

    yeah of course you can think up solutions for that

  26. lovetox

    but the question is why

  27. lovetox

    whats the big benefit here

  28. lovetox

    why as a user do i need to learn to use this function correctly with repeated tries, and it does not behave like all other buttons in the application

  29. meson

    cal0pteryx mentioned Telegram which offers this functionality. WhatsApp users are use to it. I mean it would save three clicks.

  30. lovetox

    so what if i record a 10 minute message?

  31. meson

    But yeah I just wanted to experiment with it. It's easily removed again

  32. meson

    Then you click once, open the popup menu and click the record button

  33. lovetox

    so there are two different buttons?

  34. meson

    No

  35. meson

    It's the same button

  36. lovetox

    ok common .. like how would users even discover this functionality

  37. lovetox

    i press the button, a menu opens, what in the world would ever let me assume i can push that button long to get some functionality

  38. meson

    I will show a demo later or tomorrow. Maybe we could a info in the mouse hover hint

  39. meson

    No that button

  40. meson

    The one in the message action bar

  41. lovetox

    yes, the menu button or?

  42. meson

    Yeah

  43. meson

    But before we start or continue about different things by accident, let me first show you how it is

  44. meson

    Otherwise we discuss for.nothing

  45. lovetox

    alright, no worries, i stop now, im not the expert in recording voice messages

  46. meson

    No problem, I'm happy about feedback and good arguments in any direction :)