diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-03-11 12:56:28 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-03-11 12:56:28 -0500 |
commit | d1a4d4e51d74192975dd2aa1dda35581b1d23d73 (patch) | |
tree | 59a8e63ea80a23797a97c2965a17eff3f48b97cd /src/indicator-sound.c | |
parent | f2b815cf615ba4532a7e04254ddb4acd1bbb75ff (diff) | |
parent | a65cff5ec2d7625408d58fe6b23ddb40d7f63ee2 (diff) | |
download | ayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.tar.gz ayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.tar.bz2 ayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.zip |
releasing version 0.6.3-0ubuntu1
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r-- | src/indicator-sound.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 6e1acc9..a7d3808 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -532,17 +532,17 @@ key_press_cb(GtkWidget* widget, GdkEventKey* event, gpointer data) switch (event->keyval) { case GDK_Right: transport_widget_react_to_key_press_event ( transport_widget, - TRANSPORT_NEXT ); + TRANSPORT_ACTION_NEXT ); digested = TRUE; break; case GDK_Left: transport_widget_react_to_key_press_event ( transport_widget, - TRANSPORT_PREVIOUS ); + TRANSPORT_ACTION_PREVIOUS ); digested = TRUE; break; case GDK_KEY_space: transport_widget_react_to_key_press_event ( transport_widget, - TRANSPORT_PLAY_PAUSE ); + TRANSPORT_ACTION_PLAY_PAUSE ); digested = TRUE; break; case GDK_Up: @@ -587,17 +587,17 @@ key_release_cb(GtkWidget* widget, GdkEventKey* event, gpointer data) switch (event->keyval) { case GDK_Right: transport_widget_react_to_key_release_event ( transport_widget, - TRANSPORT_NEXT ); + TRANSPORT_ACTION_NEXT ); digested = TRUE; break; case GDK_Left: transport_widget_react_to_key_release_event ( transport_widget, - TRANSPORT_PREVIOUS ); + TRANSPORT_ACTION_PREVIOUS ); digested = TRUE; break; case GDK_KEY_space: transport_widget_react_to_key_release_event ( transport_widget, - TRANSPORT_PLAY_PAUSE ); + TRANSPORT_ACTION_PLAY_PAUSE ); digested = TRUE; break; case GDK_Up: @@ -640,3 +640,17 @@ indicator_sound_scroll (IndicatorObject *io, gint delta, sound_state_manager_show_notification (priv->state_manager, value); } + +void +update_accessible_desc (IndicatorObject * io) +{ + GList *entries = indicator_object_get_entries(io); + IndicatorObjectEntry * entry = (IndicatorObjectEntry *)entries->data; + entry->accessible_desc = get_accessible_desc(io); + g_signal_emit(G_OBJECT(io), + INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID, + 0, + entry, + TRUE); + g_list_free(entries); +} |