[rhythmbox: 1/2] Do silent notifications



commit c13401894805d13dd665f29260a46412561ed0bb
Author: Germán Franco <dev germanfr gmail com>
Date:   Thu Sep 26 10:30:53 2019 +0000

    Do silent notifications

 plugins/notification/rb-notification-plugin.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/notification/rb-notification-plugin.c b/plugins/notification/rb-notification-plugin.c
index e42064b07..2d3d0cb50 100644
--- a/plugins/notification/rb-notification-plugin.c
+++ b/plugins/notification/rb-notification-plugin.c
@@ -254,6 +254,8 @@ do_notify (RBNotificationPlugin *plugin,
                notify_notification_set_hint (notification, hint, g_variant_new_boolean (TRUE));
        }
 
+       notify_notification_set_hint (notification, "suppress-sound", g_variant_new_boolean (TRUE));
+
        if (notify_notification_show (notification, &error) == FALSE) {
                g_warning ("Failed to send notification (%s): %s", primary, error->message);
                g_error_free (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]