summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-link.h
Commit message (Collapse)AuthorAgeFilesLines
* link: remove unused codeCosimo Cecchi2012-04-011-1/+0
| | | | nautilus_link_local_get_additional_text() is now unused.
* file: use a GIcon to store the custom icon of desktop filesCosimo Cecchi2011-04-041-1/+1
| | | | | | Instead of a filename string. This also has the side-effect of fixing https://bugzilla.gnome.org/show_bug.cgi?id=615509
* Follow the "OnlyShowIn" and "NotShowIn" == GNOME keys for .desktop files,Cosimo Cecchi2009-01-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-31 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-directory-async.c (lacks_link_info), (monitor_includes_file), (link_info_done), (link_info_got_data), (link_info_start): * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c (nautilus_file_clear_info), (nautilus_file_should_show), (filter_hidden_and_backup_partition_callback), (nautilus_file_is_foreign_link): * libnautilus-private/nautilus-file.h: * libnautilus-private/nautilus-link.c (string_array_contains), (nautilus_link_get_link_info_given_file_contents): * libnautilus-private/nautilus-link.h: * src/file-manager/fm-desktop-icon-view.c (fm_desktop_icon_view_init): * src/file-manager/fm-directory-view.c (fm_directory_view_init), (fm_directory_view_should_show_file), (fm_directory_view_set_show_foreign): * src/file-manager/fm-directory-view.h: * src/file-manager/fm-tree-model.c (should_show_file): Follow the "OnlyShowIn" and "NotShowIn" == GNOME keys for .desktop files, when they are put on the desktop. Thanks to Federico Mena Quintero and Jared Moore (#338933). svn path=/trunk/; revision=14905
* Use GKeyFile instead of GnomeDesktopItempAlexander Larsson2008-10-061-5/+2
| | | | | | | | | | | | 2008-10-06 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-link.[ch]: * src/file-manager/fm-properties-window.c: Use GKeyFile instead of GnomeDesktopItemp svn path=/trunk/; revision=14692
* Pass link info's URI to nautilus_link_get_link_info_given_file_contents().Christian Neumair2008-09-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2008-09-27 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-directory-async.c (link_info_got_data): Pass link info's URI to nautilus_link_get_link_info_given_file_contents(). * libnautilus-private/nautilus-link.c (nautilus_link_get_link_uri_from_desktop), (nautilus_link_get_link_info_given_file_contents): * libnautilus-private/nautilus-link.h: Add an input parameter for the link info's URI to nautilus_link_get_link_info_given_file_contents(). In nautilus_link_get_link_uri_from_desktop(), when a desktop icon has an "URI=filename" entry resolve it like a symbolic link name relative to the link info parent. Ideally, we'd have g_file_parse_name_relative() which could do that for us, but it would mangle URI's fragments and queries anyway. svn path=/trunk/; revision=14668
* Move all of Nautilus to single Gtk+ includes, because Mitch says so.A. Walton2008-05-211-1/+1
| | | | | | | | | | | 2008-05-21 A. Walton <awalton@gnome.org> * */*.[ch]: Move all of Nautilus to single Gtk+ includes, because Mitch says so. Closes Bug #530315. svn path=/trunk/; revision=14182
* Add nautilus_file_is_launcher()Alexander Larsson2008-02-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-13 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file.[ch]: * libnautilus-private/nautilus-file-private.h: Add nautilus_file_is_launcher() * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-dnd.c: * libnautilus-private/nautilus-link.[ch] * libnautilus-private/nautilus-mime-actions.c: * libnautilus-private/nautilus-program-choosing.[ch]: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-tree-view.c: Remove weird desktop-file: and command: hacks, and replace with usage and implementation of nautilus_file_is_launcher(). This fixes some problems where the old desktop-file uri was interpreted as an actual file. svn path=/trunk/; revision=13734
* Merge gio-branchAlexander Larsson2007-11-301-42/+25
| | | | svn path=/trunk/; revision=13464
* New function nautilus_ensure_unique_file_nameAlexander Larsson2005-01-141-1/+2
| | | | | | | | | | | | | | | | | 2005-01-14 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-utilities.[ch]: New function nautilus_ensure_unique_file_name * libnautilus-private/nautilus-link.[ch]: * libnautilus-private/nautilus-link-desktop-file.[ch]: Uniquify name for nautilus_link_local_create if requested. * src/file-manager/fm-directory-view.c: (fm_directory_view_handle_url_drop): Uniquify desktop link name Patch from Jorn Baayen <jbaayen@gnome.org>
* Remove historical link support.Alexander Larsson2005-01-121-68/+1
| | | | | | | | | | | | | | | | | | | | | | 2005-01-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/Makefile.am: * libnautilus-private/nautilus-link-historical.c: * libnautilus-private/nautilus-link-historical.h: Remove historical link support. * libnautilus-private/nautilus-link-desktop-file.[ch]: * libnautilus-private/nautilus-link.[ch]: Remove historical link support and unused functions. * src/file-manager/fm-directory-view.h: Remove unused declaration. * src/file-manager/fm-icon-view.c: Fix up due to small api change for nautilus-link. * src/file-manager/fm-properties-window.c: (set_icon_callback): Fix icon change for desktop files that point to nonexisting binaries.
* Make nautilus_link_desktop_file_local_create take both display name andAlexander Larsson2004-10-121-1/+2
| | | | | | | | | | | | | 2004-10-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-link-desktop-file.[ch]: Make nautilus_link_desktop_file_local_create take both display name and file name. * libnautilus-private/nautilus-link.[ch]: Make nautilus_link_local_create take both display name and file name. * src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list): Create desktop file ending in ".desktop".
* Require new gnome-vfsAlexander Larsson2003-11-051-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-05 Alexander Larsson <alexl@redhat.com> * configure.in: Require new gnome-vfs * components/tree/nautilus-tree-view.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.[ch]: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-trash-directory.c: * libnautilus-private/nautilus-trash-monitor.[ch]: * src/nautilus-application.c: Use gnome-vfs-volume-manager instead of nautilus-volume-manager.c * libnautilus-private/nautilus-desktop-icon-file.c: Set the volume on the nautilusfile * libnautilus-private/nautilus-directory-async.c: Load volume info from link * libnautilus-private/nautilus-file-attributes.h: * libnautilus-private/nautilus-mime-actions.c: Add new VOLUMES attribute * libnautilus-private/nautilus-file-private.h: Add has_volume and has_drive to NautilusFile * libnautilus-private/nautilus-file.[ch]: Add has_volume and has_drive to NautilusFile Volumes/drives are sorted separately * libnautilus-private/nautilus-link-desktop-file.[ch]: * libnautilus-private/nautilus-link.[ch]: Read drive and volume id from links * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/nautilus-desktop-icon-view-ui.xml: Remove volume ops. Remove disks menu * src/file-manager/fm-directory-view.c: * src/file-manager/nautilus-directory-view-ui.xml: Implement volume ops using gnome-vfs * src/file-manager/fm-properties-window.c: Handle drives/volumes * src/nautilus-window.c: Make a nicer title for some specific locations * libnautilus-private/nautilus-volume-monitor.[ch]: * libnautilus-private/Makefile.am remove this old crap
* Pass the screen number when creating nautilus links, fixes #117946Dave Camp2003-07-211-1/+3
| | | | | | | | | | | | | | | | 2003-07-20 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-link-desktop-file.c: (nautilus_link_desktop_file_local_create), (nautilus_link_desktop_file_local_create_from_gnome_entry): * libnautilus-private/nautilus-link-desktop-file.h: * libnautilus-private/nautilus-link.c: (nautilus_link_local_create), (nautilus_link_local_create_from_gnome_entry): * libnautilus-private/nautilus-link.h: * src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list): Pass the screen number when creating nautilus links, fixes #117946
* New function nautilus_link_desktop_file_local_is_utf8.Alexander Larsson2002-08-201-0/+6
| | | | | | | | | | | | | | | | 2002-08-20 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-link-desktop-file.c: * libnautilus-private/nautilus-link-desktop-file.h: New function nautilus_link_desktop_file_local_is_utf8. * libnautilus-private/nautilus-link.c: * libnautilus-private/nautilus-link.h: New function nautilus_link_local_is_utf8. * src/file-manager/fm-desktop-icon-view.c (update_desktop_directory): Recreate trash and homedir links if they are not in utf8.
* pass in info if we have it already.Michael Meeks2002-08-071-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-07 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-file.c (nautilus_file_can_rename): pass in info if we have it already. * src/file-manager/fm-desktop-icon-view.c (update_trash_link_and_delete_copies), (update_home_link_and_delete_copies), (delete_all_mount_links): kill in favour of (update_desktop_directory): so we don't stat / mime sniff everything 3+ times. (update_link_and_delete_copies): push this method and it's file / sniff loop upwards. * src/file-manager/fm-directory-view.c (special_link_in_selection): upd. (fm_directory_link_type_in_selection): kill, unused. * libnautilus-private/nautilus-link.c (get_link_style_for_local_file): operate on the passed in GnomeVFSInfo if we have it. * libnautilus-private/nautilus-dnd.c (nautilus_drag_selection_includes_special_link): upd for efficiency.
* Pass file URI to nautilus_link_*, instead of local path.Alex Graveley2002-05-171-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-17 Alex Graveley <alex@ximian.com> * src/file-manager/fm-icon-view.c (get_icon_drop_target_uri_callback): Pass file URI to nautilus_link_*, instead of local path. (icon_view_handle_uri_list): Ditto, for parent directory. (icon_view_handle_uri_list): Ditto. * src/file-manager/fm-icon-container.c (fm_icon_container_get_icon_text): Pass file URI to nautilus_link_*, instead of local path. (get_sort_category): Ditto. * src/file-manager/fm-directory-view.c (fm_directory_link_type_in_selection): Pass file URI to nautilus_link_*, instead of local path. (special_link_in_selection): Ditto. * src/file-manager/fm-desktop-icon-view.c (volume_ops_callback): Pass file URI to nautilus_link_*, instead of local path. (trash_link_is_selection): Ditto. (volume_link_is_selection): Ditto (volume_link_device_type): Ditto. * libnautilus-private/nautilus-file.c (rename_guts): Pass file URI to nautilus_link_desktop_file_local_set_text(), handle non-local launchers gracefully. * libnautilus-private/nautilus-link-desktop-file.c: Use URIs throughout, and load desktop items using gnome_desktop_item_new_from_uri. (nautilus_link_desktop_file_local_create): Use gnome_desktop_item_new_from_string, instead of using fputs directly. * libnautilus-private/nautilus-link-historical.c: Use URIs instead of local paths throughout. * libnautilus-private/nautilus-link.c: Use URIs instead of local paths throughout.
* Changed the comment for nautilus_link_local_is_special_link to be moreDave Emory Watson2002-03-281-1/+1
| | | | | | | 2002-03-28 Dave Emory Watson <dwatson@cs.ucr.edu> * libnautilus-private/nautilus-link.h: Changed the comment for nautilus_link_local_is_special_link to be more clear.
* Share code between different link implementations so that home directoryDave Emory Watson2002-03-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-27 Dave Emory Watson <dwatson@cs.ucr.edu> * libnautilus-private/nautilus-link.c, libnautilus-private/nautilus-link.h: (nautilus_link_local_is_volume_link), (nautilus_link_local_is_home_link), (nautilus_link_local_is_trash_link), (nautilus_link_local_is_special_link): Share code between different link implementations so that home directory link behavior can be controlled from one place. * libnautilus-private/nautilus-link-desktop-file.c, libnautilus-private/nautilus-link-desktop-file.h: (nautilus_link_desktop_file_local_is_volume_link), (nautilus_link_desktop_file_local_is_home_link), (nautilus_link_desktop_file_local_is_trash_link): Remove. * libnautilus-private/nautilus-link-historical.h, libnautilus-private/nautilus-link-historical.c: (nautilus_link_historical_local_is_volume_link), (nautilus_link_historical_local_is_home_link), (nautilus_link_historical_local_is_trash_link): Remove. * libnautilus-private/nautilus-file-operations.c: (is_special_link): Use nautilus_link_local_is_special_link. src/file-manager/fm-directory-view.c: (is_link_type_special): Remove. (special_link_in_selection): Use nautilus_link_local_is_special_link. * src/file-manager/fm-desktop-icon-view.c: (update_home_link_and_delete_copies): Don't recreate the home directory link when desktop==home.
* Remove nautilus-desktop-file-loader.[ch]. Remove. Remove.Darin Adler2002-02-211-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-private/Makefile.am: Remove nautilus-desktop-file-loader.[ch]. * libnautilus-private/nautilus-desktop-file-loader.c: Remove. * libnautilus-private/nautilus-desktop-file-loader.h: Remove. * libnautilus-private/nautilus-directory-async.c: (link_info_nautilus_link_read_callback): Pass in NULL for the new optional URI parameter for parsing existing link files. * libnautilus-private/nautilus-link-desktop-file.h: * libnautilus-private/nautilus-link-desktop-file.c: Change to use GnomeDesktopItem instead of NautilusDesktopFile. * libnautilus-private/nautilus-link.h: * libnautilus-private/nautilus-link.c: (nautilus_link_get_link_uri_given_file_contents), (nautilus_link_get_link_name_given_file_contents), (nautilus_link_get_link_icon_given_file_contents): Add optional URI parameter for parsing existing link files. This is passed down to the GnomeDesktopItem level, which can sometimes do a better job if it knows the URI. * src/file-manager/fm-directory-view.c: (activate_callback): Change to use GnomeDesktopItem instead of NautilusDesktopFile. Also, simplify error handling. * Many files: Fix includes to use <> style in headers more consistently, and remove unnecessarily includes.
* require gnome-desktop libraryjacob berkman2002-02-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-19 jacob berkman <jacob@ximian.com> * configure.in: require gnome-desktop library * libnautilus-private/nautilus-icon-dnd.[ch]: (nautilus_icon_dnd_uri_list_extract_uris), (nautilus_icon_dnd_uri_list_free_strings): paste old gnome-mime code here as we still need it * libnautilus-private/nautilus-link-desktop-file.[ch]: (nautilus_link_desktop_file_local_create_from_gnome_entry): * libnautilus-private/nautilus-link-historical.[ch]: (nautilus_link_historical_local_create_from_gnome_entry): * libnautilus-private/nautilus-link.[ch]: (nautilus_link_local_create_from_gnome_entry): * src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list): port to gnome-desktop and re-enable * src/nautilus-location-bar.c: (drag_data_received_callback): use new uri list functions * src/nautilus-zoom-control.c: (draw_number), (nautilus_zoom_control_unload_images), (nautilus_zoom_control_load_images): port to PangoLayout and re-enable text fallback
* More GNOME 2 work. We now compile up to libnautilus-private and I'mDarin Adler2001-10-281-2/+3
| | | | | | | * Lots of files: More GNOME 2 work. We now compile up to libnautilus-private and I'm working my way through the files in there. Also changed all the initialize_class and initialize to class_init and init.
* Huge ass redhat mergeAlexander Larsson2001-09-261-11/+7
|
* Additional work on first time druid gmc to nautilus conversion routines.Gene Z. Ragan2001-02-011-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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):
* Fixed bugs in Nautilus link management, some other minor problemsDarin Adler2000-09-131-30/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed bug #1942, Trash icon on desktop has "Move to Trash" in right-clickGene Z. Ragan2000-08-281-4/+4
| | | | | | | | | | | | | | | | | | | 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.
* Work in progress to support dragging onto NautilusLink files. Dragging onGene Z. Ragan2000-08-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* New function to allow the setting of the LINK property tp be the URIGene Z. Ragan2000-08-221-0/+8
| | | | | | | | | | | | | | | | 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.
* Added a link type argument to API to allow caller to specify type of link.Gene Z. Ragan2000-08-221-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed bug 2137, renaming of trash causes a duplicate trash to appear. IfGene Z. Ragan2000-08-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* New function. Identifies if link is a volume link.Gene Z. Ragan2000-08-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove extra parameters now that the initial files callback is gone. ItDarin Adler2000-08-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added new API to identify file as nautilus link.Gene Z. Ragan2000-08-091-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added ability to set the type of a NautilusLink, such as mount link, trashGene Z. Ragan2000-08-091-1/+16
| | | | | | | | | | | | | | | | | | | 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.
* Mostly some tweaking on the recent link file work.Darin Adler2000-07-311-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* OK. I made a booboo. Went back to using NautilusFile. I really doGene Z. Ragan2000-07-281-1/+1
| | | | | | | | | | | | | | | | | | | 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):
* Changed the API to determine if file is link file to use path.Gene Z. Ragan2000-07-281-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Renamed function nautilus_link_is_link_file_name toGene Z. Ragan2000-07-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* No parameters is indicated by "(void)" instead of "()".Darin Adler2000-07-261-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* added new hardware view component, plus renamed link filesAndy Hertzfeld2000-04-241-1/+1
| | | | added new hardware view component, plus renamed link files
* made nautilus link files control the additional text displayed under theirAndy Hertzfeld2000-04-191-0/+3
| | | | | made nautilus link files control the additional text displayed under their name.
* better abstraction for new, xml-based link files, plus added some objectsAndy Hertzfeld2000-04-181-0/+45
better abstraction for new, xml-based link files, plus added some objects for the novice home directory