aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-01-23 17:23:58 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-01-23 17:23:58 +0100
commit41fb49c27538a2c6044a7170e855baea0f11b2c6 (patch)
tree2193c8dd26fd3a7543c5389537eff6be49fbad52 /src/indicator-sound.c
parent826144b11815fb1f475dcdab0fd235e4f34df9e3 (diff)
downloadayatana-indicator-sound-41fb49c27538a2c6044a7170e855baea0f11b2c6.tar.gz
ayatana-indicator-sound-41fb49c27538a2c6044a7170e855baea0f11b2c6.tar.bz2
ayatana-indicator-sound-41fb49c27538a2c6044a7170e855baea0f11b2c6.zip
gtk_icon_theme_has_icon() doesn't seem to work here...
When no "audio-volume-off" icon is provided by any theme, the notification is not shown, so notify-osd-icons package is reccomanded here.
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 4022422..e94526b 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -1006,13 +1006,8 @@ indicator_sound_notification_show(IndicatorSound *self, double value)
gint state = determine_state_from_volume (CLAMP(value, 0, 100));
if (state == STATE_ZERO) {
- GtkIconTheme *theme = gtk_icon_theme_get_default();
- if (gtk_icon_theme_has_icon(theme, "audio-volume-off")) {
- // Not available in all the themes
- icon = "audio-volume-off";
- } else {
- icon = "audio-volume-muted";
- }
+ // Not available for all the themes
+ icon = "audio-volume-off";
} else if (state == STATE_LOW) {
icon = "audio-volume-low";
} else if (state == STATE_MEDIUM) {