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 700539 - right click on unsupported track removes error icon
right click on unsupported track removes error icon
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2013-05-17 16:37 UTC by William Jon McCann
Modified: 2013-07-16 10:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Only allow left-button click to trigger events (7.49 KB, patch)
2013-06-08 07:51 UTC, Fabiano Fidêncio
needs-work Details | Review
Only allow left-button click to trigger events (3.04 KB, patch)
2013-06-10 08:32 UTC, Fabiano Fidêncio
needs-work Details | Review
Only allow left-button click to trigger events (2.81 KB, patch)
2013-06-10 11:26 UTC, Fabiano Fidêncio
committed Details | Review
Only allow left-button click to trigger events (2.85 KB, patch)
2013-07-16 10:00 UTC, Vadim Rutkovsky
committed Details | Review

Description William Jon McCann 2013-05-17 16:37:02 UTC
When I right click on an unsupported track it removes the error icon.
Comment 1 Fabiano Fidêncio 2013-05-26 02:43:27 UTC
Actually, it's a bit more than this.
Right click on a supported track will show/hide the "Playing" icon to the music in some places and will simply start to play the music in another.

According with Seif, right click should do anything by design.

I'm a bit confused in this code. I'm trying to understand who is receiving and treating the mouse click in the Albums view and in the Songs view. It was pretty clear in the Artists view.
For some reason, looks like it's not exactly treated as a button-{press,release}-event in the Albums and Songs views. Is there some reason for this?

Tips are welcome :-)
Comment 2 Guillaume Quintard 2013-05-29 10:26:05 UTC
Album and songs view are Mainviews, while Artist views using a grid, that's probably why.
Comment 3 Fabiano Fidêncio 2013-06-08 07:51:29 UTC
Created attachment 246292 [details] [review]
Only allow left-button click to trigger events

By design we don't want that {right,middle}-button click triggers
any kind of action in gnome-music.
Comment 4 Fabiano Fidêncio 2013-06-08 07:53:07 UTC
(In reply to comment #3)

This patch still doesn't fix the problem entirely.
I'm working on the McCann's issue now.
Comment 5 Seif Lotfy 2013-06-09 06:46:19 UTC
Review of attachment 246292 [details] [review]:

::: src/view.js
@@ +312,3 @@
+        let button = Gtk.get_current_event().get_button()[1];
+
+        if (button == 1) {

to reduce the diff size and for better indention why not use:
 
if (button != 1)
   return;

@@ +355,3 @@
+        let button = Gtk.get_current_event().get_button()[1];
+
+        if (button == 1) {

same

@@ +565,3 @@
+        let button = Gtk.get_current_event().get_button()[1];
+
+        if (button == 1) {

same

::: src/widgets.js
@@ +125,3 @@
+                let button = Gtk.get_current_event().get_button()[1];
+
+                if (button == 1) {

to reduce the diff size and for better indention why not use:

if (button != 1)
   return;

@@ +619,3 @@
+        let button = event.get_button()[1];
+
+        if (button == 1) {

same here
Comment 6 Fabiano Fidêncio 2013-06-10 08:32:35 UTC
Created attachment 246385 [details] [review]
Only allow left-button click to trigger events

By design we don't want that {right,middle}-button click triggers
any kind of action in gnome-music.
Comment 7 Vadim Rutkovsky 2013-06-10 09:15:40 UTC
Review of attachment 246385 [details] [review]:

No need to update libgd, please remove it from the patch
Comment 8 Fabiano Fidêncio 2013-06-10 11:26:44 UTC
Created attachment 246396 [details] [review]
Only allow left-button click to trigger events

By design we don't want that {right,middle}-button click triggers
any kind of action in gnome-music.
Comment 9 Vadim Rutkovsky 2013-07-16 10:00:43 UTC
After the tests were removed we can push it, thanks!

The following fix has been pushed:
a543620 Only allow left-button click to trigger events
Comment 10 Vadim Rutkovsky 2013-07-16 10:00:50 UTC
Created attachment 249260 [details] [review]
Only allow left-button click to trigger events

By design we don't want that {right,middle}-button click triggers
any kind of action in gnome-music.