aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-20 20:16:27 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-20 20:16:27 +0200
commit913282e093a723b7e3a7bb899a77a068edafcd01 (patch)
treeb6362d98d48b30756abf0f3073db97992edc3e21
parent83e68a4d2b9e40d7d4f047a2e58c70c484cbd916 (diff)
downloadayatana-indicator-sound-913282e093a723b7e3a7bb899a77a068edafcd01.tar.gz
ayatana-indicator-sound-913282e093a723b7e3a7bb899a77a068edafcd01.tar.bz2
ayatana-indicator-sound-913282e093a723b7e3a7bb899a77a068edafcd01.zip
Updated set-volume utility
-rw-r--r--src/volume-control-pulse.vala2
-rw-r--r--tests/integration/utils/dbus-pulse-volume.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 950cdaf..042c1c1 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -628,7 +628,7 @@ public class VolumeControlPulse : VolumeControl
}
set {
var volume_changed = (value.volume != _volume.volume);
- debug("Setting volume to %f for profile %d because %d", value.volume, _active_sink_input, value.reason);
+ warning("Setting volume to %f for profile %d because %d", value.volume, _active_sink_input, value.reason);
_volume = value;
diff --git a/tests/integration/utils/dbus-pulse-volume.cpp b/tests/integration/utils/dbus-pulse-volume.cpp
index 6989754..b42ea15 100644
--- a/tests/integration/utils/dbus-pulse-volume.cpp
+++ b/tests/integration/utils/dbus-pulse-volume.cpp
@@ -56,9 +56,9 @@ DBusPulseVolume::DBusPulseVolume() :
qDebug() << "********************************Connetion: " << connection_string.value().toString();
-// connection_.reset(new QDBusConnection(QDBusConnection::connectToPeer(connection_string.value().toString(), "set-volume")));
+ connection_.reset(new QDBusConnection(QDBusConnection::connectToPeer(connection_string.value().toString(), "set-volume")));
- connection_.reset(new QDBusConnection(QDBusConnection::connectToPeer("unix:path=/run/user/1000/pulse/dbus-socket", "set-volume")));
+// connection_.reset(new QDBusConnection(QDBusConnection::connectToPeer("unix:path=/run/user/1000/pulse/dbus-socket", "set-volume")));
qDebug() << "Is connected " << connection_->isConnected();
if (connection_->isConnected())