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 333904 - Mouse click searching based on a song's metadata
Mouse click searching based on a song's metadata
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: User Interface
0.10.x
Other All
: Normal enhancement
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 337551 (view as bug list)
Depends on: 338057
Blocks:
 
 
Reported: 2006-03-08 15:00 UTC by Henry Gomersall
Modified: 2006-07-02 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposal for searching by selected track's properties (5.92 KB, patch)
2006-04-29 22:23 UTC, Dominik Meister
none Details | Review
patch (5.92 KB, patch)
2006-04-30 09:59 UTC, Dominik Meister
none Details | Review
Same as the last patch, but actually applies (6.04 KB, patch)
2006-06-03 08:51 UTC, Patrick van Staveren
none Details | Review
Updated patch (5.15 KB, patch)
2006-06-25 18:52 UTC, Dominik Meister
committed Details | Review

Description Henry Gomersall 2006-03-08 15:00:22 UTC
One usage example:
Right clicking on one of a song's metadata fields (e.g the artist) should bring
up an option to 'search for all songs by Arty Foo'.

This would be much faster than the current requirement to type in the search box.

Perhaps an extension of this would be to allow drag and drop of the fields to
the search box (so dragging Queen to the search box would result in a search for
all the songs by Queen).
Comment 1 Germán Poo-Caamaño 2006-04-02 17:17:23 UTC
It could be an extension where the user has two (or more options), such as: create a playlist with this artist/album/whatever" or just (as you proposal) filter the current view with such data.
Comment 2 Ruben Vermeersch 2006-04-10 18:55:00 UTC
Moving to the User Interface component.
Comment 3 Dominik Meister 2006-04-29 22:23:43 UTC
Created attachment 64541 [details] [review]
Proposal for searching by selected track's properties

This patch adds a (context-)menu which lets the user to search for the same artist, album or genre as the current selected track. If there is more than one track selected the first one will get chosen.

I had to add a getter method to the SearchEntry's Field property and I'm quite new to C# and Mono. So I don't know if its done the "right way".
Comment 4 Dominik Meister 2006-04-30 09:59:52 UTC
Created attachment 64551 [details] [review]
patch

I just made a little change to my patch. IMHO it's better to first set the search type and then write the query into the search field (in my first patch I did it the other way round).
Comment 5 Gabriel Burt 2006-05-04 02:52:56 UTC
*** Bug 337551 has been marked as a duplicate of this bug. ***
Comment 6 Patrick van Staveren 2006-06-03 08:49:26 UTC
My only issue with this patch: the items should only be on the context menu, not on the main banshee view menu as well.

Go ahead and remove those and submit another patch...I think this is a good addition :)

Also - I could not apply your patch; I had to do it by hand.  Patch gave some crazy errors.  I attached a new patch with the same code but works fine with `patch -p0 < thepatch.diff`
Comment 7 Patrick van Staveren 2006-06-03 08:51:18 UTC
Created attachment 66691 [details] [review]
Same as the last patch, but actually applies
Comment 8 Ruben Vermeersch 2006-06-03 09:05:17 UTC
Let's deprecate the old one then.
Comment 9 Dominik Meister 2006-06-05 16:50:14 UTC
I don't know if removing this options from the View menu does comply with the Gnome HIG. Because AFAIK right click menus are so called undiscoverable features and therefore not easy to find for unexperienced users. But I agree that adding everything to the application menu clutters the UI.

By the way, what is the correct way to build a patch? I thought I did it like it is recommended on the GnomeLove wiki.
Comment 10 Patrick van Staveren 2006-06-05 16:57:34 UTC
I dont know much about the Gnome HIG, but it makes sense to me to have this on the right-click menu as that implies that you're performing an action (search by xxx for yyy) pertaining to the item you just right clicked on.

Anyone else have any advice for this?

As for the patch issue, I don't know what the deal is.  Just doing a `cvs diff -u > this.patch` should do the trick.  Patch was complaining about the line numbers being wrong, but it wasn't the usual error that you get when a hunk fails.  I honestly have never seen that error before :)
Comment 11 Dominik Meister 2006-06-25 18:52:51 UTC
Created attachment 67984 [details] [review]
Updated patch

I've removed the items from the view menu so that the filter options are only availabe through a track's context menu.
Comment 12 Aaron Bockover 2006-07-02 18:11:59 UTC
Marking this patch a little odd so I don't forget it :) I am cleaning up/committing my work over the past week from GUADEC and then will review this.
Comment 13 Aaron Bockover 2006-07-02 20:34:11 UTC
I'm committing a revised version of this patch. I moved the items to a sub-menu on the context menu to keep it from being so large. Also I added a private SearchTrackCriteria enum for SearchBySelectedTrack to remove the need for pointless private string object instantiations.

Thanks!
Comment 14 Dominik Meister 2006-07-02 20:53:32 UTC
Thanks, I like the enum solution.

That motivates me to submit more patches.