[glib] Map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL



commit f8a88a768d976a3bb642c5088634006e1b5e3611
Author: Adrian Perez de Castro <aperez igalia com>
Date:   Tue Jul 11 22:28:50 2017 +0300

    Map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL
    
    When using the Freedesktop backend for GNotification, it seems like a
    better idea to map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL
    (instead of NOTIFY_URGENCY_CRITICAL) provided that the difference
    between GNotification's NORMAL and HIGH priorities is minor.
    
    Signed-off-by: Adrian Perez de Castro <aperez igalia com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784815

 gio/gfdonotificationbackend.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfdonotificationbackend.c b/gio/gfdonotificationbackend.c
index 77dcf69..a0d4814 100644
--- a/gio/gfdonotificationbackend.c
+++ b/gio/gfdonotificationbackend.c
@@ -200,9 +200,9 @@ urgency_from_priority (GNotificationPriority priority)
 
     default:
     case G_NOTIFICATION_PRIORITY_NORMAL:
+    case G_NOTIFICATION_PRIORITY_HIGH:
       return 1;
 
-    case G_NOTIFICATION_PRIORITY_HIGH:
     case G_NOTIFICATION_PRIORITY_URGENT:
       return 2;
     }


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