Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
52561f5a by wurstsalat at 2022-07-14T10:40:33+02:00
GroupChatInviter: Set size request
- - - - -
1 changed file:
- gajim/gtk/chat_function_page.py
Changes:
=====================================
gajim/gtk/chat_function_page.py
=====================================
@@ -113,6 +113,7 @@ def set_mode(self,
self._confirm_button.get_style_context().add_class(
'suggested-action')
self._widget = GroupChatInviter(str(contact.jid))
+ self._widget.set_size_request(-1, 500)
self._widget.connect('listbox-changed', self._on_ready)
self._widget.load_contacts()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/52561f5ace353e93c6ab522a28ad0f5d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/52561f5ace353e93c6ab522a28ad0f5d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d4eb4a35 by lovetox at 2022-07-13T20:09:26+02:00
fix: GroupchatInfo: Don’t set subject when loading from disco info
Disco provides only the subject text not the author and timestamp.
It’s better to set this info separately when we receive the subject
from the MUC. This has the drawback that we can’t show the subject
when we only show the disco (StartChatDialog). But everything else
would bring alot more complexity than it’s worth.
Fixes #11040
- - - - -
2 changed files:
- gajim/gtk/groupchat_info.py
- test/gtk/groupchat_info.py
Changes:
=====================================
gajim/gtk/groupchat_info.py
=====================================
@@ -191,9 +191,6 @@ def set_from_disco_info(self, info: DiscoInfo) -> None:
if self._minimal:
return
- # Set subject
- self.set_subject(info.muc_subject)
-
# Set user
has_users = info.muc_users is not None
self._ui.users.set_text(info.muc_users or '')
=====================================
test/gtk/groupchat_info.py
=====================================
@@ -6,6 +6,7 @@
from nbxmpp.protocol import Iq
from nbxmpp.modules.discovery import parse_disco_info
+from nbxmpp.structs import MucSubject
from gajim.common.const import CSSPriority
@@ -86,6 +87,10 @@
</query>
</iq>''')
+
+subject = ('Lorem ipsum dolor sit amet, consetetur sadipscing elitr sed '
+ 'diam nonumy eirmod tempor invidunt ut labore et dolore magna')
+
disco_info = parse_disco_info(stanza)
class GroupchatInfo(Gtk.ApplicationWindow):
@@ -107,10 +112,9 @@ def __init__(self):
self.add(self._main_box)
self._muc_info_box.set_from_disco_info(disco_info)
- self._muc_info_box.set_subject(
- 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr sed '
- 'diam nonumy eirmod tempor invidunt ut labore et dolore magna')
- self._muc_info_box.set_author('userX', None)
+ self._muc_info_box.set_subject(MucSubject(text=subject,
+ author='someone',
+ timestamp=None))
self.show_all()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d4eb4a35c696599258c0984600875058…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d4eb4a35c696599258c0984600875058…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
c4a77304 by wurstsalat at 2022-07-12T18:34:37+02:00
Fix GroupChatNickCompletion test
- - - - -
1 changed file:
- test/no_gui/test_nick_completion.py
Changes:
=====================================
test/no_gui/test_nick_completion.py
=====================================
@@ -1,4 +1,5 @@
import unittest
+from unittest.mock import MagicMock
from gajim import gui
gui.init('gtk')
@@ -10,6 +11,8 @@ class Test(unittest.TestCase):
def test_generate_suggestions(self):
gen = GroupChatNickCompletion()
+ contact = MagicMock()
+ gen.switch_contact(contact)
l = ['aaaa', 'fooo', 'xxxxz', 'xaaaz']
for n in l:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c4a773049fb7672ab484b956e35ccd2b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c4a773049fb7672ab484b956e35ccd2b…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
c849307b by wurstsalat at 2022-07-12T17:47:10+02:00
Settings: Move GroupChatSetting to correct type
- - - - -
1 changed file:
- gajim/common/setting_values.py
Changes:
=====================================
gajim/common/setting_values.py
=====================================
@@ -383,13 +383,13 @@ class _ACCOUNT_DEFAULT:
'notify_on_all_messages',
'print_join_left',
'print_status',
- 'send_chatstate',
'send_marker',
]
StringGroupChatSettings = Literal[
'encryption',
'speller_language',
+ 'send_chatstate',
]
IntGroupChatSettings = Literal[
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c849307b3c944adb08c21b4001130e73…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c849307b3c944adb08c21b4001130e73…
You're receiving this email because of your account on dev.gajim.org.