/**
* @brief Creates a text list of the image paths of the contents of a Collection
- * @param[in] name The name of the collection, with or wihout extension
+ * @param[in] name The name of the collection, with or without extension
* @param[inout] contents A GString to which the image paths are appended
*
*
}
}
+/**
+ * @brief Returns a list of filedatas of the contents of a Collection
+ * @param[in] name The name of the collection, with or without extension
+ *
+ *
+ */
+GList *collection_contents_fd(const gchar *name)
+{
+ gchar *path;
+ CollectionData *cd;
+ CollectInfo *ci;
+ GList *work;
+ FileData *fd;
+ GList *list = NULL;
+
+ if (is_collection(name))
+ {
+ path = collection_path(name);
+ cd = collection_new("");
+ collection_load(cd, path, COLLECTION_LOAD_APPEND);
+ work = cd->list;
+ while (work)
+ {
+ ci = work->data;
+ fd = ci->fd;
+ list = g_list_append(list, ci->fd);
+
+ work = work->next;
+ }
+ g_free(path);
+ collection_free(cd);
+ }
+
+ return list;
+}
+
/*
*-------------------------------------------------------------------
* please use these to actually add/remove stuff
cw->cd = collection_new(path);
cw->window = window_new(GTK_WINDOW_TOPLEVEL, "collection", PIXBUF_INLINE_ICON_BOOK, NULL, NULL);
+ DEBUG_NAME(cw->window);
geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
gtk_widget_show(cw->status_box);
frame = gtk_frame_new(NULL);
+ DEBUG_NAME(frame);
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN);
gtk_box_pack_start(GTK_BOX(cw->status_box), frame, TRUE, TRUE, 0);
gtk_widget_show(frame);