notify status during library browse
[melted_gui] / src / library.c
index 8f06337..ca8f8f7 100644 (file)
@@ -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,6 +184,9 @@ 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);
+
         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));
@@ -192,6 +196,9 @@ static void on_library_row_expanded
         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);