banshee r4570 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView src/Libraries/Hyena/Hyena.Data
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4570 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView src/Libraries/Hyena/Hyena.Data
- Date: Fri, 19 Sep 2008 00:06:41 +0000 (UTC)
Author: gburt
Date: Fri Sep 19 00:06:41 2008
New Revision: 4570
URL: http://svn.gnome.org/viewvc/banshee?rev=4570&view=rev
Log:
2008-09-18 Gabriel Burt <gabriel burt gmail com>
* src/Libraries/Hyena/Hyena.Data/ColumnDescription.cs: Add a LongTitle
property.
* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DefaultColumnController.cs:
Use the QueryField.ShortLabel in the ColumnDescription for the Title, and
set the LongTitle to the field's Label property.
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs: Use
the LongTitle in the menus.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DefaultColumnController.cs
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
trunk/banshee/src/Libraries/Hyena/Hyena.Data/ColumnDescription.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DefaultColumnController.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DefaultColumnController.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/DefaultColumnController.cs Fri Sep 19 00:06:41 2008
@@ -159,6 +159,7 @@
cell,
width, field.Name, visible
);
+ col.LongTitle = field.Label;
col.Field = field;
return col;
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs Fri Sep 19 00:06:41 2008
@@ -464,7 +464,7 @@
private Column column;
private bool ready = false;
- public ColumnToggleMenuItem (Column column) : base (column.Title ?? String.Empty)
+ public ColumnToggleMenuItem (Column column) : base (column.LongTitle ?? String.Empty)
{
this.column = column;
Active = column.Visible;
@@ -495,7 +495,7 @@
Label label = new Label ();
label.Xalign = 0.0f;
label.Markup = String.Format (Catalog.GetString ("Hide <i>{0}</i>"),
- GLib.Markup.EscapeText (column.Title));
+ GLib.Markup.EscapeText (column.LongTitle));
label.Show ();
Add (label);
Modified: trunk/banshee/src/Libraries/Hyena/Hyena.Data/ColumnDescription.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena/Hyena.Data/ColumnDescription.cs (original)
+++ trunk/banshee/src/Libraries/Hyena/Hyena.Data/ColumnDescription.cs Fri Sep 19 00:06:41 2008
@@ -33,6 +33,7 @@
public class ColumnDescription
{
private string title;
+ private string long_title;
private double width;
private bool visible;
private string property;
@@ -48,6 +49,7 @@
{
this.property = property;
this.title = title;
+ this.long_title = title;
this.width = width;
this.visible = visible;
}
@@ -72,6 +74,11 @@
get { return title; }
set { title = value; }
}
+
+ public string LongTitle {
+ get { return long_title; }
+ set { long_title = value; }
+ }
public double Width {
get { return width; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]