Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
9aaf4f9d by wurstsalat at 2023-05-28T16:40:58+02:00
imprv: Account page: Show our XMPP address
- - - - -
3 changed files:
- gajim/data/gui/account_page.ui
- gajim/gtk/account_page.py
- gajim/gtk/builder.pyi
Changes:
=====================================
gajim/data/gui/account_page.ui
=====================================
@@ -156,25 +156,59 @@
<property name="can-focus">False</property>
<property name="spacing">18</property>
<child type="center">
- <object class="GtkLabel" id="account_label">
+ <object class="GtkBox">
<property name="visible">True</property>
- <property name="can-focus">True</property>
- <property name="selectable">True</property>
- <property name="label"><name></property>
- <style>
- <class name="large-header"/>
- </style>
+ <property name="can-focus">False</property>
+ <property name="margin-bottom">12</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="account_label">
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="label"><name></property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="large-header"/>
+ </style>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="our_jid_label">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="tooltip-text"
translatable="yes">This is your XMPP address</property>
+ <property name="wrap">True</property>
+ <property name="wrap-mode">word-char</property>
+ <property name="selectable">True</property>
+ <property name="max-width-chars">52</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
+ <property name="valign">start</property>
<property name="hexpand">True</property>
<property name="spacing">12</property>
<child>
=====================================
gajim/gtk/account_page.py
=====================================
@@ -53,6 +53,8 @@ def __init__(self, account: str) -> None:
self._ui = get_builder('account_page.ui')
self.add(self._ui.paned)
+ self._ui.our_jid_label.set_text(self._jid)
+
self._status_selector = StatusSelector(account=account)
self._status_selector.set_halign(Gtk.Align.CENTER)
self._ui.status_box.add(self._status_selector)
=====================================
gajim/gtk/builder.pyi
=====================================
@@ -18,6 +18,7 @@ class AccountPageBuilder(Builder):
account_box: Gtk.Box
avatar_image: Gtk.Image
account_label: Gtk.Label
+ our_jid_label: Gtk.Label
account_page_menu_button: Gtk.MenuButton
status_box: Gtk.Box
notifications_menu_button: Gtk.MenuButton
@@ -188,9 +189,9 @@ class CertificateBuilder(Builder):
class ChatBannerBuilder(Builder):
share_popover: Gtk.Popover
- jid_label: Gtk.Label
share_instructions: Gtk.Label
qr_code_image: Gtk.Image
+ jid_label: Gtk.Label
banner_box: Gtk.Box
avatar_image: Gtk.Image
chat_menu_button: Gtk.MenuButton
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9aaf4f9d06ac5195f038217e93135209eb18bbcf
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9aaf4f9d06ac5195f038217e93135209eb18bbcf
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits