aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-11-03 21:02:56 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-08 09:02:06 +0100
commit3cec34da0d992880b4e5013e4906bcd74630be05 (patch)
tree7611e69368f999a1e451a27e1de1ae6079100055 /src
parent46d0cb4f163c33d3c34bbe162674778aed58278a (diff)
downloadayatana-indicator-sound-3cec34da0d992880b4e5013e4906bcd74630be05.tar.gz
ayatana-indicator-sound-3cec34da0d992880b4e5013e4906bcd74630be05.tar.bz2
ayatana-indicator-sound-3cec34da0d992880b4e5013e4906bcd74630be05.zip
Whitespace fix
Diffstat (limited to 'src')
-rw-r--r--src/options-gsettings.vala42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/options-gsettings.vala b/src/options-gsettings.vala
index 556bbc6..7c187f9 100644
--- a/src/options-gsettings.vala
+++ b/src/options-gsettings.vala
@@ -22,13 +22,13 @@ using PulseAudio;
public class IndicatorSound.OptionsGSettings : Options
{
- public OptionsGSettings() {
- init_max_volume();
- init_loud_volume();
- }
+ public OptionsGSettings() {
+ init_max_volume();
+ init_loud_volume();
+ }
- ~OptionsGSettings() {
- }
+ ~OptionsGSettings() {
+ }
private Settings _settings = new Settings ("org.ayatana.indicator.sound");
#if HAS_UBUNTU_SOUND_SCHEMA
@@ -38,9 +38,9 @@ public class IndicatorSound.OptionsGSettings : Options
#endif
/** MAX VOLUME PROPERTY **/
- private const string AMP_dB_KEY = "amplified-volume-decibels";
- private const string NORMAL_dB_KEY = "normal-volume-decibels";
- private const string ALLOW_AMP_KEY = "allow-amplified-volume";
+ private const string AMP_dB_KEY = "amplified-volume-decibels";
+ private const string NORMAL_dB_KEY = "normal-volume-decibels";
+ private const string ALLOW_AMP_KEY = "allow-amplified-volume";
private void init_max_volume() {
_settings.changed[NORMAL_dB_KEY].connect(() => update_max_volume());
@@ -67,24 +67,24 @@ public class IndicatorSound.OptionsGSettings : Options
}
- /** LOUD VOLUME **/
+ /** LOUD VOLUME **/
- private const string LOUD_ENABLED_KEY = "warning-volume-enabled";
- private const string LOUD_DECIBEL_KEY = "warning-volume-decibels";
+ private const string LOUD_ENABLED_KEY = "warning-volume-enabled";
+ private const string LOUD_DECIBEL_KEY = "warning-volume-decibels";
private void init_loud_volume() {
_settings.changed[LOUD_ENABLED_KEY].connect(() => update_loud_volume());
_settings.changed[LOUD_DECIBEL_KEY].connect(() => update_loud_volume());
- update_loud_volume();
- }
- private void update_loud_volume() {
+ update_loud_volume();
+ }
+ private void update_loud_volume() {
- var vol = PulseAudio.Volume.sw_from_dB (_settings.get_double (LOUD_DECIBEL_KEY));
- if (loud_volume != vol)
- loud_volume = vol;
+ var vol = PulseAudio.Volume.sw_from_dB (_settings.get_double (LOUD_DECIBEL_KEY));
+ if (loud_volume != vol)
+ loud_volume = vol;
- var enabled = _settings.get_boolean(LOUD_ENABLED_KEY);
- if (loud_warning_enabled != enabled)
- loud_warning_enabled = enabled;
+ var enabled = _settings.get_boolean(LOUD_ENABLED_KEY);
+ if (loud_warning_enabled != enabled)
+ loud_warning_enabled = enabled;
}
}