[gnome-music] albumwidget: Limit composer name length
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] albumwidget: Limit composer name length
- Date: Sun, 7 Oct 2018 17:45:29 +0000 (UTC)
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]