Include a Other Software section in Help file
[geeqie.git] / src / collect.c
index dd3bb0a..2d4ed65 100644 (file)
@@ -392,7 +392,7 @@ gboolean is_collection(const gchar *param)
 
 /**
  * @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
  * 
  * 
@@ -425,6 +425,42 @@ void collection_contents(const gchar *name, GString **contents)
                }
 }
 
+/**
+ * @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
@@ -1316,6 +1352,7 @@ CollectWindow *collection_window_new(const gchar *path)
        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;
@@ -1362,6 +1399,7 @@ CollectWindow *collection_window_new(const gchar *path)
        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);