aboutsummaryrefslogtreecommitdiff
path: root/src/sound-state-manager.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-05-19 17:05:00 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-05-19 17:05:00 -0400
commit306604f2426f7a1b7a4516566cb68e1d6c982998 (patch)
treed11abca5d5b99e665912c7180d503ef56e446ed0 /src/sound-state-manager.c
parent914a7600bdc7c6e9a8a7afdf165397cc05113f1a (diff)
parent82a0655d82f040a729b225335b99fafba2786668 (diff)
downloadayatana-indicator-sound-306604f2426f7a1b7a4516566cb68e1d6c982998.tar.gz
ayatana-indicator-sound-306604f2426f7a1b7a4516566cb68e1d6c982998.tar.bz2
ayatana-indicator-sound-306604f2426f7a1b7a4516566cb68e1d6c982998.zip
releasing version 0.7.0-0ubuntu1
Diffstat (limited to 'src/sound-state-manager.c')
-rw-r--r--src/sound-state-manager.c14
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);