[gnome-user-share] obex: Make initial notifications for Bluetooth incoming transmissions CRITICAL



commit cc95c2feca6aa90ffc83dbce2c0777fa4deaf8e5
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Thu Oct 30 12:44:31 2014 -0700

    obex: Make initial notifications for Bluetooth incoming transmissions CRITICAL
    
    By making these change, interaction with these notifications will be
    more intuitive for the user, as they won't ever expire until being
    explicitly dismissed. Also, notifications will show all the information
    plus the buttons required to make a decision, right from the start.
    
    From https://developer.gnome.org/notification-spec:
    
     "Critical notifications should not automatically expire, as they are
      things that the user will most likely want to know about. They should
      only be closed when the user dismisses them, for example, by clicking
      on the notification."
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739426

 src/obexpush.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/obexpush.c b/src/obexpush.c
index 6d305d7..30b2b68 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -241,6 +241,7 @@ ask_user (GDBusMethodInvocation *invocation,
                                                notification_text,
                                                "bluetooth");
 
+       notify_notification_set_urgency (notification, NOTIFY_URGENCY_CRITICAL);
        notify_notification_set_timeout (notification, NOTIFY_EXPIRES_NEVER);
        notify_notification_set_hint_string (notification, "desktop-entry",
                                             "gnome-bluetooth-panel");


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