From: Guenter B. <gu...@us...> - 2002-10-30 18:07:56
|
Update of /cvsroot/xine/gnome-xine/src In directory usw-pr-cvs1:/tmp/cvs-serv10026 Modified Files: playlist.c Log Message: display logo at end of playlist Index: playlist.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/playlist.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- playlist.c 29 Oct 2002 01:51:02 -0000 1.20 +++ playlist.c 30 Oct 2002 18:07:51 -0000 1.21 @@ -713,8 +713,11 @@ gdk_threads_enter(); if (logo_mode) { - infobar_line1 (bar, "gnome-xine %s", VERSION); + char title[2048]; + sprintf (title, "gnome-xine %s", VERSION); + infobar_line1 (bar, title); infobar_line2 (bar, ""); + gtk_window_set_title (GTK_WINDOW (app), title); } else show_metadata (); gdk_threads_leave(); @@ -808,13 +811,18 @@ static void xine_event_cb (void *user_data, const xine_event_t *event) { + printf ("playlist: got an event %d\n", event->type); + switch (event->type) { case XINE_EVENT_UI_PLAYBACK_FINISHED: gdk_threads_enter(); - if (!logo_mode && (cur_sel<(GTK_CLIST(clist)->rows-1))) { - gtk_clist_select_row (GTK_CLIST (clist), cur_sel+1, 0); - playlist_play (cur_sel); + if (!logo_mode) { + if (cur_sel<(GTK_CLIST(clist)->rows-1)) { + gtk_clist_select_row (GTK_CLIST (clist), cur_sel+1, 0); + playlist_play (cur_sel); + } else + playlist_logo (); } gdk_threads_leave(); break; |