1. 04 Oct, 2001 1 commit
    • Maciej Stachowiak's avatar
      Rename CUSTOM_NAME attribute to DISPLAY_NAME. · dc9c636e
      Maciej Stachowiak authored
      	* libnautilus-private/nautilus-file-attributes.h,
      	libnautilus-private/nautilus-file-private.h: Rename CUSTOM_NAME
      	attribute to DISPLAY_NAME.
      
      	* libnautilus-private/nautilus-file.h,
      	libnautilus-private/nautilus-file.c:
      	(nautilus_file_get_name): Always return the real name of the file.
      	(nautilus_file_get_display_name): New function which returns the
      	display name of the file, taking into account special names that
      	may be set for .desktop files or gmc-style links, as
      	nautilus_file_get_name formerly did.
      	(nautilus_file_compare_display_name): Use display name and rename
      	for clarity.
      
      	(destroy, compare_by_name, nautilus_file_get_string_attribute,
      	nautilus_file_get_all_attributes, nautilus_self_check_file):
      	Adjust for custom_name->display_name change, use
      	nautilus_file_get_display_name instead of natilus_file_get_name
      	where appropriate.
      
      	* libnautilus-private/nautilus-directory-async.c:
      	(nautilus_directory_set_up_request), (link_info_done,
      	(link_info_gmc_link_read_callback): Adjust for custom_name->display_name change.
      
      
      	In all the places below, use nautilus_file_get_display_name
      	instead of nautilus_file_get_name:
      
      	* components/text/nautilus-text-view.c: (file_read_callback):
      	* components/tree/nautilus-tree-model.c:
      	(nautilus_tree_model_monitor_add),
      	(nautilus_tree_model_node_begin_monitoring_no_connect):
      	* components/tree/nautilus-tree-view.c:
      	(nautilus_tree_view_insert_model_node),
      	(nautilus_tree_view_update_model_node):
      	* libnautilus-private/nautilus-program-chooser.c:
      	(get_file_name_for_display):
      	* libnautilus-private/nautilus-program-choosing.c:
      	(application_cannot_open_location):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_display_selection_info),
      	(real_file_limit_reached), (file_name_from_uri),
      	(add_script_to_script_menus), (add_submenu_to_script_menus),
      	(copy_or_cut_files), (get_executable_text_file_action),
      	(fm_directory_view_activate_file), (finish_loading):
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_loading_directory),
      	(fm_report_error_renaming_file), (fm_report_error_setting_group),
      	(fm_report_error_setting_owner),
      	(fm_report_error_setting_permissions), (fm_rename_file):
      	* src/file-manager/fm-icon-view.c:
      	(icon_container_preview_callback), (get_icon_text_callback):
      	* src/file-manager/fm-list-view.c: (match_row_name):
      	* src/file-manager/fm-properties-window.c:
      	(name_field_update_to_match_file),
      	(update_properties_window_title), (create_permissions_page),
      	(create_properties_window):
      	* src/file-manager/fm-search-list-view.c: (real_adding_file):
      	* src/nautilus-window-manage-views.c: (compute_default_title):
      	* src/nautilus-window.c: (nautilus_window_set_viewed_file):
      dc9c636e
  2. 26 Sep, 2001 1 commit
  3. 15 Sep, 2001 1 commit
  4. 07 Dec, 2000 1 commit
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 8c198fce
      Darin Adler authored
      	Fixed bug 4992 ("New folder" menu item enable state doesn't follow
      	permissions), bug 4965 (Dragging multiple items to location bar
      	crashes Nautilus), and bug 4995 (Rename a file to bad name ->
      	error cites wrong filename).
      
      	Fixed a bug jsh spotted where we were doing the mod. time checks
      	wrong in the icon factory for thumbnails.
      
      	Did some wording fixes after menthos pointed out some problems.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(get_cache_time): Split out this function to get the mtime of a
      	file so we can check when it changed.
      	(load_specific_icon): Get the time when loading an icon.
      	(scale_icon): Copy the time when making a scaled icon from an
      	existing icon.
      	(remove_icons_if_file_changed): New renamed function uses
      	get_cache_time to check if the icon needs recomputing because of a
      	change in the underlying file.
      	(get_icon_from_cache): Call the new remove_icons_if_file_changed.
      	(load_icon_with_embedded_text): Copy the time when making an icon
      	with text from an existing icon.
      
      	* libnautilus-extensions/nautilus-file-attributes.h: Added
      	ATTRIBUTE_CAPABILITIES (and sorted in alphabetical order).
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(nautilus_directory_set_up_request): Changed the name of this,
      	made it public, and added ATTRIBUTE_CAPABILITIES as another
      	way to ask for the file info.
      	(cancel_loading_attributes),
      	(nautilus_directory_cancel_loading_file_attributes): Set up a
      	request and use it to decide what to cancel.
      	* libnautilus-extensions/nautilus-directory-private.h: Moved the
      	request structure and call into here so it can be used by
      	NautilusFile and NautilusDirectory both.
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_forget_attributes_internal): Set up a request and
      	use it to decide what to forget.
      	(nautilus_file_forget_all_attributes): Add ATTRIBUTE_CAPABILITIES
      	to the set of things in "all".
      
      	* src/file-manager/fm-directory-view.c:
      	(check_for_directory_hard_limit): Added a FIXME and made some
      	minor wording improvements.
      	(file_changed_callback): Helper to schedule a menu update when
      	the directory's NautilusFile reports a change.
      	(load_directory): Add monitoring of the directory's "capabilities"
      	since they affect whether "New Folder" is allowed. Fixes 4992.
      	(disconnect_handler): Helper for the two functions below.
      	(disconnect_directory_handler): Disconnect a NautilusDirectory
      	handler.
      	(disconnect_directory_as_file_handler): Disconnect a NautilusFile
      	handler.
      	(disconnect_model_handlers): Add code to stop monitoring the
      	directory's "capabilities".
      
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_renaming_file): Got rid of some unneeded "\n"
      	characters. Improved the error message in the "/"-forbidden case
      	with a specific special case message and the proper file name (was
      	using the old file name, not the new one). Fixes 4995.
      	(fm_rename_file): Added quotes to message.
      
      	* src/nautilus-location-bar.h: Removed unused fields.
      	* src/nautilus-location-bar.c: (nautilus_location_bar_get_window):
      	Find the window by looking for an ancestor instead of trying to
      	use gtk_object_get_data (on data no one was setting any
      	more!). Fixes 4965.
      	(nautilus_location_bar_initialize): Got rid of redundant
      	initialization to NULL.
      	(nautilus_location_bar_set_location): Got rid of gratuitous check
      	before calling g_free.
      	(nautilus_location_bar_update_label): Added a localization-related
      	FIXME here.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_xfer_vfs_error): Corrected the "it's" to "its" even though
      	I know that John and Pavel were writing an improved version of the
      	entire message.
      
      	* libnautilus-extensions/nautilus-search-uri.c:
      	(get_translated_criterion), (nautilus_self_check_search_uri): Say
      	"folder" instead of "directory".
      	* src/nautilus-search-bar-criterion.c: Say "folder" instead of
      	"directory".
      	* src/nautilus-theme-selector.c: (add_theme_to_icons): Say
      	"folder" instead of "directory". Other minor wording improvements.
      	(make_theme_description): Minor wording improvement.
      
      	* src/nautilus-window-manage-views.c:
      	(window_set_title_with_timestamp): Added a FIXME.
      8c198fce
  5. 24 Oct, 2000 1 commit
    • Darin Adler's avatar
      Some work towards reducing load_directory calls. · 83cb6f4c
      Darin Adler authored
      	Also fixed bug 3978 (Many Bonobo warnings/errors on quit).
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(set_up_request_by_file_attributes),
      	(update_file_info_in_list_if_needed),
      	(dequeue_pending_idle_callback), (request_is_satisfied),
      	(get_info_callback), (file_info_start):
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_info), (destroy),
      	(nautilus_file_update_info), (nautilus_file_update_name),
      	(nautilus_file_compare_by_type),
      	(nautilus_file_get_string_attribute), (get_description),
      	(update_description_for_link), (nautilus_file_get_type_as_string),
      	(nautilus_file_get_mime_type), (nautilus_file_is_mime_type),
      	(nautilus_file_check_if_ready):
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_actions_get_required_file_attributes),
      	(nautilus_mime_get_default_action_type_for_file),
      	(nautilus_mime_get_default_application_for_file_internal),
      	(nautilus_mime_get_default_component_for_file_internal),
      	(nautilus_mime_get_short_list_applications_for_file),
      	(nautilus_mime_get_short_list_components_for_file),
      	(nautilus_mime_get_short_list_methods_for_file),
      	(nautilus_mime_get_all_applications_for_file),
      	(nautilus_mime_get_all_components_for_file),
      	(nautilus_mime_set_short_list_applications_for_file),
      	(nautilus_mime_set_short_list_components_for_file):
      	Get rid of the distinction between slow and default MIME type once
      	again. We (Pavel, Maciej, John, and I) decided it's better not to
      	have multiple opinions on the MIME type, despite our original idea
      	that we needed the slow MIME type for some things, even on remote
      	file systems.
      
      	* libnautilus-extensions/nautilus-glib-extensions.h:
      	Fixed the formatting in this file.
      
      	* src/file-manager/fm-directory-view.c: (load_location_callback):
      	Only force a reload if we are reloading the same directory. This
      	is needed to take advantage of the loading already done for us by
      	the framework.
      	(load_directory): Take a NautilusDirectory instead of a URI string.
      	Also take a boolean parameter to control if we force a reload.
      	(finish_loading_uri): Respect the boolean parameter that tells us
      	whether to force a reload.
      	(filtering_changed_callback): Use the new load_directory.
      
      	* src/nautilus-applicable-views.c: (nautilus_navigation_info_new),
      	(nautilus_navigation_info_cancel), (nautilus_navigation_info_free):
      	Monitor the directory while we are loading the component. We
      	already need to load the directory to get the MIME types, so this
      	does no additional harm, and it prepares us to consolidate the
      	loading done for different reasons.
      
      	* src/nautilus-main.c: (main): Use nautilus_setenv instead of
      	putenv, since it's more portable.
      
      	* src/nautilus-window-manage-views.c: Quick simplification pass on
      	state machine. Got rid of the use of varargs and renamed a bunch
      	of things.
      
      	* src/nautilus-window-manage-views.h:
      	* src/nautilus-window-private.h:
      	Moved external functions from nautilus-window-manage-views.c to
      	all be in nautilus-window-manager-views.h. This is one step in
      	reducing the number of clients that need access to private stuff
      	in NautilusWindow.
      
      	* src/nautilus-window-service-ui.c: (detach_service_ui),
      	(nautilus_window_install_service_ui): Detach the service UI on
      	"destroy" rather that using set_data_full, because finalize time
      	is too late.
      
      	* src/nautilus-view-frame.c: (nautilus_view_frame_destroy):
      	Got rid of extra unref that was messing things up here.
      83cb6f4c
  6. 17 Oct, 2000 1 commit
    • Maciej Stachowiak's avatar
      Fix assorted bugs which made NautilusFile think the list was never · 3a1df853
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(cancel_mime_list, set_up_request_by_file_attributes,
      	lacks_mime_list, nautilus_directory_invalidate_counts,
      	mime_list_callback, mime_list_start): Fix assorted bugs which made
      	NautilusFile think the list was never complete.
      
      	* libnautilus-extensions/nautilus-wait-until-ready.h: Include
      	<libnautilus-extensions/nautilus-directory.h> and
      	<libnautilus-extensions/nautilus-file.h>.
      
      	* libnautilus-extensions/nautilus-file-attributes.h: Rename
      	MIME_LIST attroibute to DIRECTORY_ITEM_MIME_TYPES.
      
      	* libnautilus-extensions/nautilus-file.h,
      	libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_directory_item_mime_types): Renamed from
      	nautilus_file_get_mime_list.
      
      	* libnautilus-extensions/nautilus-mime-actions.h,
      	libnautilus-extensions/nautilus-mime-actions.c
      	(nautilus_file_wait_for_metadata,
      	nautilus_file_wait_for_mime_action_attributes,
      	nautilus_mime_get_default_action_type_for_uri,
      	nautilus_mime_get_default_action_for_uri,
      	nautilus_mime_get_default_application_for_uri_internal,
      	nautilus_mime_get_default_application_for_uri,
      	nautilus_mime_is_default_application_for_uri_user_chosen,
      	nautilus_mime_get_default_component_for_uri_internal,
      	nautilus_mime_get_default_component_for_uri,
      	nautilus_mime_is_default_component_for_uri_user_chosen,
      	nautilus_mime_get_short_list_applications_for_uri,
      	nautilus_mime_get_short_list_components_for_uri,
      	nautilus_mime_get_short_list_methods_for_uri,
      	nautilus_mime_get_all_applications_for_uri,
      	nautilus_mime_has_any_applications_for_uri,
      	nautilus_mime_get_all_components_for_uri,
      	nautilus_mime_has_any_components_for_uri,
      	nautilus_mime_set_default_action_type_for_uri,
      	nautilus_mime_set_default_application_for_uri,
      	nautilus_mime_set_default_component_for_uri,
      	nautilus_mime_set_short_list_applications_for_uri,
      	nautilus_mime_set_short_list_components_for_uri,
      	nautilus_mime_add_application_to_short_list_for_uri,
      	nautilus_mime_remove_application_from_short_list_for_uri,
      	nautilus_mime_add_component_to_short_list_for_uri,
      	nautilus_mime_remove_component_from_short_list_for_uri,
      	nautilus_mime_extend_all_applications_for_uri,
      	nautilus_mime_remove_from_all_applications_for_uri,
      	mime_type_list_to_hash_table, nautilus_do_component_query): Use
      	all the new NautilusFile APIs and stop using NautilusDirectory. No
      	longer take NautilusDirectory as a parameter in addition to
      	NautilusFile.
      
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(repopulate_program_list, is_application_default_for_uri,
      	is_component_default_for_uri, is_component_in_short_list_for_uri,
      	is_application_in_short_list_for_uri,
      	program_file_pair_is_default_for_file, add_to_short_list_for_file,
      	remove_from_short_list_for_file, remove_default_for_item,
      	set_default_for_item): Stop passing NautilusDirectory to
      	nautilus-mime-actions functions.
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(any_programs_available_for_file): Likewise.
      	* src/file-manager/fm-directory-view.c (switch_location_and_view,
      	files_added_callback, files_changed_callback,
      	create_open_with_gtk_menu, reset_bonobo_open_with_menu,
      	activate_callback):  Likewise.
      	* src/nautilus-applicable-views.c (got_file_info_callback): Likewise.
      	* src/nautilus-sidebar.c (nautilus_sidebar_update_buttons): Likewise.
      	* src/nautilus-window-manage-views.c
      	(nautilus_window_set_content_view): Likewise.
      	* src/nautilus-window.c (nautilus_window_load_content_view_menu):
      	Likewise.
      	* test/test-nautilus-mime-actions-set.c (main): Likewise.
      	* test/test-nautilus-mime-actions.c (main): Likewise.
      3a1df853
  7. 14 Oct, 2000 1 commit
    • Robey Pointer's avatar
      Added mime-list support (can fetch the list of mime-types in the subdirs · 268d597a
      Robey Pointer authored
              * libnautilus-extensions/nautilus-directory-async.c:
              (cancel_mime_list), (nautilus_directory_cancel),
              (set_up_request_by_file_attributes),
              (nautilus_directory_monitor_add_internal),
              (nautilus_async_destroying_file), (lacks_mime_list),
              (wants_mime_list), (request_is_satisfied),
              (nautilus_directory_invalidate_counts), (mime_list_one),
              (mime_list_callback), (mime_list_load), (mime_list_start),
              (start_or_stop_io):
              * libnautilus-extensions/nautilus-directory-private.h:
              * libnautilus-extensions/nautilus-file-attributes.h:
              * libnautilus-extensions/nautilus-file-private.h:
              * libnautilus-extensions/nautilus-file.c: (destroy),
              (nautilus_file_recompute_deep_counts),
              (nautilus_file_get_mime_list):
              * libnautilus-extensions/nautilus-file.h:
      
              Added mime-list support (can fetch the list of mime-types in the
              subdirs of a directory) for bug 3364.
      268d597a
  8. 12 Oct, 2000 1 commit
    • Maciej Stachowiak's avatar
      Use `nautilus_file_get_existing', not `nautilus_file_get', to check if a · 9874534d
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_notify_files_removed,
      	nautilus_directory_notify_files_moved): Use
      	`nautilus_file_get_existing', not `nautilus_file_get', to check if
      	a file is already known. `nautilus_file_get' would have created
      	new NautilusFiles and NautilusDirectories only to do redundant
      	notification later in the function. Also, the old code was a bit
      	silly because `nautilus_file_get' only returns NULL for a NULL
      	URI.
      
      	Work towards bug 3362, eliminate directory metadata.
      
      	* libnautilus-extensions/nautilus-file-attributes.h: Added
      	NAUTILUS_FILE_ATTRIBUTE_METADATA attribute.
      
      	* libnautilus-extensions/nautilus-directory-async.c
      	(set_up_request_by_file_attributes):
      
      	* libnautilus-extensions/nautilus-wait-until-ready.h,
      	libnautilus-extensions/nautilus-file.h,
      	libnautilus-extensions/nautilus-directory.h,
      	libnautilus-extensions/nautilus-directory.c,
      	libnautilus-extensions/nautilus-file.c
      	(nautilus_directory_call_when_ready,
      	nautilus_directory_wait_until_ready,
      	nautilus_directory_file_monitor_add,
      	nautilus_self_check_directory, nautilus_file_monitor_add,
      	nautilus_file_call_when_ready, nautilus_file_wait_until_ready):
      	Remove monitor_metadata or wait_for_metadata attribtues from these
      	calls; the new way to do it is to monitor or wait for the METADATA
      	file attribute.
      
      	* libnautilus-extensions/nautilus-directory-private.h
      	libnautilus-extensions/nautilus-directory-async.c:
      	(nautilus_directory_monitor_add_internal,
      	nautilus_directory_call_when_ready_internal,
      	nautilus_directory_check_if_ready_internal): Eliminate
      	monitor_metadata, wait_for_metadata, etc arguments.
      
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	(merged_callback_connect_directory), (merged_call_when_ready),
      	(merged_file_monitor_add), (monitor_add_directory):
      
      	* libnautilus-extensions/nautilus-vfs-directory.c:
      	(vfs_call_when_ready), (vfs_file_monitor_add):
      
      	* libnautilus-extensions/nautilus-directory-background.c
      	(nautilus_connect_background_to_directory_metadata): Monitor
      	metadata the new approved way.
      
      	* libnautilus-extensions/nautilus-mime-actions.c
      	(nautilus_directory_wait_for_metadata,
      	nautilus_mime_get_default_component_for_uri_internal,
      	nautilus_mime_get_short_list_components_for_uri,
      	nautilus_mime_get_all_components_for_uri,
      	get_mime_type_from_file): Wait for metadata the new approved way.
      
      	* src/file-manager/fm-directory-view.c
      	(fm_directory_view_activate_file, fm_directory_view_load_uri,
      	finish_loading_uri, metadata_ready_callback):
      	Monitor/call_when_ready using the new API.
      
      	* src/file-manager/fm-properties-window.c:
      	(create_properties_window, fm_properties_window_present):
      	Monitor/call_when_ready using the new API.
      
      	* src/file-manager/fm-search-list-view.c (real_adding_file):
      	Monitor/call_when_ready using the new API.
      
      	* src/file-manager/nautilus-trash-monitor.c
      	(nautilus_trash_monitor_initialize): Monitor/call_when_ready using
      	the new API.
      
      	* src/nautilus-applicable-views.c (nautilus_navigation_info_new):
      	Monitor/call_when_ready using the new API.
      
      	* components/notes/nautilus-notes.c (notes_load_metainfo):
      	Monitor/call_when_ready using the new API.
      
      	* components/tree/nautilus-tree-model.c:
      	(nautilus_tree_model_monitor_add,
      	nautilus_tree_model_monitor_node): Monitor/call_when_ready using the new API.
      
      	* src/nautilus-sidebar-title.c, src/nautilus-sidebar-title.h
      	(nautilus_sidebar_title_set_uri): Monitor/call_when_ready using
      	the new API, and use file metadata instead of directory metadata.
      
      	* src/nautilus-sidebar.c (nautilus_sidebar_destroy,
      	nautilus_sidebar_add_panel_items,
      	nautilus_sidebar_background_is_default, receive_dropped_uri_list,
      	receive_dropped_color, receive_dropped_keyword,
      	(background_settings_changed_callback,
      	background_appearance_changed_callback, background_reset_callback,
      	open_with_callback, nautilus_sidebar_update_buttons,
      	nautilus_sidebar_update_appearance, nautilus_sidebar_set_uri):
      	Monitor/call_when_ready using the new API, and use file metadata
      	instead of directory metadata. Keep around a NautilusFile
      	representing the current sidebar location, simplifying bunches of
      	code and hopefully eliminating potential redundant I/O.
      
      	* src/nautilus-window-manage-views.c
      	(viewed_file_changed_callback, position_and_show_window_callback,
      	nautilus_window_end_location_change_callback):
      	Monitor/call_when_ready using the new API, and use file metadata
      	instead of directory metadata. Keep around a NautilusFile
      	representing the current sidebar location, simplifying bunches of
      	code and hopefully eliminating potential redundant I/O.
      
      	* src/nautilus-window.c (nautilus_window_save_geometry): Use file
      	metadata instead of directory metadata.
      9874534d
  9. 27 Sep, 2000 1 commit
    • Maciej Stachowiak's avatar
      Rename NAUTILUS_FILE_ATTRIBUTE_FAST_MIME_TYPE to · 63abb313
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-file-attributes.h: Rename
      	NAUTILUS_FILE_ATTRIBUTE_FAST_MIME_TYPE to
      	NAUTILUS_FILE_ATTRIBUTE_MIME_TYPE; add
      	NAUTILUS_FILE_ATTRIBUTE_SLOW_MIME_TYPE, for now just a synonym for
      	NAUTILUS_FILE_ATTRIBUTE_MIME_TYPE.
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(set_up_request_by_file_attributes): Handle the new file
      	attributes.
      	* libnautilus-extensions/nautilus-directory.h: move
      	nautilus_directory_wait_until_ready call to
      	nautilus-wait-until-ready.h
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_self_check_directory): Include
      	nautilus-wait-until-ready.h, use new attributes.
      
      	* libnautilus-extensions/nautilus-wait-until-ready.h: New header
      	for the deprecated wait_until_ready calls.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_wait_until_ready): file equivalent of
      	nautilus_directory_wait_until_ready; temporary to help me
      	refactor.
      	(file_wait_until_ready_callback): helper function.
      
      	* libnautilus-extensions/Makefile.am: Add
      	nautilus-wait-until-ready.h
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_required_file_attributes): Use new
      	attribute for mime type.
      
      	* libnautilus-extensions/nautilus-mime-actions.h,
      	libnautilus-extensions/nautilus-mime-actions.c:
      	(nautilus_mime_get_default_action_type_for_uri),
      	(nautilus_mime_get_default_action_for_uri),
      	(nautilus_mime_get_default_application_for_uri_internal),
      	(nautilus_mime_get_default_application_for_uri),
      	(nautilus_mime_is_default_application_for_uri_user_chosen),
      	(nautilus_mime_get_default_component_for_uri_internal),
      	(nautilus_mime_get_default_component_for_uri),
      	(nautilus_mime_is_default_component_for_uri_user_chosen),
      	(nautilus_mime_get_short_list_applications_for_uri),
      	(nautilus_mime_get_short_list_components_for_uri),
      	(nautilus_mime_get_short_list_methods_for_uri),
      	(nautilus_mime_get_all_applications_for_uri),
      	(nautilus_mime_has_any_applications_for_uri),
      	(nautilus_mime_get_all_components_for_uri),
      	(nautilus_mime_has_any_components_for_uri),
      	(nautilus_mime_set_default_action_type_for_uri),
      	(nautilus_mime_set_default_application_for_uri),
      	(nautilus_mime_set_default_component_for_uri),
      	(nautilus_mime_set_short_list_applications_for_uri),
      	(nautilus_mime_set_short_list_components_for_uri),
      	(nautilus_mime_add_application_to_short_list_for_uri),
      	(nautilus_mime_remove_application_from_short_list_for_uri),
      	(nautilus_mime_add_component_to_short_list_for_uri),
      	(nautilus_mime_remove_component_from_short_list_for_uri),
      	(nautilus_mime_extend_all_applications_for_uri),
      	(nautilus_mime_remove_from_all_applications_for_uri): All these
      	functions now take a NautilusDirectory and a NautilusFile, rather
      	than a URI.
      
      	(gnome_vfs_mime_application_has_id),
      	(gnome_vfs_mime_id_matches_application),
      	(gnome_vfs_mime_application_has_id_not_in_list),
      	(string_not_in_list), (extract_prefix_add_suffix),
      	(make_oaf_query_with_known_mime_type),
      	(make_oaf_query_with_uri_scheme_only), (free_key),
      	(server_matches_content_requirements),
      	(nautilus_do_component_query), (str_list_difference),
      	(strv_concat): Reformatted.
      
      	(get_mime_type_from_file): Changed from get_mime_type_from_uri;
      	uses nautilus_file_wait_until_ready instead of synchronous I/O.
      
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(repopulate_program_list), (is_application_default_for_uri),
      	(is_component_default_for_uri),
      	(is_component_in_short_list_for_uri),
      	(is_application_in_short_list_for_uri),
      	(program_file_pair_is_default_for_file),
      	(add_to_short_list_for_file), (remove_from_short_list_for_file),
      	(remove_default_for_item), (set_default_for_item):
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(any_programs_available_for_file):
      	* libnautilus-extensions/nautilus-wait-until-ready.h:
      	* src/file-manager/fm-directory-view.c: (switch_location_and_view),
      	(create_open_with_gtk_menu), (reset_bonobo_open_with_menu),
      	(activate_callback):
      	* src/nautilus-applicable-views.c: (got_file_info_callback),
      	(nautilus_navigation_info_new), (nautilus_navigation_info_free):
      	* src/nautilus-applicable-views.h:
      	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
      	* src/nautilus-theme-selector.c: (add_theme_to_icons):
      	* src/nautilus-window.c: (nautilus_window_switch_views),
      	(nautilus_window_load_content_view_menu):
      	* test/test-nautilus-mime-actions-set.c: (main):
      	* test/test-nautilus-mime-actions.c: (main): Deal with above API changes.
      63abb313
  10. 14 Sep, 2000 1 commit
    • John Sullivan's avatar
      Fixed bug 3043 (clicking on broken symbolic link tries · 85cc4060
      John Sullivan authored
      	to execute it).
      
      	Now clicking on it brings up a dialog telling the user
      	about the missing target file and asking whether they
      	want to throw the link away. Also, I changed the type
      	string for link files to be "link to <whatever>" instead
      	of just "<whatever>", and "link (broken)" for broken ones.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	define NAUTILUS_FILE_ATTRIBUTE_FILE_TYPE for callers
      	interested in GnomeVFS's concept of file type.
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(set_up_request_by_file_attributes): Get file_info if
      	NAUTILUS_FILE_ATTRIBUTE_FILE_TYPE is requested.
      	* libnautilus-extensions/nautilus-file.h,
      	* libnautilus-extensions/nautilus-file.c:
      	(type_as_string_considering_link): New function,
      	converts target-type to link-type string if necessary.
      	(nautilus_file_get_type_as_string): Deploy
      	type_as_string_considering_link at each return location.
      	(nautilus_file_is_broken_symbolic_link): New public function.
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_name_for_file): Added comment.
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_trash_or_delete_files): Renamed from
      	..._selection since it is passed the list of files.
      	(trash_callback): Updated for name change.
      	(report_broken_symbolic_link): New function, puts up dialog.
      	(activate_callback): Calls report_broken_symbolic_link if
      	appropriate.
      	(fm_directory_view_activate_file): include
      	NAUTILUS_FILE_ATTRIBUTE_FILE_TYPE in list to pass to call_when_ready.
      85cc4060
  11. 27 Jul, 2000 1 commit
    • Maciej Stachowiak's avatar
      Some work in progress on some model/view separation for the tree view. · 67654abd
      Maciej Stachowiak authored
      	* components/tree/nautilus-tree-model.c:
      	* components/tree/nautilus-tree-model.h:
      	* components/tree/nautilus-tree-node.c:
      	(nautilus_tree_node_get_parent), (nautilus_tree_node_get_children),
      	(nautilus_tree_node_get_file), (nautilus_tree_node_get_directory),
      	(nautilus_tree_node_set_user_data),
      	(nautilus_tree_node_get_user_data):
      	* components/tree/nautilus-tree-node.h:
      
      	Some work in progress on some model/view separation for the tree
      	view.
      
      	* libnautilus-extensions/nautilus-file-attributes.h,
      	libnautilus-extensions/nautilus-directory-async.c
      	(set_up_request_by_file_attributes): Added an "is directory"
      	attribute which you can use in a file attribute list for a monitor
      	or call_when_ready request, which insures we get that piece of
      	info about files.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_real_name, nautilus_file_get_real_directory):
      	Add necessary decoding for the search case.
      
      	* src/file-manager/fm-search-list-view.c
      	(get_attribute_from_column): Get the directory attribute for the
      	directroy column.
      67654abd
  12. 26 Jul, 2000 1 commit
    • Darin Adler's avatar
      No parameters is indicated by "(void)" instead of "()". · 08b61728
      Darin Adler authored
      	* components/help/help-method.c: (help_uri_new): No parameters
      	is indicated by "(void)" instead of "()".
      	(help_uri_to_string): Changed to share more code (I think I might
      	have fixed a leak too).
      	(init_help_module): No parameters is indicated by "(void)"
      	instead of "()". Also fixed a bug where the wrong lock is unlocked.
      	(convert_file_to_uri): Use g_strcasecmp instead of strcmp since we
      	are checking MIME types.
      	(transform_file), (transform_absolute_file), (file_from_path),
      	(find_help_file), (transform_relative_file): Merged these so they
      	share a lot of common code.
      
      	* components/services/vault/command-line/vault-operations.c:
      	(vault_list): Fixed a g_strconcat that was missing a trailing NULL.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(cancel_top_left_read), (top_left_read_done),
      	(top_left_read_callback), (top_left_read_more_callback),
      	(start_getting_top_lefts), Changed top_left code to use
      	nautilus_read_file calls.
      	(cancel_metafile_read),
      	Changed to reflect name changes in nautilus_read_file calls.
      	(cancel_get_activation_uri), (nautilus_directory_cancel),
      	(set_up_request_by_file_attributes),
      	(nautilus_async_destroying_file), (lacks_activation_uri),
      	(wants_activation_uri), (request_is_satisfied),
      	(activation_uri_found),
      	(activation_uri_nautilus_link_read_callback),
      	(activation_uri_gmc_link_read_callback),
      	(activation_uri_gmc_link_read_more_callback),
      	(start_getting_activation_uris),
      	(nautilus_directory_async_state_changed): Add code to fetch
      	activation URIs for either GMC or Nautilus-style link files.
      	(lacks_top_left): Changed to share common
      	nautilus_file_should_get_top_left_text function so we don't have
      	lots of different code reading the preferences about top-left
      	text.
      	(is_needy): Enhanced and renamed is_wanted so it takes into
      	account files that are and aren't interesting.
      	(start_getting_directory_counts), (deep_count_start):
      	(start_getting_file_info), Change to use is_needy.
      
      	* libnautilus-extensions/nautilus-directory.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	Tweaked spacing.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	Added a self_owned flag so we do better with files that don't have
      	parent directories and the fields to support activation_uri.
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(read_file_close_callback), (read_file_close),
      	(read_file_succeeded), (read_file_failed),
      	(read_file_read_callback), (read_file_read_chunk),
      	(read_file_open_callback), (nautilus_read_file_async),
      	(nautilus_read_entire_file_async), (nautilus_read_file_cancel):
      	Added a variation of the read file call that takes a function to
      	decide whether to keep reading or not.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_name), (nautilus_file_get),
      	(nautilus_file_get_parent_uri_as_string),
      	(get_file_for_parent_directory), (nautilus_file_rename),
      	(nautilus_file_get_gnome_vfs_uri),
      	(nautilus_file_get_uri),
      	Add code that handles the "self_owned" flag to make files without
      	parents work better.
      	(destroy): Fixed some leaks I noticed.
      	(nautilus_file_get_top_left_text),
      	(nautilus_file_should_get_top_left_text): Added this so that all
      	code can share a single call when deciding whether to get text
      	based on local vs. non-local.
      	(nautilus_file_get_activation_uri): Changed to work with new
      	async. code to fetch this.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file): Call
      	nautilus_file_should_get_top_left_text.
      
      	* libnautilus-extensions/nautilus-link.h:
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_is_link_file_name): Named so it's clear it looks
      	at the file name only.
      	(xml_get_root_property), (nautilus_link_get_root_property):
      	Added these to share a lot of common code.
      	(nautilus_link_get_additional_text): Use the new calls.
      	(make_local_path), (icon_read_done_callback),
      	(nautilus_link_get_image_uri), (nautilus_link_get_link_uri),
      	(nautilus_link_get_display_name): Other cleanup and rewrite.
      	(nautilus_link_get_link_uri_given_file_contents): Add API that
      	can work with the async. I/O version.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(timed_wait_free), (nautilus_timed_wait_start):
      	Added some asserts.
      
      	* src/file-manager/fm-directory-view.c: (activate_callback),
      	(fm_directory_view_activate_file): Use call_when_ready and
      	the new async. stuff.
      
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_setting_group): Added a (low-quality) error
      	message for the case where you aren't alowed to change the
      	group of something.
      
      	* src/file-manager/fm-icon-view.c:
      	(icon_position_changed_callback): Added missing NULL in a call
      	to g_strconcat.
      	(get_icon_text_callback): Fix storage leak.
      
      	* src/file-manager/fm-properties-window.c:
      	(activate_owner_callback): Fixed a timed_wait_start/stop mismatch
      	that was causing an assert and other badness when you changed the
      	owner.
      
      	* src/file-manager/fm-search-list-view.c:
      	(get_attribute_from_column): Added a missing case to prevent a
      	crash, but had to put in a FIXME since the code isn't really working.
      
      	* src/nautilus-application.c: (nautilus_application_startup):
      	Fixed bug where you wouldn't see error messages on startup.  Also
      	improved one of the error messages by adding some blank lines.
      08b61728
  13. 22 Jun, 2000 1 commit
    • Darin Adler's avatar
      Finished task 975 (Need API for asynchronously computing a · 9ba12e4f
      Darin Adler authored
      	directory's recursive item count). More thorough testing will wait
      	for John to implement the high level feature.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(directory_count_callback): Used a local variable.
      	(start_monitoring_file_list): Reduced use of GnomeVFSURI a bit.
      	(cancel_deep_count), (nautilus_directory_cancel),
      	(set_up_request_by_file_attributes),
      	(nautilus_async_destroying_file), (lacks_deep_count),
      	(wants_deep_count), (request_is_satisfied),
      	(start_monitoring_file_list), (deep_count_one),
      	(deep_count_callback), (deep_count_load), (deep_count_start),
      	(state_changed): Added the code to compute deep counts.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_self_check_directory): Added a self-check to try out
      	the deep counts.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Renamed the attribute now that it's for more than one kind of
      	deep count, not just a directory items count.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_deep_counts):
      	Added the high-level interface for getting at the counts.
      9ba12e4f
  14. 20 Jun, 2000 1 commit
    • Darin Adler's avatar
      Made NautilusFile async. like NautilusDirectory already was. · e1f2a77d
      Darin Adler authored
      	* RENAMING: Added a renaming idea.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(cancel_get_info), (cancel_metafile_read),
      	(nautilus_directory_cancel): Added the new getting of file info
      	to the cancel logic.
      	(nautilus_compare_file_with_name): Changed to get the name in a
      	way that works with files with no info.
      	(nautilus_async_destroying_file): Handle the cancelling for the
      	get_file_info case.
      	(lacks_info), (wants_info), (request_is_satisfied): Add code to
      	handle the need for file info for a newly created NautilusFile.
      	(get_info_callback), (start_getting_file_info), (state_changed):
      	Add code to get file info for files that lack it.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	Add fields for getting file info for new files.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_notify_files_moved): Moved the logic about
      	updating the name on a file as it is moved into nautilus-file.c.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Added a "deep count" attribute and function as a placeholder for
      	work that I'll be doing for John shortly.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	Moved the calls relating to updating an existing NautilusFile
      	so they are private and added one for a name change.
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	Added interface for new nautilus_read_entire_file family of calls
      	that I still need to implement.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_name), (nautilus_file_new_from_info):
      	Added a way to create a file without having GnomeVFSFileInfo yet.
      	(nautilus_file_get): Don't get the GnomeVFSFileInfo; let the async.
      	logic handler that.
      	(rename_update_info_and_metafile): Handle new name field.
      	(nautilus_file_rename): Use new name field.
      	(nautilus_file_get_gnome_vfs_uri): Common code shared in a couple
      	of places. Started fixing the "no file object for root" problem.
      	(nautilus_file_matches_uri): Use nautilus_file_get_gnome_vfs_uri.
      	(nautilus_file_update_info): Handle NULL case and new name field.
      	(nautilus_file_update_name): New function used by move code in
      	nautilus-directory.c.
      	(nautilus_file_compare_by_type): Handle NULL info case.
      	(nautilus_file_compare_for_sort_internal): Handle NULL info case.
      	(nautilus_file_compare_name): Use new name field.
      	(nautilus_file_get_metadata), (nautilus_file_get_metadata_list):
      	Handle NULL file and use new name field.
      	(nautilus_file_set_metadata), (nautilus_file_set_metadata_list):
      	Use new name field.
      	(nautilus_file_get_name): Handle NULL file and use new name field.
      	(nautilus_file_get_uri): Use nautilus_file_get_gnome_vfs_uri.
      	(info_missing): New function to handle NULL file case, NULL info
      	case, and check the valid_fields more thoroughly.
      	(nautilus_file_get_date_as_string), (nautilus_file_get_size),
      	(nautilus_file_can_get_permissions),
      	(nautilus_file_get_owner_as_string),
      	(nautilus_file_get_group_as_string),
      	(nautilus_file_get_size_as_string),
      	(nautilus_file_get_type_as_string), (nautilus_file_get_file_type),
      	(nautilus_file_get_mime_type), (nautilus_file_is_mime_type),
      	(nautilus_file_is_symbolic_link),
      	Use info_missing to handle NULL file and NULL info cases and to
      	do valid_fields checks as needed.
      	(nautilus_file_get_permissions_as_string): Move file check so the
      	NULL case will work properly.
      	(nautilus_file_get_mime_type_as_string_attribute): Got rid of
      	redundant g_free call.
      	(nautilus_file_get_string_attribute): Remove file check so NULL
      	case will work properly.
      	(nautilus_file_get_emblem_names): Handle NULL file case.
      	(nautilus_file_get_keywords): Handle NULL file case.
      	(nautilus_file_is_executable): Remove file check so NULL case will
      	work properly.
      	(nautilus_file_mark_gone): Add code to get rid of info which we
      	don't need to keep around for files that are gone.
      	(nautilus_file_activate_custom): Added FIXME comments.
      
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_get_largest_fitting_font): Changed so it handles the case
      	of NULL for passed-in text properly.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file): Formatting.
      	(nautilus_icon_factory_get_pixbuf_for_file): Handle NULL file by
      	returning NULL for the pixbuf.
      	(nautilus_icon_factory_get_pixmap_and_mask_for_file):
      	Handle NULL for the pixbuf by return NULL for the pixmap/mask.
      
      	* src/nautilus-main.c: (print_leaks), (main): Do the leak printing
      	from an atexit function so more of the cleanup will run first.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_pixmap_new_empty): A simple cover for allocating a
      	GtkPixmap before we have a GdkPixmap to display.
      
      	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_initialize):
      	Create the widgets when the title is set up instead of creating
      	them "as needed".
      	(update_icon): Always update the icon, even if the file is NULL.
      	(update_title): Always update the title, even if the file is NULL.
      	Also got rid of the line-breaking code. We instead use the line-
      	breaking code inside GtkLabel, which we can tweak as needed by
      	setting a line width. We may need to revisit this, but lets not
      	re-add our own line-break code unless we have to.
      	(append_and_eat), (update_more_info): Always update the info field,
      	even if the file is NULL. I rewrote this.
      	(add_emblem), (update_emblems): Always update the emblems, even if
      	the file is NULL.
      	(update_notes): Always update the notes, even if the file is NULL.
      	(update_all): Update all the pieces separately (the old code was
      	doing them strangely bunched up).
      	(nautilus_sidebar_title_set_uri): Always ask for the directory
      	item count, even when the item is not yet known to be a directory.
      
      	* src/nautilus-window.c: (nautilus_window_constructed): Get rid
      	of the call to gtk_widget_show_all that was showhing things that
      	were intentionally hidden.
      	(nautilus_window_load_content_view_menu): Removed an unused
      	variable that was set up but never examined.
      e1f2a77d
  15. 19 Jun, 2000 1 commit
    • John Sullivan's avatar
      Fixed uninitialized variable that was masking the real · e3f2dd16
      John Sullivan authored
      	reason why eazel: URIs don't work today (real reason
      	has not been figured out yet).
      
      	* src/nautilus-applicable-views.c: (got_file_info_callback):
      	Initialize default_id to NULL.
      
      	More work towards bug 1401 (bookmark icon never updates).
      	Almost done, but for a bug where bookmark for current
      	location in Go menu doesn't get an icon.
      
      	* libnautilus-extensions/nautilus-string.h,
      	* libnautilus-extensions/nautilus-string.c:
      	(nautilus_str_is_empty): New function, returns TRUE for
      	NULL or zero-length string.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Added #define for NAUTILUS_FILE_ATTRIBUTE_CUSTOM_ICON
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	Add file_info to Request struct.
      	(request_is_satisfied): Renamed from ready_callback_is_satisfied;
      	now takes a Request and a NautilusFile instead of a ReadyCallback.
      	(call_ready_callbacks): Update existing caller for API change.
      	(set_up_request_by_file_attributes): Set request's file_info
      	field to TRUE if mime type requested; set request's metafile
      	field to TRUE if custom icon requested.
      	(nautilus_directory_check_if_ready_internal): New function,
      	use request_is_satisfied to see whether specified attributes
      	are available.
      	* libnautilus-extensions/nautilus-directory-private.h:
      	Added nautilus_directory_check_if_ready_internal.
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_check_if_ready): Call nautilus_directory_check_
      	if_ready_internal.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_is_icon_ready_for_file): Implemented
      	this formerly nonexistent function by calling
      	nautilus_file_check_if_ready
      
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_destroy), (nautilus_bookmark_icon_is_different),
      	(nautilus_bookmark_update_icon), (bookmark_file_changed_callback),
      	(nautilus_bookmark_set_icon_to_default), (nautilus_bookmark_new),
      	(nautilus_bookmark_new_with_icon): NautilusBookmark now keeps
      	ahold of a NautilusFile internally so it can notice its
      	"changed" signal. When this signal fires, the bookmark determines
      	whether a changed icon is available.
      e3f2dd16
  16. 04 May, 2000 1 commit
    • Darin Adler's avatar
      Some more instructions and cleanup. Removed one gratuitous renaming we · e0e2e07e
      Darin Adler authored
      	* HACKING: Some more instructions and cleanup.
      	* RENAMING: Removed one gratuitous renaming we won't do.
      
      	* components/html/ntl-web-browser.c:
      	Removed stray "#include <config.h>" that I added by accident.
      
      	* components/hardware/main.c: (main):
      	* components/help/hyperbola-main.c: (main):
      	* components/html/ntl-web-browser.c: (main):
      	* components/music/main.c: (main):
      	* components/notes/ntl-notes.c: (main):
      	* components/rpmview/main.c: (main):
      	* components/websearch/ntl-web-search.c: (main):
      	* src/file-manager/gnome-desktop.c (main):
      	* src/ntl-main.c (main):
      	Added ifdefs so you don't get warnings when building with
      	localization turned off. Ugly, but needed I think.
      
      	* components/help/converters/gnome-db2html2/gdb3html.c:
      	(ulink_start_element), (start_element):
      	* components/help/converters/gnome-db2html2/sect-elements.c:
      	(sect_sect_start_element), (sect_sect_end_element),
      	(sect_title_start_element), (sect_xref_start_element),
      	(sect_graphic_start_element), (sect_get_infobox_logo):
      	* components/help/converters/gnome-db2html2/sect-preparse.c:
      	(sect_preparse_sect_start_element),
      	(sect_preparse_title_characters):
      	* components/help/converters/gnome-db2html2/toc-elements.c:
      	(toc_sect_start_element), (toc_title_start_element):
      	* components/help/converters/gnome-info2html2/html.c:
      	(write_node_link_html):
      	* components/help/hyperbola-filefmt.c: (tree_key_compare):
      	* components/help/hyperbola-nav-index.c: (start_element),
      	(end_element), (hyperbola_navigation_index_new):
      	* components/html/ntl-web-browser.c: (browser_submit):
      	Replaced all uses of strcasecmp with g_strcasecmp.
      	Why? Because Michael Meeks said so and that's good enough
      	for me (in this case :-).
      
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_update_from_uri):
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_mime_type_as_string_attribute),
      	(nautilus_file_get_mime_type):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_name_for_regular_file):
      	* src/file-manager/fm-icon-view.c (get_icon_property_callback):
      	* src/ntl-index-panel.c (nautilus_index_panel_update_buttons):
      	* src/ntl-uri-map.c (file_list_to_mime_type_hash_table):
      	Changed get_mime_type to be like all other text functions and
      	return a strdup'd string. John said it was a good idea.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_read_callback), (metafile_read_some),
      	(set_up_request_by_file_attributes),
      	(nautilus_directory_monitor_add_internal),
      	(directory_list_get_next_position), (directory_load_callback),
      	(ready_callback_call),
      	(nautilus_directory_call_when_ready_internal),
      	(wants_directory_count), (has_problem),
      	(ready_callback_is_satisfied), (is_anyone_monitoring_file_list),
      	(is_anyone_waiting_for_metafile), (is_wanted), (select_needy_file),
      	(start_getting_directory_counts):
      	Reorganize to get ready for adding code to read the top left text.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Added name for the "top left text" attribute.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_top_left_text):
      	Added call to get the top left text.
      
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(draw_embedded_text): Tiny format tweak.
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_icon): Tiny format tweak.
      
      	* libnautilus-extensions/nautilus-icon-factory.h:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_pixbuf_for_file),
      	(nautilus_icon_factory_get_pixmap_and_mask_for_file),
      	(nautilus_icon_factory_embed_text),
      	(nautilus_icon_factory_embed_file_text):
      	Added support for embedded text. Not completely deployed yet.
      e0e2e07e
  17. 27 Apr, 2000 1 commit
    • Darin Adler's avatar
      Changed to the new Nautilus list instead of the old secret list. · 6397f17c
      Darin Adler authored
      	* MAINTAINERS: Changed to the new Nautilus list instead of the
      	old secret list.
      
      	* components/notes/ntl-notes.c (notes_load_metainfo):
      	* src/file-manager/fm-directory-view.c
      	(fm_directory_view_load_uri), (metadata_ready_callback):
      	* src/ntl-uri-map.c (got_metadata_callback),
      	(nautilus_navigation_info_new):
      	Change calls to use new API, but not to use any of the new features,
      	which are not yet implemented.
      
      	* libnautilus-extensions/nautilus-directory.h:
      	* libnautilus-extensions/nautilus-directory.c
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory-async.c
      	* libnautilus-extensions/nautilus-file.c
      	* libnautilus-extensions/nautilus-file.h:
      	Added the new API and moved functions around a bit to prepare
      	for the new feature needed by Maciej for getting a list of files.
      
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Added an attribute constant for MIME type.
      6397f17c
  18. 14 Apr, 2000 1 commit
    • Darin Adler's avatar
      Finished task 174 (Use deferred calculation to compute directory counts). · 01a32030
      Darin Adler authored
      
      	Finished task 174 (Use deferred calculation to compute directory
      	counts).
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	Added a header file for names of file attributes.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	* libnautilus-extensions/nautilus-directory.h:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	* libnautilus-extensions/nautilus-file.h:
      	Added background computation of the "directory item count"
      	attribute. This is serving as a test case for the API for
      	requesting additional information.
      
      	* src/file-manager/fm-directory-view.c:
      	(display_selection_info): Changed to use the new interface that
      	can sometimes return "I don't know" for the number of items in
      	a particular directory.
      	(stop_load), (done_loading), (display_pending_files),
      	(fm_directory_view_stop): Fixed a mistake in the old code where
      	we stopped monitoring once the files were discovered. We need to
      	keep monitoring.
      	(finish_loading_uri): Pass in an attribute that we want to monitor:
      	NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT.
      01a32030
  19. 31 Jan, 2000 1 commit
    • Darin Adler's avatar
      Changed it to not attempt to create a GC just to measure the text. This · 58a9b33c
      Darin Adler authored
      	* nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_draw_text_box):
      	Changed it to not attempt to create a GC just to measure the text.
      	This makes it work when the widget is not realized.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	(nautilus_icons_view_icon_item_center_offset):
      	Changed the parameter type to NautilusIconsViewIconItem.
      
      	* fm-directory-view.c:
      	(stop_load):
      	(fm_directory_view_load_uri):
      	Fixed code so that if you stop loading more than once, or
      	stop before you even start, it won't send extra progress
      	requests to the Nautilus shell or call stop_monitoring
      	extra times on the NautilusDirectory object.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	Quick cleanup of the new NautilusIconsViewIconItem class.
      
      	* libnautilus/gdk-extensions.c:
      	libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gtkflist.c:
      	libnautilus/nautilus-background-canvas-group.c:
      	libnautilus/nautilus-background.c:
      	libnautilus/nautilus-debug.c:
      	libnautilus/nautilus-default-file-icon.c:
      	libnautilus/nautilus-directory.c:
      	libnautilus/nautilus-icon-factory.c:
      	libnautilus/nautilus-icons-controller.c:
      	libnautilus/nautilus-icons-view-icon-item.c:
      	libnautilus/nautilus-lib-self-check-functions.c:
      	libnautilus/nautilus-self-checks.c:
      	libnautilus/nautilus-string.c:
      	src/explorer-location-bar.c:
      	src/file-manager/dfos-corba.c:
      	src/file-manager/dfos-xfer-progress-dialog.c:
      	src/file-manager/dfos-xfer.c:
      	src/file-manager/dfos.c:
      	src/file-manager/fm-directory-view-icons.c:
      	src/file-manager/fm-directory-view-list.c:
      	src/file-manager/fm-directory-view.c:
      	src/file-manager/fm-icons-controller.c:
      	src/file-manager/fm-main.c:
      	src/nautilus-self-check-functions.c:
      	src/ntl-index-panel.c:
      	Got rid of #ifdef HAVE_CONFIG_H. Elliot says that we must always
      	include <config.h>, but there's no reason to include that ifdef
      	since we don't plan on building without a <config.h> ever.
      58a9b33c
  20. 14 Jan, 2000 1 commit
  21. 10 Jan, 2000 1 commit
  22. 07 Jan, 2000 1 commit
  23. 04 Jan, 2000 1 commit
  24. 03 Jan, 2000 1 commit
  25. 07 Oct, 1999 1 commit