aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-08-12 09:00:56 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-08-12 09:00:56 -0500
commita78a8c0394bf2d4050b3748e8e753a8935849879 (patch)
treed4aef979085a42225b8b3260d0e335d2fdb30a1e /src/service.vala
parent6bfef752b163253821d6c967fabb8ca04c542fec (diff)
downloadayatana-indicator-sound-a78a8c0394bf2d4050b3748e8e753a8935849879.tar.gz
ayatana-indicator-sound-a78a8c0394bf2d4050b3748e8e753a8935849879.tar.bz2
ayatana-indicator-sound-a78a8c0394bf2d4050b3748e8e753a8935849879.zip
copyediting: make tabs use in the new code consistent with existing codebase
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/service.vala b/src/service.vala
index a8e11fd..8da44da 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -142,7 +142,7 @@ public class IndicatorSound.Service: Object {
clear_acts_player();
- stop_clamp_to_high_timeout();
+ stop_clamp_to_high_timeout();
if (this.player_action_update_id > 0) {
Source.remove (this.player_action_update_id);
@@ -242,7 +242,7 @@ public class IndicatorSound.Service: Object {
if (this.volume_control.mute)
icon = this.mute_blocks_sound ? "audio-volume-muted-blocking-panel" : "audio-volume-muted-panel";
else if (this.accounts_service != null && this.accounts_service.silentMode)
- icon = "audio-volume-muted-panel";
+ icon = "audio-volume-muted-panel";
else if (volume <= 0.0)
icon = "audio-volume-low-zero-panel";
else if (volume <= 0.3)
@@ -622,26 +622,26 @@ public class IndicatorSound.Service: Object {
this.update_preferred_players ();
}
- /** VOLUME CLAMPING **/
+ /** VOLUME CLAMPING **/
- private uint _clamp_to_high_timeout = 0;
+ private uint _clamp_to_high_timeout = 0;
- private void stop_clamp_to_high_timeout() {
- if (_clamp_to_high_timeout != 0) {
- Source.remove(_clamp_to_high_timeout);
- _clamp_to_high_timeout = 0;
- }
- }
+ private void stop_clamp_to_high_timeout() {
+ if (_clamp_to_high_timeout != 0) {
+ Source.remove(_clamp_to_high_timeout);
+ _clamp_to_high_timeout = 0;
+ }
+ }
- private void clamp_to_high_soon() {
- const uint interval_msec = 200; /* arbitrary, but works */
- if (_clamp_to_high_timeout == 0)
- _clamp_to_high_timeout = Timeout.add(interval_msec, clamp_to_high_idle);
- }
+ private void clamp_to_high_soon() {
+ const uint interval_msec = 200; /* arbitrary, but works */
+ if (_clamp_to_high_timeout == 0)
+ _clamp_to_high_timeout = Timeout.add(interval_msec, clamp_to_high_idle);
+ }
- private bool clamp_to_high_idle() {
- _clamp_to_high_timeout = 0;
+ private bool clamp_to_high_idle() {
+ _clamp_to_high_timeout = 0;
volume_control.clamp_to_high_volume();
- return false; // Source.REMOVE;
- }
+ return false; // Source.REMOVE;
+ }
}