mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
5d691d7750
even slower than it ought to be. The hysteresis wasn't working at all because of the confusion about when files were ready for display. Also changed hysteresis to 1 second and file chunk to 300 files instead of 100. * libnautilus-private/nautilus-directory-async.c: (link_info_gmc_link_read_callback): Fix function so it uses the actual URI, not the thing that starts with URL. The old way it was always failing to read. There were some other backwards if statements in here too. * src/file-manager/fm-directory-view.h: * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): Create "non-ready files" hash. (fm_directory_view_destroy): Destroy it. (real_file_still_belongs): Move this here from FMListView. (still_should_show_file): New function, used to decide whether to keep a file in the window or not. (ready_to_load): New function, used to decide whether a file is ready enough to show in the window. (process_new_files): Move files from the "new files" lists to the "old files" lists, filtering out ones that are not ready to load and putting those into the "non-ready files" hash. Also sort the added files so the ones that show up at the top are the first to be added. (split_off_first_n): Renamed to eliminate the "g" namespace. (process_old_files): The guts of what used to be in display_pending_files. Now we use a separate signal for remove instead of just reusing the changed signal. (display_pending_files): We're not done loading until all the "non-ready files" are ready. Also reverse the sense of the return value, so it returns TRUE if there is more work to do. (display_pending_idle_callback): Don't zero out the idle ID if we are going to return TRUE. (display_pending_timeout_callback): If there are more files than we can handle, do the remainder at idle time, not in another timeout. (schedule_idle_display_of_pending_files): Lower the priority so we are more likely to get canvas updates between idles. (done_loading_callback): We're not done until there are no "non-ready files" left. (fm_directory_view_queue_file_change): Tiny optimization. (unref_key_and_remove): Helper function for clearing out the "non-ready files" hash. (fm_directory_view_stop): Clear out the 4 lists and the hash (it used to just be 2 lists). (real_sort_files): Default implementation, doesn't sort. (fm_directory_view_initialize_class): Various new methods. * src/file-manager/fm-icon-view.c: (fm_icon_view_add_file): Do less work, since the rules about which files should be shown and which files are ready to be seen are now in FMDirectoryView. (fm_icon_view_remove_file): New function. (fm_icon_view_file_changed): Do way less work, since FMDirectoryView does the heavy lifting now. (play_file), (preview_audio): Some rudimentary fixes, still seems to be broken. (compare_files): New function. (compare_files_cover): New function. (fm_icon_view_sort_files): If automatic layout is on, sort the files on their way in so the first ones displayed are the top left ones. (icon_container_compare_icons_callback): Share code by using the new compare_files function. (fm_icon_view_initialize_class): Various new methods. * src/file-manager/fm-list-view.h: * src/file-manager/fm-list-view.c: (fm_list_view_initialize_class): Various new methods. (fm_list_view_add_file): Do less work, since the rules about which files should be shown and which files are ready to be seen are now in FMDirectoryView. (fm_list_view_file_changed): Do way less work, since FMDirectoryView does the heavy lifting now. (fm_list_view_remove_file): New function. (fm_list_view_sort_files): This replaces the old override of display_pending_files. * src/file-manager/fm-search-list-view.c: (fm_search_list_view_initialize_class): The file_still_belongs method moved to FMDirectoryView. |
||
---|---|---|
.. | ||
.cvsignore | ||
filesystem-attributes.xml | ||
Makefile.am | ||
nautilus-audio-player.c | ||
nautilus-audio-player.h | ||
nautilus-authn-manager.c | ||
nautilus-authn-manager.h | ||
nautilus-bonobo-extensions.c | ||
nautilus-bonobo-extensions.h | ||
nautilus-bookmark.c | ||
nautilus-bookmark.h | ||
nautilus-cdrom-extensions.h | ||
nautilus-customization-data.c | ||
nautilus-customization-data.h | ||
nautilus-default-file-icon.c | ||
nautilus-default-file-icon.h | ||
nautilus-desktop-file-loader.c | ||
nautilus-desktop-file-loader.h | ||
nautilus-directory-async.c | ||
nautilus-directory-background.c | ||
nautilus-directory-background.h | ||
nautilus-directory-metafile-monitor.c | ||
nautilus-directory-metafile-monitor.h | ||
nautilus-directory-metafile.c | ||
nautilus-directory-metafile.h | ||
nautilus-directory-notify.h | ||
nautilus-directory-private.h | ||
nautilus-directory.c | ||
nautilus-directory.h | ||
nautilus-drag-window.c | ||
nautilus-drag-window.h | ||
nautilus-druid-page-eazel.c | ||
nautilus-druid-page-eazel.h | ||
nautilus-druid.c | ||
nautilus-druid.h | ||
nautilus-entry.c | ||
nautilus-entry.h | ||
nautilus-file-attributes.h | ||
nautilus-file-changes-queue.c | ||
nautilus-file-changes-queue.h | ||
nautilus-file-dnd.c | ||
nautilus-file-dnd.h | ||
nautilus-file-operations-progress.c | ||
nautilus-file-operations-progress.h | ||
nautilus-file-operations.c | ||
nautilus-file-operations.h | ||
nautilus-file-private.h | ||
nautilus-file-queue.c | ||
nautilus-file-queue.h | ||
nautilus-file-utilities.c | ||
nautilus-file-utilities.h | ||
nautilus-file.c | ||
nautilus-file.h | ||
nautilus-find-icon-image.c | ||
nautilus-find-icon-image.h | ||
nautilus-font-factory.c | ||
nautilus-font-factory.h | ||
nautilus-global-preferences.c | ||
nautilus-global-preferences.h | ||
nautilus-horizontal-splitter.c | ||
nautilus-horizontal-splitter.h | ||
nautilus-icon-canvas-item.c | ||
nautilus-icon-canvas-item.h | ||
nautilus-icon-container.c | ||
nautilus-icon-container.h | ||
nautilus-icon-dnd.c | ||
nautilus-icon-dnd.h | ||
nautilus-icon-factory-private.h | ||
nautilus-icon-factory.c | ||
nautilus-icon-factory.h | ||
nautilus-icon-private.h | ||
nautilus-icon-text-item.c | ||
nautilus-icon-text-item.h | ||
nautilus-iso9660.h | ||
nautilus-keep-last-vertical-box.c | ||
nautilus-keep-last-vertical-box.h | ||
nautilus-lib-self-check-functions.c | ||
nautilus-lib-self-check-functions.h | ||
nautilus-link-desktop-file.c | ||
nautilus-link-desktop-file.h | ||
nautilus-link-historical.c | ||
nautilus-link-historical.h | ||
nautilus-link-set.c | ||
nautilus-link-set.h | ||
nautilus-link.c | ||
nautilus-link.h | ||
nautilus-medusa-support.c | ||
nautilus-medusa-support.h | ||
nautilus-merged-directory.c | ||
nautilus-merged-directory.h | ||
nautilus-metadata.h | ||
nautilus-metafile-factory.c | ||
nautilus-metafile-factory.h | ||
nautilus-metafile-server.idl | ||
nautilus-metafile.c | ||
nautilus-metafile.h | ||
nautilus-mime-actions.c | ||
nautilus-mime-actions.h | ||
nautilus-monitor.c | ||
nautilus-monitor.h | ||
nautilus-program-chooser.c | ||
nautilus-program-chooser.h | ||
nautilus-program-choosing.c | ||
nautilus-program-choosing.h | ||
nautilus-search-uri.c | ||
nautilus-search-uri.h | ||
nautilus-sidebar-functions.c | ||
nautilus-sidebar-functions.h | ||
nautilus-sound.c | ||
nautilus-sound.h | ||
nautilus-theme.c | ||
nautilus-theme.h | ||
nautilus-thumbnails-jpeg.c | ||
nautilus-thumbnails-jpeg.h | ||
nautilus-thumbnails.c | ||
nautilus-thumbnails.h | ||
nautilus-trash-directory.c | ||
nautilus-trash-directory.h | ||
nautilus-trash-file.c | ||
nautilus-trash-file.h | ||
nautilus-trash-monitor.c | ||
nautilus-trash-monitor.h | ||
nautilus-undo-context.c | ||
nautilus-undo-context.h | ||
nautilus-undo-manager.c | ||
nautilus-undo-manager.h | ||
nautilus-undo-signal-handlers.c | ||
nautilus-undo-signal-handlers.h | ||
nautilus-vfs-directory.c | ||
nautilus-vfs-directory.h | ||
nautilus-vfs-file.c | ||
nautilus-vfs-file.h | ||
nautilus-view-identifier.c | ||
nautilus-view-identifier.h | ||
nautilus-volume-monitor.c | ||
nautilus-volume-monitor.h | ||
README |
README for nautilus/libnautilus-private This library, libnautilus-private, is totally private to nautilus. If you are writing a nautilus component, you should not use this library or link with it in any way. The code in here is internal to nautilus and not available for public consumption. If you think that there is something interesting in this library that you would like to use in a third party component, please send mail to the nautilus mailing list at: nautilus-list@lists.eazel.com