commit e0a5c7565e2bd1d106d1be5489661a3262bb58f6
Author: phantomjinx <[email protected]>
Date: Mon Oct 4 22:34:24 2010 +0100
Path and update fixes
* file_itunesdb.c
* Since "" are now being cleaned up, an extra test is required in the
write_extension_info to check that the ipod_path is not null
* playlist_display_actions.c
* Need to signal other widgets that the selected playlist has been updated
when adding tracks from file or directory.
libgtkpod/file_itunesdb.c | 2 +-
.../playlist_display/playlist_display_actions.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libgtkpod/file_itunesdb.c b/libgtkpod/file_itunesdb.c
index 3ad560e..30e4bb0 100644
--- a/libgtkpod/file_itunesdb.c
+++ b/libgtkpod/file_itunesdb.c
@@ -1108,7 +1108,7 @@ static gboolean write_extended_info(iTunesDB *itdb) {
fprintf(fp, "thumbnail_utf8=%s\n", etr->thumb_path_utf8);
/* this is just for convenience for people looking for a track
on the ipod away from gktpod/itunes etc. */
- if (strlen(track->ipod_path) != 0)
+ if (track->ipod_path && strlen(track->ipod_path) != 0)
fprintf(fp, "filename_ipod=%s\n", track->ipod_path);
if (etr->sha1_hash && *etr->sha1_hash)
fprintf(fp, "sha1_hash=%s\n", etr->sha1_hash);
diff --git a/plugins/playlist_display/playlist_display_actions.c
b/plugins/playlist_display/playlist_display_actions.c
index 62b0c0e..eebff5d 100644
--- a/plugins/playlist_display/playlist_display_actions.c
+++ b/plugins/playlist_display/playlist_display_actions.c
@@ -71,7 +71,9 @@ static void add_selected_dirs(GSList *names, Playlist
*db_active_pl) {
gtkpod_statusbar_message(_("Successfully added files"));
else
gtkpod_statusbar_message(_("Some files were not added
successfully"));
+
gtkpod_statusbar_busy_pop();
+ gtkpod_set_current_playlist(db_active_pl);
}
}
@@ -146,6 +148,7 @@ static void fileselection_add_playlists(GSList* names,
iTunesDB *itdb) {
gp_duplicate_remove(NULL, NULL);
gtkpod_statusbar_busy_pop();
gtkpod_tracks_statusbar_update();
+ gtkpod_set_current_playlist(itdb_playlist_mpl(itdb));
}
/* Open a modal file selection dialog with multiple selction enabled */
@@ -260,7 +263,9 @@ static void fileselection_add_files(GSList* names, Playlist
*playlist) {
gtkpod_statusbar_message(_("Some files were not added successfully"));
gtkpod_statusbar_busy_pop();
+
release_widgets();
+ gtkpod_set_current_playlist(playlist);
}
static gboolean fileselection_add_files_cb(gpointer data) {
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security
easier or more difficult to achieve? Read this whitepaper to separate the
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2