aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-15 09:40:52 -0500
committerTed Gould <ted@gould.cx>2010-03-15 09:40:52 -0500
commitc865edaf8a55627fec5cb85dbb77296e193ad342 (patch)
treebe750fccac7711db58686d53cf87b9ee4281a250
parenta328ac78b812c6ff782aac701975ceded0ea2f4f (diff)
parent911af759c760cbbe8b8631bcfb2749a9f72b40ab (diff)
downloadayatana-indicator-sound-c865edaf8a55627fec5cb85dbb77296e193ad342.tar.gz
ayatana-indicator-sound-c865edaf8a55627fec5cb85dbb77296e193ad342.tar.bz2
ayatana-indicator-sound-c865edaf8a55627fec5cb85dbb77296e193ad342.zip
Use the libindicator update function.
-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);