From 6bfa70fc7045669be435d3757456e1da7d341927 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 29 Jul 2022 19:54:54 +0200 Subject: Disable tooltips for GTK 4.6.4 - 4.6.6 A bug in GTK caused the application to crash in some tooltip-related conditions https://gitlab.gnome.org/GNOME/gtk/-/issues/4941 --- main/src/ui/conversation_content_view/conversation_item_skeleton.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui/conversation_content_view') diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala index b4b99a77..14fcd536 100644 --- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala @@ -145,7 +145,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, if (item.encryption == Encryption.NONE) { if (conversation.encryption != Encryption.NONE) { encryption_image.icon_name = "dino-changes-allowed-symbolic"; - encryption_image.tooltip_text = _("Unencrypted"); + encryption_image.tooltip_text = Util.string_if_tooltips_active(_("Unencrypted")); Util.force_error_color(encryption_image); encryption_image.visible = true; } else if (conversation.encryption == Encryption.NONE) { @@ -177,7 +177,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, received_image.icon_name = "dialog-warning-symbolic"; Util.force_error_color(received_image); Util.force_error_color(time_label); - string error_text = _("Unable to send message"); + string error_text = Util.string_if_tooltips_active(_("Unable to send message")); received_image.tooltip_text = error_text; time_label.tooltip_text = error_text; break; -- cgit v1.2.3-70-g09d2