~ubuntu-branches/debian/squeeze/pcmanfm/squeeze

« back to all changes in this revision

Viewing changes to src/ptk/ptk-file-browser.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Lee, Lu, Chao-Ming (Tetralet), Andrew Lee
  • Date: 2006-12-26 23:28:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061226232833-8d2ooh0v2m772zlc
Tags: 0.3.2.2-1
[ Lu, Chao-Ming (Tetralet) ]
* New upstream release 0.3.2.2.
  - Block unnecessary signal handlers to fix the performance problem
    caused when doing invert selection.
  - Fix a segfault in on_file_propertiesDlg_response triggered on 
    chown.
  - Fix let to avoid SegFault when file monitoring.
  - Mark some functions as static to avoid conflicts.
  - Invoke vfs_file_monitor_remove() with care.
  - Fix #ifdef EACCESS for FreeBSD.
  - Little fix for opening terminal with popup menu of desktop.
  - Skip desktop window in Alt+Tab.
* Applied a patch for "FTBFS on GNU/kFreeBSD (due to unsatisfied 
  Build-Depends on libhal-dev)" by 
  Petr Salinger <Petr.Salinger@seznam.cz> (Closes:#404050)

[ Andrew Lee ]
* Taken a entry from Enrico Zini's blog to README.Debian for how to
  replace nautilus with pcmanfm and provide genconf.sh 

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
        return FALSE;
499
499
    }
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 HAVE_EACCESS
504
 
 
 
503
#elif defined(HAVE_EACCESS)
505
504
    test_access = eaccess( path, R_OK | X_OK );
506
505
#else   /* No check */
507
 
 
508
506
    test_access = 0;
509
507
#endif
510
508
 
852
850
    if ( file_browser->view_mode == FBVM_ICON_VIEW )
853
851
    {
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, 
 
854
                                         G_SIGNAL_MATCH_FUNC,
 
855
                                         0, 0, NULL, 
 
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, 
 
860
                                           G_SIGNAL_MATCH_FUNC,
 
861
                                           0, 0, NULL, 
 
862
                                           on_folder_view_item_sel_change, NULL );
 
863
        on_folder_view_item_sel_change( PTK_ICON_VIEW( file_browser->folder_view ),
 
864
                                        file_browser );
855
865
    }
856
866
    else if ( file_browser->view_mode == FBVM_LIST_VIEW )
857
867
    {
 
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, 
 
871
                                         G_SIGNAL_MATCH_FUNC,
 
872
                                         0, 0, NULL, 
 
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, 
 
878
                                           G_SIGNAL_MATCH_FUNC,
 
879
                                           0, 0, NULL, 
 
880
                                           on_folder_view_item_sel_change, NULL );
 
881
        on_folder_view_item_sel_change( (PtkIconView*)tree_sel,
 
882
                                        file_browser );
859
883
    }
860
 
    gtk_tree_model_foreach ( model,
861
 
                             ( GtkTreeModelForeachFunc ) invert_selection, file_browser );
 
884
 
862
885
}
863
886
 
864
887
/* signal handlers */