X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Flibrary.c;h=f800a69b7d2a2009a66f8cec060960bdbaac13a2;hb=d171d8ae09b4b735a0b1b0321582aa675889a3b9;hp=8f0633706a58b9f09552d5675e183fa84b920201;hpb=74f9ecca37415f1b1b025fc5b329bcfc7721946b;p=melted_gui diff --git a/src/library.c b/src/library.c index 8f06337..f800a69 100644 --- a/src/library.c +++ b/src/library.c @@ -67,7 +67,7 @@ static int library_init_load(instance_t* app) gtk_tree_store_append(tree_store, &iter, NULL); gtk_tree_store_set(tree_store, &iter, 0, app->library.icons[0], - 1, ">", + 1, "", 2, "LIBRARY", 3, NULL, 4, NULL, @@ -142,6 +142,7 @@ static void on_library_row_expanded mvcp_dir dir; mvcp_dir_entry_t *e; instance_t* app = (instance_t*)user_data; + char msg[PATH_MAX]; // g_warning("on_library_row_expanded: HERE"); @@ -183,15 +184,25 @@ static void on_library_row_expanded e = (mvcp_dir_entry_t*)malloc(sizeof(mvcp_dir_entry_t)); *e = dir_entry; + snprintf(msg, sizeof(msg), "probing [%s]", e->full); + ui_set_status(app, msg, 0); + + gdk_threads_leave(); + if(!e->dir && mvcp_ok == mvcp_probe_clip( app->library.handle[0], e->full, &list_entry)) { list_e = (mvcp_list_entry_t*)malloc(sizeof(mvcp_list_entry_t)); *list_e = list_entry; }; + gdk_threads_enter(); + library_add_item(app, GTK_TREE_STORE(model), iter, e, list_e); }; + snprintf(msg, sizeof(msg), "read [%s] done", p); + ui_set_status(app, msg, 0); + /* restore cursor */ gdk_window_set_cursor(gtk_widget_get_toplevel(GTK_WIDGET(treeview))->window, NULL);