Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2023-05-28 17:40:58 +0300
committerwurstsalat <mailtrash@posteo.de>2023-05-28 17:40:58 +0300
commit9aaf4f9d06ac5195f038217e93135209eb18bbcf (patch)
tree2185754d6621d2fa17fb379ef72b528a399d1d90
parent71f94434be7ce180a8b8150f283dfe16b9c80143 (diff)
imprv: Account page: Show our XMPP address
-rw-r--r--gajim/data/gui/account_page.ui50
-rw-r--r--gajim/gtk/account_page.py2
-rw-r--r--gajim/gtk/builder.pyi3
3 files changed, 46 insertions, 9 deletions
diff --git a/gajim/data/gui/account_page.ui b/gajim/data/gui/account_page.ui
index ecda59679..3f0185947 100644
--- a/gajim/data/gui/account_page.ui
+++ b/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">&lt;name&gt;</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">&lt;name&gt;</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>
diff --git a/gajim/gtk/account_page.py b/gajim/gtk/account_page.py
index 2036165dc..2c8700d2f 100644
--- a/gajim/gtk/account_page.py
+++ b/gajim/gtk/account_page.py
@@ -53,6 +53,8 @@ class AccountPage(Gtk.Box, EventHelper):
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)
diff --git a/gajim/gtk/builder.pyi b/gajim/gtk/builder.pyi
index 536011114..592cff32a 100644
--- a/gajim/gtk/builder.pyi
+++ b/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