500
500
/* FIXME: check access */
501
#ifdef HAVE_EUIDACCESS
501
#if defined(HAVE_EUIDACCESS)
502
502
test_access = euidaccess( path, R_OK | X_OK );
503
#elif defined(HAVE_EACCESS)
505
504
test_access = eaccess( path, R_OK | X_OK );
506
505
#else /* No check */
852
850
if ( file_browser->view_mode == FBVM_ICON_VIEW )
854
852
model = ptk_icon_view_get_model( PTK_ICON_VIEW( file_browser->folder_view ) );
853
g_signal_handlers_block_matched( file_browser->folder_view,
856
on_folder_view_item_sel_change, NULL );
857
gtk_tree_model_foreach ( model,
858
( GtkTreeModelForeachFunc ) invert_selection, file_browser );
859
g_signal_handlers_unblock_matched( file_browser->folder_view,
862
on_folder_view_item_sel_change, NULL );
863
on_folder_view_item_sel_change( PTK_ICON_VIEW( file_browser->folder_view ),
856
866
else if ( file_browser->view_mode == FBVM_LIST_VIEW )
868
GtkTreeSelection* tree_sel;
869
tree_sel = gtk_tree_view_get_selection(GTK_TREE_VIEW( file_browser->folder_view ));
870
g_signal_handlers_block_matched( tree_sel,
873
on_folder_view_item_sel_change, NULL );
858
874
model = gtk_tree_view_get_model( GTK_TREE_VIEW( file_browser->folder_view ) );
875
gtk_tree_model_foreach ( model,
876
( GtkTreeModelForeachFunc ) invert_selection, file_browser );
877
g_signal_handlers_unblock_matched( tree_sel,
880
on_folder_view_item_sel_change, NULL );
881
on_folder_view_item_sel_change( (PtkIconView*)tree_sel,
860
gtk_tree_model_foreach ( model,
861
( GtkTreeModelForeachFunc ) invert_selection, file_browser );
864
887
/* signal handlers */