aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 546f404..3aca517 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -300,11 +300,22 @@ gint get_state()
return current_state;
}
+gchar* get_state_image_name(gint state)
+{
+ return g_hash_table_lookup(volume_states, GINT_TO_POINTER(state));
+}
+
void prepare_for_tests(IndicatorObject *io)
{
+ prepare_state_machine();
get_icon(io);
}
+void tidy_up_hash()
+{
+ g_hash_table_destroy(volume_states);
+}
+
static void update_state(const gint state)
{
/* g_debug("update state beginning - previous_state = %i", previous_state);*/