[gnome-clocks] Increase priority of notifications to HIGH.
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Increase priority of notifications to HIGH.
- Date: Tue, 2 Mar 2021 09:15:57 +0000 (UTC)
commit 5f41c0f7cb75cf41d47708e626fa22affbabfecf
Author: Rachit Keerti Das <rachitkdas gmail com>
Date: Mon Mar 1 22:46:06 2021 +0530
Increase priority of notifications to HIGH.
Alarms/Timers usually require more attention than regular events.
Set the priority of notifications for these events to HIGH in accordance
with GLib Documentation.
src/alarm-item.vala | 1 +
src/timer-face.vala | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/alarm-item.vala b/src/alarm-item.vala
index 8c86f78..6103342 100644
--- a/src/alarm-item.vala
+++ b/src/alarm-item.vala
@@ -113,6 +113,7 @@ private class Item : Object, ContentItem {
bell = new Utils.Bell ("alarm-clock-elapsed");
notification = new GLib.Notification (_("Alarm"));
notification.set_body (name);
+ notification.set_priority (HIGH);
notification.add_button (_("Stop"), "app.stop-alarm::".concat (id));
notification.add_button (_("Snooze"), "app.snooze-alarm::".concat (id));
}
diff --git a/src/timer-face.vala b/src/timer-face.vala
index 26f9e29..5cad12f 100644
--- a/src/timer-face.vala
+++ b/src/timer-face.vala
@@ -74,6 +74,7 @@ public class Face : Gtk.Stack, Clocks.Clock {
bell = new Utils.Bell ("complete");
notification = new GLib.Notification (_("Time is up!"));
notification.set_body (_("Timer countdown finished"));
+ notification.set_priority (HIGH);
no_timer_container.add (timer_setup);
no_timer_container.reorder_child (timer_setup, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]