Index: plugins/build-basic-autotools/plugin.c
===================================================================
--- plugins/build-basic-autotools/plugin.c	(Revision 4345)
+++ plugins/build-basic-autotools/plugin.c	(Arbeitskopie)
@@ -2476,12 +2476,9 @@
 	const gchar *uri;
 	gchar *dirname, *filename;
 	gboolean makefile_exists, is_dir;
-	GFile* file;
 	
 	uri = g_value_get_string (value);
-	file = g_file_new_for_uri (uri);
-	filename = g_file_get_path (file);
-	g_object_unref (file);
+	filename = anjuta_util_get_local_path_from_uri (uri);
 	g_return_if_fail (filename != NULL);
 	
 	/*
@@ -3072,11 +3069,8 @@
 	BasicAutotoolsPlugin *plugin = ANJUTA_PLUGIN_BASIC_AUTOTOOLS (builder);
 	BuildContext *context;
 	gchar *filename;
-	GFile* file;
 
-	file = g_file_new_for_uri (uri);
-	filename = g_file_get_path (file);
-	g_object_unref (file);
+	filename = anjuta_util_get_local_path_from_uri (uri);
 	if (filename == NULL) return NULL;
 	
 	context = build_is_file_built (plugin, filename, callback, user_data, err);
@@ -3094,11 +3088,8 @@
 	BasicAutotoolsPlugin *plugin = ANJUTA_PLUGIN_BASIC_AUTOTOOLS (builder);
 	BuildContext *context;
 	gchar *filename;
-	GFile* file;
 	
-	file = g_file_new_for_uri (uri);
-	filename = g_file_get_path (file);
-	g_object_unref (file);
+	filename = anjuta_util_get_local_path_from_uri (uri);
 	if (filename == NULL) return NULL;
 	
 	context = build_build_file_or_dir (plugin, filename, callback, user_data, err);
Index: plugins/build-basic-autotools/executer.c
===================================================================
--- plugins/build-basic-autotools/executer.c	(Revision 4345)
+++ plugins/build-basic-autotools/executer.c	(Arbeitskopie)
@@ -26,7 +26,6 @@
 
 #include <gnome.h>
 #include <glade/glade.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
 
 #include <libanjuta/resources.h>
 #include <libanjuta/anjuta-debug.h>
@@ -114,7 +113,7 @@
 			gchar *local_path;
 			const gchar *rel_path;
 		
-			local_path = gnome_vfs_get_local_path_from_uri ((gchar*)node->data);
+			local_path = anjuta_util_get_local_path_from_uri ((gchar *)node->data);
 			if (local_path == NULL)
 			{
 				g_free (node->data);
@@ -287,7 +286,7 @@
 		/* Check if target is local */
 		gchar *local_uri;
 		
-		local_uri = gnome_vfs_get_local_path_from_uri (target);
+		local_uri = anjuta_util_get_local_path_from_uri (target);
 		if (local_uri == NULL)
 		{
 			error_condition = TRUE;
@@ -332,7 +331,7 @@
 		anjuta_shell_get (ANJUTA_PLUGIN (plugin)->shell, "current_editor",
 						  G_TYPE_OBJECT, &te, NULL);
 		
-		filename = gnome_vfs_get_local_path_from_uri (target);
+		filename = anjuta_util_get_local_path_from_uri (target);
 		prog = NULL;
 		prog = g_strdup (filename);
 		temp = g_strrstr (prog, ".");
Index: plugins/class-gen/plugin.c
===================================================================
--- plugins/class-gen/plugin.c	(Revision 4345)
+++ plugins/class-gen/plugin.c	(Arbeitskopie)
@@ -19,7 +19,6 @@
 
 #include <config.h>
 #include <gtk/gtkactiongroup.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
 #include <glib/gi18n.h>
 #include <libanjuta/anjuta-preferences.h>
 #include <libanjuta/anjuta-debug.h>
@@ -54,7 +53,7 @@
 	
 	if (root_uri)
 	{
-		gchar *root_dir = gnome_vfs_get_local_path_from_uri (root_uri);
+		gchar *root_dir = anjuta_util_get_local_path_from_uri (root_uri);
 		if (root_dir)
 			cg_plugin->top_dir = g_strdup(root_dir);
 		else
Index: plugins/class-gen/generator.c
===================================================================
--- plugins/class-gen/generator.c	(Revision 4345)
+++ plugins/class-gen/generator.c	(Arbeitskopie)
@@ -70,7 +70,7 @@
 	gchar *current_dir;
 	gchar *abs_path;
 
-	/* TODO: Use gnome-vfs stuff here? */
+	/* TODO: Use gio stuff here? */
 	if (g_path_is_absolute (path))
 	{
 		abs_path = g_strdup (path);
Index: libanjuta/anjuta-utils.c
===================================================================
--- libanjuta/anjuta-utils.c	(Revision 4345)
+++ libanjuta/anjuta-utils.c	(Arbeitskopie)
@@ -1149,6 +1149,19 @@
 	return mime_type;
 }
 
+gchar *
+anjuta_util_get_local_path_from_uri (const gchar *uri)
+{
+	GFile *file;
+	gchar *local_path;
+
+	file = g_file_new_for_uri (uri);
+	local_path = g_file_get_path (file);
+	g_object_unref (file);
+
+	return local_path;
+}
+
 #ifndef HAVE_LIBUTIL
 #include <grp.h>
 
Index: libanjuta/anjuta-utils.h
===================================================================
--- libanjuta/anjuta-utils.h	(Revision 4345)
+++ libanjuta/anjuta-utils.h	(Arbeitskopie)
@@ -119,6 +119,7 @@
 										 guint        truncate_length);
 
 gchar* anjuta_util_get_uri_mime_type (const gchar *uri);
+gchar* anjuta_util_get_local_path_from_uri (const gchar *uri);
 
 void anjuta_util_help_display (GtkWindow   *parent,
 							   const gchar *doc_id,
