From 41fb49c27538a2c6044a7170e855baea0f11b2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 23 Jan 2011 17:23:58 +0100 Subject: 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. --- src/indicator-sound.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3