fix root dir type
[melted_gui] / src / library.c
index ca8f8f7..f800a69 100644 (file)
@@ -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, "<dir>>",
+        1, "<dir>",
         2, "LIBRARY",
         3, NULL,
         4, NULL,
@@ -187,12 +187,16 @@ static void on_library_row_expanded
         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);
     };