[rhythmbox] notification: skip useless notifications on shutdown
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] notification: skip useless notifications on shutdown
- Date: Wed, 15 May 2013 12:23:29 +0000 (UTC)
commit 86cbdc8cb232a47430c684175029fe56928ea471
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed May 15 22:20:30 2013 +1000
notification: skip useless notifications on shutdown
plugins/notification/rb-notification-plugin.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/notification/rb-notification-plugin.c b/plugins/notification/rb-notification-plugin.c
index 54c8499..59ec0b6 100644
--- a/plugins/notification/rb-notification-plugin.c
+++ b/plugins/notification/rb-notification-plugin.c
@@ -489,6 +489,10 @@ playing_entry_changed_cb (RBShellPlayer *player,
RhythmDBEntry *entry,
RBNotificationPlugin *plugin)
{
+ if (entry == NULL && plugin->notification == NULL) {
+ return;
+ }
+
update_current_playing_data (plugin, entry);
notify_playing_entry (plugin, FALSE);
}
@@ -498,6 +502,10 @@ playing_changed_cb (RBShellPlayer *player,
gboolean playing,
RBNotificationPlugin *plugin)
{
+ if (playing == FALSE && plugin->notification == NULL) {
+ return;
+ }
+
notify_playing_entry (plugin, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]