summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f300805)
raw | patch | inline | side by side (parent: f300805)
author | Kalle Wallin <kaw@linux.se> | |
Sun, 20 Jun 2004 10:00:25 +0000 (10:00 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Sun, 20 Jun 2004 10:00:25 +0000 (10:00 +0000) |
src/screen_file.c | patch | blob | history |
diff --git a/src/screen_file.c b/src/screen_file.c
index 2caf2519723a6953185a60810a5d553af2d17d60..ebde970966af4d21528794a63cd549617462ca04 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
#define USE_OLD_LAYOUT
+#undef USE_OLD_ADD
#define BUFSIZE 1024
}
+#ifdef USE_OLD_ADD
/* NOTE - The add_directory functions should move to mpdclient.c */
extern gint mpdclient_finish_command(mpdclient_t *c);
g_list_free(subdir_list);
return 0;
}
+#endif
static int
handle_select(screen_t *screen, mpdclient_t *c)
if( entry->entity->type==MPD_INFO_ENTITY_TYPE_DIRECTORY )
{
mpd_Directory *dir = entry->entity->info.directory;
+#ifdef USE_OLD_ADD
add_directory(c, dir->path);
+#else
+ if( mpdclient_cmd_add_path(c, dir->path) == 0 )
+ {
+ char *tmp = utf8_to_locale(dir->path);
+
+ screen_status_printf(_("Adding \'%s\' to playlist\n"), tmp);
+ g_free(tmp);
+ }
+#endif
return 0;
}