summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-volume-monitor.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-02-21 00:13:57 +0000
committerDarin Adler <darin@src.gnome.org>2001-02-21 00:13:57 +0000
commite70c6e46b77df64715b63847cd471bac49a5da9e (patch)
treebbe64f753ded166646d80a283e3e2ee7ac132aba /libnautilus-extensions/nautilus-volume-monitor.c
parent2122e8e23340b63b38cba03e86dcd26c06e4ad36 (diff)
downloadnautilus-e70c6e46b77df64715b63847cd471bac49a5da9e.tar.gz
reviewed by: Gene Ragan <gzr@eazel.com>
Fixed bug 5676 (Moving a directory with multiple nested directories causes improper locations to be displayed): * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_moved_internal): Made this build a list of the affected files. (nautilus_directory_moved): Send a changed notice to each affected file. (nautilus_directory_notify_files_moved): Send a changed notice to each affected file, but share code to avoid sending changed notices twice for any directory. Fixed some callers that were assuming a gnome_vfs_get_local_path_from_uri would return a non-NULL value. This is not safe to assume just because gnome_vfs_uri_get_local returns true. * components/music/nautilus-music-view.c: (read_id_tag): Use gnome_vfs_get_local_path_from_uri to define what a local path is. The old code used a mix. * libnautilus-extensions/nautilus-file.c: (nautilus_file_can_rename): Simplified code to use gnome_vfs_get_local_path_from_uri to define what a local path is. The old code used a mix. * libnautilus-extensions/nautilus-thumbnails.c: (make_thumbnails): Added NULL checks after calls to gnome_vfs_get_local_path_from_uri. * src/nautilus-sidebar.c: (uri_is_local_image): Took out redundant check. The definition of local image we want here is: "uses a standard file: URI". * src/file-manager/fm-directory-view.c: (fm_directory_link_type_in_selection): Fixed bug where it would only look at the first item in the selection. Simplified logic. (is_link_type_special): Added a new function. (special_link_in_selection): Instead of calling fm_directory_link_type_in_selection, copied it. The problem with the other approach is that it was reading each link file three time to rule out each of the three special link types. Other changes. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (modify_volume_name_for_display): Marked "Unknown" for localization. * libnautilus-extensions/nautilus-file-utilities.c: * libnautilus-extensions/nautilus-icon-factory.c: * src/file-manager/fm-icon-view.c: Added 2001 to the copyright since we modified these recently.
Diffstat (limited to 'libnautilus-extensions/nautilus-volume-monitor.c')
-rw-r--r--libnautilus-extensions/nautilus-volume-monitor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnautilus-extensions/nautilus-volume-monitor.c b/libnautilus-extensions/nautilus-volume-monitor.c
index 83eba5643..98afef8a7 100644
--- a/libnautilus-extensions/nautilus-volume-monitor.c
+++ b/libnautilus-extensions/nautilus-volume-monitor.c
@@ -263,7 +263,8 @@ static gboolean
has_removable_mntent_options (struct mntent *ent)
{
/* Use "owner" or "user" or "users" as our way of determining a removable volume */
- if (hasmntopt (ent, "user") != NULL || hasmntopt (ent, "users") != NULL
+ if (hasmntopt (ent, "user") != NULL
+ || hasmntopt (ent, "users") != NULL
|| hasmntopt (ent, "owner") != NULL) {
return TRUE;
}
@@ -371,7 +372,7 @@ char *
nautilus_volume_monitor_get_volume_name (const NautilusVolume *volume)
{
if (volume->volume_name == NULL) {
- return g_strdup ("Unknown");
+ return g_strdup (_("Unknown"));
}
return g_strdup (volume->volume_name);
@@ -390,7 +391,7 @@ modify_volume_name_for_display (NautilusVolume *volume)
char *name;
if (volume->volume_name == NULL) {
- volume->volume_name = g_strdup ("Unknown");
+ volume->volume_name = g_strdup (_("Unknown"));
return;
}