Add some wrappers in view_dir.c and simplify even more.
[geeqie.git] / src / view_dir_list.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12 #ifndef VIEW_DIR_LIST_H
13 #define VIEW_DIR_LIST_H
14
15
16 ViewDir *vdlist_new(ViewDir *vd, const gchar *path);
17
18 void vdlist_select_row(ViewDir *vd, FileData *fd);
19
20 gint vdlist_set_path(ViewDir *vd, const gchar *path);
21 void vdlist_refresh(ViewDir *vd);
22
23 const gchar *vdlist_row_get_path(ViewDir *vd, gint row);
24 gint vdlist_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter);
25
26 void vdlist_rename_by_row(ViewDir *vd, FileData *fd);
27 FileData *vdlist_row_by_path(ViewDir *vd, const gchar *path, gint *row);
28
29 gint vdlist_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
30 gint vdlist_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
31
32 void vdlist_destroy_cb(GtkWidget *widget, gpointer data);
33
34 #endif
35
36