1. 28 Oct, 2001 1 commit
  2. 26 Sep, 2001 1 commit
  3. 01 Feb, 2001 1 commit
    • Gene Z. Ragan's avatar
      Additional work on first time druid gmc to nautilus conversion routines. · 93ea1a9d
      Gene Z. Ragan authored
      2001-02-01  Gene Z. Ragan  <gzr@eazel.com>
      
      	Additional work on first time druid gmc to nautilus conversion routines.
      
      	* src/nautilus-first-time-druid.c: (druid_finished),
      	(convert_gmc_desktop_icons), (transition_value_changed):
      
      	Make gmc link to Nautilus link conversion more complete
      
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	(nautilus_gnome_get_terminal_path):
      	New utility routine to return path to an installed terminal application
      
      	(nautilus_gnome_open_terminal):
      	Call above function
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_local_create),
      
      	(nautilus_link_local_create_from_gnome_entry):
      	New function to create a nautilus link from .desktop entry data
      
      	It's hard to be hated by millions.  Make gmc to nautilus link transition much better.
      	We now can support converted .desktop links that require a terminal. Also, get rid
      	of gnome-vfs symlinks and use the command: specifier to launch instead.  This was not possible
      	earlier, but due to a recent bug fix by me, we can now use this specifier in a
      	Nautilus link.
      
      	* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
      	(icon_view_create_nautilus_links),
      	(update_home_link_and_delete_copies),
      	(update_trash_link_and_delete_copies):
      93ea1a9d
  4. 13 Sep, 2000 1 commit
    • Darin Adler's avatar
      Fixed bugs in Nautilus link management, some other minor problems · a6a23a70
      Darin Adler authored
      	I encountered along the way, and did the first cut at a state
      	machine for NautilusViewFrame based on Maciej's design that can
      	mostly replace the super-complicated one for NautilusWindow.
      
      	* README: We no longer can use the ORBit that comes with HC1.2
      	with cvs HEAD, since warnings have been fixed in the code
      	generated by the newer ORBit, so fix that line in the README.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_new): Use the new nautilus_uri_is_trash
      	function to avoid hard-coding incorrect checks for "trash:".
      	(nautilus_directory_copy_move_metadata_key): Make simple fix for
      	empty metadata. This code gets replaced soon anyway.
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_can_accept_item): Simplify code to get rid of
      	illegal sync. I/O. It's OK to assume all NautilusLink objects
      	point to directories for now, and if we make a change to do
      	something fancier later, we have to do it with async.
      	(nautilus_drag_default_drop_action_for_icons): Use the new
      	nautilus_uri_is_trash function to avoid hard-coding incorrect
      	checks for "trash:".
      	* libnautilus-extensions/nautilus-drag.h: Fixed a typo.
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(get_link_name): Fix unintialized variable warning in a simple
      	way that avoids adding too much code.
      	(get_duplicate_name): Fix unintialized variable warning in a
      	simple way that avoids adding too much code.
      	(nautilus_file_operations_copy_move): Use the new
      	nautilus_uri_is_trash function to avoid hard-coding incorrect
      	checks for "trash:".
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_uri_is_trash): Add new function to avoid hard-coding
      	incorrect checks for "trash:".
      	(nautilus_make_uri_canonical), Use nautilus_uri_is_trash.
      
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	Remove nautilus_icon_container_trash_link_is_in_selection for 3
      	reasons. It doesn't belong in NautilusIconContainer, the use of it
      	in drag code was incorrectly looking at the destination
      	directory's selection, and it used sync. I/O.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(selection_includes_trash),
      	(nautilus_icon_container_receive_dropped_icons):
      	Changed code to actually check selection -- the old code would
      	check the selection in the target window. Unfortunately this still
      	uses sync. I/O, but that's now covered by bug 3020.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file): Change to use new
      	"local" API for links to make it clear that it uses sync. I/O and
      	only works on local files.
      
      	* libnautilus-extensions/nautilus-link.h:
      	* libnautilus-extensions/nautilus-link.c: (get_tag),
      	(get_link_type): Added functions to handle tags internally as part
      	of getting rid of tag string values from the API.
      	(nautilus_link_local_create): Changed name to local to emphasize this
      	takes a path not a URI and uses sync. I/O.
      	(local_set_root_property): Share code among the set
      	functions. Before there were a lot of copies of the same
      	code. Also made sure that it does no rewrite of the file if called
      	to set a property to the same value it already has.
      	(nautilus_link_local_set_icon),
      	(nautilus_link_local_set_link_uri),
      	(nautilus_link_local_set_type): Changed name to local to emphasize
      	these take a path not a URI and use sync. I/O.  Reimplement by
      	calling local_set_root_property.
      	(nautilus_link_local_get_additional_text): Change name to local
      	and make it take a path instead of a URI to make it clear it uses
      	sync.  I/O and doesn't work on remote URIs.
      	(nautilus_link_local_get_image_uri): Change name to local and make
      	it take a path instead of a URI to make it clear it uses sync.
      	I/O and doesn't work on remote URIs.
      	(nautilus_link_local_get_link_uri): Change name to local and make
      	it take a path instead of a URI to make it clear it uses sync.
      	I/O and doesn't work on remote URIs.
      	(nautilus_link_local_get_link_type): Change return value to be the
      	NautilusLinkType enum instead of the type tag string to make the
      	interface cleaner. Also changed name to local to make it clear
      	that it takes a path instead of a URI and uses sync. I/O.
      	(nautilus_link_local_is_volume_link),
      	(nautilus_link_local_is_home_link),
      	(nautilus_link_local_is_trash_link): Changed all three of these to
      	take advantage of the new simpler get_link_type, and changed name
      	to local to make it clear that they take a path instead of a URI
      	and use sync. I/O.
      
      	* src/file-manager/fm-desktop-icon-view.c: (create_mount_link):
      	Use call by new "local" name.
      	(trash_link_is_selection): Call new "local" function, which now
      	requires a path rather than a URI.
      	(fm_desktop_icon_view_trash_state_changed_callback): Use call by
      	new "local" name.
      	(volume_unmounted_callback): Fix bug where the unmounted callback
      	was using a path as a URI without converting.
      	(find_and_update_home_link): Use call by new "local" name.
      	(place_home_directory): Use call by new "local" name.
      	(find_and_rename_trash_link): Use call by new "local" name.
      	(create_or_rename_trash): Use call by new "local" name.
      	(remove_old_mount_links): Use call by new "local" name.
      	(get_sort_category): Use new get_link_type call and a case
      	statement instead of the old one and a list of string compares.
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_trash_link_in_selection): Wrote a new version of
      	this function. This is similar to what was in
      	NautilusIconContainer, but the one in there didn't belong there,
      	and didn't really work for other callers. Also, the one in there
      	didn't work at all for the list view case. This new function works
      	for either icon or list view. It still has the limitation that it
      	won't recognize a trash link if it's not local.
      
      	* src/file-manager/fm-icon-view.c:
      	(get_icon_drop_target_uri_callback): Fix to use new local calls, but
      	still does sync. I/O. Bug 3020 reported about that.
      	(get_icon_text_callback): Changed to use new local calls. Still a
      	problem that it works only locally and uses sync. I/O. Bug 2531 was
      	already reported about that.
      
      	* src/file-manager/fm-properties-window.c:
      	(get_and_ref_file_to_display): Changed to use new local calls and the
      	simpler link type interface.
      
      	* src/nautilus-view-frame-private.h: Moved some private
      	declarations here since they are for objects used in one file and
      	declared in another.
      
      	* src/nautilus-view-frame.h:
      	* src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client):
      	Destroy the "check if view is gone" timeout here; makes more sense
      	than the way it was managed before.
      	(nautilus_view_frame_destroy): Don't destroy the timeout here any
      	more. Also, label was moved into details.
      	(nautilus_view_frame_handle_client_gone): Renamed from
      	handle_client_destroy_2.
      	(view_frame_wait), (view_frame_underway),
      	(view_frame_wait_is_over), (view_frame_loaded),
      	(view_frame_failed): Added functions to implement view frame state
      	machine transitions.
      	(check_if_view_is_gone): Moved code to check if view is gone here;
      	it's now activated automatically without requiring an explicit
      	call to turn it on, since all callers were turning it on at
      	load_client time.
      	(nautilus_view_frame_load_client): Add state management. Moved the
      	code to turn on the object check timeout here.
      	(nautilus_view_frame_load_location): Add state management.
      	(nautilus_view_frame_open_location): Add state management.
      	(nautilus_view_frame_open_location_in_new_window): Add state management.
      	(nautilus_view_frame_open_in_new_window_and_select): Add state management.
      	(nautilus_view_frame_report_location_change): Add state management.
      	(nautilus_view_frame_report_selection_change): Add state management.
      	(nautilus_view_frame_report_status): Add state management.
      	(nautilus_view_frame_report_load_underway): Add state management.
      	(nautilus_view_frame_report_load_progress): Add state management.
      	(nautilus_view_frame_report_load_complete): Add state management.
      	(nautilus_view_frame_report_load_failed): Add state management.
      	(nautilus_view_frame_set_title): Add state management.
      	(nautilus_view_frame_zoom_level_changed): Add state management.,
      	(nautilus_view_frame_get_label), (nautilus_view_frame_set_label):
      	Moved label into details structure.
      
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_load_sidebar_panel): Fixed code structure a bit
      	(fixes bug 2463) and got rid of call to old
      	nautilus_view_frame_set_active_errors function, which is no longer
      	needed.
      	(nautilus_window_load_content_view): Got rid of call to old
      	nautilus_view_frame_set_active_errors function, which is no longer
      	needed.
      	* src/nautilus-window.c:
      	(window_update_sidebar_panels_from_preferences): Got rid of call
      	to old nautilus_view_frame_set_active_errors function, which is no
      	longer needed.
      a6a23a70
  5. 28 Aug, 2000 1 commit
    • Gene Z. Ragan's avatar
      Fixed bug #1942, Trash icon on desktop has "Move to Trash" in right-click · 64e33175
      Gene Z. Ragan authored
      2000-08-28  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug #1942, Trash icon on desktop has "Move to Trash" in
      	right-click menu.
      
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_is_home_link), (nautilus_link_is_trash_link),
      	(nautilus_link_can_accept_drag):
      	Rename path argument to uri.  The funciton can accrept
      	a URI.
      
      	* libnautilus-extensions/nautilus-link.h:
      	* src/file-manager/fm-directory-view.c: (trash_link_is_in_files),
      	(fm_directory_trash_link_in_selection),
      	(fm_directory_view_real_create_selection_context_menu_items):
      	New functions to identify if a Trash link is in the selection.
      64e33175
  6. 23 Aug, 2000 1 commit
    • Gene Z. Ragan's avatar
      Work in progress to support dragging onto NautilusLink files. Dragging on · 3184fe2b
      Gene Z. Ragan authored
      2000-08-22  Gene Z. Ragan  <gzr@eazel.com>
      
      	Work in progress to support dragging onto
      	NautilusLink files.  Dragging on the trash
      	still does not work.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(nautilus_icon_container_initialize_class),
      	(nautilus_icon_container_get_icon_uri),
      	(nautilus_icon_container_get_icon_drop_target_uri):
      	New signal to return the target URI of a drag target.
      	This was done to support dragging onto NautilyusLink files.
      
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_can_accept_item):
      	Add call to nautilus_icon_container_get_icon_drop_target_uri
      	and remove call to nautilus_icon_container_get_icon_uri
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	(nautilus_icon_container_find_drop_target):
      	Some code cleanup to fix a leak.
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_can_accept_drag):
      	New function that currently return TRUE for all links.
      
      	* src/file-manager/fm-icon-view.c: (get_icon_uri_callback),
      	(get_icon_drop_target_uri_callback), (create_icon_container):
      	Connect to new signal and add implementation.
      3184fe2b
  7. 22 Aug, 2000 2 commits
    • Gene Z. Ragan's avatar
      New function to allow the setting of the LINK property tp be the URI · f9ef1202
      Gene Z. Ragan authored
      2000-08-21  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_set_link_uri):
      	New function to allow the setting of the LINK property
      	tp be the URI passed in.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(find_and_rename_trash_link):
      	Change Trash link to use trash: uri insated of path to
      	trash directory. This code checks and verifies that
      	the trash link has this set properly on desktop launch.
      f9ef1202
    • Gene Z. Ragan's avatar
      Added a link type argument to API to allow caller to specify type of link. · 8e49569d
      Gene Z. Ragan authored
      2000-08-21  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_create):
      	Added a link type argument to API to allow caller to
      	specify type of link.
      
      	(nautilus_link_is_volume_link), (nautilus_link_is_home_link),
      	(nautilus_link_is_trash_link):
      	Renamed old constants to use _TAG at the end of old define.
      	The name of th eprevious define is now used in the
      	enumeration of link types.
      
      	* libnautilus-extensions/nautilus-link.h:
      	Added argument to nautilus_link_create and created
      	an enum to define the types of links.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(startup_create_mount_links), (volume_mounted_callback),
      	(place_home_directory), (create_or_rename_trash),
      	(get_sort_category):
      	Changed callers of nautilus_link_create to use new argument.
      
      	* src/file-manager/fm-properties-window.c:
      	(get_and_ref_file_to_display):
      	Changed callers of nautilus_link_create to use new argument.
      8e49569d
  8. 21 Aug, 2000 1 commit
    • Gene Z. Ragan's avatar
      Fixed bug 2137, renaming of trash causes a duplicate trash to appear. If · 610a7614
      Gene Z. Ragan authored
      2000-08-21  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug 2137, renaming of trash causes a duplicate trash to
      	appear.
      	If the user renames trash, it will get renamed back to Trash
      	when the desktop is restarted.  When we have individual file reneaming
      	permissions, this will never be an issue.
      
      	Fixed bug 2144, renaming home link on desktop causes a duplicate
      	to appear.
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_is_home_link), (nautilus_link_is_trash_link):
      	Two new functions to identify specific types of links
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize):
      	Trash link is now created here,
      
      	(find_home_link),
      	(place_home_directory):
      	Modified functions to handle situations where home link
      	has been renamed by the user.
      
      	(find_and_rename_trash_link),
      	(create_or_rename_trash):
      	New functions to handle creation of trash link.
      
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_new):
      	Moved creation of trash link to FMDesktopIconView
      610a7614
  9. 18 Aug, 2000 1 commit
    • Gene Z. Ragan's avatar
      New function. Identifies if link is a volume link. · af548730
      Gene Z. Ragan authored
      2000-08-18  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_is_volume_link):
      	New function.  Identifies if link is a volume link.
      
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	* libnautilus-extensions/nautilus-volume-monitor.h:
      	(nautilus_volume_monitor_initialize_class),
      	(mount_device_is_mounted), (mount_device_cdrom_set_state),
      	(mount_device_floppy_set_state), (mount_device_ext2_set_state),
      	(mount_device_set_state), (device_set_state_empty),
      	(mount_device_mount), (mount_device_activate_cdrom),
      	(mount_device_activate_floppy), (mount_device_activate_ext2),
      	(mount_device_activate), (eject_cdrom), (mount_device_deactivate),
      	(mount_device_do_nothing), (mount_device_check_change),
      	(mount_devices_update_is_mounted), (mount_device_floppy_add),
      	(mount_device_ext2_add), (mount_device_iso9660_add),
      	(mount_device_add_aliases), (add_mount_device),
      	(nautilus_volume_monitor_each_device),
      	(nautilus_volume_monitor_each_mounted_device),
      	(nautilus_volume_monitor_mount_unmount_removable),
      	(free_device_info), (get_iso9660_volume_name),
      	(get_ext2_volume_name), (get_floppy_volume_name):
      	Renamed DeviceInfo to NautilusDeviceInfo.
      	Removed all code that handled links and moved to
      	FMDesktopIconView.  Fixed creation of volume mounted signal
      	to have proper signature,
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize), (volume_mounted_callback),
      	(volume_unmounted_callback), (remove_old_mount_links):
      	Added signal handlers for mount and unmount signals emitted
      	by NautilusVolumeMonitor.  These handlers create and remove
      	mount links.
      af548730
  10. 17 Aug, 2000 1 commit
    • Darin Adler's avatar
      Remove extra parameters now that the initial files callback is gone. It · 56d7a027
      Darin Adler authored
      	* components/tree/nautilus-tree-model.c:
      	(nautilus_tree_model_monitor_node):
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(nautilus_directory_monitor_add_internal):
      	* libnautilus-extensions/nautilus-directory-background.c:
      	(nautilus_connect_background_to_directory_metadata):
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_file_monitor_add),
      	(nautilus_self_check_directory):
      	* libnautilus-extensions/nautilus-directory.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_monitor_add):
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(trash_file_monitor_add):
      	* libnautilus-extensions/nautilus-vfs-directory.c:
      	(vfs_file_monitor_add):
      	* src/file-manager/fm-directory-view.c: (finish_loading_uri):
      	* src/file-manager/nautilus-trash-monitor.c:
      	(nautilus_trash_metadata_ready_callback):
      	Remove extra parameters now that the initial files callback is
      	gone. It turns out emitting another files_added signal works just
      	fine. If it wasn't for the search list view, I could also merge
      	the "file_added" and "files_changed" signals easily. Both of these
      	changes would simplify the work on the virtual trash directory.
      
      	* libnautilus-extensions/nautilus-link.h:
      	* libnautilus-extensions/nautilus-link.c:
      	Get rid of NAUTILUS_LINK constant, which looked like a link type,
      	but was really an unrelated implementation detail.
      
      	* libnautilus-extensions/nautilus-icon-container.c: (sort_icons),
      	(resort), (lay_down_icons_tblr), (finish_adding_new_icons):
      	Removed the file-manager-specific stuff Gene added for the desktop.
      	I fight the continuing battle to keep NautilusIconContainer a
      	general icon container, and not just for the Nautilus icon view.
      	The drag code is still an exception to this that needs to be fixed
      	some day (for NautilusList too).
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize),
      	(get_local_path), (get_sort_category),
      	(desktop_icons_compare_callback):
      	Rewrote sorting code from NautilusIconContainer and moved it
      	here where it belongs.
      56d7a027
  11. 09 Aug, 2000 2 commits
    • Gene Z. Ragan's avatar
      Added new API to identify file as nautilus link. · 9f984d5d
      Gene Z. Ragan authored
      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.
      9f984d5d
    • Gene Z. Ragan's avatar
      Added ability to set the type of a NautilusLink, such as mount link, trash · 6f324925
      Gene Z. Ragan authored
      2000-08-09  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-link.c: (nautilus_link_create),
      	(nautilus_link_set_icon), (nautilus_link_set_type):
      	Added ability to set the type of a NautilusLink, such as
      	mount link, trash link, home link, etc.
      
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(mount_device_mount), (nautilus_volume_monitor_is_volume_link):
      	Specify that link is a mount link.
      
      	* src/file-manager/fm-desktop-icon-view.c: (place_home_directory):
      	Specify that link is a home link.
      
      	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
      	Specify that trash is a trash link.
      6f324925
  12. 31 Jul, 2000 1 commit
    • Darin Adler's avatar
      Mostly some tweaking on the recent link file work. · af9e74dc
      Darin Adler authored
      	* 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.
      af9e74dc
  13. 28 Jul, 2000 2 commits
    • Gene Z. Ragan's avatar
      OK. I made a booboo. Went back to using NautilusFile. I really do · 153a6423
      Gene Z. Ragan authored
      2000-07-28  Gene Z. Ragan  <gzr@eazel.com>
      
      	OK.  I made a booboo.  Went back to using NautilusFile.
      	I really do understand what is going on now.
      
      	NautilusFIle
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(activation_uri_gmc_link_read_callback):
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_contains_text), (nautilus_file_activate_custom):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file):
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_is_link_file), (nautilus_link_set_icon):
      	* libnautilus-extensions/nautilus-link.h:
      	* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
      153a6423
    • Gene Z. Ragan's avatar
      Changed the API to determine if file is link file to use path. · 803514af
      Gene Z. Ragan authored
      2000-07-27  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(activation_uri_gmc_link_read_callback):
      	Changed the API to determine if file is link file to use path.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_contains_text), (nautilus_file_activate_custom):
      	Changed the API to determine if file is link file to use path.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file):
      	Changed the API to determine if file is link file to use path.
      
      	* libnautilus-extensions/nautilus-link.c: (nautilus_link_create),
      	(nautilus_link_is_link_file), (nautilus_link_set_icon):
      	Changed the API to determine if file is link file to use path.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_destroy), (mount_device_mount),
      	(remove_mount_links), (place_home_directory):
      	More work on setting links icons.
      
      	* src/file-manager/fm-icon-view.c:
      	(get_icon_text_callback):
      	Changed the API to determine if file is link file to use path.
      
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_new):
      	Work in progress on setting up the Trash icon.
      803514af
  14. 27 Jul, 2000 1 commit
    • Gene Z. Ragan's avatar
      Renamed function nautilus_link_is_link_file_name to · 67e26909
      Gene Z. Ragan authored
      2000-07-26  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-link.h:
      	(nautilus_link_is_link_file):
      	Renamed function nautilus_link_is_link_file_name to
      	nautilus_link_is_link_fileand modified it to determine if
      	it is a link file using mime magic.  Function now takes
      	a NautilusFile * as the argument.
      
      	* libnautilus-extensions/nautilus-link-set.c: (link_set_path_name),
      	(create_new_link), (nautilus_link_set_is_installed),
      	(nautilus_link_set_remove):
      	Modified to use the new mime magic within the link file.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(activation_uri_gmc_link_read_callback):
      	Changed nautilus_link_is_link_file_name to nautilus_link_is_link_file.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(construct_alternate_metafile_uri):
      	Changed nautilus_link_is_link_file_name to nautilus_link_is_link_file.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_contains_text), (nautilus_file_activate_custom):
      	Changed nautilus_link_is_link_file_name to nautilus_link_is_link_file.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file):
      	Removed old way of identifying mount volume links in anticipation
      	of using mime magic.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize), (mount_device_mount),
      	(mount_device_floppy_add), (add_mount_device), (make_desktop_link),
      	(get_ext2_volume_name), (place_home_directory):
      	Removed old way of indentifying mount link files in anticipation
      	of using mime magic.
      	Work in progress on placing a home directory on the desktop.
      67e26909
  15. 26 Jul, 2000 1 commit
    • Darin Adler's avatar
      No parameters is indicated by "(void)" instead of "()". · 08b61728
      Darin Adler authored
      	* components/help/help-method.c: (help_uri_new): No parameters
      	is indicated by "(void)" instead of "()".
      	(help_uri_to_string): Changed to share more code (I think I might
      	have fixed a leak too).
      	(init_help_module): No parameters is indicated by "(void)"
      	instead of "()". Also fixed a bug where the wrong lock is unlocked.
      	(convert_file_to_uri): Use g_strcasecmp instead of strcmp since we
      	are checking MIME types.
      	(transform_file), (transform_absolute_file), (file_from_path),
      	(find_help_file), (transform_relative_file): Merged these so they
      	share a lot of common code.
      
      	* components/services/vault/command-line/vault-operations.c:
      	(vault_list): Fixed a g_strconcat that was missing a trailing NULL.
      
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-file-attributes.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(cancel_top_left_read), (top_left_read_done),
      	(top_left_read_callback), (top_left_read_more_callback),
      	(start_getting_top_lefts), Changed top_left code to use
      	nautilus_read_file calls.
      	(cancel_metafile_read),
      	Changed to reflect name changes in nautilus_read_file calls.
      	(cancel_get_activation_uri), (nautilus_directory_cancel),
      	(set_up_request_by_file_attributes),
      	(nautilus_async_destroying_file), (lacks_activation_uri),
      	(wants_activation_uri), (request_is_satisfied),
      	(activation_uri_found),
      	(activation_uri_nautilus_link_read_callback),
      	(activation_uri_gmc_link_read_callback),
      	(activation_uri_gmc_link_read_more_callback),
      	(start_getting_activation_uris),
      	(nautilus_directory_async_state_changed): Add code to fetch
      	activation URIs for either GMC or Nautilus-style link files.
      	(lacks_top_left): Changed to share common
      	nautilus_file_should_get_top_left_text function so we don't have
      	lots of different code reading the preferences about top-left
      	text.
      	(is_needy): Enhanced and renamed is_wanted so it takes into
      	account files that are and aren't interesting.
      	(start_getting_directory_counts), (deep_count_start):
      	(start_getting_file_info), Change to use is_needy.
      
      	* libnautilus-extensions/nautilus-directory.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	Tweaked spacing.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	Added a self_owned flag so we do better with files that don't have
      	parent directories and the fields to support activation_uri.
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(read_file_close_callback), (read_file_close),
      	(read_file_succeeded), (read_file_failed),
      	(read_file_read_callback), (read_file_read_chunk),
      	(read_file_open_callback), (nautilus_read_file_async),
      	(nautilus_read_entire_file_async), (nautilus_read_file_cancel):
      	Added a variation of the read file call that takes a function to
      	decide whether to keep reading or not.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_name), (nautilus_file_get),
      	(nautilus_file_get_parent_uri_as_string),
      	(get_file_for_parent_directory), (nautilus_file_rename),
      	(nautilus_file_get_gnome_vfs_uri),
      	(nautilus_file_get_uri),
      	Add code that handles the "self_owned" flag to make files without
      	parents work better.
      	(destroy): Fixed some leaks I noticed.
      	(nautilus_file_get_top_left_text),
      	(nautilus_file_should_get_top_left_text): Added this so that all
      	code can share a single call when deciding whether to get text
      	based on local vs. non-local.
      	(nautilus_file_get_activation_uri): Changed to work with new
      	async. code to fetch this.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_for_file): Call
      	nautilus_file_should_get_top_left_text.
      
      	* libnautilus-extensions/nautilus-link.h:
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_is_link_file_name): Named so it's clear it looks
      	at the file name only.
      	(xml_get_root_property), (nautilus_link_get_root_property):
      	Added these to share a lot of common code.
      	(nautilus_link_get_additional_text): Use the new calls.
      	(make_local_path), (icon_read_done_callback),
      	(nautilus_link_get_image_uri), (nautilus_link_get_link_uri),
      	(nautilus_link_get_display_name): Other cleanup and rewrite.
      	(nautilus_link_get_link_uri_given_file_contents): Add API that
      	can work with the async. I/O version.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(timed_wait_free), (nautilus_timed_wait_start):
      	Added some asserts.
      
      	* src/file-manager/fm-directory-view.c: (activate_callback),
      	(fm_directory_view_activate_file): Use call_when_ready and
      	the new async. stuff.
      
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_setting_group): Added a (low-quality) error
      	message for the case where you aren't alowed to change the
      	group of something.
      
      	* src/file-manager/fm-icon-view.c:
      	(icon_position_changed_callback): Added missing NULL in a call
      	to g_strconcat.
      	(get_icon_text_callback): Fix storage leak.
      
      	* src/file-manager/fm-properties-window.c:
      	(activate_owner_callback): Fixed a timed_wait_start/stop mismatch
      	that was causing an assert and other badness when you changed the
      	owner.
      
      	* src/file-manager/fm-search-list-view.c:
      	(get_attribute_from_column): Added a missing case to prevent a
      	crash, but had to put in a FIXME since the code isn't really working.
      
      	* src/nautilus-application.c: (nautilus_application_startup):
      	Fixed bug where you wouldn't see error messages on startup.  Also
      	improved one of the error messages by adding some blank lines.
      08b61728
  16. 24 Apr, 2000 1 commit
  17. 19 Apr, 2000 1 commit
  18. 18 Apr, 2000 1 commit
  19. 31 Jan, 2000 1 commit
    • Darin Adler's avatar
      Changed it to not attempt to create a GC just to measure the text. This · 58a9b33c
      Darin Adler authored
      	* nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_draw_text_box):
      	Changed it to not attempt to create a GC just to measure the text.
      	This makes it work when the widget is not realized.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	(nautilus_icons_view_icon_item_center_offset):
      	Changed the parameter type to NautilusIconsViewIconItem.
      
      	* fm-directory-view.c:
      	(stop_load):
      	(fm_directory_view_load_uri):
      	Fixed code so that if you stop loading more than once, or
      	stop before you even start, it won't send extra progress
      	requests to the Nautilus shell or call stop_monitoring
      	extra times on the NautilusDirectory object.
      
      	* nautilus-icons-view-icon-item.h:
      	nautilus-icons-view-icon-item.c:
      	gnome-icon-container-dnd.c:
      	Quick cleanup of the new NautilusIconsViewIconItem class.
      
      	* libnautilus/gdk-extensions.c:
      	libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gtkflist.c:
      	libnautilus/nautilus-background-canvas-group.c:
      	libnautilus/nautilus-background.c:
      	libnautilus/nautilus-debug.c:
      	libnautilus/nautilus-default-file-icon.c:
      	libnautilus/nautilus-directory.c:
      	libnautilus/nautilus-icon-factory.c:
      	libnautilus/nautilus-icons-controller.c:
      	libnautilus/nautilus-icons-view-icon-item.c:
      	libnautilus/nautilus-lib-self-check-functions.c:
      	libnautilus/nautilus-self-checks.c:
      	libnautilus/nautilus-string.c:
      	src/explorer-location-bar.c:
      	src/file-manager/dfos-corba.c:
      	src/file-manager/dfos-xfer-progress-dialog.c:
      	src/file-manager/dfos-xfer.c:
      	src/file-manager/dfos.c:
      	src/file-manager/fm-directory-view-icons.c:
      	src/file-manager/fm-directory-view-list.c:
      	src/file-manager/fm-directory-view.c:
      	src/file-manager/fm-icons-controller.c:
      	src/file-manager/fm-main.c:
      	src/nautilus-self-check-functions.c:
      	src/ntl-index-panel.c:
      	Got rid of #ifdef HAVE_CONFIG_H. Elliot says that we must always
      	include <config.h>, but there's no reason to include that ifdef
      	since we don't plan on building without a <config.h> ever.
      58a9b33c
  20. 14 Jan, 2000 1 commit
  21. 10 Jan, 2000 1 commit
  22. 07 Jan, 2000 1 commit
  23. 04 Jan, 2000 1 commit
  24. 03 Jan, 2000 1 commit
  25. 07 Oct, 1999 1 commit