After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 89591 - Add new columns in the songs-view (my rating, play count)
Add new columns in the songs-view (my rating, play count)
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Olivier Martin
Olivier Martin
Depends on:
Blocks:
 
 
Reported: 2002-08-01 09:11 UTC by Olivier Martin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial patch to get 'play count' and 'last played' saved and displayed (14.51 KB, patch)
2002-10-23 20:45 UTC, Mark Humphreys
none Details | Review
Show play count and last played as available columns (30.55 KB, patch)
2002-10-24 11:25 UTC, Mark Humphreys
none Details | Review
Correct duplicate short cut keys for 'Last Played' column (30.55 KB, patch)
2002-10-24 12:12 UTC, Mark Humphreys
none Details | Review
Rationalisation of changes and standardisation of duplicated functions (37.97 KB, patch)
2002-10-24 15:01 UTC, Mark Humphreys
none Details | Review

Description Olivier Martin 2002-08-01 09:11:05 UTC
Rhythmbox needs 2 new kind of columns:
* My ratings - from 1 to 5 stars 
* Play count - The number of times a song has been played

This is, of course, heavily inspired by iTunes:
http://perso.wanadoo.fr/oleevye/screenshots/itunes3.png
Comment 1 Mark Humphreys 2002-10-23 20:45:32 UTC
Created attachment 11792 [details] [review]
Initial patch to get 'play count' and 'last played' saved and displayed
Comment 2 Mark Humphreys 2002-10-23 20:47:31 UTC
The above patch should initialise and record the 'play statistics' of
each node. Its not perfect, and doesn't update when the node is the
last in the list - but its a start.
Comment 3 Jorn Baayen 2002-10-23 21:10:58 UTC
Coolness!

I see where your bug comes from:

you call song_update_statistics at the end of the eos handler,
you should do it at the beginning, after GDK_THREADS_ENTER, and
instead of calling rb_node_view_previous, you should call
rb_node_view_get_playing_node.

Further, it would rock if you could add columns for these two guys :)
(Yes, we want them here ;) Since in this case they are actually useful)
Comment 4 Mark Humphreys 2002-10-23 21:19:14 UTC
When I do it inside the GDK_THREADS_ENTER, then the whole thing locks
up. I will keep having a play and get columns added for these 2 fields
in a later patch.
Comment 5 Jorn Baayen 2002-10-23 21:31:21 UTC
whoops, TRUE -- do it before the THREADS_ENTER, sorry
Comment 6 Mark Humphreys 2002-10-23 21:34:07 UTC
Well, the suggested changes work, so I'll move onto forcing in the 2
new columns and resubmit the patch.
Comment 7 Olivier Martin 2002-10-23 23:18:33 UTC
Rating is done. You will prolly have some conflict while updating cvs...
Comment 8 Mark Humphreys 2002-10-24 11:25:03 UTC
Created attachment 11802 [details] [review]
Show play count and last played as available columns
Comment 9 Mark Humphreys 2002-10-24 11:27:03 UTC
Above patch is a re-merge with the CVS checkins from last night. The
two fields are available as columns. The formatting is a little
'immature' - no i18n and repeats a couple of functions and could be
tidied up.

btw. MyRating(tm) looks great.
Comment 10 Mark Humphreys 2002-10-24 12:12:17 UTC
Created attachment 11803 [details] [review]
Correct duplicate short cut keys for 'Last Played' column
Comment 11 Mark Humphreys 2002-10-24 13:56:13 UTC
Ignore the previous patch, it doesn't change a thing! Will submit a
further change later today that fixes a couple of annoying things I
have found whilst using the changed version of 'rb'.
Comment 12 Mark Humphreys 2002-10-24 15:01:47 UTC
Created attachment 11805 [details] [review]
Rationalisation of changes and standardisation of duplicated functions
Comment 13 Mark Humphreys 2002-10-24 15:03:04 UTC
I'm a lot happier with the above patch, duplicated functions
rationalised, shortcuts sorted out, dragon slain, etc.
Comment 14 Jorn Baayen 2002-10-24 16:53:11 UTC
Cleaned it up and commited.