Mercurial > audlegacy-plugins
comparison src/madplug/fileinfo.c @ 1328:38fb3bb3e21e
- make probing for tuple completely reuse fd.
- fix bugs in __audmad_get_song_tuple() against remote sources.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 22 Jul 2007 04:28:20 +0900 |
parents | a0320227c751 |
children | 4b07404814ca |
comparison
equal
deleted
inserted
replaced
1327:4f9bea634312 | 1328:38fb3bb3e21e |
---|---|
599 | 599 |
600 if(!vfs_file_test(fileurl, G_FILE_TEST_EXISTS)) { | 600 if(!vfs_file_test(fileurl, G_FILE_TEST_EXISTS)) { |
601 return; | 601 return; |
602 } | 602 } |
603 | 603 |
604 input_init(&info, fileurl); | 604 input_init(&info, fileurl, NULL); |
605 | 605 |
606 if(audmad_is_remote(fileurl)) { | 606 if(audmad_is_remote(fileurl)) { |
607 info.remote = TRUE; | 607 info.remote = TRUE; |
608 return; //file info dialog for remote streaming doesn't make sense. | 608 return; //file info dialog for remote streaming doesn't make sense. |
609 } | 609 } |
625 create_window(); | 625 create_window(); |
626 | 626 |
627 info.fileinfo_request = TRUE; | 627 info.fileinfo_request = TRUE; |
628 input_get_info(&info, info.remote ? TRUE : FALSE); | 628 input_get_info(&info, info.remote ? TRUE : FALSE); |
629 | 629 |
630 title = g_strdup_printf(_("File Info - %s"), g_basename(utf_filename)); | 630 tmp = g_path_get_basename(utf_filename); |
631 title = g_strdup_printf(_("File Info - %s"), tmp); | |
632 g_free(tmp); tmp = NULL; | |
631 gtk_window_set_title(GTK_WINDOW(window), title); | 633 gtk_window_set_title(GTK_WINDOW(window), title); |
632 g_free(title); | 634 g_free(title); |
633 | 635 |
634 gtk_entry_set_text(GTK_ENTRY(filename_entry), utf_filename); | 636 gtk_entry_set_text(GTK_ENTRY(filename_entry), utf_filename); |
635 gtk_editable_set_position(GTK_EDITABLE(filename_entry), -1); | 637 gtk_editable_set_position(GTK_EDITABLE(filename_entry), -1); |