Include a Other Software section in Help file
[geeqie.git] / src / view_dir_tree.h
index 9341ca4..d7898df 100644 (file)
@@ -1,13 +1,22 @@
 /*
- * Geeqie
- * (C) 2004 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2004 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.
  */
 
 #ifndef VIEW_DIR_TREE_H
@@ -17,26 +26,27 @@ typedef struct _NodeData NodeData;
 struct _NodeData
 {
        FileData *fd;
-       gint expanded;
+       gboolean expanded;
        time_t last_update;
+       gint version;
 };
 
-ViewDir *vdtree_new(ViewDir *vd, const gchar *path);
-
-void vdtree_select_row(ViewDir *vd, FileData *fd);
+ViewDir *vdtree_new(ViewDir *vd, FileData *dir_fd);
 
-gint vdtree_set_path(ViewDir *vd, const gchar *path);
+gboolean vdtree_set_fd(ViewDir *vd, FileData *dir_fd);
 void vdtree_refresh(ViewDir *vd);
 
 const gchar *vdtree_row_get_path(ViewDir *vd, gint row);
-gint vdtree_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter, GtkTreeIter *parent);
+gboolean vdtree_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter, GtkTreeIter *parent);
+gboolean vdtree_populate_path_by_iter(ViewDir *vd, GtkTreeIter *iter, gboolean force, FileData *target_fd);
 
-FileData *vdtree_populate_path(ViewDir *vd, const gchar *path, gint expand, gint force);
+FileData *vdtree_populate_path(ViewDir *vd, FileData *target_fd, gboolean expand, gboolean force);
 void vdtree_rename_by_data(ViewDir *vd, FileData *fd);
 
-gint vdtree_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
-gint vdtree_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
+gboolean vdtree_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
+gboolean vdtree_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
 
 void vdtree_destroy_cb(GtkWidget *widget, gpointer data);
 
 #endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */