diff options
-rw-r--r-- | src/service.vala | 3 | ||||
-rw-r--r-- | src/volume-control-pulse.vala | 6 | ||||
-rw-r--r-- | src/volume-warning-pulse.vala | 8 | ||||
-rw-r--r-- | src/warn-notification.vala | 1 |
4 files changed, 1 insertions, 17 deletions
diff --git a/src/service.vala b/src/service.vala index 707f78d..b7bc518 100644 --- a/src/service.vala +++ b/src/service.vala @@ -593,11 +593,8 @@ public class IndicatorSound.Service: Object { high_volume_action = new SimpleAction.stateful("high-volume", null, create_high_volume_action_state()); _volume_warning.notify["high-volume"].connect( () => { - GLib.message("in service, due to high-volume change, updating high-volume-action-state"); update_high_volume_action_state(); - GLib.message("in service, due to high-volume change, updating notification"); update_notification(); - GLib.message("in service, finished handling high-volume notify"); }); return high_volume_action; diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala index 6d777c4..8b365aa 100644 --- a/src/volume-control-pulse.vala +++ b/src/volume-control-pulse.vala @@ -365,7 +365,6 @@ public class VolumeControlPulse : VolumeControl var vol = new VolumeControl.Volume(); vol.volume = volume_to_double (volume); vol.reason = VolumeControl.VolumeReasons.VOLUME_STREAM_CHANGE; - GLib.message("setting volume to %f due to stream change", vol.volume); this.volume = vol; } catch (GLib.Error e) { warning ("unable to get volume for active role %s (%s)", sink_input_objp, e.message); @@ -381,7 +380,6 @@ public class VolumeControlPulse : VolumeControl if (role != null && role in _valid_roles) { if (sink_input.corked == 0 || role == "phone") { _sink_input_list.insert (0, sink_input.index); - GLib.message("role %s _objp_role_multimedia %s", role, _objp_role_multimedia); switch (role) { case "multimedia": @@ -626,13 +624,10 @@ public class VolumeControlPulse : VolumeControl _pa_volume_sig_count++; } - GLib.message ("Calling org.PulseAudio.Ext.StreamRestore1.RestoreEntry Set Volume"); yield _pconn.call ("org.PulseAudio.Ext.StreamRestore1.RestoreEntry", active_role_objp, "org.freedesktop.DBus.Properties", "Set", new Variant ("(ssv)", "org.PulseAudio.Ext.StreamRestore1.RestoreEntry", "Volume", volume), null, DBusCallFlags.NONE, -1); - - GLib.message ("Set volume to %f on path %s", vol, active_role_objp); } catch (GLib.Error e) { lock (_pa_volume_sig_count) { _pa_volume_sig_count--; @@ -950,7 +945,6 @@ public class VolumeControlPulse : VolumeControl var vol = new VolumeControl.Volume(); vol.volume = _account_service_volume; vol.reason = VolumeControl.VolumeReasons.ACCOUNTS_SERVICE_SET; - GLib.message("setting volume to %f due to accounts service set", vol.volume); this.volume = vol; return; } diff --git a/src/volume-warning-pulse.vala b/src/volume-warning-pulse.vala index 14b3e71..e6e6f21 100644 --- a/src/volume-warning-pulse.vala +++ b/src/volume-warning-pulse.vala @@ -87,7 +87,6 @@ public class VolumeWarningPulse : VolumeWarning private void update_multimedia_volume_soon () { - GLib.message("updating multimedia volume soon"); if (_update_sink_timer == 0) { _update_sink_timer = Timeout.add (soon_interval_msec, () => { _update_sink_timer = 0; @@ -155,15 +154,11 @@ public class VolumeWarningPulse : VolumeWarning private void update_sink_input_soon (uint32 index) { - GLib.message("adding %d to queue", (int)index); _pending_sink_inputs.add(index); if (_update_sink_inputs_timer == 0) { _update_sink_inputs_timer = Timeout.add (soon_interval_msec, () => { - _pending_sink_inputs.foreach((i) => { - GLib.message("flushing input sink queue: index %d", (int)i); - update_sink_input(i); - }); + _pending_sink_inputs.foreach((i) => update_sink_input(i)); _pending_sink_inputs.remove_all(); _update_sink_inputs_timer = 0; return Source.REMOVE; @@ -188,7 +183,6 @@ public class VolumeWarningPulse : VolumeWarning // to keep our multimedia indices up-to-date case Context.SubscriptionEventType.NEW: case Context.SubscriptionEventType.CHANGE: - GLib.message ("-> Context.SubscriptionEventType.CHANGE or NEW"); update_sink_input_soon(index); break; diff --git a/src/warn-notification.vala b/src/warn-notification.vala index 4e66e02..9175bb6 100644 --- a/src/warn-notification.vala +++ b/src/warn-notification.vala @@ -51,7 +51,6 @@ public class IndicatorSound.WarnNotification: Notification _notification.add_action ("cancel", _("Cancel"), (n, a) => { user_responded(Response.CANCEL); }); - GLib.message("showing warning dialog"); show_notification(); return true; |