aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-15 08:42:17 -0500
committerTed Gould <ted@gould.cx>2010-03-15 08:42:17 -0500
commit911af759c760cbbe8b8631bcfb2749a9f72b40ab (patch)
treebe750fccac7711db58686d53cf87b9ee4281a250 /src/indicator-sound.c
parenta328ac78b812c6ff782aac701975ceded0ea2f4f (diff)
downloadayatana-indicator-sound-911af759c760cbbe8b8631bcfb2749a9f72b40ab.tar.gz
ayatana-indicator-sound-911af759c760cbbe8b8631bcfb2749a9f72b40ab.tar.bz2
ayatana-indicator-sound-911af759c760cbbe8b8631bcfb2749a9f72b40ab.zip
Use the libindicator update helper to reset the base image for theme updates.
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index aa87410..3b2b426 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -400,9 +400,7 @@ static void update_state(const gint state)
current_state = state;
gchar* image_name = g_hash_table_lookup(volume_states, GINT_TO_POINTER(current_state));
- GtkImage * tempimage = indicator_image_helper(image_name);
- gtk_image_set_from_pixbuf(speaker_image, gtk_image_get_pixbuf(tempimage));
- g_object_ref_sink(tempimage);
+ indicator_image_helper_update(speaker_image, image_name);
}
@@ -493,9 +491,7 @@ static void catch_signal_sink_input_while_muted(DBusGProxy * proxy, gboolean blo
g_debug("signal caught - sink input while muted with value %i", block_value);
if (block_value == 1 && animation_id == 0 && blocked_animation_list != NULL) {
gchar* image_name = g_hash_table_lookup(volume_states, GINT_TO_POINTER(STATE_MUTED_WHILE_INPUT));
- GtkImage * tempimage = indicator_image_helper(image_name);
- gtk_image_set_from_pixbuf(speaker_image, gtk_image_get_pixbuf(tempimage));
- g_object_ref_sink(tempimage);
+ indicator_image_helper_update(speaker_image, image_name);
blocked_iter = blocked_animation_list;
animation_id = g_timeout_add_seconds(1, fade_back_to_mute_image, NULL);