Commit a22c343e authored by Giovanni Campagna's avatar Giovanni Campagna Committed by Jonathan Matthew
Browse files

Support Notification Filtering GNOME feature

Report that we emit notifications in the desktop files, add desktop-entry
for filtering and, most important, add music category so that our notifications
are shown with actions in the lock screen.

https://bugzilla.gnome.org/show_bug.cgi?id=692941
parent f383854a
......@@ -17,3 +17,4 @@ X-GNOME-Bugzilla-Product=rhythmbox
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata;
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-UsesNotifications=true
\ No newline at end of file
......@@ -199,6 +199,11 @@ do_notify (RBNotificationPlugin *plugin,
g_variant_new_string (image_uri));
}
if (playback)
notify_notification_set_category (notification, "x-gnome.music");
notify_notification_set_hint (notification, "desktop-entry",
g_variant_new_string ("rhythmbox"));
notify_notification_clear_actions (notification);
if (playback && plugin->notify_supports_actions) {
if (plugin->notify_supports_icon_buttons) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment