| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-25 Dave Camp <dave@ximian.com>
* components/tree/nautilus-tree-view.c: (get_root_uri_callback),
(get_file_for_path_callback), (move_copy_items_callback): New
functions.
(create_tree): Create a NautilusTreeViewDragDest.
(nautilus_tree_view_dispose): Unref the DragDest object.
(nautilus_tree_view_class_init): initialize dispose.
* libnautilus-private/Makefile.am: Build
nautilus-tree-view-drag-dest.[ch].
* libnautilus-tree-view-drag-dest.c:
* libnautilus-tree-view-drag-dest.h: New files.
* libnautilus-private/nautilus-dnd.c:
(nautilus_drag_selection_includes_special_link): Moved here
from nautilus-icon-dnd.c.
* libnautilus-private/nautilus-dnd.h: Prototype for
nautilus_drag_selection_includes_special_link.
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_drop_target_uri): Moved here from
fm-directory-view.
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-icon-dnd.c:
(nautilus_icon_container_receive_dropped_icons): Call
nautilus_drag_selection_includes_special_link().
* libnautilus-private/nautilus-marshal.list: New marshallers.
* src/file-manager/fm-icon-view.c:
(get_icon_drop_target_uri_callback): Use
nautilus_file_get_drop_target_uri().
* src/file-manager/fm-list-view.c: (get_root_uri_callback),
(get_file_for_path_callback), (move_copy_items_callback): New
functions.
(create_and_set_up_tree_view): Create a NautilusViewDragDest
object.
(fm_list_view_dispose): Unref the DragDest object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-05-08 Alex Larsson <alexl@redhat.com>
* libnautilus-private/apps_nautilus_preferences.schemas:
* libnautilus-private/nautilus-file-utilities.c:
* libnautilus-private/nautilus-file-utilities.h:
* libnautilus-private/nautilus-file.c:
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-global-preferences.c:
* libnautilus-private/nautilus-global-preferences.h:
* libnautilus-private/nautilus-metafile.c:
* libnautilus-private/nautilus-metafile.h:
* libnautilus-private/nautilus-thumbnails.c:
* libnautilus-private/nautilus-vfs-directory.c:
* src/nautilus-preferences-dialog.c:
Remove public metadata
|
|
|
|
|
|
|
|
|
| |
2002-03-27 Dave Camp <dave@ximian.com>
* libnautilus-private/nautilus-file.c
(nautilus_file_get_activation_uri): Use
nautilus_file_get_symbolic_link_target_uri.
(nautilus_file_get_symbolic_link_target_uri): New function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* components/throbber/nautilus-throbber.c:
(nautilus_throbber_instance_init): eel_signal_connect_while_alive
-> g_object_add_weak_pointer.
(nautilus_throbber_finalize), (nautilus_throbber_class_init):
Switch to finalize instead of destroy.
* components/tree/nautilus-tree-expansion-state.c: Remove.
* components/tree/nautilus-tree-expansion-state.h: Remove.
* components/tree/nautilus-tree-node-private.h: Remove.
* components/tree/nautilus-tree-node.c: Remove.
* components/tree/nautilus-tree-node.h: Remove.
* components/tree/nautilus-tree-model.h:
* components/tree/nautilus-tree-model.c:
Rewrite, based on Anders's first cut.
* components/tree/nautilus-tree-view.h: Tweaks.
* components/tree/nautilus-tree-view.c: (create_tree): Get rid of
the header.
(nautilus_tree_view_finalize), (nautilus_tree_view_class_init):
Added a missing finalize so that we don't leak.
* libnautilus-private/nautilus-directory.h:
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_get_for_file): New.
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-file.c:
(finalize): Change to finalize from destroy.
(nautilus_file_get_parent): Make public, simplify implementation
by using nautilus_directory_get_corresponding_file.
* src/file-manager/fm-desktop-icon-view.c:
(fm_desktop_icon_view_init):
* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
* src/nautilus-view-frame.c: (nautilus_view_frame_init),
(attach_view):
* src/nautilus-window-menus.c:
(nautilus_window_initialize_bookmarks_menu),
(nautilus_window_initialize_go_menu):
Use g_signal_connect-object instead of eel_signal_connect_while_alive.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-01-28 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-file.c:
* libnautilus-private/nautilus-file.h:
Remove gmc link support and calls to gnome_set_metadata.
* libnautilus-private/nautilus-file-operations.c
(create_transfer_dialog): Set transfer_info as user_data.
* libnautilus-private/nautilus-file-operations-progress.c: Move stuff
to finalize.
* libnautilus-private/nautilus-entry.c: Remove cursor obscuring code
since that exists in GtkEntry now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is slightly gratuitious, because we don't really need to be
explicit about which name in every case, but it does no harm and
a tiny bit of good.
* components/tree/nautilus-tree-view.c: (ctree_compare_rows):
* libnautilus-private/nautilus-file.c: (compare_by_display_name),
(compare_by_full_path), (nautilus_file_compare_for_sort_internal),
(compare_by_display_name_cover),
(nautilus_file_list_sort_by_display_name),
(nautilus_self_check_file):
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-global-preferences.c:
(default_icon_view_sort_order_or_manual_layout_changed_callback):
* src/file-manager/fm-desktop-icon-view.c:
(desktop_icons_compare_callback):
* src/file-manager/fm-directory-view.c:
(update_directory_in_scripts_menu):
* src/file-manager/fm-icon-view.c: (get_default_sort_order),
(icon_container_compare_icons_by_name_callback):
* src/file-manager/fm-list-view.c: (compare_rows_by_name),
(get_attribute_from_sort_type), (real_get_column_specification):
* src/file-manager/fm-search-list-view.c:
(real_get_column_specification):
Change NAUTILUS_FILE_SORT_BY_NAME to NAUTILUS_FILE_SORT_BY_DISPLAY_NAME
and compare_by_name to compare_by_display_name and
nautilus_file_list_sort_by_name to nautilus_file_list_sort_by_display_name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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):
|
| |
|
|
|
|
|
| |
corresponding bugzilla.gnome.org bug. Also updated my
email address.
|
|
|
|
| |
details. Checking in Miguel's patch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-04-05 Pavel Cisler <pavel@eazel.com>
reviewed by: John Harper <jsh@eazel.com>
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_fit_date_as_string),
(nautilus_file_fit_modified_date_as_string),
(nautilus_file_get_date_as_string):
* libnautilus-extensions/nautilus-file.h:
Add a new function that returns a modified date string,
formatted to fit a given width. Make the old
nautilus_file_get_date_as_string call it.
* src/file-manager/fm-list-view.c: (measure_width_callback),
(trucante_middle_callback), (get_cell_text), (set_up_list):
Hook up to the get_cell_text signal. For modified text return
a nicely formatted text string, for everything else just
ellipsize the result.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reviewed by: Darin Adler <darin@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
(is_anyone_waiting_for_metafile), (call_ready_callbacks),
(start_or_stop_io), (nautilus_directory_cancel):
* libnautilus-extensions/nautilus-directory-metafile-monitor.c:
(corba_metafile_ready):
* libnautilus-extensions/nautilus-directory-metafile.c:
(get_metafile), (nautilus_directory_rename_file_metadata),
(nautilus_directory_rename_directory_metadata):
* libnautilus-extensions/nautilus-directory-metafile.h:
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_initialize), (nautilus_directory_destroy),
(set_directory_uri), (change_directory_uri),
(nautilus_self_check_directory):
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_file_name_matches_backup_pattern),
(nautilus_file_name_matches_metafile_pattern):
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_is_metafile):
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-metafile-factory.c: (corba_open):
* libnautilus-extensions/nautilus-metafile-server.idl:
* libnautilus-extensions/nautilus-metafile.c:
(nautilus_metafile_class_init), (nautilus_metafile_init),
(destroy), (construct_private_metafile_vfs_uri),
(nautilus_metafile_set_directory_uri), (nautilus_metafile_new),
(nautilus_metafile_get), (schedule_next_read), (async_read_start),
(async_read_done), (async_read_cancel), (corba_is_read),
(corba_get), (corba_get_list), (corba_set), (corba_set_list),
(corba_copy), (corba_remove), (corba_rename),
(corba_rename_directory), (corba_register_monitor),
(corba_unregister_monitor),
(nautilus_metafile_notify_metafile_ready), (call_metafile_changed),
(call_metafile_changed_for_all_files_mentioned_in_metafile),
(call_metafile_changed_for_one_file), (create_metafile_root),
(get_file_node), (get_metadata_string_from_metafile),
(get_metadata_list_from_metafile),
(set_metadata_string_in_metafile), (set_metadata_list_in_metafile),
(set_metadata_in_metafile), (get_metadata_string_from_table),
(get_metadata_list_from_table), (set_metadata_eat_value),
(metafile_free_metadata), (get_file_metadata),
(get_file_metadata_list), (set_file_metadata),
(set_file_metadata_list), (metafile_get_file_uri),
(rename_file_metadata), (apply_one_change), (apply_file_changes),
(nautilus_metafile_apply_pending_changes), (copy_file_metadata),
(remove_file_metadata), (nautilus_metafile_set_metafile_contents),
(metafile_read_cancel), (can_use_public_metafile),
(metafile_read_mark_done), (metafile_read_done),
(metafile_read_try_public_metafile),
(metafile_read_check_for_directory_callback),
(metafile_read_check_for_directory), (metafile_read_failed),
(metafile_read_done_callback), (metafile_read_restart),
(allow_metafile), (metafile_read_start), (metafile_write_done),
(metafile_write_failed), (metafile_write_failure_close_callback),
(metafile_write_success_close_callback), (metafile_write_callback),
(metafile_write_create_callback), (metafile_write_start),
(metafile_write), (metafile_write_idle_callback),
(directory_request_write_metafile):
* libnautilus-extensions/nautilus-metafile.h:
* libnautilus-extensions/nautilus-vfs-directory.c:
(vfs_is_not_empty):
Factored the metadata reading/writing code out of nautilus-directory
- bug 6661.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 1853 (Want preference for always sorting folders first)
For now, this is a global preference. Making it
per-window later is a possibility. Arlo is working on
a design for directory view defaults that may incorporate
this.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_compare_for_sort_reversed): Eliminated this in
favor of a parameter to nautilus_file_compare_for_sort.
(nautilus_file_compare_for_sort): Add a parameter for reversed,
and another for directories_first.
(nautilus_file_compare_for_sort_internal): Former guts of
nautilus_file_compare_for_sort moved here.
(nautilus_self_check_file): Update compare_for_sort self-checks.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Install an "Always list
folders before files" preference in the Icon and List Views
section.
* src/file-manager/fm-directory-view.h:
(sort_directories_first_changed): New function pointer for
subclasses to override.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_should_sort_directories_first): New function
for subclasses to call.
(sort_directories_first_changed_callback): Call virtual function
when preference changes.
(fm_directory_view_initialize): Store initial value of preference;
install preference callback.
(fm_directory_view_destroy): Remove preference callback.
* src/file-manager/fm-desktop-icon-view.c:
(desktop_icons_compare_callback): Respect preference
setting.
* src/file-manager/fm-icon-view.c:
(icon_container_compare_icons_callback): Update to respect
directories_first setting.
(icon_container_compare_icons_by_name_callback): Update for API
change only.
(fm_icon_view_sort_directories_first_changed): Override virtual
function; re-sort icon container if in auto-layout mode.
(fm_icon_view_initialize_class): Install virtual function override.
* src/file-manager/fm-list-view.c:
(fm_list_view_initialize_class): Install virtual function override.
(list_view_compare_files_for_sort): New function, broken out of
fm_list_view_compare_rows, and changed to respect directories_first
setting.
(fm_list_view_compare_rows): Break out list_view_compare_files_for_sort.
(compare_rows_by_name): Update for API change only.
(real_sort_directories_first_changed): Override virtual function;
re-sort list.
(fm_list_view_display_pending_files): Update code that sorts
pending items before adding them to list.
(fm_list_view_sort_items): Add comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Finished bug 4875 (design for running arbitrary scripts on
selected items)
There are lots of ways this could be improved, but I've
finished the first pass at this feature. We'll need to get
feedback before deciding how to improve it later. Please
play with it -- hopefully it is self-explanatory. Start by
selecting Scripts > Open Scripts Folder.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(compare_by_name_cover): Simple cover for compare_by_name
that casts parameters.
(nautilus_file_list_sort_by_name): New public function.
* src/file-manager/nautilus-directory-view-ui.xml: Added name to
separators before "Open Scripts Folder" so they can be referred
to in code (shown/hidden)
* src/file-manager/fm-directory-view.c:
(get_scripts_directory): Create Scripts directory if it doesn't
exist; mark name of scripts directory for localization.
(add_numbered_menu_item): Add pixbuf parameter.
(add_application_to_bonobo_menu),
(add_component_to_bonobo_menu): pass NULL for pixbuf
(get_file_names_as_parameter_string): Changed name from
get_selected_file_names..., now takes file list as parameter.
(get_file_paths_or_uris_as_newline_delimited_string): New function.
(get_file_paths_as_newline_delimited_string),
(get_file_uris_as_newline_delimited_string): New functions, simple
covers for get_file_paths_or_uris...
(set_script_environment_variables): New function, sets some environment
variables up so scripts can use them.
(unset_script_environment_variables): New function, unsets those same
environment variables.
(run_script_callback): set/unset environment variables around calling
script.
(add_script_to_menus): add pixbufs for files
(reset_scripts_menu): sort scripts by name; hide separator after scripts
if there are no scripts
(notify_user_if_no_scripts_callback): Explain script behavior and
special environment variables in Details part of dialog.
(call_when_ready_on_scripts_directory): include attributes required to
get icon for file.
(open_scripts_folder_callback): Change error message for unexpected
case where scripts folder is nonexistent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 6738 (View as Web Page window closes if user follows bad
link). The shell was closing the window as part of its feature to
close windows when the underlying item is deleted.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_is_not_yet_confirmed): Added new function so we can
tell a file that's never been seen from one that we already have
information about.
* src/nautilus-window-private.h:
* src/nautilus-window-manage-views.c:
(viewed_file_changed_callback): Keep track of whether we have ever
seen the file for real, and only close the window if it was here
before and is now gone, rather than if it was never there. This is
a roundabout way to fix the problem reported, but seems like a
nice rule in any case. Also added FIXMEs to some questionable code
I found here.
(update_for_new_location): Set up the variable that is used to
check if we have ever seen the file for real.
* src/nautilus-about.c: Formatting tweaks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 6162 (need option to stop "xx items" from being
calculated for ftp:// locations)
Added a speed tradeoff preference for showing directory
counts. It's "local-only" for Beginner and "always" (but
changeable) for Intermediate/Advanced.
Fixed bug 1856 (fix hideous hack to kick-start embedded-text
reading when preference changes)
Fixed bug 2396 (properties window doesn't show/hide
"special flags" when preference changes)
* libnautilus-extensions/nautilus-directory-async.c:
(dequeue_pending_idle_callback): Update for name change.
(lacks_directory_count): Now checks preference by calling
nautilus_file_should_show_directory_item_count.
(should_get_directory_count_now): Renamed to add the "_now"
to help distinguish from
nautilus_file_should_show_directory_item_count.
(directory_count_start): Update for name change.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(emit_change_signals_for_all_files): New function, emits change
signals for self-as-file (if applicable) and all contained files.
(async_state_changed_one): New hash-table function, calls
emit_change_signals_for_all_files on a directory.
(async_data_preference_changed_callback): New preferences-changed
callback, calls async_state_changed_one on each directory.
(add_preferences_callbacks): Renamed from add_filtering_callbacks,
now adds callbacks for top-left text and item counts preferences.
(remove_preferences_callbacks): Renamed from remove_filtering_callbacks,
now removes callbacks for top-left text and item counts preferences.
(nautilus_directory_get_internal): Update for name change.
(nautilus_directory_emit_change_signals): renamed from
_emit_change_signals_deep to avoid recursion connotation.
(nautilus_directory_emit_metadata_changed),
(call_files_changed_free_list),
(call_files_changed_unref_free_list): Update for name change.
* libnautilus-extensions/nautilus-file.c:
(get_speed_tradeoff_preference_for_file): New utility function,
returns boolean based on local-ness of file and value of
specified speed-tradeoff preference.
(nautilus_file_should_get_top_left_text): Now calls
get_speed_tradeoff_preference_for_file.
(nautilus_file_should_show_directory_item_count): New function,
calls get_speed_tradeoff_preference_for_file.
(nautilus_file_get_directory_item_count),
(nautilus_file_get_deep_counts): Bail out early without computation
if _should_show_directory_item_count is FALSE.
(nautilus_file_changed): Update for name change.
* libnautilus-extensions/nautilus-file.h: Make
nautilus_file_should_show_directory_item_count public so the
preferences window can make UI decisions based on it.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add new preference
NAUTILUS_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS and wire up
default values and UI.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize), (fm_directory_view_destroy):
Remove hideous hack.
* src/file-manager/fm-properties-window.c:
(append_separator): Return widget instead of row number.
(attach_directory_contents_value_field): Return widget.
(update_visibility_of_table_rows): New helper function to
update visibility of a series of table rows & contained
widgets.
(update_visibility_of_item_count_fields): New function
to update visibility of directory item count widgetry.
(update_visibility_of_item_count_fields_wrapper): Simple
wrapper for above.
(remember_directory_contents_widget),
(append_directory_contents_fields): Remember item counts
widgetry so it can be shown/hidden later; set up prefs
callback; change signature for to pass window.
(create_basic_page), (create_permissions_page):
store table in window->details; update for changed signatures.
(append_special_execution_checkbox): Now takes window,
don't use GTK_EXPAND to avoid resizing column unnecessarily,
count number of special flags rows.
(remember_special_flags_widget),
(update_visibility_of_special_flags_widgets): New function
to update visibility of special flags widgetry.
(update_visibility_of_special_flags_widgets_wrapper):
Simple wrapper for above.
(append_special_execution_flags): Remember special flags
widgetry so it can be shown/hidden later; set up prefs
callback; change signature to pass window.
(real_destroy): free widget lists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 4427 (Should not execute text files by default).
Now it asks whether to run or display executable text files.
Advanced users can set a new preference.
* libnautilus-extensions/nautilus-stock-dialogs.h:
* libnautilus-extensions/nautilus-stock-dialogs.c:
(create_message_box): New bottleneck function, contains former
guts of show_message_box but doesn't call gtk_widget_show.
(show_message_box): Now just a simple wrapper for
calling create_message_box and showing the result.
(nautilus_show_info_dialog), (nautilus_show_warning_dialog),
(nautilus_show_error_dialog), (nautilus_show_yes_no_dialog),
(nautilus_show_error_dialog_with_details):
Renamed to add verb "show" to names.
(nautilus_run_simple_dialog): Renamed to add verb "run" to name.
(nautilus_create_question_dialog): New public function, does
not show the dialog yet so caller can add more buttons or
whatever before showing.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add new preference for
what to do when an executable text file is activated. It
defaults to "Ask" and is visible only at Advanced level.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.h: Moved
nautilus_file_contains_text into public header.
* src/file-manager/fm-directory-view.c:
(get_executable_text_file_action): New function, uses preference
and dialog (if necessary) to determine how to handle activating
an executable text file.
(activate_callback): Now handles executable text files specially
by using get_executable_text_file_action. Restructured the control
flow a little.
* components/music/nautilus-music-view.c: (set_album_cover),
(play_current_file), (nautilus_music_view_update):
* components/rpmview/nautilus-rpm-view-install.c:
(nautilus_rpm_view_install_done):
* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
(nautilus_summary_login_failure_dialog),
(generate_error_dialog):
* components/text/nautilus-text-view.c: (file_read_callback):
* libnautilus-extensions/nautilus-file-operations.c:
(confirm_empty_trash),
(handle_transfer_vfs_error), (handle_transfer_overwrite),
(nautilus_file_operations_copy_move),
(handle_new_folder_vfs_error),
(nautilus_file_operations_move_to_trash):
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout):
* libnautilus-extensions/nautilus-program-chooser.c:
(nautilus_program_chooser_show_no_choices_message):
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application):
* libnautilus-extensions/nautilus-volume-monitor.c:
(display_mount_status):
* src/file-manager/fm-desktop-icon-view.c:
(icon_view_create_nautilus_links):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_confirm_multiple_windows),
(real_file_limit_reached), (fm_directory_view_confirm_deletion),
(confirm_delete_from_trash), (report_broken_symbolic_link),
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file), (fm_report_error_setting_group),
(fm_report_error_setting_owner),
(fm_report_error_setting_permissions):
* src/file-manager/fm-properties-window.c: (set_custom_image):
* src/file-manager/fm-search-list-view.c: (load_location_callback),
(load_error_callback), (display_indexed_search_problems_dialog),
(real_file_limit_reached):
* src/file-manager/nautilus-indexing-info.c:
(update_file_index_callback),
(show_search_service_not_available_dialog):
* src/nautilus-application.c: (check_required_directories),
(nautilus_application_startup):
* src/nautilus-location-bar.c: (drag_data_received_callback):
* src/nautilus-property-browser.c: (remove_pattern),
(remove_emblem), (emblem_image_file_changed),
(add_pattern_to_browser), (add_color_to_browser),
(emblem_dialog_clicked):
* src/nautilus-sidebar.c: (receive_dropped_uri_list):
* src/nautilus-theme-selector.c: (add_theme_to_icons),
(theme_select_row_callback):
* src/nautilus-window-manage-views.c: (handle_unreadable_location),
(report_content_view_failure_to_user_internal),
(report_sidebar_panel_failure_to_user),
(nautilus_window_end_location_change_callback):
* src/nautilus-window-menus.c: (forget_history_if_confirmed),
(show_bogus_bookmark_window): Updated for dialog API name changes.
* libnautilus-extensions/nautilus-file.c: (get_description):
Lucky Aaron gets missing mime description complaints now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
could be faster)
Fixed bug 5687 (Sidebar flickers and CPU thrashes during
deep count calculation in properties window)
Changed the deep count calculation to send a specialized
signal when the in-progress count updates, instead of using
"file_changed", since many parts of the UI react to file_changed
by doing (in this case unnecessary) work. My stopwatch measurement
on a large directory showed that the time to calculate 20000
contained files went from 147 seconds to 8 seconds, and the CPU
usage pegged around 15% (formerly 100%).
* libnautilus-extensions/nautilus-directory-async.c:
(deep_count_callback): Call nautilus_file_changed only when
count is finished; call nautilus_file_updated_deep_count_in_progress
after every new higher value is computed.
* libnautilus-extensions/nautilus-file-private.h:
Added prototype for nautilus_file_updated_deep_count_in_progress.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_initialize_class): define "updated_deep_count_in_progres"
signal.
(nautilus_file_updated_deep_count_in_progress): send this new signal
for this file (which must be a directory) and any links pointing to
it.
* src/file-manager/fm-properties-window.c:
(attach_directory_contents_value_field): Make text field in properties
window react to new signal instead of "changed".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Finished bug 2146 (Properties window for desktop Trash
should show Trash properties). The last two changes were
to remove the "accessed" field for all directories, since
it seems useless, and to fill in the "where" field with
"on the desktop".
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_where_string): New function, calls
virtual function so trash and normal files can report
different strings.
(nautilus_file_get_string_attribute): Changed "parent_uri"
string attribute to "where", since it is not the parent_uri
in the Trash case.
* libnautilus-extensions/nautilus-file.h: Virtual function
pointer for get_where_string.
* libnautilus-extensions/nautilus-trash-file.c:
(trash_file_get_where_string),
(nautilus_trash_file_initialize_class): Supply get_where_string
function that returns "on the desktop".
* libnautilus-extensions/nautilus-vfs-file.c:
(vfs_file_get_where_string), (nautilus_vfs_file_initialize_class):
Supply get_where_string function that returns parent_uri string.
* src/file-manager/fm-properties-window.c:
(should_show_accessed_date): New function, returns FALSE for
directories and TRUE for other files.
(create_basic_page): Honor should_show_accessed_date, and use
"where" instead of "parent_uri" string attribute.
* src/file-manager/fm-search-list-view.c:
(real_get_column_specification): Use "where" instead of "parent_uri"
string attribute.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 2147 (NautilusFile for trash needs non-empty values for
more properties), bug 5652 (MIME type field appears but shouldn't
in properties window for Trash), and bug 4620 (trash sidebar
should show number of items).
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_new_from_relative_uri): Create trash file subclass
when appropriate.
(nautilus_file_info_missing): Rename so it can be used in other
source files.
(nautilus_file_get_date): New method that returns numeric dates.
(nautilus_file_get_date_as_string): Change to call
nautilus_file_get_date to get the numeric date.
(nautilus_file_get_file_type): Turn into a method.
* libnautilus-extensions/nautilus-merged-directory.h:
* libnautilus-extensions/nautilus-merged-directory.c:
(merged_call_when_ready): Rolled in the old
merged_callback_connect_directory function.
(merged_contains_file): Moved down to a more appropriate part of
the source file.
(nautilus_merged_directory_get_real_directories): New public
function for use by trash.
* libnautilus-extensions/nautilus-trash-file.c:
(trash_callback_hash), (trash_callback_equal),
(trash_callback_destroy), (trash_callback_check_done),
(trash_callback_remove_file), (ready_callback),
(real_file_changed_callback), (monitor_add_file), (add_real_file),
(trash_callback_remove_file_cover), (monitor_remove_file),
(remove_real_file), (add_real_file_given_directory),
(add_directory_callback), (remove_directory_callback),
(trash_file_call_when_ready), (trash_file_cancel_call_when_ready),
(trash_file_check_if_ready), (trash_file_monitor_add),
(trash_file_monitor_remove), (trash_file_get_file_type),
(trash_file_get_item_count), (trash_file_get_deep_counts),
(trash_file_get_date), (remove_all_real_files),
(nautilus_trash_file_initialize), (trash_destroy),
(nautilus_trash_file_initialize_class):
New code. First implementation of getting some attributes for the
merged trash. Gets list of directories from the
NautilusTrashDirectory object. The code in here is similar to the
NautilusMergedDirectory class and at some point perhaps we can
make the two share more.
* libnautilus-extensions/nautilus-vfs-file.c:
(vfs_file_get_file_type), (vfs_file_get_date),
(nautilus_vfs_file_initialize_class): Implement the two new
methods for the standard vfs case.
Fixed various things that affect the properties window for the
trash that showed up while I was testing the above work:
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_name_for_regular_file),
(nautilus_icon_factory_get_icon_name_for_file): Move trash special
case out so it doesn't matter what type the trash seems to be. The
old code relied on trash not being a directory.
* src/file-manager/fm-properties-window.c:
(create_properties_window), (create_properties_window_callback),
(cancel_create_properties_window_callback),
(directory_view_destroyed_callback), (remove_pending_file): Rework
code to fix problems where the timed wait or the signal handler
wasn't properly cleaned up.
Fixed remaining bit of bug 5631 (Tear-offs of right-click menus
don't work.):
* src/file-manager/nautilus-desktop-icon-view-ui.xml: Mark Disks
right-click submenu so it won't get a tear-off item.
Fixed bug 5650 (nautilus --quit fails to return to prompt
sometimes):
* src/nautilus-application.c: (nautilus_application_startup): Add
special case so "nautilus --quit" doesn't hang waiting for a
response from the (now quit) "server" instance of Nautilus.
* src/nautilus-shell-interface.idl: Had to make the quit call no
longer be "oneway" to get it to work right, otherwise the quit
message could be lost when the sending application exited too
fast.
Fix bug 5675 (Nitpicks in new "could not be moved to new special
location" dialog):
* libnautilus-extensions/nautilus-file-operations.c:
(handle_transfer_overwrite): Updated message wording as Eli (and
Vera) suggest.
Other changes:
* libnautilus-extensions/nautilus-view-identifier.c:
(get_lang_list): Fix comment and a small storage leak in the case
where lang_with_locale is non-NULL but empty.
* po/POTFILES.ignore: Obsolete file, no longer used.
* src/file-manager/fm-desktop-icon-view.c:
(update_home_link_and_delete_copies): Update comment to help
translators understand better.
* libnautilus-extensions/nautilus-directory-async.c:
(directory_load_callback): Added a new assertion that could help
in future gnome-vfs debugging.
* libnautilus/nautilus-view-component.idl: Removed long-ago-fixed
FIXME comment.
* src/nautilus-window-manage-views.c: Tweak spacing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Nautilus_View_history_changed):
* src/nautilus-view-frame.c: (send_history): Added a check for
NULL so we don't try to send a NULL history list through the
history machinery.
Fix bug 5360 ("menthos's Home" string is hard to translate):
* src/file-manager/fm-desktop-icon-view.c:
(update_home_link_and_delete_copies): Added comment to help
translators understand what to do with "%s's Home".
Fix bug 5641 ("xfree" does not work with newer versions of RPM 4
headers):
* components/services/install/lib/eazel-package-system-rpm3.c:
(eazel_package_system_rpm3_packagedata_fill_from_header): Just
use "free" instead of "xfree".
Fix bug 5631 (Tear-offs of right-click menus don't work):
* src/nautilus-shell-ui.xml:
* src/file-manager/nautilus-directory-view-ui.xml:
* src/file-manager/nautilus-icon-view-ui.xml:
Mark popups and submenus of the popups with tearoff="0" so they
don't have tear-off menu items.
More work on bug 2147 (NautilusFile for trash needs non-empty
values for more properties).
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_new_from_relative_uri),
(nautilus_file_new_from_info), (nautilus_file_monitor_add),
(nautilus_file_monitor_remove),
(nautilus_file_get_directory_item_count),
(nautilus_file_get_deep_counts), (nautilus_file_check_if_ready),
(nautilus_file_call_when_ready),
(nautilus_file_cancel_call_when_ready):
Put more of the machinery in place to make enough of NautilusFile
virtual so that we can implement the trash case.
* libnautilus-extensions/nautilus-merged-directory.h:
* libnautilus-extensions/nautilus-merged-directory.c:
(merged_add_real_directory),
(nautilus_merged_directory_add_real_directory),
(merged_remove_real_directory),
(nautilus_merged_directory_remove_real_directory),
(remove_all_real_directories),
(nautilus_merged_directory_initialize_class):
Make adding and removing directories use signals so we can share
this list with the NautilusTrashFile.
* libnautilus-extensions/nautilus-trash-file.c:
(add_directory_callback), (remove_directory_callback),
(nautilus_trash_file_initialize), (trash_destroy):
Use a NautilusTrashDirectory object for the list of directories.
* libnautilus-extensions/nautilus-vfs-file.c:
(vfs_file_monitor_add), (vfs_file_monitor_remove),
(vfs_file_call_when_ready), (vfs_file_cancel_call_when_ready),
(vfs_file_check_if_ready), (vfs_file_get_item_count),
(vfs_file_get_deep_counts), (nautilus_vfs_file_initialize_class):
Move the guts of these functions into the "VFS" subclass.
Other stuff:
* libnautilus-extensions/nautilus-trash-directory.c:
(find_directory_start), (find_directory_end),
(find_directory_callback), (add_volume), (remove_trash_volume):
Fix bug in the recently-added timed-wait, to handle the case where
the call is cancelled as well as the case where it succeeds or
fails.
* src/file-manager/fm-directory-view.c:
(zoomable_set_zoom_level_callback): Formatting tweak.
* src/nautilus-main.c: (main): Fix the FIXME.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A cut at an ability to build without Medusa, starting with a patch
that Eric Fischer wrote. This change is not fully tested.
Fixed bug 5513 ("nautilus --help" displays "Help options" twice).
* acconfig.h: Add HAVE_MEDUSA.
* configure.in: Add code to detect HAVE_MEDUSA.
* libnautilus-extensions/nautilus-customization-data.c:
(nautilus_customization_data_destroy), (load_name_map_hash_table):
Added a FIXME.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-trash-file.h:
* libnautilus-extensions/nautilus-trash-file.c:
(nautilus_trash_file_initialize), (trash_destroy),
(nautilus_trash_file_initialize_class):
* libnautilus-extensions/nautilus-vfs-file.h:
* libnautilus-extensions/nautilus-vfs-file.c:
(nautilus_vfs_file_initialize), (vfs_destroy),
(nautilus_vfs_file_initialize_class):
Initial cut at breaking out the special trash version of
NautilusFile. Sadly we need this as well as
NautilusTrashDirectory.
* src/file-manager/fm-search-list-view.c:
(load_location_callback): Add _() so things get localized and put
the code to compose the indexing message inside ifdef HAVE_MEDUSA.
* src/file-manager/nautilus-indexing-info.h:
* src/file-manager/nautilus-indexing-info.c:
Put HAVE_MEDUSA ifdefs around most of this file.
(get_text_for_progress_label): Mark string for translation.
(update_progress_display): Remove code to "handle" timeout left
around after dialog is destroyed.
(update_file_index_callback): Change error messages to be more
easily localizable. Use nautilus_error_dialog instead of
gnome_error_dialog.
(timeout_remove_callback): Get rid of the timeout when the object
is destroyed.
(show_index_progress_bar): Connect handler to get rid of the
timeout when the object is destroyed.
(show_indexing_info_dialog): Move code that puts up dialog into a
new function. Also use nautilus_gtk_window_present to put up a
window. Change the NautilusLabel to use line wrapping.
(show_search_service_not_available_dialog): Put this dialog in its
own function so you can use it multiple times.
(nautilus_indexing_info_request_reindex): Put HAVE_MEDUSA around
the content of this function.
(nautilus_indexing_info_get_last_index_time): Put HAVE_MEDUSA
around the function, with a small simple implementation for the
other case.
(nautilus_indexing_info_show_dialog): Put HAVE_MEDUSA around the
function, with a small invocation of the "not available" dialog.
* src/nautilus-main.c: (main): Remove redundant AUTOHELP.
* src/nautilus-search-bar-criterion.c: (make_emblem_value_menu):
Fix emblem_name storage lifetime problem.
* src/file-manager/fm-icon-view.c: Whitespace tweak.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 5067 (Moving a file doesn't update the directory in the
link hash table).
Fixed bug 5366 (error when passing two directories on the command
line).
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_remove_file): Change code that was doing "==
FALSE" which is not such good style.
(nautilus_directory_notify_files_moved): Change to properly update
file names in all cases and to update the directory with a new
nautilus_file_set_directory function.
* libnautilus-extensions/nautilus-file-private.h: Moved the
Knowledge enum up here. I was going to make a change that required
it, and now I don't feel like moving it back.
* libnautilus-extensions/nautilus-file.h: Add
nautilus_file_set_directory (and reformat).
* libnautilus-extensions/nautilus-file.c: (is_self_owned),
(destroy): Moved is_self_owned so the destroy function can use it.
(update_info_internal): Call the update_links functions before
(nautilus_file_set_directory): New function that changes the
parent directory and updates everything appropriately.
(nautilus_file_mark_gone): Added a check that the file is not
already marked gone.
* src/nautilus-main.c: (main): Sort the command-line options, add
some single-character versions, add code to initialize the
"geometry" variable for the case where the option is not passed,
removed some unused code that sets start_desktop twice.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix bug 4919 (Tree view crashes when you expand and collapse the
root node). I did this by changing the design of file attribute
forgetting, which I implemented recently - now when you forget an
attribute, it is merely marked out of date, not thrown away; the
old value is still available until the fresh value is actually
loaded. This fixes other potential UI problems with the old
approach but I am not sure if bugs were filed for those.
* libnautilus-extensions/nautilus-file-private.h: Added new
is_up_to_date booleans, converted all booleans and the
RequestStatus enum to bitfields. This saved 200-300k or so for me
on runs of Nautilus with the tree view on and expanded a lot.
* libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c:
(nautilus_file_invalidate_attributes_internal,
nautilus_file_invalidate_attributes,
nautilus_file_invalidate_all_attributes): Renamed to match new
semantics.
(update_info_internal): Mark file info up to date.
(invalidate_directory_count), (invalidate_deep_counts),
(invalidate_mime_list), (invalidate_top_left_text),
(invalidate_file_info), (invalidate_activation_uri): renamed from
forget_*, and changed to only mark the attributes invalid, not
actually throw them out.
* libnautilus-extensions/nautilus-directory-async.c:
(lacks_directory_count, lacks_top_left, lacks_info,
lacks_mime_list, lacks_activation_uri): Check _is_up_to_date bit
for relevant attribute, not got_ or _failed bits. If the info is
out of date, we want to retry eve if we already got it or it
already failed.
(directory_count_callback, mime_list_callback,
top_left_read_callback, get_info_callback,
activation_uri_read_done): Mark corresponding attributes up to
date.
(dequeue_pending_idle_callback): Mark directory_count and
mime_list up to date if appropriate.
(file_info_start): Mark file info up to date on invalid URI error.
(nautilus_directory_invalidate_counts): Mark directory count and
mime list out of date, but do not forget them.
(nautilus_directory_invalidate_file_attributes): Renamed.
(nautilus_directory_force_reload): Deal with rename.
(cancel_loading_attributes,
nautilus_directory_cancel_loading_file_attributes): Replace forget
with invalidate in some comments.
* libnautilus-extensions/nautilus-link.c
(forget_file_activation_uri): Handle function renames.
* src/nautilus-window-manage-views.c
(nautilus_window_begin_location_change): Likewise
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bugs 4385 (Nautilus doesn't gracefully handle deleting
in-use image file), 3240 (reloading a directory doesn't update
directory counts of the entries) and 4683 (embedded text on icon
isn't updated when text changes) by implementing forgetting of
file attributes and using it when appropriate.
Also fixed various other bugs cought by testing of these fixes or
reading the code.
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_forget_attributes): New function that makes the
file forget the specified attributes, including cancelling
possible in-progress I/O for them, and kicking off new I/O if
anyone is monitoring any of the attributes or has a pending
call_when_ready.
(nautilus_file_forget_attributes_internal): Forget all attributes
of this file, *not* including cancelling in-progress I/O, or
kicking off new I/O. This is for the benefit of NautilusDirectory
being able to forget the attributes of all files it is monitoring
at one go.
(nautilus_file_forget_all_attributes): Forget all attributes of
this file, including cancelling in-progress I/O, and kicking off
new I/O.
(forget_directory_count, forget_deep_counts, forget_mime_list,
forget_top_left_text, forget_file_info, forget_activation_uri):
Helper functions to forget individual attributes.
(nautilus_file_forget_activation_uri): Removed as obsolete.
(destroy): use `nautilus_g_list_free_deep' to free the mime list.
* libnautilus-extensions/nautilus-directory-notify.h: Remove
prototype for `nautilus_file_forget_activation_uri'.
* libnautilus-extensions/nautilus-file-private.h: Prototype
`nautilus_file_forget_attributes_internal'.
* libnautilus-extensions/nautilus-file.h:
`nautilus_file_forget_attributes' and
`nautilus_file_forget_all_attributes'.
* libnautilus-extensions/nautilus-link.c
(nautilus_link_local_set_link_uri): Use
`nautilus_file_forget_attributes', not
`nautilus_file_forget_activation_uri' to ensure reload of the
activation URI.
(forget_file_activation_uri): Helper function for the above.
* libnautilus-extensions/nautilus-directory-async.c
(nautilus_directory_cancel_loading_file_attributes): Function to
cancel in-progress I/O for a given set of attributes but only if
it is in progress for the specified file. This function is used to
implement part of `nautilus_file_forget_attributes'.
(cancel_directory_count_for_file, cancel_deep_counts_for_file,
cancel_mime_list_for_file, cancel_top_left_text_for_file,
cancel_file_info_for_file, cancel_activation_uri_for_file): Helper
functions for the above.
(nautilus_directory_force_reload): Add a `file_attributes'
argument and make sure to forget the specified
attributes. Forgetting the attributes fixes bugs 3240 and 4683.
(nautilus_directory_forget_file_attributes): Function to forget
the specified attributes for all files. It makes sure to only
cancel and kick off new I/O once.
(cancel_loading_attributes): helper function for the above that
cancels in-progress loads for the specified attributes, regardless
of for what file.
(request_is_satisfied): The request is not satisfied if the
request calls for top left text and the file lacks it.
(top_left_read_callback): Set 1got_top_left_text' field of the
NautilusFile to TRUE. This problem was masked by the problem with
`request_is_satisfied' fixed above.
(set_up_request_by_file_attributes): Make sure to request the
file_info as well if top left text is requested, since
applicability of top left text depends on the mime type.
(get_info_callback): Mark the file gone if we get
GNOME_VFS_ERROR_NOT_FOUND; we can only get this error for files
gnome-vfs should know about but that do not exist. This is needed
to detect files that are removed on a reload.
* libnautilus-extensions/nautilus-directory-private.h: Update
prototype for `nautilus_directory_force_reload'; Prototype
`nautilus_directory_cancel_loading_file_attributes'
* libnautilus-extensions/nautilus-vfs-directory.c
(vfs_file_monitor_add): Pass the file attributes to
`nautilus_directory_force_reload' since it now wants them.
* src/nautilus-window-manage-views.c
(viewed_file_changed_callback): Cancel location change before
closing the window, since detecting the file is gone is now likely
to happen in the middle of an in-progress reload, and we get
crashes if this is not done.
(nautilus_window_begin_location_change): If we're doing a reload,
forget all file attributes of the NautilusFile for the currently
viewed location. This is to make sure we detect if the file is
gone, and also update the sidebar panel icon and other info
appropriately. This fixes bug 4385.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libnautilus-extensions/nautilus-ctree.c (ctree_is_hot_spot):
Expand margins around expander by 3 pixels on each side to make it
easier to click the disclosure triangle (triangle will prelight
when within range), to fix bug 4479
Fix bugs 4497 (Add configuration option to show only folders in
tree view) and 2419 (Tree view should track "show hidden files"
preference):
* components/tree/nautilus-tree-view.c:
(nautilus_tree_view_should_skip_file,
nautilus_tree_view_insert_model_node,
nautilus_tree_view_remove_model_node,
nautilus_tree_view_update_model_node): Handle possibly filtering
out hidden files, backup files or non-directories.
(filtering_changed_callback,
nautilus_tree_view_initialize): Initialize from and watch
filtering preferences, reload whole tree when prefs change.
(nautilus_tree_view_destroy): Stop watching filtering prefs.
(reload_model_node, reload_whole_tree, expand_node_for_file,
nautilus_tree_view_receive_dropped_icons): Update code for
reloading the tree on expand/collapse etc.
* components/tree/nautilus-tree-model.c
(nautilus_tree_model_directory_files_added_callback): Check if we
already have a node for each file before trying to create a new
one. This was needed because otherwise chaning the preference
settins mentioned above would result in crashes.
* libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c:
(nautilus_file_is_hidden_file, nautilus_file_is_backup_file,
nautilus_file_should_show,
filter_hidden_and_backup_partition_callback,
nautilus_file_list_filter_hidden_and_backup): Move hidden file and
backup file filtering logic here from fm-directory-view.c.
* src/file-manager/fm-directory-view.c (queue_pending_files): Use
`nautilus_file_list_filter_hidden_and_backup' to do filtering.
* libnautilus-extensions/nautilus-global-preferences.h,
libnautilus-extensions/nautilus-global-preferences.c
(global_preferences_create_dialog, global_preferences_register):
Add a new preference for showing only directories in the tree
view.
* libnautilus-extensions/nautilus-preferences-dialog.c: Make
preferences dialog a bit bigger to accomodate the new setting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(some vestiges of wait_until_ready remain in the farther reaches
of the UI).
* libnautilus-extensions/nautilus-mime-actions.h,
libnautilus-extensions/nautilus-mime-actions.c
(nautilus_mime_actions_check_if_required_attributes_ready,
nautilus_mime_actions_get_required_file_attributes,
nautilus_mime_actions_wait_for_required_file_attributes): New
functions to help with monitoring or waiting for required
attributes for the nautilus mime API.
(nautilus_mime_get_default_action_type_for_file,
nautilus_mime_get_default_action_for_file,
nautilus_mime_get_default_application_for_file_internal,
nautilus_mime_get_default_application_for_file,
nautilus_mime_is_default_application_for_file_user_chosen,
nautilus_mime_get_default_component_for_file_internal,
nautilus_mime_get_default_component_for_file,
nautilus_mime_is_default_component_for_file_user_chosen,
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_has_any_applications_for_file,
nautilus_mime_get_all_components_for_file,
nautilus_mime_has_any_components_for_file,
nautilus_mime_set_default_action_type_for_file,
nautilus_mime_set_default_application_for_file,
nautilus_mime_set_default_component_for_file,
nautilus_mime_set_short_list_applications_for_file,
nautilus_mime_set_short_list_components_for_file,
nautilus_mime_add_application_to_short_list_for_file,
nautilus_mime_remove_application_from_short_list_for_file,
nautilus_mime_add_component_to_short_list_for_file,
nautilus_mime_remove_component_from_short_list_for_file,
nautilus_mime_extend_all_applications_for_file,
nautilus_mime_remove_from_all_applications_for_file,
mime_type_get_supertype): Don't `nautilus_file_wait_until_ready'
for the required attributes; instead assert (Well, return_if_fail)
that they are available using
`nautilus_file_check_if_ready'. Also, use
`nautilus_file_get_uri_scheme' where possible.
* libnautilus-extensions/nautilus-directory-async.c
(mime_list_callback): Correct some coding mistakes.
* libnautilus-extensions/nautilus-wait-until-ready.h,
libnautilus-extensions/nautilus-directory.c: Remove
`nautilus_directory_wait_until_ready'.
* libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c
(nautilus_file_get_uri_scheme): new convenience function.
* libnautilus-extensions/nautilus-program-chooser.c:
(repopulate_program_list, is_application_default_for_file,
is_component_default_for_file,
is_component_in_short_list_for_file,
is_application_in_short_list_for_file,
program_file_pair_is_default_for_file,
program_file_pair_is_in_short_list_for_file,
add_to_short_list_for_file, remove_from_short_list_for_file,
remove_default_for_item, set_default_for_item): wait_until_ready
for required file attributes.
* libnautilus-extensions/nautilus-program-choosing.c:
(any_programs_available_for_file): wait_until_ready for required
file attributes.
* src/file-manager/fm-directory-view.c: (switch_location_and_view,
create_open_with_gtk_menu, reset_bonobo_open_with_menu,
activate_callback): Wait for the right file attributes.
* src/nautilus-applicable-views.c: (got_file_info_callback),
(nautilus_navigation_info_new): Wait for the right file
attributes. (no wait_until_ready).
* src/nautilus-sidebar.c: (nautilus_sidebar_destroy,
nautilus_sidebar_update_buttons, nautilus_sidebar_update_all),
nautilus_sidebar_set_uri): Monitor the file the sidebar is
displaying, and update when it's attributes change.
* src/nautilus-window-manage-views.c
(nautilus_window_set_content_view): Wait for the right file
attributes. (no wait_until_ready).
* src/nautilus-window.c: (nautilus_window_destroy,
view_menu_choose_view_callback, view_menu_vfs_method_callback,
nautilus_window_real_load_content_view_menu,
nautilus_window_load_content_view_menu): Wait for the right
attributes. (no wait_until_ready in this chain).
* test/test-nautilus-mime-actions-set.c (main): Wait for the right attributes.
* test/test-nautilus-mime-actions.c (main): Wait for the right attributes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c
(nautilus_file_get_file_info_result): Renamed and changed
interface.
* src/nautilus-applicable-views.c (got_file_info_callback,
nautilus_navigation_info_new, nautilus_navigation_info_cancel,
nautilus_navigation_info_free): Reorganize to use the new
NautilusFile features.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libnautilus-extensions/nautilus-directory-metafile.h,
libnautilus-extensions/nautilus-directory-metafile.c
(nautilus_directory_get_metadata, nautilus_directory_set_metadata,
nautilus_directory_get_metadata_list,
nautilus_directory_set_metadata_list,
nautilus_directory_get_boolean_metadata,
nautilus_directory_set_boolean_metadata,
nautilus_directory_get_integer_metadata,
nautilus_directory_set_integer__metadata): Bye bye to directory
metadata.
(set_metadata_string_in_metafile): don't worry about the directory
metadata case any more.
(nautilus_directory_get_boolean_file_metadata,
nautilus_directory_set_boolean_file_metadata,
nautilus_directory_get_integer_file_metadata,
nautilus_directory_set_integer_file_metadata): Helper functions
for implementing NautilusFile metadata convenience wrappers.
* libnautilus-extensions/nautilus-file.h,
libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_boolean_metadata,
nautilus_file_get_integer_metadata,
nautilus_file_set_boolean_metadata,
nautilus_file_set_integer_metadata): Convenience wrappers for
boolean or integer file metadata.
* libnautilus-extensions/nautilus-directory.h,
libnautilus-extensions/nautilus-directory.c
(nautilus_directory_initialize_class,
nautilus_directory_emit_metadata_changed): removed
"metadata_changed" signal.
(got_metadata_callback): Don't assert the file list is NULL.
(nautilus_self_check_directory): Use file metadata API.
* libnautilus-extensions/nautilus-metadata.h: No more
per-directory metadata, it's all per file now.
* libnautilus-extensions/nautilus-directory-background.h,
libnautilus-extensions/nautilus-directory-background.c
(nautilus_file_background_set_desktop,
nautilus_file_background_is_desktop,
nautilus_file_background_peek_theme_source,
nautilus_file_background_get_default_settings,
nautilus_file_background_read_desktop_settings,
nautilus_file_background_write_desktop_settings,
nautilus_file_background_write_desktop_default_settings,
call_settings_changed, nautilus_file_background_event_filter,
desktop_background_destroyed_callback,
nautilus_file_background_receive_root_window_changes,
nautilus_file_update_root_window, nautilus_file_background_is_set,
background_changed_callback, saved_settings_changed_callback,
nautilus_file_background_theme_changed, background_reset_callback,
background_destroyed_callback,
nautilus_connect_background_to_file_metadata,
nautilus_connect_desktop_background_to_file_metadata,
nautilus_connect_background_to_file_metadata_by_uri): Work off of
file metadata, not directory metadata, and thus take a
NautilusFile not a NautilusDirectory.
* libnautilus-extensions/nautilus-mime-actions.c:
(nautilus_file_wait_for_metadata,
nautilus_mime_get_default_action_type_for_uri,
nautilus_mime_get_default_application_for_uri_internal,
nautilus_mime_get_default_component_for_uri_internal,
nautilus_mime_get_short_list_applications_for_uri,
nautilus_mime_get_short_list_components_for_uri,
nautilus_mime_get_all_applications_for_uri,
nautilus_mime_get_all_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_extend_all_applications_for_uri,
nautilus_mime_remove_from_all_applications_for_uri,
get_explicit_content_view_iids_from_metafile): Use file metadata,
not directory metadata.
* src/file-manager/fm-directory-view.h,
src/file-manager/fm-directory-view.c
(fm_directory_view_get_directory_as_file): Function to access the
NautilusFile we now keep around that represents the directory
itself.
(fm_directory_view_initialize_class, files_have_any_custom_images,
compute_menu_item_info, fm_directory_view_activate_file,
fm_directory_view_load_uri, metadata_ready_callback,
disconnect_model_handlers, fm_directory_view_real_is_read_only,
showing_trash_directory): Use file metadata, not directory
metadata, and use the new `directory_as_file' field where
appropriate.
(finish_loading_uri): Monitor more files attributes (the ones
needed to get an icon, plus ones we might actually display in a
directory view.
* src/file-manager/fm-desktop-icon-view.c
(fm_desktop_icon_view_create_background_context_menu_items): Use
file metadata not directory metadata.
* src/file-manager/fm-icon-view.h,
src/file-manager/fm-icon-view.c: (set_sort_criterion,
tighter_layout_callback, fm_icon_view_get_directory_sort_by,
fm_icon_view_real_get_directory_sort_by,
fm_icon_view_set_directory_sort_by,
fm_icon_view_real_set_directory_sort_by,
fm_icon_view_get_directory_sort_reversed,
fm_icon_view_real_get_directory_sort_reversed,
fm_icon_view_set_directory_sort_reversed,
fm_icon_view_real_set_directory_sort_reversed,
fm_icon_view_get_directory_auto_layout,
fm_icon_view_real_get_directory_auto_layout,
fm_icon_view_set_directory_auto_layout,
fm_icon_view_real_set_directory_auto_layout,
fm_icon_view_get_directory_tighter_layout,
fm_icon_view_real_get_directory_tighter_layout,
fm_icon_view_set_directory_tighter_layout,
fm_icon_view_real_set_directory_tighter_layout, set_sort_reversed,
fm_icon_view_begin_loading, fm_icon_view_set_zoom_level,
sort_direction_callback, layout_changed_callback,
icon_container_preview_callback, icon_position_changed_callback):
Use file metadata not directory metadata.
* src/file-manager/fm-list-view.c: (fm_list_view_begin_loading,
fm_list_view_set_zoom_level, fm_list_view_sort_items): Use file
metadata not directory metadata.
* src/file-manager/fm-search-list-view.c (real_adding_file): Tweak
the code that monitors file attributes.
* components/music/nautilus-music-view.c
(nautilus_music_view_update_from_uri): Use the new
nautilus_file_background API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* components/tree/nautilus-tree-view.c:
(nautilus_tree_view_uri_to_name): Unescape the names of files for
display in the tree view. Fixes bug 2892 (tree displays files
with escaped characters).
* libnautilus-extensions/nautilus-directory-async.c:
(dequeue_pending_idle_callback): Fixed the structure here to make
it more clear that it's handling ref. counts correctly.
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-file.h:
Wrote better comments to explain the convenience cover functions.
* src/nautilus-window-menus.c: Got rid of some UIH stuff.
* src/nautilus-window-toolbars.c: (set_up_button),
(nautilus_window_initialize_toolbars),
(nautilus_window_toolbar_remove_theme_callback):
Changed commented-out code back to ifdef UIH.
* src/nautilus-window.c: (nautilus_window_clear_status),
(nautilus_window_set_status): Change to use the new Bonobo call
for setting status.
(navigation_bar_mode_changed_callback): Changed commented-out code
back to ifdef UIH.
(nautilus_window_constructed): Removed some status-bar-related
code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-10-09 Rebecca Schulman <rebecka@eazel.com>
Fixed bugzilla bug 3359, to create nautilus
file api call to get the error code for
when a get file info call failed
* libnautilus-extensions/nautilus-directory-async.c:
(get_info_callback):
Record the error received in the file structure
* libnautilus-extensions/nautilus-file-private.h:
store the error in a field in NautilusFile
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_info_failed):
Add new API call
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-10-06 Rebecca Schulman <rebecka@eazel.com>
* libnautilus-extensions/nautilus-directory-async.c:
* libnautilus-extensions/nautilus-directory-private.h:
(set_up_request_by_file_attributes),
(update_file_info_in_list_if_needed),
(dequeue_pending_idle_callback),
(nautilus_directory_call_when_ready_internal),
(nautilus_directory_get_info_for_new_files),
(lacks_slow_mime_type), (wants_slow_mime_type),
(request_is_satisfied), (start_monitoring_file_list),
(get_info_callback), (start_getting_file_info):
Added separate ability to get file info with a
slow mime type in addition to the regular info.
This call uses the same call chain, to get file info
as the default, except it calls the async_get_file_info
call with arguments to specify the mime type as slow.
Since the file info structure itself doesn't
keep track of what kind of mime type is returned,
we keep track of this in the nautilus directory
structure itself.
* libnautilus-extensions/nautilus-file-private.h:
Changed the file object to keep track of both
kinds of mime types, and use the default one,
unless specifically requested otherwise.
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
(nautilus_file_new_from_info), (destroy),
(nautilus_file_update_info),
(nautilus_file_compare_by_type),
(nautilus_file_get_string_attribute),
(nautilus_file_get_type_as_string),
(nautilus_file_get_slow_mime_type), (nautilus_file_get_mime_type),
(nautilus_file_is_mime_type):
Add and extra argument to update_info,
to describe how the mime type was received.
Altered the mime type call, and added a get_slow_mime_type
call. Free and update the new mime type fields where
appropriate.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item):
Added a comment about where we'll need to
add code to fix bug 690
* libnautilus-extensions/nautilus-mime-actions.c:
(get_mime_type_from_file):
Updated the mime type call here to request the
slow mime type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-09-08 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 2816, Home icon doesn't link to changed home directory.
The fix required a new private function that invalidates a NautilusFiles
activation URI and forces it to be reloaded.
* libnautilus-extensions/nautilus-directory-notify.h:
Added nautilus_file_changed () and nautilus_file_forget_activation_uri ()
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_changed),
(nautilus_file_forget_activation_uri):
New function that invalidates the activation URI and frees it and
sets got_activation_uri to FALSE so that it is reloaded.
* libnautilus-extensions/nautilus-file.h:
Removed nautilus_file_changed ()
* libnautilus-extensions/nautilus-icon-factory.c:
* libnautilus-extensions/nautilus-directory-async.c:
Added include to nautilus-directory-notify.h
* libnautilus-extensions/nautilus-link.c:
(nautilus_link_set_link_uri):
Added call to nautilus_file_forget_activation_uri ()
* src/file-manager/fm-desktop-icon-view.c:
(event_callback):
Removed debugging code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
nautilus_file_get_parent_uri into a _for_display
version and the standard "pure" one. We had callers
that wanted each type.
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_parent_uri_for_display):
New function, formats the result of get_parent_uri
for user-ready display.
(nautilus_file_get_parent_uri): Took out the format
code from this more basic function.
(nautilus_file_compare_by_directory_name): Use the
for_display version here.
(nautilus_file_get_string_attribute): Use the
for_display version here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed bug 1742 ("Move to Trash" in search view should work)
Fixed bug 1745 ("Delete from Trash" in search view should work)
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_parent_uri),
(nautilus_file_get_string_attribute):
made nautilus_file_get_parent_uri, and changed its name
(was nautilus_file_get_parent_uri_as_string)
* src/file-manager/fm-directory-view.h:
(contents_share_parent): New function pointer for subclasses
to optionally override. Subclasses should override to return
FALSE if their contents might be from different directories.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize_class): Wire up
contents_share_parent function pointer
(get_nautilus_file_from_directory): New helper function to
get a NautilusFile from a NautilusDirectory
(fm_directory_is_trash): Reimplemented to call existing
function nautilus_file_is_in_trash and avoid duplicating code.
(fm_directory_view_contents_share_parent): New function, calls
the virtual function
(real_contents_share_parent): New function, default implementation
that returns TRUE since normal directory views' contents are all
in the same parent directory.
(all_files_in_trash): New function, checks if every file in a
list is in the trash
(fm_directory_all_selected_items_in_trash): New function, calls
all_files_in_trash on selection or uses shortcut if
fm_directory_view_contents_share_parent is true.
(fm_directory_view_can_move_file_to_trash): Renamed from
fm_directory_can_move_to_trash, and now takes a file parameter
since the answer might vary on a file-by-file basis.
(fm_directory_view_confirm_deletion): Spruced up wording, and
now takes a list of uris instead of a list of files, and now
separately handles the case where only some of the selected files
had to be deleted immediately.
(fm_directory_view_trash_or_delete_selection): Rewrote to handle
three types of files separately: files that can be moved to the
trash, files already in the trash, and files that have to be
deleted in place.
(compute_menu_item_info): Changed "Delete..." to "Delete from Trash".
(fm_directory_view_real_create_selection_context_menu_items),
(reset_bonobo_trash_delete_menu):
use "Delete from Trash" only if all selected items in trash.
(fm_directory_view_real_update_menus): Update "Delete from Trash"
menu item also. Its sensitivity wasn't updating properly due to
this missing line.
* src/file-manager/fm-search-list-view.c:
(real_contents_share_parent): Overridden to return FALSE.
(fm_search_list_view_initialize_class): wire up function pointer
for contents_share_parent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-trash-directory.c:
(nautilus_trash_directory_initialize_class),
(nautilus_trash_directory_initialize),
(nautilus_trash_directory_destroy):
* libnautilus-extensions/nautilus-trash-directory.h:
* libnautilus-extensions/nautilus-vfs-directory.c:
(nautilus_vfs_directory_initialize_class),
(nautilus_vfs_directory_initialize),
(nautilus_vfs_directory_destroy):
* libnautilus-extensions/nautilus-vfs-directory.h:
Add subclasses for the trash and for general VFS directories.
Using refactoring techniques to move code down into these
subclasses. This is not intended to be a general framework,
but should be good enough to handle both these cases.
* libnautilus-extensions/nautilus-directory-async.c:
(can_use_public_metafile), (metafile_read_check_for_directory),
(metafile_read_failed), (metafile_read_start), (allow_metafile),
(metafile_write_success_close_callback),
(nautilus_metafile_write_start), (start_monitoring_file_list),
(get_corresponding_file), (start_getting_file_info):
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_directory_destroy), (make_uri_canonical),
(nautilus_directory_get_internal), (nautilus_directory_get_uri),
(construct_private_metafile_uri), (nautilus_directory_new),
(nautilus_directory_is_local), (nautilus_directory_is_not_empty),
(nautilus_self_check_directory):
* libnautilus-extensions/nautilus-directory.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_internal), (nautilus_file_rename),
(nautilus_file_get_gnome_vfs_uri), (nautilus_file_matches_uri),
(nautilus_file_compare_by_name),
(nautilus_file_compare_by_directory_name),
(nautilus_file_compare_for_sort), (nautilus_file_get_uri),
(nautilus_file_set_permissions),
(nautilus_file_get_string_attribute),
(nautilus_file_get_mime_type), (nautilus_file_is_in_trash),
(nautilus_file_contains_text), (nautilus_file_get_directory_name),
(nautilus_file_mark_gone), (nautilus_file_changed):
* libnautilus-extensions/nautilus-file.h:
Add code to handle case of directory that can't be handled by
gnome-vfs. Mostly some NULL checks. Also renamed fields to make
it clear that the text URI is the "real" one. Added code to
handle the "gnome-trash:" and "trash:" schemes specially in the
code to make URIs canonical.
* libnautilus-extensions/nautilus-mime-actions.c:
(get_mime_type_from_uri): Return "application/octet-stream"
instead of NULL for unknown MIME type.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_display_selection_info): Eliminated the
nautilus_file_get_real_name call.
* src/nautilus-switchable-navigation-bar.c:
(nautilus_switchable_navigation_bar_set_location): Eliminated
the nautilus_directory_is_search_directory call.
* src/file-manager/fm-search-list-view.c: (real_adding_file):
Fixed formatting mistake.
* src/nautilus-view-frame.c: (set_up_for_new_location): Emit
the title_changed signal for each change in location.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it to update appropriately).
The fix for this involved fixing bugs in nautilus_file_is_in_trash
and making emblems behave more flexibly. We now have the ability
to exclude certain emblems when displaying a file, so that
the trash emblem shows up in search results but not regular
list view. A happy side effect of the way this works is that
the trash emblem now shows up in the sidebar for items (including
directories) that are anywhere in the trash.
* libnautilus-extensions/nautilus-file.h: Publicized names
of emblems NautilusFile adds based on file state, so that
file-displaying code could choose to exclude some of them.
This included changing their names to start with NAUTILUS_
* libnautilus-extensions/nautilus-file.c:
(compare_emblem_names): updated for emblem name changes.
(nautilus_file_get_emblem_names): updated for name changes.
Also, always include EMBLEM_NAME_TRASH for files in trash,
not just when the file is a search result. Soon we will be
able to eliminate nautilus_file_is_search_result entirely.
(nautilus_file_is_in_trash): Fixed several problems here.
Don't bother checking for NULL; use _get_uri not
_get_activation_uri so the test works at any point in the
life of a NautilusFile; free the uri string; initialize
trash_dir_uri so we don't try to unref an uninitialized
variable in some cases.
* libnautilus-extensions/nautilus-icon-factory.h,
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_emblem_icons_for_file): Added
parameter for emblem names to exclude when creating icons.
* libnautilus-extensions/nautilus-string-list.c:
(nautilus_string_list_new_from_string_list),
(nautilus_string_list_free), (nautilus_string_list_contains):
Made these functions allow NULL, as GList does.
(nautilus_self_check_string_list): Added tests of NULL handling.
* src/file-manager/fm-directory-view.h:
(get_emblem_names_to_exclude): New function pointer for subclasses
to override.
(fm_directory_view_get_emblem_names_to_exclude): New function for
subclasses to call.
* src/file-manager/fm-directory-view.c:
(real_get_emblem_names_to_exclude): New function, returns list
containing NAUTILUS_FILE_EMBLEM_NAME_TRASH, so directory views by
default don't show the trash emblem.
(fm_directory_view_initialize_class): Wire up
get_emblem_names_to_exclude.
(fm_directory_view_get_emblem_names_to_exclude): New function,
returns result of possibly overridden function pointer.
* src/file-manager/fm-icon-view.c: (get_icon_images_callback):
Use fm_directory_view_get_emblem_names_to_exclude when getting
emblems for each icon.
* src/file-manager/fm-list-view.c:
(fm_list_view_get_emblem_pixbufs_for_file):
Use fm_directory_view_get_emblem_names_to_exclude when getting
emblems for each icon.
* src/file-manager/fm-search-list-view.c:
(fm_search_list_view_initialize_class): Override
get_emblem_names_to_exclude with our real_get_emblem_names_to_exclude.
(real_get_emblem_names_to_exclude): New function, returns NULL, so
all emblems including the trash emblem will be displayed.
* src/nautilus-sidebar-title.c: (update_emblems):
Pass NULL for emblems-to-exclude when getting emblems for sidebar.
|
|
|
|
|
|
|
|
|
| |
* gnome-vfs-module/search-method.c: (do_read_directory),
(do_get_file_info): Set the SYMLINK flag when returning
those funky search symlinks. It turns out this doesn't
matter for the way we're using it in Nautilus now, but I
thought it did at the time I made the change, and it
is correct, so I'm checking it in anyway.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-08-09 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
(nautilus_file_is_nautilus_link):
Added new API to identify file as nautilus link.
* libnautilus-extensions/nautilus-directory-async.c:
(start_getting_activation_uris):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-link.h:
(nautilus_link_get_link_type):
New function that returns the type of link that the
link represents. Examples are home, trash and mount point.
* libnautilus-extensions/nautilus-volume-monitor.c:
(mount_device_mount), (mount_device_activate_cdrom), (eject_cdrom),
(mount_device_check_change), (add_mount_device),
(nautilus_volume_monitor_find_mount_devices), (remove_mount_link),
(nautilus_volume_monitor_is_volume_link):
Remove annoying debug code.
* src/file-manager/fm-desktop-icon-view.c:
(remove_old_mount_links):
Fixed link celanup code to use new API.
* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-08-09 Rebecca Schulman <rebecka@eazel.com>
Fixed bug 1843, so that search results are activated
as themselves.
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
(nautilus_file_get_real_parent_uri_as_string),
(nautilus_file_get_real_file),
(nautilus_file_get_real_parent_directory),
(nautilus_file_compare_by_real_directory),
(nautilus_file_get_string_attribute),
(nautilus_file_is_search_result), (nautilus_file_get_real_uri),
(nautilus_file_get_real_directory_name), (nautilus_file_mark_gone),
(nautilus_file_changed), (nautilus_file_check_if_ready),
(nautilus_file_call_when_ready),
(nautilus_file_cancel_call_when_ready):
added special checks to get the real file and directory,
and call them appropriately before opening a file.
renamed the nautilus_file_get_real_directory function to
nautilus_file_get_real_directory_name, and
made it private.
* libnautilus-extensions/nautilus-search-bar-criterion.h:
* libnautilus-extensions/nautilus-search-bar-criterion.c:
(nautilus_search_bar_criterion_human_from_uri),
(get_name_location_for):
fixed a starts_with that should have been "begins_with"
* src/file-manager/fm-directory-view.c:
(fm_directory_view_display_selection_info):
moved a misplaced function comment
* src/nautilus-switchable-navigation-bar.c:
(nautilus_switchable_navigation_bar_set_location):
added signalling to change to the search and location
bar appropriately with each location change
|
|
|
|
|
|
|
|
|
| |
2000-08-08 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
Fix FIXME 1887 - deleting files is now handled separately,
get rid of the old version that used a synch gnome vfs call.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-08-04 Mathieu Lacage <set EMAIL_ADDRESS environment variable>
first draft at the 1744 and 1761 tasks.
They depend on another one I have to finish first to mek them
work.
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_emblem_names), (nautilus_file_is_directory),
(nautilus_file_is_in_trash): add nautilus_file_is_in_trash
add test on search results to see if they are from the trash.
* libnautilus-extensions/nautilus-file.h: add nautilus_file_is_in_trash
* libnautilus-extensions/nautilus-search-bar-criterion.c:
(nautilus_search_bar_criterion_human_from_uri): add function.
* libnautilus-extensions/nautilus-search-bar-criterion.h: add function.
* src/file-manager/fm-search-list-view.c: (begin_loading_callback),
(fm_search_list_view_initialize): hoook onto the directoryview signals
to tell the view that the title is a new better one.
* src/nautilus-simple-search-bar.c:
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* data/top/Makefile.am: Install the new ".link" files.
* data/top/Computer: Renamed from Computer.link and added the new stuff
needed for the MIME magic.
* data/top/Computer.link: [deleted]
* data/top/Services: Renamed from Services.link and added the new stuff
needed for the MIME magic.
* data/top/Services.link: [deleted]
* components/tree/nautilus-tree-view.c: (queue_pending_files):
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_string_attribute):
Get rid of all use of nautilus_link_get_display_name since
links all have plain names now.
* libnautilus-extensions/nautilus-directory-async.c:
(set_up_request_by_file_attributes): Fix bug that was causing the
program to get the activation URI for every single icon. Lots of
extra I/O! Also changed it to get the file info first since the
activation URI is now based on MIME type.
(lacks_activation_uri): Don't try to get the activation URI until
after the file info is there.
(activation_uri_done),
(activation_uri_read_done),
(activation_uri_nautilus_link_read_callback),
(activation_uri_gmc_link_read_callback),
(start_getting_activation_uris):
Changed the code to read the activation URI to use MIME type,
so now it doesn't have to open every file just to find out if it's
a GMC link.
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_get_desktop_directory): Get rid of a tiny bit of dead code.
* libnautilus-extensions/nautilus-file.h:
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_contains_text): No need to special-case the link
file any more because its MIME type will now make it clear it's
not a text file. Also removed nautilus_file_activate_custom since
it's not needed any more and moved the logic into
fm-directory-view.c.
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file): Added FIXMEs.
* libnautilus-extensions/nautilus-link-set.c:
(nautilus_link_set_install): Changed comments to not call link files
".link" files.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_for_ui): Removed the
NAUTILUS_PREFERENCES_SHOW_REAL_FILE_NAME preference since we no
longer have to lie about file names to make ".link" files
palatable.
* libnautilus-extensions/nautilus-link.h:
* libnautilus-extensions/nautilus-link.c: (nautilus_link_create):
Added code that notifies the NautilusFile framework that a new file
has been created, so callers don't have to worry about that.
(nautilus_link_is_link_file): Simplified the code -- turned it into
a one-liner.
(nautilus_link_set_icon): The old code had half NautilusFile calls
and half sync. I/O. Got rid of the NautilusFile stuff. Also put the
code in to notify the NautilusFile framework about the change to
the file.
(nautilus_link_get_root_property): Added FIXME.
(nautilus_link_get_additional_text): Added FIXME.
(nautilus_link_get_link_uri): Added FIXME.
Removed nautilus_link_get_display_name since it's not needed.
* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
Fixed GnomeVFSURI leak and turned a GnomeVFSURI into a text URI
with gnome_vfs_uri_to_string, rather than gnome_vfs_uri_get_path
which will not do anything useful.
* src/file-manager/fm-desktop-icon-view.c:
(mount_device_mount), (place_home_directory): Use
nautilus_get_uri_from_local_path instead of just sticking a
"file://" prefix on. Simplified by putting code to notify about
the link file into the link file create function. Some other
code cleanups and fixes of path/URI confusion.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize): Use NAUTILUS_N_ELEMENTS.
(fm_directory_view_display_selection_info), (queue_pending_files):
Get rid of use of nautilus_link_get_display_name.
(activate_callback): Added code to handle "command:" URIs, which
used to be in nautilus_file_activate_custom.
(fm_directory_view_activate_file): Get rid of call to the
nautilus_file_activate_custom function.
(set_trash_empty): Rewrote to simplify and fix some path/URI
confusion.
* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
Get rid of use of nautilus_link_get_display_name.
* src/nautilus-property-browser.c:
(nautilus_property_browser_drag_data_get), (remove_background),
(remove_emblem), (emblem_image_file_changed),
(add_background_to_browser), (emblem_dialog_clicked),
(make_properties_from_directory): Use
nautilus_get_uri_from_local_path instead of just sticking a
"file://" prefix on.
(get_xml_path): Use nautilus_make_path instead of just sticking
a "/" between the two pieces.
|