[gnome-music] albumwidget: Limit composer name length



commit 41381bc25eb7247460309139885f84f34ff21c1f
Author: ymdatta <ymdatta protonmail com>
Date:   Sat Oct 6 12:59:58 2018 +0530

    albumwidget: Limit composer name length
    
    This commit limits the length of composer name to 10 characters while
    displaying in the album widget. One can see the full composer label using
    tooltip.
    
    Closes: #222

 gnomemusic/widgets/albumwidget.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 1e85795e..c924b670 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -154,6 +154,8 @@ class AlbumWidget(Gtk.EventBox):
 
         if composer:
             self._composer_info_label.props.label = composer
+            self._composer_info_label.props.max_width_chars = 10
+            self._composer_info_label.props.tooltip_text = composer
             show = True
 
         self._composer_label.props.visible = show


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]