summaryrefslogtreecommitdiffstats
path: root/x11-fm/nautilus
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fm/nautilus')
-rw-r--r--x11-fm/nautilus/Makefile3
-rw-r--r--x11-fm/nautilus/files/patch-libnautilus-private_nautilus-file-operations.c34
2 files changed, 36 insertions, 1 deletions
diff --git a/x11-fm/nautilus/Makefile b/x11-fm/nautilus/Makefile
index 8c4e457ee..5f5fab8a0 100644
--- a/x11-fm/nautilus/Makefile
+++ b/x11-fm/nautilus/Makefile
@@ -3,11 +3,12 @@
# Whom: ade, archie
#
# $FreeBSD$
-# $MCom: ports/x11-fm/nautilus2/Makefile,v 1.83 2005/07/11 20:57:25 marcus Exp $
+# $MCom: ports/x11-fm/nautilus2/Makefile,v 1.84 2005/07/26 02:49:19 marcus Exp $
#
PORTNAME= nautilus2
PORTVERSION= 2.11.90
+PORTREVISION= 1
CATEGORIES= x11-fm gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.11
diff --git a/x11-fm/nautilus/files/patch-libnautilus-private_nautilus-file-operations.c b/x11-fm/nautilus/files/patch-libnautilus-private_nautilus-file-operations.c
new file mode 100644
index 000000000..d80a314d1
--- /dev/null
+++ b/x11-fm/nautilus/files/patch-libnautilus-private_nautilus-file-operations.c
@@ -0,0 +1,34 @@
+--- libnautilus-private/nautilus-file-operations.c.orig Sun Jul 31 13:44:00 2005
++++ libnautilus-private/nautilus-file-operations.c Sun Jul 31 14:23:47 2005
+@@ -2453,12 +2453,21 @@ nautilus_file_operations_new_file (GtkWi
+ NautilusNewFileCallback done_callback,
+ gpointer data)
+ {
+- char source_file_str[] = "/tmp/nautilus-sourceXXXXXX";
++ char *source_file_str;
+ char *source_file_uri;
++ GnomeVFSURI *parent_uri;
+ FILE *source_file;
+ char *target_filename;
+ int fd;
+
++ parent_uri = gnome_vfs_uri_new (parent_dir);
++ if (parent_uri == NULL) {
++ (*done_callback) (NULL, data);
++ return;
++ }
++
++ source_file_str = g_build_filename (gnome_vfs_uri_get_path (parent_uri),
++ "nautilus-sourceXXXXXX", NULL);
+ fd = mkstemp (source_file_str);
+ if (fd == -1) {
+ (*done_callback) (NULL, data);
+@@ -2486,6 +2495,8 @@ nautilus_file_operations_new_file (GtkWi
+ done_callback,
+ data);
+
++ gnome_vfs_uri_unref (parent_uri);
++ g_free (source_file_str);
+ g_free (source_file_uri);
+ g_free (target_filename);
+ }