Bugzilla – Attachment 84218 Details for
Bug 120666
banshee columns are not remembered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Path to restore columns in proper order
playlist-columns.diff (text/plain), 1.21 KB, created by
Aaron Bockover
on 2006-05-18 21:31:45 UTC
(
hide
)
Description:
Path to restore columns in proper order
Filename:
MIME Type:
Creator:
Aaron Bockover
Created:
2006-05-18 21:31:45 UTC
Size:
1.21 KB
patch
obsolete
>Index: src/PlaylistView.cs >=================================================================== >RCS file: /cvs/gnome/banshee/src/PlaylistView.cs,v >retrieving revision 1.45.2.1 >diff -u -r1.45.2.1 PlaylistView.cs >--- src/PlaylistView.cs 5 Apr 2006 20:26:22 -0000 1.45.2.1 >+++ src/PlaylistView.cs 18 May 2006 21:28:09 -0000 >@@ -77,6 +77,14 @@ > public PlaylistColumn PlaysColumn; > public PlaylistColumn LastPlayedColumn; > >+ private class ColumnSorter : IComparer >+ { >+ public int Compare(object a, object b) >+ { >+ return (a as PlaylistColumn).Order.CompareTo((b as PlaylistColumn).Order); >+ } >+ } >+ > public PlaylistView(PlaylistModel model) > { > // set up columns >@@ -121,8 +129,10 @@ > 8, (int)ColumnId.LastPlayed); > columns.Add(LastPlayedColumn); > >+ columns.Sort(new ColumnSorter()); >+ > foreach(PlaylistColumn plcol in columns) { >- InsertColumn(plcol.Column, plcol.Order); >+ AppendColumn(plcol.Column); > } > > // FIXME: would be nice to have these as PlaylistColumns too...
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 120666
: 84218