Remove commented out code.
[geeqie.git] / src / pan-timeline.c
index 82e843a..d65c4b2 100644 (file)
@@ -1,6 +1,7 @@
 /*
- * GQview
+ * Geeqie
  * (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2012 The Geeqie Team
  *
  * Author: John Ellis
  *
  */
 
 
-#include "gqview.h"
+#include "main.h"
 #include "pan-types.h"
 
 
-void pan_timeline_compute(PanWindow *pw, const gchar *path, gint *width, gint *height)
+void pan_timeline_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *height)
 {
        GList *list;
        GList *work;
@@ -29,7 +30,7 @@ void pan_timeline_compute(PanWindow *pw, const gchar *path, gint *width, gint *h
        gint x_width;
        gint y_height;
 
-       list = pan_list_tree(path, SORT_NONE, TRUE, pw->ignore_symlinks);
+       list = pan_list_tree(dir_fd, SORT_NONE, TRUE, pw->ignore_symlinks);
 
        if (pw->cache_list && pw->exif_date_enable)
                {
@@ -90,7 +91,7 @@ void pan_timeline_compute(PanWindow *pw, const gchar *path, gint *width, gint *h
                                g_free(buf);
                                y += pi->height;
 
-                               pi_month = pan_item_box_new(pw, file_data_new_simple(fd->path),
+                               pi_month = pan_item_box_new(pw, file_data_ref(fd),
                                                            x, y, 0, 0,
                                                            PAN_BOX_OUTLINE_THICKNESS,
                                                            PAN_BOX_COLOR, PAN_BOX_ALPHA,
@@ -132,7 +133,7 @@ void pan_timeline_compute(PanWindow *pw, const gchar *path, gint *width, gint *h
 
                        y += pi->height;
 
-                       pi_day = pan_item_box_new(pw, file_data_new_simple(fd->path), x, y, 0, 0,
+                       pi_day = pan_item_box_new(pw, file_data_ref(fd), x, y, 0, 0,
                                                  PAN_BOX_OUTLINE_THICKNESS,
                                                  PAN_BOX_COLOR, PAN_BOX_ALPHA,
                                                  PAN_BOX_OUTLINE_COLOR, PAN_BOX_OUTLINE_ALPHA);
@@ -182,4 +183,4 @@ void pan_timeline_compute(PanWindow *pw, const gchar *path, gint *width, gint *h
 
        g_list_free(list);
 }
-
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */