diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-05-19 15:38:17 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-05-19 15:38:17 -0400 |
commit | 82a0655d82f040a729b225335b99fafba2786668 (patch) | |
tree | e1b1fb58a93f9d990d936cd60956fa7fbd7c42f2 /src/sound-state-manager.c | |
parent | ab30eadeaaee5ba003feaa5207c77820cc021684 (diff) | |
parent | 7a66e3144234408fad971e25f8164eab085fa21f (diff) | |
download | ayatana-indicator-sound-82a0655d82f040a729b225335b99fafba2786668.tar.gz ayatana-indicator-sound-82a0655d82f040a729b225335b99fafba2786668.tar.bz2 ayatana-indicator-sound-82a0655d82f040a729b225335b99fafba2786668.zip |
Import upstream version 0.7.0
Diffstat (limited to 'src/sound-state-manager.c')
-rw-r--r-- | src/sound-state-manager.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/sound-state-manager.c b/src/sound-state-manager.c index 7095a39..c851407 100644 --- a/src/sound-state-manager.c +++ b/src/sound-state-manager.c @@ -24,6 +24,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "sound-state-manager.h" #include "dbus-shared-names.h" +#include "sound-state.h" typedef struct _SoundStateManagerPrivate SoundStateManagerPrivate; @@ -170,19 +171,20 @@ sound_state_manager_show_notification (SoundStateManager *self, char *icon; const int notify_value = CLAMP((int)value, -1, 101); - SoundState state = sound_state_manager_get_current_state (self); + + SoundState state = sound_state_get_from_volume ((int)value); if (state == ZERO_LEVEL) { // Not available for all the themes - icon = "audio-volume-off"; + icon = "notification-audio-volume-off"; } else if (state == LOW_LEVEL) { - icon = "audio-volume-low"; + icon = "notification-audio-volume-low"; } else if (state == MEDIUM_LEVEL) { - icon = "audio-volume-medium"; + icon = "notification-audio-volume-medium"; } else if (state == HIGH_LEVEL) { - icon = "audio-volume-high"; + icon = "notification-audio-volume-high"; } else { - icon = "audio-volume-muted"; + icon = "notification-audio-volume-muted"; } notify_notification_update(priv->notification, PACKAGE_NAME, NULL, icon); |