Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jan 2005 20:05:33 +0100
From:      Andreas Bachmann <bachi@te-clan.ch>
To:        freebsd-gnome@FreeBSD.org
Subject:   patch to see cdrom and disk slices in computer:///
Message-ID:  <1104779133.873.8.camel@notebook.bachi.net>

next in thread | raw e-mail | index | archive | help

--=-Td7rPJawVLEmaapLZ5Ci
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi GNOME Team

When I saw, that FreeBSD has no CD-ROM icon in GNOME 2.8.3's
computer:/// and the next release is far away from here, I tried to
modify GNOME-VFS.
The result was a simple delete of some code-snip... My diffs are
attachted and my before/after pictures are in
http://bachi.te-clan.ch/before.png and
http://bachi.te-clan.ch/after.png.
Maybe you can edit the Makefile and create a new parameter
WITH_GNOME_VFS_HACK and patch the two files.

greets

Andreas Bachmann



--=-Td7rPJawVLEmaapLZ5Ci
Content-Disposition: attachment; filename=computer-method.c.diff
Content-Type: text/x-patch; name=computer-method.c.diff; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

--- computer-method.c.orig	Mon Jan  3 18:34:31 2005
+++ computer-method.c	Thu Dec 30 19:12:13 2004
@@ -356,9 +356,9 @@
 	computer_file_add (dir, file);
 #endif
 	
-	file = computer_file_new (COMPUTER_ROOT_LINK);
-	file->file_name = g_strdup ("Filesystem.desktop");
-	computer_file_add (dir, file);
+//	file = computer_file_new (COMPUTER_ROOT_LINK);
+//	file->file_name = g_strdup ("Filesystem.desktop");
+//	computer_file_add (dir, file);
 	
 	file = computer_file_new (COMPUTER_NETWORK_LINK);
 	file->file_name = g_strdup ("Network.desktop");

--=-Td7rPJawVLEmaapLZ5Ci
Content-Disposition: attachment;
	filename=gnome-vfs-volume-monitor-daemon.c.diff
Content-Type: text/x-patch; name=gnome-vfs-volume-monitor-daemon.c.diff;
	charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

--- gnome-vfs-volume-monitor-daemon.c.orig	Mon Jan  3 08:58:19 2005
+++ gnome-vfs-volume-monitor-daemon.c	Mon Jan  3 18:38:41 2005
@@ -650,11 +650,11 @@
 	GnomeVFSVolume *mounted_volume;
 	char *uri;
 	
-	if (mount->is_loopback ||
-	    !(mount->is_user_mountable ||
-	      g_str_has_prefix (mount->device_path, "/vol/"))) {
-		return NULL;
-	}
+//	if (mount->is_loopback ||
+//	    !(mount->is_user_mountable ||
+//	      g_str_has_prefix (mount->device_path, "/vol/"))) {
+//		return NULL;
+//	}
 
 	fixup_mountpoint (mount);
 	
@@ -1200,4 +1200,3 @@
 	g_list_free (volume_monitor_daemon->last_connected_servers);
 	volume_monitor_daemon->last_connected_servers = new_servers;
 }
-

--=-Td7rPJawVLEmaapLZ5Ci--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1104779133.873.8.camel>