[gnome-clocks] Set a role to the canberra playback
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Set a role to the canberra playback
- Date: Sat, 6 Oct 2012 18:07:54 +0000 (UTC)
commit f618737a096f738084f9c027a2a382cabe67d3e8
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Oct 6 20:03:06 2012 +0200
Set a role to the canberra playback
This is needed to make sure the alarm ringtone is not subject to the
setting that controls event sounds.
https://bugzilla.gnome.org/show_bug.cgi?id=685259
gnomeclocks/utils.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnomeclocks/utils.py b/gnomeclocks/utils.py
index 8c2f229..6e4255d 100644
--- a/gnomeclocks/utils.py
+++ b/gnomeclocks/utils.py
@@ -134,7 +134,10 @@ class Alert:
def show(self):
if self.canberra:
- self.canberra.play(1, pycanberra.CA_PROP_EVENT_ID, self.soundid, None)
+ self.canberra.play(1,
+ pycanberra.CA_PROP_EVENT_ID, self.soundid,
+ pycanberra.CA_PROP_MEDIA_ROLE, "alarm",
+ None)
if self.notification:
self.notification.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]