changeset 2618:ca6873c5a778

set track info on change
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 17:15:47 +0200
parents 2f8c8da3e62e
children a066a10b2398
files src/skins/ui_main.c src/skins/ui_main_evlisteners.c
diffstat 2 files changed, 2 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_main.c	Wed May 21 16:52:23 2008 +0200
+++ b/src/skins/ui_main.c	Wed May 21 17:15:47 2008 +0200
@@ -625,13 +625,10 @@
                       gint frequency,
                       gint n_channels)
 {
-#if 0
     gchar *text;
     gchar *title;
     Playlist *playlist = aud_playlist_get_active();
 
-    playback_set_sample_params(bitrate, frequency, n_channels);
-
     GDK_THREADS_ENTER();
     if (bitrate != -1) {
         bitrate /= 1000;
@@ -676,11 +673,10 @@
         g_free(text);
     }
 
-    title = playlist_get_info_text(playlist);
+    title = aud_playlist_get_info_text(playlist);
     mainwin_set_song_title(title);
     g_free(title);
     GDK_THREADS_LEAVE();
-#endif
 }
 
 void
--- a/src/skins/ui_main_evlisteners.c	Wed May 21 16:52:23 2008 +0200
+++ b/src/skins/ui_main_evlisteners.c	Wed May 21 17:15:47 2008 +0200
@@ -107,14 +107,6 @@
 }
 
 static void
-ui_main_evlistener_playback_initiate(gpointer hook_data, gpointer user_data)
-{
-#if 0
-    playback_initiate();
-#endif
-}
-
-static void
 ui_main_evlistener_playback_begin(gpointer hook_data, gpointer user_data)
 {
 
@@ -324,24 +316,21 @@
 void
 ui_main_evlistener_init(void)
 {
-#if 0
     aud_hook_associate("title change", ui_main_evlistener_title_change, NULL);
     aud_hook_associate("hide seekbar", ui_main_evlistener_hide_seekbar, NULL);
     aud_hook_associate("volume set", ui_main_evlistener_volume_change, NULL);
-    aud_hook_associate("playback initiate", ui_main_evlistener_playback_initiate, NULL);
-#endif
     aud_hook_associate("playback begin", ui_main_evlistener_playback_begin, NULL);
     aud_hook_associate("playback stop", ui_main_evlistener_playback_stop, NULL);
     aud_hook_associate("playback pause", ui_main_evlistener_playback_pause, NULL);
     aud_hook_associate("playback unpause", ui_main_evlistener_playback_unpause, NULL);
     aud_hook_associate("playback seek", ui_main_evlistener_playback_seek, NULL);
-#if 0
     aud_hook_associate("playback play file", ui_main_evlistener_playback_play_file, NULL);
     aud_hook_associate("playlist end reached", ui_main_evlistener_playlist_end_reached, NULL);
     aud_hook_associate("playlist info change", ui_main_evlistener_playlist_info_change, NULL);
     aud_hook_associate("mainwin set always on top", ui_main_evlistener_mainwin_set_always_on_top, NULL);
     aud_hook_associate("mainwin show", ui_main_evlistener_mainwin_show, NULL);
     aud_hook_associate("equalizerwin show", ui_main_evlistener_equalizerwin_show, NULL);
+#if 0
     aud_hook_associate("prefswin show", ui_main_evlistener_prefswin_show, NULL);
     aud_hook_associate("aboutwin show", ui_main_evlistener_aboutwin_show, NULL);
     aud_hook_associate("ui jump to track show", ui_main_evlistener_ui_jump_to_track_show, NULL);