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 332461 - rating change not sent on dbus
rating change not sent on dbus
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Programmatic interfaces
0.9.3
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-24 15:59 UTC by Sebastien Bacher
Modified: 2006-07-07 22:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.80 KB, patch)
2006-06-30 13:26 UTC, Jonathan Matthew
committed Details | Review

Description Sebastien Bacher 2006-02-24 15:59:43 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/32690

"When the rating of a song is changed in Rhythmbox, no notification is sent over dbus."
Comment 1 Sebastien Bacher 2006-02-24 21:24:03 UTC
Sorry for the wrong setting, I was meaning to pick "minor", the focus has probably changed
Comment 2 Jonathan Matthew 2006-04-17 11:11:07 UTC
Do we want to emit notifications for all changes?  Only for specific properties (rating, play count, other things that are expected to change)?  Only for the playing entry?

I'm not sure emitting dbus signals for every change is a good idea, since all those signals will go at least as far as the dbus daemon.  Maybe if we didn't emit signals during database loading or for newly added entries, it'd be OK.
Comment 3 James "Doc" Livingston 2006-04-17 11:21:22 UTC
Is there a dbus equivalent of g_signal_handler_is_connected? If so, we could use that to know whether to send changes over dbus.
Comment 4 Paul Kuliniewicz 2006-04-17 16:52:37 UTC
I think notifications should at least be sent for all changes involving the currently playing song.  Otherwise, programs like Music Applet will get out of sync if, say, a song's rating is changed in Rhythmbox.
Comment 5 Jonathan Matthew 2006-06-30 13:26:14 UTC
Created attachment 68217 [details] [review]
patch

Emits dbus signals for changes made to the playing song.  Tested with dbus-monitor, seems to work properly.

Even if there was some way to find out if a signal matches any active watches on the bus, it'd still be a roundtrip to the dbus daemon, so we'd be better off just sending the signal and letting the bus drop it if no one wants to see it.
Comment 6 James "Doc" Livingston 2006-07-07 05:36:48 UTC
This looks good to me. Worrying about whether there is something connected to this signal probably isn't worth worrying about, especially since we're already sending the elapsed-changed signal every second anyway.
Comment 7 Jonathan Matthew 2006-07-07 22:44:37 UTC
OK, committed.