# HG changeset patch # User yaz # Date 1164443493 28800 # Node ID beaeb1990cb48b64b5f2b6e183e0d435b6f11c72 # Parent f4d7be3f1e05e77f62d5a9f81974d17e2a33f4bf [svn] - now filepopup can find newly added images immediately. diff -r f4d7be3f1e05 -r beaeb1990cb4 ChangeLog --- a/ChangeLog Fri Nov 24 09:49:06 2006 -0800 +++ b/ChangeLog Sat Nov 25 00:31:33 2006 -0800 @@ -1,3 +1,12 @@ +2006-11-24 17:49:06 +0000 Jonathan Schleifer + revision [3003] + Fixed wrong help, it has to be --with-rc-path. + Found by Benny Siegert + + trunk/configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2006-11-24 12:49:53 +0000 Tony Vroon revision [3001] Updated translation by Yang Zhang aka program, closes bug #660. diff -r f4d7be3f1e05 -r beaeb1990cb4 audacious/ui_fileinfo.c --- a/audacious/ui_fileinfo.c Fri Nov 24 09:49:06 2006 -0800 +++ b/audacious/ui_fileinfo.c Sat Nov 25 00:31:33 2006 -0800 @@ -555,10 +555,11 @@ void filepopup_show_for_tuple(TitleInput *tuple) { - gchar *tmp = NULL, *fullpath = NULL; + gchar *tmp = NULL; gint x, y, x_off = 3, y_off = 3, h, w; static gchar *last_artwork = NULL; + const static char default_artwork[] = DATA_DIR "/images/audio.png"; if (tuple == NULL) return; @@ -579,31 +580,25 @@ if (tuple->track_number != 0) filepopup_entry_set_text_free("label_track", g_strdup_printf("%d", tuple->track_number)); - if (cfg.use_file_cover) { - /* Use the file name */ - fullpath = g_strconcat(tuple->file_path, "/", tuple->file_name, NULL); - } else { - fullpath = g_strconcat(tuple->file_path, "/", NULL); - } - - if (!last_artwork || strcmp(last_artwork, fullpath)) - { - if (last_artwork != NULL) + tmp = fileinfo_recursive_get_image(tuple->file_path, tuple->file_name, 0); + if (tmp) { // picture found + if (!last_artwork || strcmp(last_artwork, tmp)) { // new picture + filepopup_entry_set_image("image_artwork", tmp); g_free(last_artwork); - - last_artwork = g_strdup(fullpath); - - tmp = fileinfo_recursive_get_image(tuple->file_path, tuple->file_name, 0); - if (tmp) - { - filepopup_entry_set_image("image_artwork", tmp); - g_free(tmp); - } else { - filepopup_entry_set_image("image_artwork", DATA_DIR "/images/audio.png"); + last_artwork = tmp; + } + else { // same picture } } - - g_free(fullpath); + else { // no picture found + if (!last_artwork || strcmp(last_artwork, default_artwork)) { + filepopup_entry_set_image("image_artwork", default_artwork); + g_free(last_artwork); + last_artwork = g_strdup(default_artwork); + } + else { + } + } gdk_window_get_pointer(NULL, &x, &y, NULL); gtk_window_get_size(GTK_WINDOW(filepopup_win), &w, &h);