Mercurial > geeqie.yaz
annotate src/view_dir_tree.h @ 1247:09da3f14490d
fixed possible crash
author | nadvornik |
---|---|
date | Fri, 23 Jan 2009 22:53:02 +0000 |
parents | 1646720364cf |
children | 8b89e3ff286b |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 #ifndef VIEW_DIR_TREE_H | |
14 #define VIEW_DIR_TREE_H | |
15 | |
389 | 16 typedef struct _NodeData NodeData; |
17 struct _NodeData | |
18 { | |
19 FileData *fd; | |
20 gint expanded; | |
21 time_t last_update; | |
907 | 22 gint version; |
389 | 23 }; |
24 | |
783 | 25 ViewDir *vdtree_new(ViewDir *vd, FileData *dir_fd); |
9 | 26 |
396 | 27 void vdtree_select_row(ViewDir *vd, FileData *fd); |
28 | |
783 | 29 gint vdtree_set_fd(ViewDir *vd, FileData *dir_fd); |
384
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
383
diff
changeset
|
30 void vdtree_refresh(ViewDir *vd); |
9 | 31 |
384
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
383
diff
changeset
|
32 const gchar *vdtree_row_get_path(ViewDir *vd, gint row); |
383
499d7ba62261
Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents:
380
diff
changeset
|
33 gint vdtree_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter, GtkTreeIter *parent); |
907 | 34 gint vdtree_populate_path_by_iter(ViewDir *vd, GtkTreeIter *iter, gint force, FileData *target_fd); |
9 | 35 |
783 | 36 FileData *vdtree_populate_path(ViewDir *vd, FileData *target_fd, gint expand, gint force); |
388
5186f8e38cb8
Make directory view popup menu common and move it to view_dir.{c,h}.
zas_
parents:
384
diff
changeset
|
37 void vdtree_rename_by_data(ViewDir *vd, FileData *fd); |
9 | 38 |
401
0a2e1b130a25
Add some wrappers in view_dir.c and simplify even more.
zas_
parents:
396
diff
changeset
|
39 gint vdtree_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data); |
0a2e1b130a25
Add some wrappers in view_dir.c and simplify even more.
zas_
parents:
396
diff
changeset
|
40 gint vdtree_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data); |
0a2e1b130a25
Add some wrappers in view_dir.c and simplify even more.
zas_
parents:
396
diff
changeset
|
41 |
0a2e1b130a25
Add some wrappers in view_dir.c and simplify even more.
zas_
parents:
396
diff
changeset
|
42 void vdtree_destroy_cb(GtkWidget *widget, gpointer data); |
0a2e1b130a25
Add some wrappers in view_dir.c and simplify even more.
zas_
parents:
396
diff
changeset
|
43 |
9 | 44 #endif |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
907
diff
changeset
|
45 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |