Skip to content
  • John Harper's avatar
    reviewed by: Michael Engber <engber@eazel.com> · 79292ada
    John Harper authored
    2001-02-26  John Harper  <jsh@eazel.com>
    
    	reviewed by: Michael Engber <engber@eazel.com>
    
    	Fixed bug 6898 (Tree view initialization may be slower than in
    	PR3). Instead of instantiating and destroying Nautilus_Metafile
    	bonobo objects each time metadata is queried, cache an object
    	for each directory:
    
    	* libnautilus-extensions/nautilus-directory-metafile.c
    	(corba_object_is_local, corba_object_get_servant): new
    	functions. These are ORBit dependent hacks
    
    	(get_metafile): cache the Nautilus_Metafile object in the
    	NautilusDirectory. Use the above ORBit hacks to break the
    	circular reference when both client and servant are in the same
    	process (the servant has always referenced the directory,
    	caching the metafile in the directory introduces the cycle)
    
    	* libnautilus-extensions/nautilus-directory-private.h
    	(NautilusDirectoryDetails): added field metafile_corba_object
    
    	* libnautilus-extensions/nautilus-directory.c
    	(nautilus_directory_destroy): unref the ...
    79292ada