Mercurial > audlegacy
changeset 3248:3cf247e4508c
fix not updating playlist on title change
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 05 Aug 2007 10:06:35 +0200 |
parents | e21930ccd5a8 |
children | eff2e785e3b4 |
files | src/audacious/ui_main_evlisteners.c src/audacious/ui_playlist.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_main_evlisteners.c Sat Aug 04 20:54:28 2007 -0500 +++ b/src/audacious/ui_main_evlisteners.c Sun Aug 05 10:06:35 2007 +0200 @@ -27,6 +27,7 @@ #include "ui_main.h" #include "ui_skinned_textbox.h" +#include "ui_playlist.h" static void ui_main_evlistener_title_change(gpointer hook_data, gpointer user_data) @@ -34,7 +35,7 @@ gchar *text = (gchar *) hook_data; ui_skinned_textbox_set_text(mainwin_info, text); - + playlistwin_update_list(playlist_get_active()); g_free(text); }
--- a/src/audacious/ui_playlist.c Sat Aug 04 20:54:28 2007 -0500 +++ b/src/audacious/ui_playlist.c Sun Aug 05 10:06:35 2007 +0200 @@ -275,10 +275,10 @@ /* this can happen early on. just bail gracefully. */ g_return_if_fail(playlistwin_list); + playlistwin_update_info(playlist); + playlistwin_update_sinfo(playlist); gtk_widget_queue_draw(playlistwin_list); gtk_widget_queue_draw(playlistwin_slider); - playlistwin_update_info(playlist); - playlistwin_update_sinfo(playlist); } static void