Update copyright in all files
[geeqie.git] / src / pan-timeline.c
index 82e843a..dcd6ba6 100644 (file)
@@ -1,20 +1,29 @@
 /*
- * GQview
- * (C) 2006 John Ellis
+ * Copyright (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
  *
  * Author: John Ellis
  *
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-#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 +38,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 +99,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 +141,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 +191,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: */