Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
eebbd5cd by wurstsalat at 2025-04-13T21:18:38+02:00
cfix: Start chat: Fix test
- - - - -
ad2730ae by wurstsalat at 2025-04-13T21:18:38+02:00
imprv: Start chat: Improve row layout
- - - - -
2 changed files:
- gajim/data/gui/contact_view_item.ui
- test/gtk/ui_test_start_chat.py
Changes:
=====================================
gajim/data/gui/contact_view_item.ui
=====================================
@@ -25,17 +25,19 @@
<property name="orientation">0</property>
<child>
<object class="GtkLabel" id="_name_label">
- <property name="halign">1</property>
+ <property name="halign">start</property>
+ <property name="valign">end</property>
<property name="xalign">0</property>
<property name="ellipsize">3</property>
<style>
- <class name="bold14"/>
+ <class name="bold"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="_address_label">
- <property name="halign">1</property>
+ <property name="halign">start</property>
+ <property name="valign">end</property>
<property name="xalign">0</property>
<property name="ellipsize">3</property>
<property name="margin-start">6</property>
@@ -49,7 +51,7 @@
</child>
<child>
<object class="GtkLabel" id="_status_label">
- <property name="halign">1</property>
+ <property name="halign">start</property>
<property name="xalign">0</property>
<property name="width-chars">22</property>
<property name="ellipsize">3</property>
=====================================
test/gtk/ui_test_start_chat.py
=====================================
@@ -13,6 +13,7 @@
from gi.repository import Gdk
from gi.repository import GLib
from gi.repository import Gtk
+from nbxmpp.const import PresenceShow
from nbxmpp.protocol import JID
from nbxmpp.structs import BookmarkData
from nbxmpp.structs import RosterItem
@@ -119,6 +120,7 @@ def get_contact(self, jid: str | JID, groupchat: bool =
False) -> BareContact:
contact.is_groupchat = groupchat
if not groupchat:
+ contact.show = PresenceShow.ONLINE
contact.status = random.choice(STATUS_MESSAGES)
contact.idle_datetime = dt.datetime.now()
contact.groups = set(random.sample(sorted(CONTACT_GROUPS), 1))
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/9625e5eb04b03dc91a3d2d3453b8c1fde87b1c8c...ad2730ae35ca2ac1e527b74fe78e96984547e556
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/9625e5eb04b03dc91a3d2d3453b8c1fde87b1c8c...ad2730ae35ca2ac1e527b74fe78e96984547e556
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]