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-10-19 13:13:26 +0300
committerwurstsalat <mailtrash@posteo.de>2023-10-19 13:13:39 +0300
commit13f798c66a3b03df05429b7cf2ff14a0b8b47881 (patch)
treef41030a33a5d844284bc5a7fde0937d194e3d0a1
parent704638e5c059df32ee0861048bba4aab364a4852 (diff)
cfix: ChatBanner: Use correct tooltip for contact/group chat
-rw-r--r--gajim/data/gui/chat_banner.ui1
-rw-r--r--gajim/gtk/chat_banner.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/gajim/data/gui/chat_banner.ui b/gajim/data/gui/chat_banner.ui
index d67bee0f1..d6a3ef625 100644
--- a/gajim/data/gui/chat_banner.ui
+++ b/gajim/data/gui/chat_banner.ui
@@ -269,7 +269,6 @@
<property name="can-focus">True</property>
<property name="focus-on-click">False</property>
<property name="receives-default">True</property>
- <property name="tooltip-text" translatable="yes">Share Contact…</property>
<property name="valign">center</property>
<property name="popover">share_popover</property>
<signal name="clicked" handler="_on_share_clicked" swapped="no"/>
diff --git a/gajim/gtk/chat_banner.py b/gajim/gtk/chat_banner.py
index 644b59476..d584291d7 100644
--- a/gajim/gtk/chat_banner.py
+++ b/gajim/gtk/chat_banner.py
@@ -356,6 +356,10 @@ class ChatBanner(Gtk.Box, EventHelper):
def _update_share_box(self) -> None:
assert self._contact is not None
+ if self._contact.is_groupchat:
+ self._ui.share_menu_button.set_tooltip_text(_('Share Group Chat…'))
+ else:
+ self._ui.share_menu_button.set_tooltip_text(_('Share Contact…'))
self._ui.share_menu_button.set_sensitive(
not self._contact.is_pm_contact)
self._ui.jid_label.set_text(str(self._contact.jid))