[banshee] [Banshee.Gui.Widgets] Don't elipsize long strings in LargeTrackInfoDisplay. Wrap them.
- From: Alex Launi <alexlauni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Gui.Widgets] Don't elipsize long strings in LargeTrackInfoDisplay. Wrap them.
- Date: Fri, 18 Jun 2010 03:38:00 +0000 (UTC)
commit cb74c7dec1502d7f19d30745f11bbad5f8faa2ca
Author: Alex Launi <alex launi gmail com>
Date: Thu Jun 17 17:12:35 2010 -0400
[Banshee.Gui.Widgets] Don't elipsize long strings in LargeTrackInfoDisplay. Wrap them.
Since there is so much available room in the LargeTrackInfoDisplay it makes little
sense to elipsize the strings. Wrapping them makes more sense, and still looks good.
Fixes bgo#621934.
.../Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
index 61ee69c..a023a20 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
@@ -209,7 +209,8 @@ namespace Banshee.Gui.Widgets
if (first_line_layout == null) {
first_line_layout = CairoExtensions.CreateLayout (this, cr);
- first_line_layout.Ellipsize = Pango.EllipsizeMode.End;
+ first_line_layout.Wrap = Pango.WrapMode.Word;
+ first_line_layout.Ellipsize = Pango.EllipsizeMode.None;
first_line_layout.Alignment = Pango.Alignment.Right;
int base_size = first_line_layout.FontDescription.Size;
@@ -218,13 +219,15 @@ namespace Banshee.Gui.Widgets
if (second_line_layout == null) {
second_line_layout = CairoExtensions.CreateLayout (this, cr);
- second_line_layout.Ellipsize = Pango.EllipsizeMode.End;
+ second_line_layout.Wrap = Pango.WrapMode.Word;
+ second_line_layout.Ellipsize = Pango.EllipsizeMode.None;
second_line_layout.Alignment = Pango.Alignment.Right;
}
if (third_line_layout == null) {
third_line_layout = CairoExtensions.CreateLayout (this, cr);
- third_line_layout.Ellipsize = Pango.EllipsizeMode.End;
+ third_line_layout.Wrap = Pango.WrapMode.Word;
+ third_line_layout.Ellipsize = Pango.EllipsizeMode.None;
third_line_layout.Alignment = Pango.Alignment.Right;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]