diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-19 22:44:48 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-19 22:44:48 -0600 |
commit | ca18e99ee04c10fbc0baff2e836278f4f8817af0 (patch) | |
tree | 8fa7d54e869af4b9b21c1ad860bc6ecb3e2d4c0e /src | |
parent | 315ec37d20740640c17236ed0f044d46ebc74e5a (diff) | |
download | ayatana-indicator-sound-ca18e99ee04c10fbc0baff2e836278f4f8817af0.tar.gz ayatana-indicator-sound-ca18e99ee04c10fbc0baff2e836278f4f8817af0.tar.bz2 ayatana-indicator-sound-ca18e99ee04c10fbc0baff2e836278f4f8817af0.zip |
add WarnNotification to volume-warning
Not actually /used/ yet, but it compiles & tests still pass...
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 10 | ||||
-rw-r--r-- | src/volume-warning.vala | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a0f9d05..ba8f72a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,6 +39,14 @@ vala_init(indicator-sound-service ) vala_add(indicator-sound-service + notification.vala +) +vala_add(indicator-sound-service + warn-notification.vala + DEPENDS + notification +) +vala_add(indicator-sound-service service.vala DEPENDS sound-menu @@ -83,6 +91,8 @@ vala_add(indicator-sound-service options volume-control-pulse volume-control + warn-notification + notification ) vala_add(indicator-sound-service media-player.vala diff --git a/src/volume-warning.vala b/src/volume-warning.vala index 2851f4b..5809f61 100644 --- a/src/volume-warning.vala +++ b/src/volume-warning.vala @@ -37,6 +37,8 @@ public class VolumeWarning : VolumeControl warning("set_mute not supported for VolumeWarning"); } + private IndicatorSound.WarnNotification _notification = new IndicatorSound.WarnNotification(); + /* this is static to ensure it being freed after @context (loop does not have ref counting) */ private static PulseAudio.GLibMainLoop loop; |