Changeset 2041

Show
Ignore:
Timestamp:
02/18/10 23:04:06 (5 months ago)
Author:
tpgww
Message:

create dir history hash earlier

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/e2_main.c

    r1962 r2041  
    748748        //do this before bars/menus created 
    749749        e2_plugins_load_all (); // load plugins specified in the config data 
     750        //some of these are used during pane creation 
     751#ifdef E2_VFS 
     752        app.vdir_cache = g_hash_table_new_full (e2_fileview_vdir_hash, 
     753                e2_fileview_vdir_equal, e2_fieview_vdir_free, NULL); //uses same data for key and value 
     754#endif 
     755        app.dir_history = g_hash_table_new_full ( 
     756#ifdef E2_VFS 
     757                g_direct_hash, g_direc_equal, NULL, 
     758#else 
     759                g_str_hash, g_str_equal, g_free, 
     760#endif 
     761                e2_fileview_clean1_history 
     762        ); 
    750763 
    751764        //create and show the main window before the filelist creation (in case there's a big delay) 
     
    786799        e2_mousebinding_register_all (); //includes gestures if relevant 
    787800#endif 
    788  
    789 #ifdef E2_VFS 
    790         app.vdir_cache = g_hash_table_new_full (e2_fileview_vdir_hash, 
    791                 e2_fileview_vdir_equal, e2_fieview_vdir_free, NULL); //uses same data for key and value 
    792 #endif 
    793         app.dir_history = g_hash_table_new_full ( 
    794 #ifdef E2_VFS 
    795                 g_direct_hash, g_direc_equal, NULL, 
    796 #else 
    797                 g_str_hash, g_str_equal, g_free, 
    798 #endif 
    799                 e2_fileview_clean1_history 
    800         ); 
    801801        //session-starts with BGL closed 
    802802//      gdk_threads_leave (); 
     
    10471047//      printd (DEBUG, "clear dirs hash"); 
    10481048        g_hash_table_destroy (app.dir_history); 
    1049         g_list_free (app.pane1.opendirs);       //this for non-cached list without heaped data 
     1049        g_list_free (app.pane1.opendirs);       //does not have heaped data 
    10501050        g_list_free (app.pane2.opendirs);       //ditto 
    10511051/*      printd (DEBUG, "clean bookmarks");