diff options
author | Brent Hull <[email protected]> | 2012-12-16 02:25:09 -0500 |
---|---|---|
committer | Brent Hull <[email protected]> | 2012-12-16 02:25:09 -0500 |
commit | 77ec1e052debbc08d4ff2be945889150ebe2a867 (patch) | |
tree | 42555106b98bfe3334642846ddd16f905109bb43 /plugins/media-keys/msd-media-keys-manager.c | |
parent | 85c5ae14d75e3413b8f3f3aa38205ea852dcb20d (diff) | |
download | mate-settings-daemon-77ec1e052debbc08d4ff2be945889150ebe2a867.tar.bz2 mate-settings-daemon-77ec1e052debbc08d4ff2be945889150ebe2a867.tar.xz |
Restore preference for volume step instead of hardcoding it
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index 5583416..37369de 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -657,7 +657,10 @@ do_sound_action (MsdMediaKeysManager *manager, return; #endif - vol_step = VOLUME_STEP; + vol_step = g_settings_get_int (manager->priv->settings, "volume-step"); + + if (vol_step <= 0 || vol_step > 100) + vol_step = VOLUME_STEP; #ifdef HAVE_PULSE norm_vol_step = PA_VOLUME_NORM * vol_step / 100; |