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 574153 - View/Edit Ratings from 'Now Playing' view.
View/Edit Ratings from 'Now Playing' view.
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: User Interface
git master
Other Linux
: Normal enhancement
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-04 18:38 UTC by James Mason
Modified: 2012-03-31 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mockup of the Now Playing view with Rating (123.63 KB, image/png)
2009-03-04 18:42 UTC, James Mason
  Details
Proposed patch for displaying current track's rating in the "Now Playing" view (1.84 KB, patch)
2011-03-17 16:18 UTC, Philip Gillißen
needs-work Details | Review
Added proposed changes to other patch. (2.57 KB, patch)
2012-03-28 00:11 UTC, Diego
committed Details | Review
Screenshot with applied patch. (489.53 KB, image/png)
2012-03-30 03:56 UTC, Diego
  Details

Description James Mason 2009-03-04 18:38:45 UTC
I'm trying hard to like the 5-star ratings system in Banshee, but I spend a lot of time with Banshee running full-screen on the Now Playing view.

In this scenario, the ratings of a track don't show. and the only edit option I find is to right-click the tray icon.

I would like to see/edit the ratings stars from the now playing view.
Comment 1 James Mason 2009-03-04 18:42:36 UTC
Created attachment 130046 [details]
Mockup of the Now Playing view with Rating
Comment 2 Philip Gillißen 2011-01-10 21:55:32 UTC
This enhancement would be great to see! The rating would be much more useable and more easy to access.
Comment 3 Philip Gillißen 2011-01-27 10:15:36 UTC
This is a duplicate of bug 526994.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2011-02-08 20:28:15 UTC
(In reply to comment #3)
> This is a duplicate of bug 526994.

I don't think so, the mockups of both bugs look very different :)
Comment 5 Philip Gillißen 2011-02-08 20:40:48 UTC
Sorry for the wrong word. I meant related bug.

As I understood the code, a third line for the track info is needed in both cases. The track rating could be displayed in the "Now Playing" view and the track bar at the same time.
Comment 6 Philip Gillißen 2011-03-17 16:18:52 UTC
Created attachment 183650 [details] [review]
Proposed patch for displaying current track's rating in the "Now Playing" view

I did a small patch for displaying the rating of the current track. I formatted for git master (e19a2693).

I tested it in several screen sizes and it didn't went ugly.

Please feel free to test and modify it.
Comment 7 Bertrand Lorentz 2011-03-19 20:31:58 UTC
Review of attachment 183650 [details] [review]:

Thanks for the patch !

A few additional comments :
1/ Please set a proper e-mail address in your git config, for proper attribution.
2/ I think we shouldn't display empty stars if the track is not rated. Setting the third parameter for the Render call to false should do the trick.
3/ The rating doesn't update when the track changes while I'm looking at the "Now Playing" view.
4/ In addition, it'd be really nice if the rating would fade when it changes, like the text and the cover.

::: src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/LargeTrackInfoDisplay.cs
@@ +108,3 @@
             }
+
+       }

That change is not needed, please remove it.

@@ +270,3 @@
             PangoCairoHelper.ShowLayout (cr, third_line_layout);
+
+            RatingRenderer ratingRenderer = new RatingRenderer();

That variable should be named rating_renderer
See the HACKING file for code formatting guidelines
Comment 8 Tommy Carstensen 2011-06-03 18:17:54 UTC
Initially I wanted to request this feature, but I wasn't aware you could right click the Banshee icon in the tray and make the rating. In that case this feature has low priority in my world.
Comment 9 Diego 2012-03-28 00:11:41 UTC
Created attachment 210745 [details] [review]
Added proposed changes to other patch.

Trying to learn my way around Banshee I thought I'd give this a try.  This seems to work OK, although I'd like to make the rating left aligned.

There's 2 ways I'm thinking:
1) Flip the surface with the rating. (better)
2) Adjust the x coordinate depending on the number of stars.

Any thoughts?
Comment 10 James Mason 2012-03-28 15:54:33 UTC
(In reply to comment #9)
> There's 2 ways I'm thinking:
> 1) Flip the surface with the rating. (better)
> 2) Adjust the x coordinate depending on the number of stars.
> 
> Any thoughts?

Can you attach screenshots?
Comment 11 Diego 2012-03-30 03:56:51 UTC
Created attachment 210913 [details]
Screenshot with applied patch.

Here's a screenshot of what it looks like now.  I made a typo on my previous comment, I meant I'd like to right align it.  Currently if the song is 5 stars it aligns nicely with the text, but if it's any less it's off like the SS.
Comment 12 Bertrand Lorentz 2012-03-31 18:19:02 UTC
Comment on attachment 183650 [details] [review]
Proposed patch for displaying current track's rating in the "Now Playing" view

Obsoleted by Diego's patch
Comment 13 Bertrand Lorentz 2012-03-31 18:23:37 UTC
Comment on attachment 210745 [details] [review]
Added proposed changes to other patch.

Thanks for the patch !

I committed it with a few changes:
- Render the rating inside the "if (renderTrack)" block, so that it's always animated like the track title (fade in/fade out)
- Don't create a new surface, just use the current Cairo Context. For that to work, I changed the RatingRender.Render method so that it doesn't modify the Context (this would mess up the rest of the rendering).

http://git.gnome.org/browse/banshee/commit/?id=f17675924
Comment 14 Bertrand Lorentz 2012-03-31 18:23:49 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.