From afdb663ac9c112d2c282f829285c813f1f9918d5 Mon Sep 17 00:00:00 2001 From: cpk Date: Fri, 23 Mar 2001 00:47:25 +0000 Subject: [PATCH] Passing the stat call as an option to efsd_start_monitor instead of separate calling ... SVN revision: 4441 --- src/view.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/view.c b/src/view.c index 15cc4c0fc..a85905450 100644 --- a/src/view.c +++ b/src/view.c @@ -431,6 +431,8 @@ e_view_file_added(int id, char *file) icon = e_icon_new(); e_icon_set_filename(icon, file); e_view_add_icon(v, icon); + + /* sprintf(buf, "%s/%s", v->dir, file); if (efsd_ready(e_fs_get_connection())) { @@ -441,6 +443,8 @@ e_view_file_added(int id, char *file) { printf("*********** EEEEEEEEEEEEEEEEEK Efsd not ready.\n"); } + */ + v->changed = 1; } @@ -771,7 +775,10 @@ e_view_set_dir(E_View *v, char *dir) IF_FREE(v->dir); v->dir = e_file_real(dir); /* start monitoring new dir */ - v->monitor_id = efsd_start_monitor(e_fs_get_connection(), v->dir); + + /* v->monitor_id = efsd_start_monitor(e_fs_get_connection(), v->dir); */ + v->monitor_id = efsd_start_monitor(e_fs_get_connection(), v->dir, + 1, efsd_op_get_stat()); v->is_listing = 1; v->changed = 1; }