From fe03719b38b2e925462d8ff02488fde7abe96abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sun, 18 Apr 2021 18:44:16 +0200 Subject: [PATCH] Show tooltip with full playlist item text on hover Some titles might be more than few words and will not fit in current playlist popover. Instead of stretching it, show full playlist item filename (or path) on hover in a tooltip. --- src/playlist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/playlist.js b/src/playlist.js index 59ced052..3b48689b 100644 --- a/src/playlist.js +++ b/src/playlist.js @@ -119,6 +119,7 @@ class ClapperPlaylistItem extends Gtk.ListBoxRow this.isLocalFile = true; } this.filename = filename || uri; + this.set_tooltip_text(this.filename); const box = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,