From c28d3865bc751a87c91b0aaff2c6cf87d9701c58 Mon Sep 17 00:00:00 2001 From: Alphastaire Date: Tue, 6 Aug 2024 18:53:47 -0700 Subject: [PATCH] Add filename tooltip for images Hovering over an image with your cursor will now display a tooltip containing the filename. This solves the difficulty of seeing what an image's file name is and makes it much more convenient. --- main/src/ui/conversation_content_view/file_image_widget.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/src/ui/conversation_content_view/file_image_widget.vala b/main/src/ui/conversation_content_view/file_image_widget.vala index a3579185..a22631d4 100644 --- a/main/src/ui/conversation_content_view/file_image_widget.vala +++ b/main/src/ui/conversation_content_view/file_image_widget.vala @@ -73,6 +73,9 @@ public class FileImageWidget : Box { image_overlay_toolbar.visible = false; }); + // Set tooltip to display the file name on hover + image.set_tooltip_text(file_name); + this.append(overlay); } }