diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-29 16:29:27 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-29 16:29:27 -0600 |
commit | 97a06752f6171e811c85faba05f3dceab45d38e3 (patch) | |
tree | a48bab5b8c405d2e3511baa8fe44c9608c79b8d8 | |
parent | 7a64a24d4d9a8749b4cccfc6e50d8dc2ce94dc02 (diff) | |
download | ayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.tar.gz ayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.tar.bz2 ayatana-indicator-sound-97a06752f6171e811c85faba05f3dceab45d38e3.zip |
in vol-control-pulse, remove redundant vapi scaffolding
-rw-r--r-- | src/volume-control-pulse.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 8b365aa..d8b9520 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -22,9 +22,6 @@ using PulseAudio; using Notify; using Gee; -[CCode(cname="pa_cvolume_set", cheader_filename = "pulse/volume.h")] -extern unowned PulseAudio.CVolume? vol_set (PulseAudio.CVolume? cv, uint channels, PulseAudio.Volume v); - [DBus (name="com.canonical.UnityGreeter.List")] interface GreeterListInterface : Object { @@ -645,7 +642,7 @@ public class VolumeControlPulse : VolumeControl void set_mic_volume_get_server_info_cb (PulseAudio.Context c, PulseAudio.ServerInfo? i) { if (i != null) { unowned CVolume cvol = CVolume (); - cvol = vol_set (cvol, 1, double_to_volume (_mic_volume)); + cvol.set (1, double_to_volume (_mic_volume)); c.set_source_volume_by_name (i.default_source_name, cvol, set_mic_volume_success_cb); } } |