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 376863 - Rhythmbox should offer an option to configure the default action of mouse roll event on tray icon
Rhythmbox should offer an option to configure the default action of mouse rol...
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
HEAD
Other All
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 484365 550847 558871 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-19 02:07 UTC by Romulo Fernandes
Modified: 2009-07-22 15:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed feature patch against CVS HEAD (62.73 KB, patch)
2006-11-19 02:08 UTC, Romulo Fernandes
none Details | Review
Proposed feature patch against 0.12.3 (7.80 KB, patch)
2009-07-13 01:01 UTC, Gustavo Mora
reviewed Details | Review
Proposed feature patch against 0.12.3 (8.65 KB, patch)
2009-07-13 15:46 UTC, Gustavo Mora
reviewed Details | Review
Proposed feature patch against 0.12.3 (9.08 KB, patch)
2009-07-14 15:09 UTC, Gustavo Mora
committed Details | Review

Description Romulo Fernandes 2006-11-19 02:07:13 UTC
The default action for mouse roll event on tray icon is to change the volume, i suggest a configurable option on the preferences for this action with the options:
-Default (Changes the volume)
-Change Tracks (next or previous)
-Change Volume (following other models)

Im an old user of Banshee and banshee changes the track based on the roll event on tray, im very addicted to that and i would like to see that in rhythmbox.
Comment 1 Romulo Fernandes 2006-11-19 02:08:07 UTC
Created attachment 76823 [details] [review]
Proposed feature patch against CVS HEAD

This is the patch with the feature i requested.
Comment 2 Kjartan Maraas 2006-12-15 21:59:50 UTC
Did anyone take a look at this patch yet?
Comment 3 James "Doc" Livingston 2006-12-16 13:19:10 UTC
Sorry for not looking at this, it must have fallen though the cracks.

The code looks fine, aside from some minor coding-style nitpicks (braces on the same line as if statements, spaces around the ||).


There were plans to replace our use of EggTrayIcon with GtkTrayIcon sometime, which would impact on this, since GtkTrayIcon doesn't support middle-click/scroll event currently (there is an enhancement bug filed about it).
Comment 4 Romulo Fernandes 2007-01-15 12:31:09 UTC
why not implement it until the other patch comes?
Comment 5 Romulo Fernandes 2007-01-26 22:08:14 UTC
since we are approaching the new release, can we have at least a gconf key for this? might solve the problem temporarily
Comment 6 Jonathan Matthew 2007-10-24 12:08:30 UTC
*** Bug 484365 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Matthew 2008-09-14 09:43:45 UTC
*** Bug 550847 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Matthew 2008-11-02 01:17:22 UTC
*** Bug 558871 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Matthew 2009-06-05 13:24:46 UTC
If someone is still interested in this, the patch would need to be reworked to apply to the new status icon plugin.
Comment 10 Romulo Fernandes 2009-06-11 11:30:04 UTC
im still looking forward to have it, if possible.
Comment 11 Gustavo Mora 2009-07-13 01:01:09 UTC
Created attachment 138306 [details] [review]
Proposed feature patch against 0.12.3

I've made a patch against the version 0.12.3 to do what was requested.
Comment 12 Jonathan Matthew 2009-07-13 11:46:34 UTC
This generally looks OK to me.  A couple of things that need to be fixed: you need to add the new gconf key to the gconf schema file (data/rhythmbox.schemas), and there's an unnecessary whitespace change:

@@ -1120,7 +1143,7 @@ maybe_upgrade_preferences (RBStatusIconP
 		rb_debug ("using old gconf key " CONF_OLD_NOTIFICATIONS  " to set notify mode to %d", new_mode);
 		eel_gconf_set_integer (CONF_NOTIFICATION_MODE, new_mode);
 	}
-
+	
 	/* apply old window visibility key */
 	if (should_upgrade (CONF_OLD_VISIBILITY, CONF_WINDOW_VISIBILITY)) {
 		gboolean visible = eel_gconf_get_boolean (CONF_OLD_VISIBILITY);
Comment 13 Gustavo Mora 2009-07-13 15:46:28 UTC
Created attachment 138338 [details] [review]
Proposed feature patch against 0.12.3

I think that I fixed everything you asked. Should I try it against the svn version?
Comment 14 Jonathan Matthew 2009-07-14 12:56:59 UTC
Looking at this again, I think the way the modes are handled in rb_status_icon_plugin_scroll_event is a bit ugly - something like:

  switch (mode) {
  case WHEEL_VOLUME:
    switch (direction) {
      .. set adjust value ..
    }
    set_volume_relative(adjust);
    break;
  case WHEEL_SONG:
    switch (direction) {
      .. change song based on direction ..
    }
  }

would be better.

In general, when you're submitting patches, it's better if they're made against git master (http://git.gnome.org/cgit/rhythmbox/), but in this case a patch against 0.12.3 is fine.
Comment 15 Gustavo Mora 2009-07-14 15:09:44 UTC
Created attachment 138401 [details] [review]
Proposed feature patch against 0.12.3

Ok, last time I've done that way because I didn't wanted to change your code too much, but I fixed it now.
Comment 16 Gustavo Mora 2009-07-21 21:31:33 UTC
So... anymore fixes to do? I'm really looking forward to this enhancement.

Thanks.
Comment 17 Jonathan Matthew 2009-07-22 13:41:59 UTC
No, it's just been waiting for me to find time to review, test, and commit it.. but I've done that now.  Thanks for working on this.
Comment 18 Romulo Fernandes 2009-07-22 15:40:38 UTC
Thanks =]