void gui_browser_write_playlist ( void   ) 

Write the playlist to a file.

Definition at line 431 of file gui_browser.c.

00432 {
00433         char *fn;
00434         struct vfsref *vr;
00435 
00436         fn = gui_input_askstring(_("Write playlist to file"), NULL, NULL);
00437         if (fn == NULL)
00438                 return;
00439         playq_lock();
00440         vr = vfs_write_playlist(&playq_list, vr_curdir, fn);
00441         playq_unlock();
00442         g_free(fn);
00443 
00444         if (vr == NULL) {
00445                 gui_msgbar_warn(_("Unable to write playlist."));
00446                 return;
00447         }
00448         vfs_populate(vr);
00449 
00450         /* Replace old directory */
00451         gui_browser_cleanup_flist();
00452         if (vr_curdir != NULL)
00453                 vfs_close(vr_curdir);
00454         vr_curdir = vr;
00455 
00456         /* Go inside the directory */
00457         gui_vfslist_setlist(win_browser, vfs_population(vr));
00458 }

Here is the call graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:23 2010 for herrie by  doxygen 1.6.3