summaryrefslogtreecommitdiff
path: root/plugins/gtkui/fileman.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-15 20:07:39 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-15 20:07:39 +0100
commit70f71c01b4cb8885b9e4e33fb24e03aefb9ec86e (patch)
treeb96a2d48bfb438a57a4a97732b988626bf56fcd4 /plugins/gtkui/fileman.c
parent68e0176c1d054ab285d9f2bbaa958e50cf3a5e73 (diff)
playlist code refactoring WIP
Diffstat (limited to 'plugins/gtkui/fileman.c')
-rw-r--r--plugins/gtkui/fileman.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c
index 340db924..ba5c6070 100644
--- a/plugins/gtkui/fileman.c
+++ b/plugins/gtkui/fileman.c
@@ -5,6 +5,7 @@
#include "gtkui.h"
#include "ddblistview.h"
#include "progress.h"
+#include "support.h"
static gboolean
progress_show_idle (gpointer data) {
@@ -31,7 +32,7 @@ gtkpl_add_file_info_cb (DB_playItem_t *it, void *data) {
static gboolean
progress_hide_idle (gpointer data) {
progress_hide ();
- playlist_refresh ();
+ //playlist_refresh ();
return FALSE;
}
@@ -97,7 +98,9 @@ static void
open_files_worker (void *data) {
GSList *lst = (GSList *)data;
gtkpl_add_files (lst);
- gtkpl_set_cursor (PL_MAIN, 0);
+ extern GtkWidget *mainwin;
+ DdbListview *pl = DDB_LISTVIEW (lookup_widget (mainwin, "playlist"));
+ ddb_listview_set_cursor (pl, 0);
deadbeef->sendmessage (M_PLAYSONG, 0, 0, 0);
}