temp/gnome-clocks: wake device after snoozing (MR 2375)

Add waked for snoozing as well

[ci:skip-build] already built successfully in CI
This commit is contained in:
pcworld 2021-07-22 16:30:11 +02:00 committed by Dylan Van Assche
parent d26e7305c0
commit bef6ef93cd
No known key found for this signature in database
GPG key ID: 8642571587897EA1
2 changed files with 12 additions and 2 deletions

View file

@ -8,6 +8,8 @@ waked is notified about the update. So waked can wake the system
from suspend when an alarm is fired.
Fixes #100
Co-Authored-By: pcworld <0188801@gmail.com>
---
build-aux/flatpak/org.gnome.clocks.json | 1 +
src/alarm-face.vala | 2 +
@ -87,6 +89,14 @@ index 6103342..f8fa937 100644
}
private void update_snooze_time (GLib.DateTime start_time) {
@@ -172,6 +181,7 @@ private class Item : Object, ContentItem {
public void snooze () {
bell.stop ();
state = State.SNOOZING;
+ WakedUtils.update_timer (id, snooze_time);
}
public void stop () {
@@ -221,6 +229,7 @@ private class Item : Object, ContentItem {
update_alarm_time (); // reschedule for the next repeat
}

View file

@ -1,7 +1,7 @@
# Forked from Alpine to apply waked patch
pkgname=gnome-clocks
pkgver=9999_git20210323
pkgrel=0
pkgrel=1
_commit=13a15e8506d90b0300f9549020c66280ee4d3026
pkgdesc="Clock application designed for GNOME 3"
url="https://wiki.gnome.org/Apps/Clocks"
@ -33,5 +33,5 @@ package() {
}
sha512sums="
ba248a5b45b4200cc08137e9510ef445f649a01481a6e934e189119edf0bab2645a8429d1396739dc8525bf65e059556c41a29a35f970a4b1a24fdacc0e5652d gnome-clocks-13a15e8506d90b0300f9549020c66280ee4d3026.tar.gz
c537f359f71aaec75406fd7055ff897b37045365742e12c14fa825154614253662a23015325a7bc571c81c0c73bd2ceccbee2b9c8b08f93d2e35d603764b3928 0001-waked-implementation.patch
50857339594ad2ab234eaaa090b1a7bfa809798cb7916149751466a7d3d583e9080e61ed1ffd4987b52f7ff4e280f2b9439eff9ad028e1bef31684d255d3ca9d 0001-waked-implementation.patch
"