[anjuta] Removed directories that were left-over from svn -> git conversion



commit 692ac5e6d2a39eee552a01f89b1e9ad479782a59
Author: Johannes Schmid <jhs gnome org>
Date:   Sun May 3 22:08:50 2009 +0200

    Removed directories that were left-over from svn -> git conversion
---
 plugins/file-manager.old/.cvsignore                |    4 -
 plugins/file-manager.old/Makefile.am               |   60 -
 plugins/file-manager.old/an_file_view.c            | 1183 --------------------
 .../anjuta-file-manager-plugin.glade               |  360 ------
 .../anjuta-file-manager-plugin.png                 |  Bin 2044 -> 0 bytes
 .../file-manager.old/anjuta-file-manager.plugin.in |    6 -
 plugins/file-manager.old/anjuta-file-manager.ui    |   10 -
 plugins/file-manager.old/plugin.c                  |  314 ------
 plugins/file-manager.old/plugin.h                  |   60 -
 plugins/scratchbox/Makefile.am                     |   47 -
 plugins/scratchbox/anjuta-scratchbox-48.png        |  Bin 5326 -> 0 bytes
 plugins/scratchbox/anjuta-scratchbox-panel.png     |  Bin 11510 -> 0 bytes
 plugins/scratchbox/anjuta-scratchbox.glade         |  179 ---
 plugins/scratchbox/anjuta-scratchbox.plugin.in     |    6 -
 plugins/scratchbox/plugin.c                        |  565 ----------
 plugins/scratchbox/plugin.h                        |   37 -
 16 files changed, 0 insertions(+), 2831 deletions(-)

diff --git a/plugins/file-manager.old/.cvsignore b/plugins/file-manager.old/.cvsignore
deleted file mode 100644
index 759f8d2..0000000
--- a/plugins/file-manager.old/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-Makefile.in
-*.plugin
-*.gladep
diff --git a/plugins/file-manager.old/Makefile.am b/plugins/file-manager.old/Makefile.am
deleted file mode 100644
index eec1893..0000000
--- a/plugins/file-manager.old/Makefile.am
+++ /dev/null
@@ -1,60 +0,0 @@
-
-# Plugin glade file
-file_manager_gladedir = $(anjuta_glade_dir)
-file_manager_glade_DATA = anjuta-file-manager-plugin.glade
-
-# Plugin UI file
-file_manager_uidir = $(anjuta_ui_dir)
-file_manager_ui_DATA = anjuta-file-manager.ui
-
-# Plugin Icon file
-file_manager_pixmapsdir = $(anjuta_image_dir)
-file_manager_pixmaps_DATA = anjuta-file-manager-plugin.png
-
-# Plugin description file
-plugin_in_files = anjuta-file-manager.plugin.in
-%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
-
-file_manager_plugindir = $(anjuta_plugin_dir)
-file_manager_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
-
-# Include paths
-INCLUDES = \
-	$(WARN_CFLAGS) \
-	$(DEPRECATED_FLAGS) \
-	$(GDL_CFLAGS) \
-	$(LIBANJUTA_CFLAGS)
-
-# Where to install the plugin
-plugindir = $(anjuta_plugin_dir)
-
-# The plugin
-plugin_LTLIBRARIES = libanjuta-file-manager.la
-
-# Plugin sources
-libanjuta_file_manager_la_SOURCES = \
-	plugin.c \
-	plugin.h \
-	an_file_view.c
-
-libanjuta_file_manager_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
-
-# Plugin dependencies
-libanjuta_file_manager_la_LIBADD = \
-	$(GDL_LIBS) \
-	$(LIBANJUTA_LIBS)
-	
-prefs_glade_files = anjuta-file-manager-plugin.glade
-include $(top_srcdir)/scripts/build-schemas.mk
-
-libanjuta_file_manager_la_DEPENDENCIES = \
-	build-schema-files 
-
-EXTRA_DIST = \
-	$(plugin_in_files) \
-	$(file_manager_plugin_DATA) \
-	$(file_manager_ui_DATA) \
-	$(file_manager_glade_DATA) \
-	$(file_manager_pixmaps_DATA)
-
--include $(top_srcdir)/git.mk
diff --git a/plugins/file-manager.old/an_file_view.c b/plugins/file-manager.old/an_file_view.c
deleted file mode 100644
index 8459613..0000000
--- a/plugins/file-manager.old/an_file_view.c
+++ /dev/null
@@ -1,1183 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
-/*
- * an_file_view.c
- * Copyright (C) 2004 Naba Kumar
- * 
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <fnmatch.h>
-#include <string.h>
-#include <dirent.h>
-
-#include <gnome.h>
-#include <glade/glade.h>
-#include <libgnomevfs/gnome-vfs.h>
-#include <libgnomevfs/gnome-vfs-mime-handlers.h>
-#include <gdl/gdl-icons.h>
-
-#include <libanjuta/resources.h>
-#include <libanjuta/anjuta-debug.h>
-#include <libanjuta/anjuta-utils.h>
-#include <libanjuta/anjuta-debug.h>
-#include <libanjuta/anjuta-status.h>
-#include <libanjuta/interfaces/ianjuta-document-manager.h>
-#include <libanjuta/interfaces/ianjuta-file-loader.h>
-
-#include "plugin.h"
-
-#define TOOL_TIP_TIMEOUT 1000 /* milliseconds */
-
-enum {
-	PIXBUF_COLUMN,
-	FILENAME_COLUMN,
-	REV_COLUMN,
-	IS_DIR_COLUMN,
-	COLUMNS_NB
-};
-
-typedef struct _FileFilter
-{
-	GList *file_match;
-	GList *file_unmatch;
-	GList *dir_match;
-	GList *dir_unmatch;
-	GList *ignore_pattern;
-	gboolean ignore_hidden_files;
-	gboolean ignore_hidden_dirs;
-	gboolean ignore_nonrepo_files;
-} FileFilter;
-
-static GdlIcons *icon_set = NULL;
-static FileFilter *ff = NULL;
-
-/* Tooltip operations -- taken from gtodo/message_view */
-
-static gchar *
-tooltip_get_display_text (FileManagerPlugin *fv)
-{
-	GtkTreePath *path;
-	GtkTreeIter iter;
-	GtkTreeModel *model;
-	
-	model = gtk_tree_view_get_model (GTK_TREE_VIEW (fv->tree));
-	
-	if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW(fv->tree),
-		fv->tooltip_rect.x, fv->tooltip_rect.y,
-		&path, NULL, NULL, NULL))
-	{
-		gchar *text;
-		
-		gtk_tree_model_get_iter (model, &iter, path);
-		gtk_tree_model_get (model, &iter, FILENAME_COLUMN, &text, -1); 
-		gtk_tree_path_free(path);
-				
-		return text;
-	}
-	return NULL;
-}
-
-static void
-tooltip_paint (GtkWidget *widget, GdkEventExpose *event, FileManagerPlugin *fv)
-{
-	GtkStyle *style;
-	gchar *tooltiptext;
-
-	tooltiptext = tooltip_get_display_text (fv);
-	
-	if (!tooltiptext)
-		tooltiptext = g_strdup (_("No message details"));
-
-	pango_layout_set_markup (fv->tooltip_layout,
-							 tooltiptext,
-							 strlen (tooltiptext));
-	pango_layout_set_wrap(fv->tooltip_layout, PANGO_WRAP_CHAR);
-	pango_layout_set_width(fv->tooltip_layout, 600000);
-	style = fv->tooltip_window->style;
-
-	gtk_paint_flat_box (style, fv->tooltip_window->window,
-						GTK_STATE_NORMAL, GTK_SHADOW_OUT,
-						NULL, fv->tooltip_window,
-						"tooltip", 0, 0, -1, -1);
-
-	gtk_paint_layout (style, fv->tooltip_window->window,
-					  GTK_STATE_NORMAL, TRUE,
-					  NULL, fv->tooltip_window,
-					  "tooltip", 4, 4, fv->tooltip_layout);
-	/*
-	   g_object_unref(layout);
-	   */
-	g_free(tooltiptext);
-	return;
-}
-
-static gboolean
-tooltip_timeout (FileManagerPlugin *fv)
-{
-	gint scr_w,scr_h, w, h, x, y;
-	gchar *tooltiptext;
-
-	tooltiptext = tooltip_get_display_text (fv);
-	
-	if (!tooltiptext)
-		tooltiptext = g_strdup (_("No file details"));
-	
-	fv->tooltip_window = gtk_window_new (GTK_WINDOW_POPUP);
-	fv->tooltip_window->parent = fv->tree;
-	gtk_widget_set_app_paintable (fv->tooltip_window, TRUE);
-	gtk_window_set_resizable (GTK_WINDOW(fv->tooltip_window), FALSE);
-	gtk_widget_set_name (fv->tooltip_window, "gtk-tooltips");
-	g_signal_connect (G_OBJECT(fv->tooltip_window), "expose_event",
-					  G_CALLBACK(tooltip_paint), fv);
-	gtk_widget_ensure_style (fv->tooltip_window);
-
-	fv->tooltip_layout =
-		gtk_widget_create_pango_layout (fv->tooltip_window, NULL);
-	pango_layout_set_wrap (fv->tooltip_layout, PANGO_WRAP_CHAR);
-	pango_layout_set_width (fv->tooltip_layout, 600000);
-	pango_layout_set_markup (fv->tooltip_layout, tooltiptext,
-							 strlen (tooltiptext));
-	scr_w = gdk_screen_width();
-	scr_h = gdk_screen_height();
-	pango_layout_get_size (fv->tooltip_layout, &w, &h);
-	w = PANGO_PIXELS(w) + 8;
-	h = PANGO_PIXELS(h) + 8;
-
-	gdk_window_get_pointer (NULL, &x, &y, NULL);
-	if (GTK_WIDGET_NO_WINDOW (fv->tree))
-		y += fv->tree->allocation.y;
-
-	x -= ((w >> 1) + 4);
-
-	if ((x + w) > scr_w)
-		x -= (x + w) - scr_w;
-	else if (x < 0)
-		x = 0;
-
-	if ((y + h + 4) > scr_h)
-		y = y - h;
-	else
-		y = y + 6;
-	/*
-	   g_object_unref(layout);
-	   */
-	gtk_widget_set_size_request (fv->tooltip_window, w, h);
-	gtk_window_move (GTK_WINDOW (fv->tooltip_window), x, y);
-	gtk_widget_show (fv->tooltip_window);
-	g_free (tooltiptext);
-	
-	return FALSE;
-}
-
-static gboolean
-tooltip_motion_cb (GtkWidget *tv, GdkEventMotion *event, FileManagerPlugin *fv)
-{
-	GtkTreePath *path;
-	
-	if (fv->tooltip_rect.y == 0 &&
-		fv->tooltip_rect.height == 0 &&
-		fv->tooltip_timeout)
-	{
-		g_source_remove (fv->tooltip_timeout);
-		fv->tooltip_timeout = 0;
-		if (fv->tooltip_window) {
-			gtk_widget_destroy (fv->tooltip_window);
-			fv->tooltip_window = NULL;
-		}
-		return FALSE;
-	}
-	if (fv->tooltip_timeout) {
-		if (((int)event->y > fv->tooltip_rect.y) &&
-			(((int)event->y - fv->tooltip_rect.height)
-				< fv->tooltip_rect.y))
-			return FALSE;
-
-		if(event->y == 0)
-		{
-			g_source_remove (fv->tooltip_timeout);
-			fv->tooltip_timeout = 0;
-			return FALSE;
-		}
-		/* We've left the cell.  Remove the timeout and create a new one below */
-		if (fv->tooltip_window) {
-			gtk_widget_destroy (fv->tooltip_window);
-			fv->tooltip_window = NULL;
-		}
-		g_source_remove (fv->tooltip_timeout);
-		fv->tooltip_timeout = 0;
-	}
-
-	if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW(fv->tree),
-									   event->x, event->y, &path,
-									   NULL, NULL, NULL))
-	{
-		gtk_tree_view_get_cell_area (GTK_TREE_VIEW (fv->tree),
-									 path, NULL, &fv->tooltip_rect);
-		
-		if (fv->tooltip_rect.y != 0 &&
-			fv->tooltip_rect.height != 0)
-		{
-			gchar *tooltiptext;
-			
-			tooltiptext = tooltip_get_display_text (fv);
-			if (tooltiptext == NULL)
-				return FALSE;
-			g_free (tooltiptext);
-			
-			fv->tooltip_timeout =
-				g_timeout_add (TOOL_TIP_TIMEOUT,
-							   (GSourceFunc) tooltip_timeout, fv);
-		}
-		gtk_tree_path_free (path);
-	}
-	return FALSE;
-}
-
-static void
-tooltip_leave_cb (GtkWidget *w, GdkEventCrossing *e, FileManagerPlugin *fv)
-{
-	if (fv->tooltip_timeout) {
-		g_source_remove (fv->tooltip_timeout);
-		fv->tooltip_timeout = 0;
-	}
-	if (fv->tooltip_window) {
-		gtk_widget_destroy (fv->tooltip_window);
-		g_object_unref (fv->tooltip_layout);
-		fv->tooltip_window = NULL;
-	}
-}
-
-static gboolean
-anjuta_fv_open_file (FileManagerPlugin * fv, const char *path)
-{
-	gchar *uri;
-	GObject *obj;
-	
-	IAnjutaFileLoader *loader;
-	g_return_val_if_fail (path != NULL, FALSE);
-	loader = anjuta_shell_get_interface (ANJUTA_PLUGIN (fv)->shell,
-										 IAnjutaFileLoader, NULL);
-	uri = gnome_vfs_get_uri_from_local_path (path);
-	obj = ianjuta_file_loader_load (loader, uri, FALSE, NULL);
-	g_free (uri);
-	return (obj == NULL)? FALSE:TRUE;
-}
-
-/* File filters prefs */
-#define FILE_FILTER_MATCH "filter.file.match"
-#define FILE_FILTER_MATCH_COMBO "filter.file.match.combo"
-#define FILE_FILTER_UNMATCH "filter.file.unmatch"
-#define FILE_FILTER_UNMATCH_COMBO "filter.file.unmatch.combo"
-#define FILE_FILTER_IGNORE_HIDDEN "filter.file.ignore.hidden"
-#define DIR_FILTER_MATCH "filter.dir.match"
-#define DIR_FILTER_MATCH_COMBO "filter.dir.match.combo"
-#define DIR_FILTER_UNMATCH "filter.dir.unmatch"
-#define DIR_FILTER_UNMATCH_COMBO "filter.dir.unmatch.combo"
-#define DIR_FILTER_IGNORE_HIDDEN "filter.dir.ignore.hidden"
-#define FILE_FILTER_IGNORE_NONREPO "filter.file.ignore.nonrepo"
-
-#define DIR_FILTER_IGNORE_PATTERN "filter.file.ignore.pattern"
-
-#define GET_PREF(var, P) \
-	if (ff->var) \
-		anjuta_util_glist_strings_free(ff->var); \
-	ff->var = NULL; \
-	s = anjuta_preferences_get (fv->prefs, P); \
-	if (s) { \
-		ff->var = anjuta_util_glist_from_string(s); \
-		g_free(s); \
-	}
-
-#define GET_PREF_BOOL(var, P) \
-	ff->var = FALSE; \
-	ff->var = anjuta_preferences_get_int (fv->prefs, P);
-	
-static FileFilter*
-fv_prefs_new (FileManagerPlugin *fv)
-{
-	gchar *s;
-	FileFilter *ff = g_new0(FileFilter, 1);
-	GET_PREF(file_match, FILE_FILTER_MATCH);
-	GET_PREF(file_unmatch, FILE_FILTER_UNMATCH);
-	GET_PREF_BOOL(ignore_hidden_files, FILE_FILTER_IGNORE_HIDDEN);
-	GET_PREF(dir_match, DIR_FILTER_MATCH);
-	GET_PREF(dir_unmatch, DIR_FILTER_UNMATCH);
-	GET_PREF_BOOL(ignore_hidden_dirs, DIR_FILTER_IGNORE_HIDDEN);
-	GET_PREF_BOOL(ignore_nonrepo_files, FILE_FILTER_IGNORE_NONREPO);
-
-	GET_PREF(ignore_pattern, DIR_FILTER_IGNORE_PATTERN);
-
-	return ff;
-}
-
-static void
-fv_prefs_free (FileFilter *ff)
-{
-	g_return_if_fail (ff != NULL);
-	if (ff->file_match)
-		anjuta_util_glist_strings_free (ff->file_match);
-	if (ff->file_unmatch)
-		anjuta_util_glist_strings_free (ff->file_unmatch);
-	if (ff->dir_match)
-		anjuta_util_glist_strings_free (ff->dir_match);
-	if (ff->dir_unmatch)
-		anjuta_util_glist_strings_free (ff->dir_unmatch);
-	if (ff->ignore_pattern)
-		anjuta_util_glist_strings_free (ff->ignore_pattern);
-	g_free (ff);
-	ff = NULL;
-}
-
-static gchar *
-fv_construct_full_path (FileManagerPlugin *fv, GtkTreeIter *selected_iter)
-{
-	gchar *path, *dir;
-	GtkTreeModel *model;
-	GtkTreeIter iter, parent;
-	gchar *full_path = NULL;
-	GtkTreeView *view = GTK_TREE_VIEW (fv->tree);
-
-	parent = *selected_iter;
-	model = gtk_tree_view_get_model (view);
-	do
-	{
-		const gchar *filename;
-		iter = parent;
-		gtk_tree_model_get (model, &iter, FILENAME_COLUMN, &filename, -1);
-		path = g_build_filename (filename, full_path, NULL);
-		g_free (full_path);
-		full_path = path;
-	}
-	while (gtk_tree_model_iter_parent (model, &parent, &iter));
-	dir = g_path_get_dirname (fv->top_dir);
-	path = g_build_filename (dir, full_path, NULL);
-	g_free (full_path);
-	g_free (dir);
-	return path;
-}
-
-gchar *
-fv_get_selected_file_path (FileManagerPlugin *fv)
-{
-	GtkTreeSelection *selection;
-	GtkTreeIter iter;
-	GtkTreeModel *model;
-	GtkTreeView *view;
-	
-	view = GTK_TREE_VIEW (fv->tree);
-	selection = gtk_tree_view_get_selection (view);
-	if (!gtk_tree_selection_get_selected (selection, &model, &iter))
-		return NULL;
-	return fv_construct_full_path (fv, &iter);
-}
-
-static void
-on_treeview_row_activated (GtkTreeView *view,
-						   GtkTreePath *arg1,
-						   GtkTreeViewColumn *arg2,
-                           FileManagerPlugin *fv)
-{
-	gchar *path;
-
-	path = fv_get_selected_file_path (fv);
-	if (path)
-		anjuta_fv_open_file (fv, path);
-	g_free (path);
-}
-
-static gboolean
-on_tree_view_event  (GtkWidget *widget,
-					 GdkEvent  *event,
-					 FileManagerPlugin *fv)
-{
-	GtkTreeView *view;
-	GtkTreeModel *model;
-	GtkTreeSelection *selection;
-	GtkTreeIter iter;
-	const gchar *version;
-
-	g_return_val_if_fail (GTK_IS_TREE_VIEW (widget), FALSE);
-
-	if (!event)
-		return FALSE;
-
-	view = GTK_TREE_VIEW (widget);
-	model = gtk_tree_view_get_model (view);
-	selection = gtk_tree_view_get_selection (view);
-
-	if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
-		return FALSE;
-
-	gtk_tree_model_get (model, &iter, REV_COLUMN, &version, -1);
-
-	if (event->type == GDK_BUTTON_PRESS) {
-		GdkEventButton *e = (GdkEventButton *) event;
-		if (e->button == 3) {
-			GtkWidget *popup;
-			popup = gtk_ui_manager_get_widget (GTK_UI_MANAGER (fv->ui),
-											   "/PopupFileManager");
-			g_return_val_if_fail (GTK_IS_WIDGET (popup), TRUE);
-			gtk_menu_popup (GTK_MENU (popup),
-					NULL, NULL, NULL, NULL,
-					((GdkEventButton *) event)->button,
-					((GdkEventButton *) event)->time);
-		}
-	} else if (event->type == GDK_KEY_PRESS) {
-		GdkEventKey *e = (GdkEventKey *) event;
-
-		switch (e->keyval) {
-			case GDK_Return:
-				if (!gtk_tree_model_iter_has_child (model, &iter))
-				{
-					gchar *path = fv_get_selected_file_path(fv);
-					if (path && !g_file_test (path, G_FILE_TEST_IS_DIR))
-						anjuta_fv_open_file (fv, path);
-					g_free (path);
-					return TRUE;
-				}
-			default:
-				return FALSE;
-		}
-	}
-
-	return FALSE;
-}
-
-static void
-fv_disconnect (FileManagerPlugin *fv)
-{
-	g_return_if_fail (fv != NULL);
-	g_signal_handlers_block_by_func (fv->tree,
-									 G_CALLBACK (on_tree_view_event),
-									 NULL);
-}
-
-static void
-fv_connect (FileManagerPlugin *fv)
-{
-	g_return_if_fail (fv != NULL && fv->tree);
-	g_signal_handlers_unblock_by_func (fv->tree,
-									   G_CALLBACK (on_tree_view_event),
-									   NULL);
-}
-
-static gboolean
-file_entry_apply_filter (const char *name, GList *match, GList *unmatch,
-						 gboolean ignore_hidden)
-{
-	GList *tmp;
-	gboolean matched = (match == NULL);
-	g_return_val_if_fail(name, FALSE);
-	if (ignore_hidden && ('.' == name[0]))
-		return FALSE;
-	for (tmp = match; tmp; tmp = g_list_next(tmp))
-	{
-		if (0 == fnmatch((char *) tmp->data, name, 0))
-		{
-			matched = TRUE;
-			break;
-		}
-	}
-	if (!matched)
-		return FALSE;
-	for (tmp = unmatch; tmp; tmp = g_list_next(tmp))
-	{
-		if (0 == fnmatch((char *) tmp->data, name, 0))
-		{
-			return FALSE;
-		}
-	}
-	return matched;	
-}
-
-static void
-fv_add_tree_entry (FileManagerPlugin *fv, const gchar *path, GtkTreeIter *root)
-{
-	GtkTreeStore *store;
-	gchar file_name[PATH_MAX];
-	struct stat s;
-	DIR *dir;
-	struct dirent *dir_entry;
-	GtkTreeIter iter;
-	GdkPixbuf *pixbuf;
-	GSList *file_node;
-	GSList *files = NULL;
-	GList *ignore_files = NULL;
-	gchar *entries = NULL;
-	GtkTreeViewColumn* column;
-
-	g_return_if_fail (path != NULL);
-
-	store = GTK_TREE_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (fv->tree)));
-
-	g_snprintf(file_name, PATH_MAX, "%s/CVS/Entries", path);
-	if (0 == stat(file_name, &s))
-	{
-		if (S_ISREG(s.st_mode))
-		{
-			int fd;
-			entries = g_new(char, s.st_size + 2);
-			if (0 > (fd = open(file_name, O_RDONLY)))
-			{
-				g_free(entries);
-				entries = NULL;
-				
-			}
-			else
-			{
-				off_t n =0;
-				off_t total_read = 1;
-				while (0 < (n = read(fd, entries + total_read, s.st_size - total_read)))
-					total_read += n;
-				entries[s.st_size] = '\0';
-				entries[0] = '\n';
-				close(fd);
-			}
-		}
-	}
-	column = gtk_tree_view_get_column(GTK_TREE_VIEW(fv->tree), 1);
-	gtk_tree_view_column_set_visible(column, entries != NULL);
-															 
-	
-	g_snprintf(file_name, PATH_MAX, "%s/.cvsignore", path);
-	if (ff->ignore_nonrepo_files && 0 == stat(file_name, &s))
-	{
-		if (S_ISREG(s.st_mode))
-		{
-			int fd;
-			if ((fd = open(file_name, O_RDONLY)) >= 0)
-			{
-				off_t n = 0;
-				off_t total_read = 0;
-				gchar **strv = NULL;
-				gchar **ptrv = NULL;
-				gchar *content = g_new (char, s.st_size + 2);
-				
-				while (0 < (n = read(fd, content + total_read,
-									 s.st_size - total_read)))
-					total_read += n;
-				
-				content[s.st_size] = '\0';
-				close(fd);
-				
-				strv = g_strsplit (content, "\n", -1);
-				ptrv = strv;
-				while (strv && *ptrv)
-				{
-					ignore_files = g_list_prepend (ignore_files,
-												   g_strdup (*ptrv));
-					/* DEBUG_PRINT ("Ignoring: %s", *ptrv); */
-					ptrv++;
-				}
-				g_strfreev (strv);
-				g_free (content);
-			}
-		}
-	}
-
-	/* add ignore pattern */
-	{
-		GList *li;
-
-		li = ff->ignore_pattern;
-		while (li != NULL)
-		{
-			ignore_files = g_list_prepend (ignore_files, g_strdup (li->data));
-			DEBUG_PRINT ("Ignoring: %s", (gchar*)li->data);
-			li = g_list_next (li);
-		}
-	}
-
-	if (NULL != (dir = opendir(path)))
-	{
-		while (NULL != (dir_entry = readdir(dir)))
-		{
-			const gchar *file;
-			
-			file = dir_entry->d_name;
-			
-			if ((ff->ignore_hidden_files && *file == '.') ||
-				(0 == strcmp(file, ".")) ||
-				(0 == strcmp(file, "..")))
-				continue;
-			if (ignore_files &&
-				!file_entry_apply_filter (file, NULL, ignore_files,
-										  FALSE))
-				continue;
-			
-			g_snprintf(file_name, PATH_MAX, "%s/%s", path, file);
-			
-			if (g_file_test (file_name, G_FILE_TEST_IS_SYMLINK))
-				continue;
-			
-			if (g_file_test (file_name, G_FILE_TEST_IS_DIR))
-			{
-				GtkTreeIter sub_iter;
-				/*if (!file_entry_apply_filter (file_name, ff->dir_match,
-											  ff->dir_unmatch,
-											  ff->ignore_hidden_dirs))
-					continue;
-				*/
-				pixbuf = gdl_icons_get_mime_icon (icon_set,
-											"application/directory-normal");
-				gtk_tree_store_append (store, &iter, root);
-				gtk_tree_store_set (store, &iter,
-							PIXBUF_COLUMN, pixbuf,
-							FILENAME_COLUMN, file,
-							REV_COLUMN, "",
-							IS_DIR_COLUMN, 1,
-							-1);
-				g_object_unref (pixbuf);
-				gtk_tree_store_append (store, &sub_iter, &iter);
-				gtk_tree_store_set (store, &sub_iter,
-							FILENAME_COLUMN, _("Loading..."),
-							REV_COLUMN, "",
-							-1);
-			} else {
-				/* DEBUG_PRINT ("Rendering file: %s", file); */
-				files = g_slist_prepend (files, g_strdup (file));
-			}
-		}
-		closedir(dir);
-		files = g_slist_reverse (files);
-		file_node = files;
-		while (file_node)
-		{
-			gchar *version = NULL;
-			gchar *fname = file_node->data;
-			g_snprintf(file_name, PATH_MAX, "%s/%s", path, fname);
-			/* if (!file_entry_apply_filter (fname, ff->file_match,
-										  ff->file_unmatch,
-										  ff->ignore_hidden_files))
-				continue;
-			*/
-			if (entries)
-			{
-				char *str = g_strconcat("\n/", fname, "/", NULL);
-				char *name_pos = strstr(entries, str);
-				if (NULL != name_pos)
-				{
-					int len = strlen(str);
-					char *version_pos = strchr(name_pos + len, '/');
-					if (NULL != version_pos)
-					{
-						*version_pos = '\0';
-						version = g_strdup(name_pos + len);
-						*version_pos = '/';
-					}
-				}
-				g_free(str);
-			}
-			pixbuf = gdl_icons_get_uri_icon(icon_set, file_name);
-			gtk_tree_store_append (store, &iter, root);
-			gtk_tree_store_set (store, &iter,
-						PIXBUF_COLUMN, pixbuf,
-						FILENAME_COLUMN, fname,
-						REV_COLUMN, version ? version : "",
-						-1);
-			gdk_pixbuf_unref (pixbuf);
-			g_free (version);
-			g_free (fname);
-			file_node = g_slist_next (file_node);
-		}
-		g_slist_free (files);
-	}
-	if (entries)
-		g_free (entries);
-	if (ignore_files)
-	{
-		g_list_foreach (ignore_files, (GFunc)g_free, NULL);
-		g_list_free (ignore_files);
-	}
-}
-
-static void
-on_file_view_row_expanded (GtkTreeView *view,
-						   GtkTreeIter *iter,
-						   GtkTreePath *iter_path,
-						   FileManagerPlugin *fv)
-{
-	GdkPixbuf *pix;
-	gchar *full_path;
-	GtkTreeIter child;
-	GList *row_refs, *row_ref_node;
-	GtkTreeRowReference *row_ref;
-	GtkTreePath *path;
-	AnjutaStatus *status;
-	
-	status = anjuta_shell_get_status (ANJUTA_PLUGIN (fv)->shell, NULL);
-	anjuta_status_busy_push (status);
-	
-	GtkTreeStore *store = GTK_TREE_STORE (gtk_tree_view_get_model (view));
-
-	/* Deleting multiple rows at one go is little tricky. We need to
-	   take row references before they are deleted
-	*/
-	row_refs = NULL;
-	if (gtk_tree_model_iter_children (GTK_TREE_MODEL (store), &child, iter))
-	{
-		/* Get row references */
-		do
-		{
-			path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), &child);
-			row_ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (store), path);
-			row_refs = g_list_prepend (row_refs, row_ref);
-			gtk_tree_path_free (path);
-		}
-		while (gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &child));
-	}
-	
-	/* Update with new info */
-	gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &child, iter_path);
-	full_path = fv_construct_full_path (fv, &child);
-	fv_add_tree_entry (fv, full_path, &child);
-	g_free (full_path);
-	
-	/* Update folder icon */
-	pix = gdl_icons_get_mime_icon (icon_set, "application/directory-normal");
-	gtk_tree_store_set (store, &child, PIXBUF_COLUMN, pix, -1);
-	g_object_unref (pix);
-
-	/* Delete the referenced rows */
-	row_ref_node = row_refs;
-	while (row_ref_node)
-	{
-		row_ref = row_ref_node->data;
-		path = gtk_tree_row_reference_get_path (row_ref);
-		g_assert (path != NULL);
-		gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &child, path);
-		gtk_tree_store_remove (store, &child);
-		gtk_tree_path_free (path);
-		gtk_tree_row_reference_free (row_ref);
-		row_ref_node = g_list_next (row_ref_node);
-	}
-	if (row_refs)
-	{
-		g_list_free (row_refs);
-	}
-	anjuta_status_busy_pop (status);
-}
-
-static void
-on_file_view_row_collapsed (GtkTreeView *view,
-						   GtkTreeIter *iter,
-						   GtkTreePath *iter_path,
-						   FileManagerPlugin *fv)
-{
-	GdkPixbuf *pix;
-	GtkTreeIter child, child2;
-	GtkTreeStore *store;
-	GList *row_refs, *row_ref_node;
-	GtkTreeRowReference *row_ref;
-	GtkTreePath *path;
-	
-	store = GTK_TREE_STORE (gtk_tree_view_get_model (view));
-	
-	/* Deleting multiple rows at one go is little tricky. We need to
-	   take row references before they are deleted
-	*/
-	row_refs = NULL;
-	if (gtk_tree_model_iter_children (GTK_TREE_MODEL (store), &child, iter))
-	{
-		/* Get row references */
-		do {
-			path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), &child);
-			row_ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (store), path);
-			row_refs = g_list_prepend (row_refs, row_ref);
-			gtk_tree_path_free (path);
-		}
-		while (gtk_tree_model_iter_next  (GTK_TREE_MODEL (store), &child));
-	}
-	
-	/* Update folder icon */
-	gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &child, iter_path);
-	pix = gdl_icons_get_mime_icon (icon_set, "application/directory-normal");
-	gtk_tree_store_set (store, &child, PIXBUF_COLUMN, pix, -1);
-	g_object_unref (pix);
-
-	/* Add dummy child */
-	gtk_tree_store_append (store, &child2, &child);
-	gtk_tree_store_set (store, &child2,
-						PIXBUF_COLUMN, NULL,
-						FILENAME_COLUMN, _("Loading..."),
-						REV_COLUMN, "", -1);
-
-	/* Delete the referenced rows */
-	row_ref_node = row_refs;
-	while (row_ref_node)
-	{
-		row_ref = row_ref_node->data;
-		path = gtk_tree_row_reference_get_path (row_ref);
-		g_assert (path != NULL);
-		gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &child, path);
-		gtk_tree_store_remove (store, &child);
-		gtk_tree_path_free (path);
-		gtk_tree_row_reference_free (row_ref);
-		row_ref_node = g_list_next (row_ref_node);
-	}
-	if (row_refs)
-	{
-		g_list_free (row_refs);
-	}
-}
-
-static void
-on_tree_view_selection_changed (GtkTreeSelection *sel, FileManagerPlugin *fv)
-{
-	gchar *filename, *uri;
-	GValue *value;
-	
-	filename = fv_get_selected_file_path (fv);
-	if (filename)
-	{
-		uri = gnome_vfs_get_uri_from_local_path (filename);
-		g_free (filename);
-		value = g_new0 (GValue, 1);
-		g_value_init (value, G_TYPE_STRING);
-		g_value_take_string (value, uri);
-		anjuta_shell_add_value (ANJUTA_PLUGIN(fv)->shell,
-								"file_manager_current_uri",
-								value, NULL);
-	} else {
-		anjuta_shell_remove_value (ANJUTA_PLUGIN(fv)->shell,
-								   "file_manager_current_uri", NULL);
-	}
-}
-
-static gint
-compare_iter (GtkTreeModel *model, GtkTreeIter *iter1,
-			  GtkTreeIter *iter2, gpointer data)
-{
-	gchar *filename1, *filename2;
-	gboolean is_dir1, is_dir2;
-	int retval;
-	
-	gtk_tree_model_get (model, iter1, IS_DIR_COLUMN, &is_dir1, -1);
-	gtk_tree_model_get (model, iter2, IS_DIR_COLUMN, &is_dir2, -1);
-	if (is_dir1 && !is_dir2)
-		retval = -1;
-	else if (!is_dir1 && is_dir2)
-		retval = 1;
-	else
-	{
-		gtk_tree_model_get (model, iter1, FILENAME_COLUMN, &filename1, -1);
-		gtk_tree_model_get (model, iter2, FILENAME_COLUMN, &filename2, -1);
-		retval = g_ascii_strcasecmp (filename1, filename2);
-		g_free(filename1);
-		g_free(filename2);
-	}
-	return retval;
-}
-
-void
-fv_init (FileManagerPlugin *fv)
-{
-	GtkTreeStore *store;
-	GtkTreeViewColumn *column;
-	GtkCellRenderer *renderer;
-	GtkTreeSelection *selection;
-
-	/* Scrolled window */
-	fv->scrolledwindow = gtk_scrolled_window_new (NULL,NULL);
-	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (fv->scrolledwindow),
-					GTK_POLICY_AUTOMATIC,
-					GTK_POLICY_AUTOMATIC);
-	gtk_widget_show (fv->scrolledwindow);
-	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (fv->scrolledwindow),
-										 GTK_SHADOW_IN);
-	/* Tree and his model */
-	store = gtk_tree_store_new (COLUMNS_NB,
-								GDK_TYPE_PIXBUF,
-								G_TYPE_STRING,
-								G_TYPE_STRING,
-								G_TYPE_BOOLEAN);
-	gtk_tree_sortable_set_default_sort_func (GTK_TREE_SORTABLE (store),
-								compare_iter, fv, NULL);
-
-	fv->tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
-	gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (fv->tree), FALSE);
-	
-	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (fv->tree));
-	gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
-	gtk_container_add (GTK_CONTAINER (fv->scrolledwindow), fv->tree);
-	g_signal_connect (fv->tree, "row_expanded",
-					  G_CALLBACK (on_file_view_row_expanded), fv);
-	g_signal_connect (fv->tree, "row_collapsed",
-					  G_CALLBACK (on_file_view_row_collapsed), fv);
-	g_signal_connect (fv->tree, "event-after",
-					  G_CALLBACK (on_tree_view_event), fv);
-	g_signal_connect (G_OBJECT (selection), "changed",
-					  G_CALLBACK (on_tree_view_selection_changed), fv);
-	g_signal_connect (fv->tree, "row_activated",
-					  G_CALLBACK (on_treeview_row_activated), fv);
-	/* Tooltip signals */
-	g_signal_connect (G_OBJECT (fv->tree), "motion-notify-event",
-					  G_CALLBACK (tooltip_motion_cb), fv);
-	g_signal_connect (G_OBJECT (fv->tree), "leave-notify-event",
-					  G_CALLBACK (tooltip_leave_cb), fv);
-	gtk_widget_show (fv->tree);
-
-	g_object_unref (G_OBJECT (store));
-
-	/* Columns */
-	column = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
-	gtk_tree_view_column_set_title (column, _("File"));
-
-	renderer = gtk_cell_renderer_pixbuf_new ();
-	gtk_tree_view_column_pack_start (column, renderer, FALSE);
-	gtk_tree_view_column_add_attribute (column, renderer, "pixbuf", PIXBUF_COLUMN);
-
-	renderer = gtk_cell_renderer_text_new ();
-	gtk_tree_view_column_pack_start (column, renderer, TRUE);
-	gtk_tree_view_column_add_attribute (column, renderer, "text", FILENAME_COLUMN);
-
-	gtk_tree_view_append_column (GTK_TREE_VIEW (fv->tree), column);
-	gtk_tree_view_set_expander_column (GTK_TREE_VIEW (fv->tree), column);
-
-	renderer = gtk_cell_renderer_text_new ();
-	column = gtk_tree_view_column_new_with_attributes (_("Rev"), renderer,
-							   "text", REV_COLUMN,
-							   NULL);
-	gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
-	gtk_tree_view_append_column (GTK_TREE_VIEW (fv->tree), column);
-
-	g_object_ref (G_OBJECT (fv->tree));
-	g_object_ref (G_OBJECT (fv->scrolledwindow));
-}
-
-void
-fv_finalize (FileManagerPlugin *fv)
-{
-	if (fv->tooltip_timeout)
-		g_source_remove (fv->tooltip_timeout);
-	fv->tooltip_timeout = 0;
-	
-	if (fv->top_dir)
-		g_free (fv->top_dir);
-	g_object_unref (G_OBJECT (fv->tree));
-	g_object_unref (G_OBJECT (fv->scrolledwindow));
-	
-	/* Object will be destroyed when removed from container */
-	/* gtk_widget_destroy (fv->scrolledwindow); */
-	fv_cancel_node_expansion (fv);
-	fv->top_dir = NULL;
-	fv->tree = NULL;
-	fv->scrolledwindow = NULL;
-	if (ff != NULL)
-		fv_prefs_free (ff);
-	ff = NULL;
-}
-
-void
-fv_clear (FileManagerPlugin *fv)
-{
-	GtkTreeModel *model;
-
-	g_return_if_fail (fv != NULL && fv->tree);
-
-	model = gtk_tree_view_get_model (GTK_TREE_VIEW (fv->tree));
-	gtk_tree_store_clear (GTK_TREE_STORE (model));
-}
-
-static void
-mapping_function (GtkTreeView *treeview, GtkTreePath *path, gpointer data)
-{
-	gchar *str;
-	GList *map = * ((GList **) data);
-	
-	str = gtk_tree_path_to_string (path);
-	map = g_list_append (map, str);
-	* ((GList **) data) = map;
-};
-
-GList *
-fv_get_node_expansion_states (FileManagerPlugin *fv)
-{
-	GList *map = NULL;
-	gtk_tree_view_map_expanded_rows (GTK_TREE_VIEW (fv->tree),
-									 mapping_function, &map);
-	return map;
-}
-
-static gboolean
-on_fv_node_expansion_on_idle (gpointer user_data)
-{
-	GtkTreePath *path;
-	GtkTreeModel *model;
-	FileManagerPlugin *fv = ANJUTA_PLUGIN_FILE_MANAGER (user_data);
-	gchar *node_path = (gchar*)fv->nodes_to_expand->data;
-	
-	fv->nodes_to_expand = g_list_remove (fv->nodes_to_expand,
-											   node_path);
-	/* Expand node_path */
-	model = gtk_tree_view_get_model (GTK_TREE_VIEW (fv->tree));
-	path = gtk_tree_path_new_from_string (node_path);
-	DEBUG_PRINT ("Expanding node: %s", node_path);
-	gtk_tree_view_expand_row (GTK_TREE_VIEW (fv->tree), path, FALSE);
-	
-	/* Clean up */
-	gtk_tree_path_free (path);
-	g_free (node_path);
-	
-	/* End of this cycle */
-	if (fv->nodes_to_expand == NULL)
-		return FALSE; /* End */
-	else
-		return TRUE; /* Continue */
-}
-
-static void
-fv_queue_node_expansion (FileManagerPlugin *fv, const gchar *node_path)
-{
-	fv->nodes_to_expand = g_list_append (fv->nodes_to_expand,
-										 g_strdup (node_path));
-	if (fv->idle_id <= 0)
-		fv->idle_id = g_idle_add_full (G_PRIORITY_LOW,
-									   on_fv_node_expansion_on_idle,
-									   fv, NULL);
-}
-
-void
-fv_set_node_expansion_states (FileManagerPlugin *fv, GList *expansion_states)
-{
-	/* Queue expanded nodes */	
-	if (expansion_states)
-	{
-		GList *node;
-		node = expansion_states;
-		
-		while (node)
-		{
-			fv_queue_node_expansion (fv, (gchar *)node->data);
-			node = g_list_next (node);
-		}
-	}
-}
-
-void
-fv_cancel_node_expansion (FileManagerPlugin *fv)
-{
-	if (fv->idle_id)
-		g_source_remove (fv->idle_id);
-	fv->idle_id = 0;
-	if (fv->nodes_to_expand)
-	{
-		g_list_foreach (fv->nodes_to_expand, (GFunc)g_free, NULL);
-		g_list_free (fv->nodes_to_expand);
-		fv->nodes_to_expand = NULL;
-	}
-}
-
-void
-fv_set_root (FileManagerPlugin *fv, const gchar *root_dir)
-{
-	if (!fv->top_dir || 0 != strcmp(fv->top_dir, root_dir))
-	{
-		/* Different directory*/
-		if (fv->top_dir)
-			g_free(fv->top_dir);
-		fv->top_dir = g_strdup(root_dir);
-		fv_refresh(fv, FALSE);
-	}
-}
-
-void
-fv_refresh (FileManagerPlugin *fv, gboolean save_states)
-{
-	static gboolean busy = FALSE;
-	GList *selected_items = NULL;
-	GtkTreeIter sub_iter;
-	GtkTreeIter iter;
-	GtkTreePath *path;
-	GtkTreeModel *model;
-	GtkTreeStore *store;
-	GdkPixbuf *pixbuf;
-	gchar *project_dir;
-	gchar *root_node_path;
-	
-	if (busy)
-		return;
-	else
-		busy = TRUE;
-	
-	/* Make sure node expansion is stoped */
-	fv_cancel_node_expansion (fv);
-	
-	if (icon_set == NULL)
-		icon_set = gdl_icons_new (16);
-	if (ff != NULL)
-		fv_prefs_free (ff);
-	ff = fv_prefs_new (fv);
-	
-	fv_disconnect (fv);
-	if (save_states)
-		selected_items = fv_get_node_expansion_states (fv);
-	fv_clear (fv);
-
-	project_dir = g_path_get_basename (fv->top_dir);
-
-	model = gtk_tree_view_get_model (GTK_TREE_VIEW (fv->tree));
-	store = GTK_TREE_STORE (model);
-
-	pixbuf = gdl_icons_get_mime_icon (icon_set, "application/directory-normal");
-	gtk_tree_store_append (store, &iter, NULL);
-	gtk_tree_store_set (store, &iter,
-				PIXBUF_COLUMN, pixbuf,
-				FILENAME_COLUMN, project_dir,
-				REV_COLUMN, "",
-				-1);
-	g_object_unref (pixbuf);
-	g_free (project_dir);
-	
-	gtk_tree_store_append (store, &sub_iter, &iter);
-	gtk_tree_store_set (store, &sub_iter,
-				PIXBUF_COLUMN, NULL,
-				FILENAME_COLUMN, _("Loading..."),
-				REV_COLUMN, "",
-				-1);
-
-	if (save_states)
-	{
-		fv_set_node_expansion_states (fv, selected_items);
-	}
-	else
-	{
-		/* Expand first node */
-		gtk_tree_model_get_iter_first (model, &iter);
-		path = gtk_tree_model_get_path (model, &iter);
-		root_node_path = gtk_tree_path_to_string (path);
-		fv_queue_node_expansion (fv, root_node_path);
-		gtk_tree_path_free (path);
-		g_free (root_node_path);
-	}
-	
-	gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model),
-										  GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID,
-										  GTK_SORT_ASCENDING);
-
-	if (selected_items)
-		anjuta_util_glist_strings_free (selected_items);
-	fv_connect (fv);
-	busy = FALSE;
-	return;
-}
diff --git a/plugins/file-manager.old/anjuta-file-manager-plugin.glade b/plugins/file-manager.old/anjuta-file-manager-plugin.glade
deleted file mode 100644
index 6e250fd..0000000
--- a/plugins/file-manager.old/anjuta-file-manager-plugin.glade
+++ /dev/null
@@ -1,360 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--*- mode: xml -*-->
-<glade-interface>
-  <widget class="GtkDialog" id="dialog.file.filter">
-    <property name="title" translatable="yes">dialog3</property>
-    <property name="default_width">300</property>
-    <property name="default_height">200</property>
-    <signal name="close" handler="on_file_filter_close"/>
-    <signal name="delete_event" handler="on_file_filter_delete_event"/>
-    <signal name="response" handler="on_file_filter_response"/>
-    <child internal-child="vbox">
-      <widget class="GtkVBox" id="dialog-vbox21">
-        <property name="visible">True</property>
-        <child>
-          <widget class="GtkVBox" id="File Manager">
-            <property name="visible">True</property>
-            <property name="border_width">5</property>
-            <child>
-              <widget class="GtkVBox" id="filter.file.vbox">
-                <property name="visible">True</property>
-                <child>
-                  <widget class="GtkFrame" id="frame9">
-                    <property name="visible">True</property>
-                    <property name="label_xalign">0</property>
-                    <property name="label_yalign">0</property>
-                    <property name="shadow_type">GTK_SHADOW_NONE</property>
-                    <child>
-                      <widget class="GtkHBox" id="hbox1">
-                        <property name="visible">True</property>
-                        <property name="border_width">10</property>
-                        <property name="spacing">5</property>
-                        <child>
-                          <widget class="GtkLabel" id="label30">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Directory</property>
-                          </widget>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCombo" id="combo1">
-                            <property name="visible">True</property>
-                            <property name="enable_arrows_always">False</property>
-                          </widget>
-                          <packing>
-                            <property name="position">1</property>
-                          </packing>
-                        </child>
-                      </widget>
-                    </child>
-                    <child>
-                      <widget class="GtkLabel" id="label">
-                        <property name="visible">True</property>
-                        <property name="xalign">0</property>
-                        <property name="yalign">0</property>
-                        <property name="label" translatable="yes">&lt;b&gt;Root directory if no project is open:&lt;/b&gt;</property>
-                        <property name="use_markup">True</property>
-                      </widget>
-                      <packing>
-                        <property name="type">label_item</property>
-                      </packing>
-                    </child>
-                  </widget>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="padding">5</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkFrame" id="frame7">
-                    <property name="visible">True</property>
-                    <property name="label_xalign">0</property>
-                    <property name="label_yalign">0</property>
-                    <property name="shadow_type">GTK_SHADOW_NONE</property>
-                    <child>
-                      <widget class="GtkTable" id="table1">
-                        <property name="visible">True</property>
-                        <property name="border_width">10</property>
-                        <property name="n_rows">5</property>
-                        <property name="n_columns">2</property>
-                        <property name="column_spacing">5</property>
-                        <property name="row_spacing">5</property>
-                        <child>
-                          <widget class="GtkLabel" id="label25">
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Choose files</property>
-                            <property name="justify">GTK_JUSTIFY_CENTER</property>
-                          </widget>
-                          <packing>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCombo" id="filter.file.match.combo">
-                            <property name="enable_arrows_always">False</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label26">
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Ignore files</property>
-                            <property name="justify">GTK_JUSTIFY_CENTER</property>
-                          </widget>
-                          <packing>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCombo" id="filter.file.unmatch.combo">
-                            <property name="enable_arrows_always">False</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCheckButton" id="preferences_toggle:bool:1:1:filter.file.ignore.hidden">
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="label" translatable="yes">Do not show hidden files</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </widget>
-                          <packing>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">2</property>
-                            <property name="bottom_attach">3</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCheckButton" id="preferences_toggle:bool:1:0:filter.file.ignore.nonrepo">
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="label" translatable="yes">Do not show files ignored by version control</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </widget>
-                          <packing>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">3</property>
-                            <property name="bottom_attach">4</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label31">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Ignore files (space seperated shell patterns):</property>
-                          </widget>
-                          <packing>
-                            <property name="top_attach">4</property>
-                            <property name="bottom_attach">5</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkEntry" id="preferences_entry:text::0:filter.file.ignore.pattern">
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="tooltip" translatable="yes">Space-separated list of file name patterns to ignore</property>
-                            <property name="max_length">256</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">4</property>
-                            <property name="bottom_attach">5</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                      </widget>
-                    </child>
-                    <child>
-                      <widget class="GtkLabel" id="label1">
-                        <property name="visible">True</property>
-                        <property name="xalign">0</property>
-                        <property name="yalign">0</property>
-                        <property name="label" translatable="yes">&lt;b&gt;File filter:&lt;/b&gt;</property>
-                        <property name="use_markup">True</property>
-                      </widget>
-                      <packing>
-                        <property name="type">label_item</property>
-                      </packing>
-                    </child>
-                  </widget>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkFrame" id="frame8">
-                    <property name="label_xalign">0</property>
-                    <property name="label_yalign">0</property>
-                    <property name="shadow_type">GTK_SHADOW_NONE</property>
-                    <child>
-                      <widget class="GtkTable" id="table2">
-                        <property name="visible">True</property>
-                        <property name="border_width">10</property>
-                        <property name="n_rows">3</property>
-                        <property name="n_columns">2</property>
-                        <property name="column_spacing">5</property>
-                        <property name="row_spacing">5</property>
-                        <child>
-                          <widget class="GtkLabel" id="label27">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Choose directories</property>
-                            <property name="justify">GTK_JUSTIFY_CENTER</property>
-                          </widget>
-                          <packing>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkLabel" id="label28">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="yalign">0</property>
-                            <property name="label" translatable="yes">Ignore directories</property>
-                            <property name="justify">GTK_JUSTIFY_CENTER</property>
-                          </widget>
-                          <packing>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCombo" id="filter.dir.match.combo">
-                            <property name="visible">True</property>
-                            <property name="enable_arrows_always">False</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCombo" id="filter.dir.unmatch.combo">
-                            <property name="visible">True</property>
-                            <property name="enable_arrows_always">False</property>
-                          </widget>
-                          <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                        <child>
-                          <widget class="GtkCheckButton" id="preferences_toggle:bool:1:0:filter.dir.ignore.hidden">
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="label" translatable="yes">Do not show hidden directories</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </widget>
-                          <packing>
-                            <property name="right_attach">2</property>
-                            <property name="top_attach">2</property>
-                            <property name="bottom_attach">3</property>
-                            <property name="x_options">GTK_FILL</property>
-                            <property name="y_options"></property>
-                          </packing>
-                        </child>
-                      </widget>
-                    </child>
-                    <child>
-                      <widget class="GtkLabel" id="label27">
-                        <property name="xalign">0</property>
-                        <property name="yalign">0</property>
-                        <property name="label" translatable="yes">&lt;b&gt;Directory filter:&lt;/b&gt;</property>
-                        <property name="use_markup">True</property>
-                      </widget>
-                      <packing>
-                        <property name="type">label_item</property>
-                      </packing>
-                    </child>
-                  </widget>
-                  <packing>
-                    <property name="position">2</property>
-                  </packing>
-                </child>
-              </widget>
-              <packing>
-                <property name="expand">False</property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkHButtonBox" id="hbuttonbox5">
-                <property name="visible">True</property>
-                <property name="layout_style">GTK_BUTTONBOX_END</property>
-              </widget>
-              <packing>
-                <property name="expand">False</property>
-                <property name="padding">5</property>
-                <property name="position">1</property>
-              </packing>
-            </child>
-          </widget>
-          <packing>
-            <property name="position">2</property>
-          </packing>
-        </child>
-        <child internal-child="action_area">
-          <widget class="GtkHButtonBox" id="dialog-action_area21">
-            <property name="visible">True</property>
-            <property name="layout_style">GTK_BUTTONBOX_END</property>
-            <child>
-              <widget class="GtkButton" id="closebutton5">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="can_default">True</property>
-                <property name="label">gtk-close</property>
-                <property name="use_stock">True</property>
-                <property name="response_id">-6</property>
-              </widget>
-            </child>
-          </widget>
-          <packing>
-            <property name="expand">False</property>
-            <property name="pack_type">GTK_PACK_END</property>
-          </packing>
-        </child>
-      </widget>
-    </child>
-  </widget>
-</glade-interface>
diff --git a/plugins/file-manager.old/anjuta-file-manager-plugin.png b/plugins/file-manager.old/anjuta-file-manager-plugin.png
deleted file mode 100644
index 05921a6..0000000
Binary files a/plugins/file-manager.old/anjuta-file-manager-plugin.png and /dev/null differ
diff --git a/plugins/file-manager.old/anjuta-file-manager.plugin.in b/plugins/file-manager.old/anjuta-file-manager.plugin.in
deleted file mode 100644
index e2fcc1b..0000000
--- a/plugins/file-manager.old/anjuta-file-manager.plugin.in
+++ /dev/null
@@ -1,6 +0,0 @@
-[Anjuta Plugin]
-_Name=File Manager
-_Description=File Manager Plugin for Anjuta.
-Location=anjuta-file-manager:FileManagerPlugin
-Icon=anjuta-file-manager-plugin.png
-Interfaces=IAnjutaFileManager
diff --git a/plugins/file-manager.old/anjuta-file-manager.ui b/plugins/file-manager.old/anjuta-file-manager.ui
deleted file mode 100644
index f601a01..0000000
--- a/plugins/file-manager.old/anjuta-file-manager.ui
+++ /dev/null
@@ -1,10 +0,0 @@
-<!--*- xml -*-->
-<ui>
-	<popup name="PopupFileManager">
-		<placeholder name="PlaceholderPopupFileProject"/>
-		<placeholder name="PlaceholderPopupFileBuild"/>
-		<placeholder name="PlaceholderPopupFileVCS"/>
-		<separator/>
-		<menuitem name="PopupFileManagerRefresh" action="ActionPopupFileManagerRefresh"/>
-	</popup>
-</ui>
diff --git a/plugins/file-manager.old/plugin.c b/plugins/file-manager.old/plugin.c
deleted file mode 100644
index 77b5e59..0000000
--- a/plugins/file-manager.old/plugin.c
+++ /dev/null
@@ -1,314 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
-/*
-    plugin.c
-    Copyright (C) 2000 Naba Kumar
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#include <config.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
-#include <libanjuta/anjuta-shell.h>
-#include <libanjuta/interfaces/ianjuta-help.h>
-#include <libanjuta/interfaces/ianjuta-document-manager.h>
-#include <libanjuta/interfaces/ianjuta-message-manager.h>
-#include <libanjuta/interfaces/ianjuta-file-manager.h>
-#include <libanjuta/interfaces/ianjuta-preferences.h>
-#include <libanjuta/anjuta-debug.h>
-
-#include "plugin.h"
-
-#define UI_FILE PACKAGE_DATA_DIR"/ui/anjuta-file-manager.ui"
-#define PREFS_GLADE PACKAGE_DATA_DIR"/glade/anjuta-file-manager-plugin.glade"
-#define ICON_FILE "anjuta-file-manager-plugin.png"
-
-static gpointer parent_class;
-
-static void refresh (GtkAction *action, FileManagerPlugin *plugin)
-{
-	fv_refresh (plugin, TRUE);
-}
-
-static GtkActionEntry popup_actions[] = 
-{
-	{
-		"ActionPopupFileManagerRefresh", GTK_STOCK_REFRESH,
-		N_("_Refresh"), NULL, N_("Refresh file manager tree"),
-		G_CALLBACK (refresh)
-	}
-};
-
-static void
-set_default_root_directory (FileManagerPlugin *fv)
-{
-	gchar* root = anjuta_preferences_get(fv->prefs, "root.dir");
-	if (root)
-	{
-		fv_set_root (fv, root);
-		g_free (root);
-	}
-	else
-	{
-		fv_set_root (fv, "/");
-	}
-	fv_refresh (fv, FALSE);
-}
-
-static void
-on_gconf_notify_prefs (GConfClient *gclient, guint cnxn_id,
-					   GConfEntry *entry, gpointer user_data)
-{
-	FileManagerPlugin *fv = ANJUTA_PLUGIN_FILE_MANAGER (user_data);
-	if (fv->project_is_loaded == FALSE)
-		set_default_root_directory (fv);
-	else
-		fv_refresh (fv, TRUE);
-}
-
-#define REGISTER_NOTIFY(key, func) \
-	notify_id = anjuta_preferences_notify_add (fv->prefs, \
-											   key, func, fv, NULL); \
-	fv->gconf_notify_ids = g_list_prepend (fv->gconf_notify_ids, \
-										   GUINT_TO_POINTER (notify_id));
-static void
-prefs_init (FileManagerPlugin *fv)
-{
-	guint notify_id;
-	REGISTER_NOTIFY ("root.dir", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.dir.ignore.hidden", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.dir.ignore.pattern", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.dir.match", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.dir.unmatch", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.file.ignore.hidden", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.file.match", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.file.unmatch", on_gconf_notify_prefs);
-	REGISTER_NOTIFY ("filter.file.ignore.nonrepo", on_gconf_notify_prefs);
-}
-
-static void
-prefs_finalize (FileManagerPlugin *fv)
-{
-	GList *node;
-	node = fv->gconf_notify_ids;
-	while (node)
-	{
-		anjuta_preferences_notify_remove (fv->prefs,
-										  GPOINTER_TO_UINT (node->data));
-		node = g_list_next (node);
-	}
-	g_list_free (fv->gconf_notify_ids);
-	fv->gconf_notify_ids = NULL;
-}
-
-static void
-project_root_added (AnjutaPlugin *plugin, const gchar *name,
-					const GValue *value, gpointer user_data)
-{
-	FileManagerPlugin *fm_plugin;
-	const gchar *root_uri;
-
-	fm_plugin = ANJUTA_PLUGIN_FILE_MANAGER (plugin);
-	root_uri = g_value_get_string (value);
-	if (root_uri)
-	{
-		gchar *root_dir = gnome_vfs_get_local_path_from_uri (root_uri);
-		if (root_dir)
-		{
-			fv_set_root (fm_plugin, root_dir);
-			fv_refresh (fm_plugin, FALSE);
-			ANJUTA_PLUGIN_FILE_MANAGER (plugin)->project_is_loaded = TRUE;
-		}
-		else
-			set_default_root_directory (fm_plugin);
-		g_free (root_dir);
-	}
-	else
-		set_default_root_directory (fm_plugin);
-}
-
-static void
-project_root_removed (AnjutaPlugin *plugin, const gchar *name,
-					  gpointer user_data)
-{
-	set_default_root_directory (ANJUTA_PLUGIN_FILE_MANAGER (plugin));
-	ANJUTA_PLUGIN_FILE_MANAGER (plugin)->project_is_loaded = FALSE;
-}
-
-static gboolean
-activate_plugin (AnjutaPlugin *plugin)
-{
-	FileManagerPlugin *fm_plugin;
-	gboolean initialized = FALSE;
-	
-	DEBUG_PRINT ("FileManagerPlugin: Activating File Manager plugin ...");
-	
-	fm_plugin = ANJUTA_PLUGIN_FILE_MANAGER (plugin);
-	fm_plugin->ui = anjuta_shell_get_ui (plugin->shell, NULL);
-	fm_plugin->prefs = anjuta_shell_get_preferences (plugin->shell, NULL);
-	fv_init (fm_plugin);
-	
-	fm_plugin->idle_id = 0;
-	fm_plugin->nodes_to_expand = NULL;
-	
-	/* Add action group */
-	fm_plugin->action_group = 
-		anjuta_ui_add_action_group_entries (fm_plugin->ui,
-											"ActionGroupFileManager",
-											_("File manager popup actions"),
-											popup_actions, 1,
-											GETTEXT_PACKAGE, FALSE,
-											plugin);
-	/* Add UI */
-	fm_plugin->merge_id = 
-		anjuta_ui_merge (fm_plugin->ui, UI_FILE);
-	
-	/* Added widgets */
-	anjuta_shell_add_widget (plugin->shell, fm_plugin->scrolledwindow,
-							 "AnjutaFileManager", _("Files"), GTK_STOCK_OPEN,
-							 ANJUTA_SHELL_PLACEMENT_LEFT, NULL);
-	
-	/* set up project directory watch */
-	fm_plugin->root_watch_id = anjuta_plugin_add_watch (plugin,
-									"project_root_uri",
-									project_root_added,
-									project_root_removed, NULL);
-	
-	/* set up preference key watches */
-	prefs_init (fm_plugin);
-	on_gconf_notify_prefs (NULL, 0, NULL, fm_plugin);
-	
-	initialized = FALSE;
-	return TRUE;
-}
-
-static gboolean
-deactivate_plugin (AnjutaPlugin *plugin)
-{
-	GtkWidget *widget_to_remove;
-	FileManagerPlugin *fm_plugin;
-	
-	fm_plugin = ANJUTA_PLUGIN_FILE_MANAGER (plugin);
-	
-	/* Remove watches */
-	anjuta_plugin_remove_watch (plugin, fm_plugin->root_watch_id, FALSE);
-	
-	/* Finalize it first so that we release our refs */
-	widget_to_remove = fm_plugin->scrolledwindow;
-	fv_finalize(fm_plugin);
-	
-	/* Remove widgets */
-	anjuta_shell_remove_widget (plugin->shell, widget_to_remove, NULL);
-	
-	/* Remove UI */
-	anjuta_ui_unmerge (fm_plugin->ui, fm_plugin->merge_id);
-	
-	/* Remove action group */
-	anjuta_ui_remove_action_group (fm_plugin->ui, fm_plugin->action_group);
-	
-	/* Remove preference key watches */
-	prefs_finalize (fm_plugin);
-	
-	fm_plugin->root_watch_id = 0;
-	return TRUE;
-}
-
-static void
-dispose (GObject *obj)
-{
-	/* FIXME: */
-	GNOME_CALL_PARENT (G_OBJECT_CLASS, dispose, (obj));
-}
-
-static void
-file_manager_plugin_instance_init (GObject *obj)
-{
-	FileManagerPlugin *plugin = ANJUTA_PLUGIN_FILE_MANAGER (obj);
-	plugin->tree = NULL;
-	plugin->scrolledwindow = NULL;
-	plugin->top_dir = NULL;
-	plugin->root_watch_id = 0;
-	plugin->gconf_notify_ids = NULL;
-	plugin->project_is_loaded = FALSE;
-}
-
-static void
-file_manager_plugin_class_init (GObjectClass *klass) 
-{
-	AnjutaPluginClass *plugin_class = ANJUTA_PLUGIN_CLASS (klass);
-
-	parent_class = g_type_class_peek_parent (klass);
-
-	plugin_class->activate = activate_plugin;
-	plugin_class->deactivate = deactivate_plugin;
-	klass->dispose = dispose;
-}
-
-static void
-ifile_manager_set_root (IAnjutaFileManager *file_manager,
-						const gchar *root, GError **err)
-{
-	fv_set_root (ANJUTA_PLUGIN_FILE_MANAGER (file_manager), root);
-}
-
-static void
-ifile_manager_set_selected (IAnjutaFileManager *file_manager,
-							const gchar *root, GError **err)
-{
-}
-
-static gchar*
-ifile_manager_get_selected (IAnjutaFileManager *file_manager, GError **err)
-{
-	return fv_get_selected_file_path(ANJUTA_PLUGIN_FILE_MANAGER (file_manager));
-}
-
-static void
-ifile_manager_iface_init(IAnjutaFileManagerIface *iface)
-{
-	iface->set_root = ifile_manager_set_root;
-	iface->get_selected = ifile_manager_get_selected;
-	iface->set_selected = ifile_manager_set_selected;
-}
-
-static void
-ipreferences_merge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError** e)
-{
-	/* Add preferences */
-	GladeXML *gxml = glade_xml_new (PREFS_GLADE, "dialog.file.filter", NULL);
-		
-	anjuta_preferences_add_page (prefs,
-									gxml, "File Manager", _("File Manager"), ICON_FILE);
-	g_object_unref (G_OBJECT (gxml));
-}
-
-static void
-ipreferences_unmerge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError** e)
-{
-	anjuta_preferences_remove_page (prefs, _("File Manager"));
-}
-
-static void
-ipreferences_iface_init(IAnjutaPreferencesIface* iface)
-{
-	iface->merge = ipreferences_merge;
-	iface->unmerge = ipreferences_unmerge;	
-}
-
-ANJUTA_PLUGIN_BEGIN (FileManagerPlugin, file_manager_plugin);
-ANJUTA_PLUGIN_ADD_INTERFACE (ifile_manager, IANJUTA_TYPE_FILE_MANAGER);
-ANJUTA_PLUGIN_ADD_INTERFACE (ipreferences, IANJUTA_TYPE_PREFERENCES);
-ANJUTA_PLUGIN_END;
-
-ANJUTA_SIMPLE_PLUGIN (FileManagerPlugin, file_manager_plugin);
diff --git a/plugins/file-manager.old/plugin.h b/plugins/file-manager.old/plugin.h
deleted file mode 100644
index 6f9e024..0000000
--- a/plugins/file-manager.old/plugin.h
+++ /dev/null
@@ -1,60 +0,0 @@
-
-#ifndef _FILE_MANAGER_PLUGIN_H_
-#define _FILE_MANAGER_PLUGIN_H_
-
-#include <libanjuta/anjuta-plugin.h>
-
-extern GType file_manager_plugin_get_type (AnjutaGluePlugin *plugin);
-#define ANJUTA_TYPE_PLUGIN_FILE_MANAGER         (file_manager_plugin_get_type (NULL))
-#define ANJUTA_PLUGIN_FILE_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_FILE_MANAGER, FileManagerPlugin))
-#define ANJUTA_PLUGIN_FILE_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_FILE_MANAGER, FileManagerPluginClass))
-#define ANJUTA_IS_PLUGIN_FILE_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_FILE_MANAGER))
-#define ANJUTA_IS_PLUGIN_FILE_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_FILE_MANAGER))
-#define ANJUTA_PLUGIN_FILE_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_FILE_MANAGER, FileManagerPluginClass))
-
-typedef struct _FileManagerPlugin FileManagerPlugin;
-typedef struct _FileManagerPluginClass FileManagerPluginClass;
-
-struct _FileManagerPlugin{
-	AnjutaPlugin parent;
-	
-	AnjutaUI *ui;
-	AnjutaPreferences *prefs;
-	GtkWidget *scrolledwindow;
-	GtkWidget *tree;
-	GtkActionGroup *action_group;
-	gint merge_id;
-	gchar *top_dir;
-	guint root_watch_id;
-	
-	GList *gconf_notify_ids;
-	gboolean project_is_loaded;
-	
-	GdkRectangle tooltip_rect;
-	GtkWidget *tooltip_window;
-	gulong tooltip_timeout;
-	PangoLayout *tooltip_layout;
-	
-	/* Idle node expansion context */
-	GList *nodes_to_expand;
-	gint idle_id;
-};
-
-struct _FileManagerPluginClass{
-	AnjutaPluginClass parent_class;
-};
-
-void fv_init (FileManagerPlugin *fv);
-void fv_finalize (FileManagerPlugin *fv);
-
-void   fv_set_root (FileManagerPlugin *fv, const gchar *root_dir);
-void   fv_clear    (FileManagerPlugin *fv);
-GList* fv_get_node_expansion_states (FileManagerPlugin *fv);
-void   fv_set_node_expansion_states (FileManagerPlugin *fv,
-									 GList *expansion_states);
-gchar* fv_get_selected_file_path (FileManagerPlugin *fv);
-
-void   fv_refresh (FileManagerPlugin *fv, gboolean save_states);
-void   fv_cancel_node_expansion (FileManagerPlugin *fv);
-
-#endif
diff --git a/plugins/scratchbox/Makefile.am b/plugins/scratchbox/Makefile.am
deleted file mode 100644
index b53e25e..0000000
--- a/plugins/scratchbox/Makefile.am
+++ /dev/null
@@ -1,47 +0,0 @@
-# Plugin glade file
-anjuta_gladedir = $(anjuta_glade_dir)
-anjuta_glade_DATA = anjuta-scratchbox.glade \
-		    anjuta-scratchbox-panel.png
-
-# Plugin Icon file
-anjuta_pixmapsdir = $(anjuta_image_dir)
-anjuta_pixmaps_DATA = \
-	anjuta-scratchbox-48.png
-
-# Plugin description file
-plugin_in_files = anjuta-scratchbox.plugin.in
-%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
-
-anjuta_plugindir = $(anjuta_plugin_dir)
-anjuta_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
-
-# Where to install the plugin
-plugindir = $(anjuta_plugin_dir)
-plugin_LTLIBRARIES = libanjuta-scratchbox.la
-
-# Include paths
-AM_CPPFLAGS = \
-	$(WARN_CFLAGS) \
-	$(DEPRECATED_FLAGS) \
-	$(LIBANJUTA_CFLAGS)
-
-libanjuta_scratchbox_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
-
-# Plugin dependencies
-libanjuta_scratchbox_la_LIBADD = \
-	$(GLADE_LIBS) \
-	$(GNOME_LIBS) \
-	$(LIBANJUTA_LIBS)
-
-# Plugin sources
-libanjuta_scratchbox_la_SOURCES = \
-	plugin.c \
-	plugin.h
-
-EXTRA_DIST = \
-	$(plugin_in_files) \
-	$(anjuta_pixmaps_DATA) \
-	$(anjuta_plugin_DATA) \
-	$(anjuta_glade_DATA)
-
--include $(top_srcdir)/git.mk
diff --git a/plugins/scratchbox/anjuta-scratchbox-48.png b/plugins/scratchbox/anjuta-scratchbox-48.png
deleted file mode 100644
index 5e90ec8..0000000
Binary files a/plugins/scratchbox/anjuta-scratchbox-48.png and /dev/null differ
diff --git a/plugins/scratchbox/anjuta-scratchbox-panel.png b/plugins/scratchbox/anjuta-scratchbox-panel.png
deleted file mode 100644
index 1794e5b..0000000
Binary files a/plugins/scratchbox/anjuta-scratchbox-panel.png and /dev/null differ
diff --git a/plugins/scratchbox/anjuta-scratchbox.glade b/plugins/scratchbox/anjuta-scratchbox.glade
deleted file mode 100644
index fe772d7..0000000
--- a/plugins/scratchbox/anjuta-scratchbox.glade
+++ /dev/null
@@ -1,179 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--*- mode: xml -*-->
-<glade-interface>
-  <widget class="GtkWindow" id="preferences_dialog_scratchbox">
-    <property name="title" translatable="yes">window1</property>
-    <child>
-      <widget class="GtkFrame" id="Scratchbox">
-        <property name="visible">True</property>
-        <property name="border_width">10</property>
-        <property name="label_xalign">0</property>
-        <property name="label_yalign">0</property>
-        <property name="shadow_type">GTK_SHADOW_NONE</property>
-        <child>
-          <widget class="GtkAlignment" id="alignment1">
-            <property name="visible">True</property>
-            <property name="xalign">0</property>
-            <property name="yalign">0</property>
-            <property name="left_padding">12</property>
-            <child>
-              <widget class="GtkTable" id="table1">
-                <property name="visible">True</property>
-                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                <property name="column_spacing">5</property>
-                <property name="row_spacing">5</property>
-                <child>
-                  <widget class="GtkHSeparator" id="hseparator2">
-                    <property name="visible">True</property>
-                  </widget>
-                  <packing>
-                    <property name="right_attach">2</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkHSeparator" id="hseparator1">
-                    <property name="visible">True</property>
-                  </widget>
-                  <packing>
-                    <property name="right_attach">2</property>
-                    <property name="top_attach">4</property>
-                    <property name="bottom_attach">5</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkLabel" id="label1">
-                    <property name="visible">True</property>
-                    <property name="xpad">5</property>
-                    <property name="label" translatable="yes">Scratchbox directory:</property>
-                    <property name="justify">GTK_JUSTIFY_RIGHT</property>
-                  </widget>
-                  <packing>
-                    <property name="top_attach">2</property>
-                    <property name="bottom_attach">3</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkLabel" id="label2">
-                    <property name="visible">True</property>
-                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                    <property name="label" translatable="yes">Scratchbox version:</property>
-                    <property name="justify">GTK_JUSTIFY_RIGHT</property>
-                  </widget>
-                  <packing>
-                    <property name="top_attach">1</property>
-                    <property name="bottom_attach">2</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkComboBox" id="preferences_combo:text:Sbox1,Sbox2:0:scratchbox.version">
-                    <property name="visible">True</property>
-                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                    <property name="items">Sbox1
-Sbox2</property>
-                  </widget>
-                  <packing>
-                    <property name="left_attach">1</property>
-                    <property name="right_attach">2</property>
-                    <property name="top_attach">1</property>
-                    <property name="bottom_attach">2</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkFileChooserButton" id="preferences_folder:text:/scratchbox:0:build.scratchbox.path">
-                    <property name="visible">True</property>
-                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                    <property name="preview_widget_active">False</property>
-                    <property name="action">GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</property>
-                    <property name="title" translatable="yes">Select Scratchbox Folder</property>
-                  </widget>
-                  <packing>
-                    <property name="left_attach">1</property>
-                    <property name="right_attach">2</property>
-                    <property name="top_attach">2</property>
-                    <property name="bottom_attach">3</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options"></property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkLabel" id="label3">
-                    <property name="visible">True</property>
-                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                    <property name="label" translatable="yes">Scratchbox target:</property>
-                    <property name="justify">GTK_JUSTIFY_RIGHT</property>
-                  </widget>
-                  <packing>
-                    <property name="top_attach">3</property>
-                    <property name="bottom_attach">4</property>
-                    <property name="x_options">GTK_FILL</property>
-                    <property name="y_options">GTK_FILL</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="GtkComboBox" id="combo_target">
-                    <property name="visible">True</property>
-                    <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                    <property name="items">host</property>
-                  </widget>
-                  <packing>
-                    <property name="left_attach">1</property>
-                    <property name="right_attach">2</property>
-                    <property name="top_attach">3</property>
-                    <property name="bottom_attach">4</property>
-                    <property name="y_options"></property>
-                  </packing>
-                </child>
-              </widget>
-            </child>
-          </widget>
-        </child>
-        <child>
-          <widget class="GtkTable" id="table2">
-            <property name="visible">True</property>
-            <property name="homogeneous">True</property>
-            <child>
-              <widget class="GtkLabel" id="label106">
-                <property name="visible">True</property>
-                <property name="xalign">1</property>
-                <property name="yalign">0</property>
-                <property name="ypad">14</property>
-                <property name="label" translatable="yes">&lt;b&gt;Scratchbox Options&lt;/b&gt;
-</property>
-                <property name="use_markup">True</property>
-                <property name="justify">GTK_JUSTIFY_FILL</property>
-              </widget>
-              <packing>
-                <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkImage" id="anjuta-scratchbox-panel">
-                <property name="visible">True</property>
-                <property name="pixbuf">anjuta-scratchbox-panel.png</property>
-              </widget>
-              <packing>
-                <property name="x_options"></property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-          </widget>
-          <packing>
-            <property name="type">label_item</property>
-          </packing>
-        </child>
-      </widget>
-    </child>
-  </widget>
-</glade-interface>
diff --git a/plugins/scratchbox/anjuta-scratchbox.plugin.in b/plugins/scratchbox/anjuta-scratchbox.plugin.in
deleted file mode 100644
index fbcc564..0000000
--- a/plugins/scratchbox/anjuta-scratchbox.plugin.in
+++ /dev/null
@@ -1,6 +0,0 @@
-[Anjuta Plugin]
-_Name=Scratchbox
-_Description=Change build commands to use scratchbox 1 or 2
-Location=anjuta-scratchbox:ScratchboxPlugin
-Icon=anjuta-scratchbox-48.png
-Interfaces=IAnjutaEnvironment
diff --git a/plugins/scratchbox/plugin.c b/plugins/scratchbox/plugin.c
deleted file mode 100644
index 26b5423..0000000
--- a/plugins/scratchbox/plugin.c
+++ /dev/null
@@ -1,565 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
-/*
-    plugin.c
-    Copyright (C) 2008 Sébastien Granjoux
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-/*
- * Plugins functions
- *
- *---------------------------------------------------------------------------*/
-
-#include <config.h>
-
-#include "plugin.h"
-
-#include <libanjuta/anjuta-launcher.h>
-#include <libanjuta/anjuta-debug.h>
-#include <libanjuta/interfaces/ianjuta-environment.h>
-#include <libanjuta/interfaces/ianjuta-preferences.h>
-
-/* Constantes
- *---------------------------------------------------------------------------*/
-
-#define ICON_FILE "anjuta-scratchbox-48.png"
-#define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-scratchbox.glade"
-
-#define SB_ENTRY "preferences_folder:text:/scratchbox:0:build.scratchbox.path"
-#define SB_TARGET_ENTRY "combo_target"
-#define SB_SBOX_ENTRY "preferences_combo:text:Sbox1,Sbox2:0:scratchbox.version"
-
-#define PREF_SB_PATH "build.scratchbox.path"
-#define PREF_SB_VERSION "scratchbox.version"
-
-/* Type defintions
- *---------------------------------------------------------------------------*/
-
-struct _ScratchboxPluginClass
-{
-	AnjutaPluginClass parent_class;
-};
-
-struct _ScratchboxPlugin
-{
-	AnjutaPlugin parent;
-	AnjutaLauncher *launcher;
-
-	/* Plugin Data */
-	gchar *user_dir;
-	gchar **target_list;
-	gchar *sb_dir;
-	gchar *target;
-	gint id;
-	gint combo_element;
-	GString *buffer;
-};
-
-GladeXML *gxml;
-
-#define EXECUTE_CMD	0
-#define TARGET_LIST	1
-
-static gchar *
-sbox2_commands_args[][2] = {
-	{ "bin/sb2", "-t" },	/* execute command */
-	{ "bin/sb2-config", "-l"},	/* target list */
-	{ NULL, NULL },
-};
-
-static gchar *
-sbox1_commands_args[][2] = {
-	{ "bin/login", "-d" },
-	{ "bin/sb-conf", "--list" },	/* target list */
-	{ NULL, NULL },
-};
-
-/* Callback for saving session
- *---------------------------------------------------------------------------*/
-
-static void
-on_session_save (AnjutaShell *shell, AnjutaSessionPhase phase, AnjutaSession *session, ScratchboxPlugin *self)
-{
-	if (phase != ANJUTA_SESSION_PHASE_NORMAL)
-		return;
-}
-
-static void on_session_load (AnjutaShell *shell, AnjutaSessionPhase phase, AnjutaSession *session, ScratchboxPlugin *self)
-{
-	if (phase != ANJUTA_SESSION_PHASE_NORMAL)
-		return;
-}
-
-/* Callbacks
- *---------------------------------------------------------------------------*/
-
-static void on_list_terminated (AnjutaLauncher *launcher, gint child_pid,
-                                gint status, gulong time_taken, gpointer data)
-{
-	g_return_if_fail (launcher != NULL);
-	
-	ScratchboxPlugin* plugin = ANJUTA_PLUGIN_SCRATCHBOX (data);
-
-	if (!(status != 0 || !plugin->buffer)) {
-		/* Program terminate normaly */
-		gint str_splitted_length;
-		gint i;
-		plugin->target_list = g_strsplit (plugin->buffer->str, "\n", 0);
-		str_splitted_length = g_strv_length (plugin->target_list) - 1;
-		
-		GtkWidget* combo_target_entry;
-		combo_target_entry = glade_xml_get_widget(gxml,
-							  SB_TARGET_ENTRY);
-
-		for (i = 1; i < plugin->combo_element; i++)
-			gtk_combo_box_remove_text(GTK_COMBO_BOX(combo_target_entry), 1);
-		plugin->combo_element = 1;
-
-		for (i = 0; i < str_splitted_length; i++) {
-			gtk_combo_box_append_text(GTK_COMBO_BOX(combo_target_entry), plugin->target_list[i]);
-			plugin->combo_element++;
-		}
-                
-		/* enable target combo box */
-		gtk_combo_box_set_active (GTK_COMBO_BOX(combo_target_entry),
-					  plugin->id);
-                gtk_widget_set_sensitive(combo_target_entry, TRUE);
-		g_strfreev (plugin->target_list);
-	}
-
-	plugin->target_list = NULL;
-}
-
-static void on_target (AnjutaLauncher *launcher, AnjutaLauncherOutputType out,
-		       const gchar* line, gpointer data)
-{
-	ScratchboxPlugin* plugin = ANJUTA_PLUGIN_SCRATCHBOX (data);
-	g_return_if_fail (line != NULL);
-	g_return_if_fail (plugin != NULL);
-
-	g_string_append (plugin->buffer, line);
-	
-}
-
-static void
-on_change_target(GtkComboBox *combo, ScratchboxPlugin *plugin)
-{
-	AnjutaShell* shell = ANJUTA_PLUGIN (plugin)->shell;
-	gint id;
-	
-	g_return_if_fail (plugin != NULL);
-	id = gtk_combo_box_get_active (combo);
-	if (plugin->target) {
-		g_free(plugin->target);
-		plugin->target = NULL;
-	}
-	plugin->target = gtk_combo_box_get_active_text (combo);
-	plugin->id = id > 0 ? id :0;
-
-	anjuta_preferences_set_int (anjuta_shell_get_preferences (shell, NULL),
-                                SB_TARGET_ENTRY,
-                                plugin->id);
-}
-
-static void
-on_update_target(GtkComboBox *combo, ScratchboxPlugin *plugin)
-{
-	AnjutaPreferences* prefs;
-	GString* command = g_string_new (NULL);
-	gchar* sbox_commands;
-	gchar* sbox_args;
-	gchar* sb_dir;
-	gchar* sb_ver;
-
-	g_return_if_fail (plugin != NULL);
-
-	prefs = anjuta_shell_get_preferences (ANJUTA_PLUGIN (plugin)->shell,
-						NULL);
-        sb_ver = anjuta_preferences_get(prefs, PREF_SB_VERSION);
-
-	sb_dir = anjuta_preferences_get(prefs, PREF_SB_PATH);
-
-        if (!sb_dir)
-                return;
-
-        g_string_printf (command, "%s%s", sb_dir, G_DIR_SEPARATOR_S);
-
-        if (!strcmp(sb_ver, "Sbox1")) {
-		sbox_commands = sbox1_commands_args[TARGET_LIST][0];
-		sbox_args = sbox1_commands_args[TARGET_LIST][1];
-        } else {
-		sbox_commands = sbox2_commands_args[TARGET_LIST][0];
-		sbox_args = sbox2_commands_args[TARGET_LIST][1];
-	}
-
-	g_string_append (command, sbox_commands);
-
-	if (g_file_test (command->str, G_FILE_TEST_EXISTS) == FALSE)
-        {
-		anjuta_util_dialog_error (GTK_WINDOW (ANJUTA_PLUGIN (plugin)->shell),
-					_("Program '%s' does not exists"), command->str);
-		return;
-        }
-
-	g_string_append_printf(command, " %s", sbox_args);
-	
-	if (!anjuta_launcher_is_busy (plugin->launcher))
-	{
-		GtkWidget* combo_target_entry;
-		
-		if (plugin->buffer != NULL) {
-			g_string_free (plugin->buffer, TRUE);
-			plugin->buffer = NULL;
-		}
-		
-		plugin->buffer = g_string_new(NULL);
-
-		combo_target_entry = glade_xml_get_widget(gxml,
-							  SB_TARGET_ENTRY);
-		/* disable target combo box */
-		gtk_widget_set_sensitive(combo_target_entry, FALSE);
-
-		anjuta_launcher_execute (plugin->launcher, command->str,
-					(AnjutaLauncherOutputCallback)on_target,
-					plugin);
-	}
-
-	g_string_free(command, TRUE);
-
-}
-
-static void
-on_change_directory(GtkFileChooserButton *FileChooser, gpointer user_data)
-{
-	ScratchboxPlugin *plugin = (ScratchboxPlugin *) user_data;
-	GtkWidget* combo_sbox_entry;
-	gchar *old_dir;
-
-	combo_sbox_entry = glade_xml_get_widget(gxml,
-						  SB_SBOX_ENTRY);
-	old_dir = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER(FileChooser));
-
-	if (!plugin->user_dir || strcmp(old_dir, plugin->user_dir) != 0) {
-		if (plugin->user_dir)
-			g_free(plugin->user_dir);
-		plugin->user_dir = g_strdup(old_dir);
-	} else
-		return;
-
-	g_free(old_dir);
-
-	on_update_target(GTK_COMBO_BOX(combo_sbox_entry), plugin);
-}
-
-/* Actions table
- *---------------------------------------------------------------------------*/
-
-/* AnjutaPlugin functions
- *---------------------------------------------------------------------------*/
-
-static gboolean
-scratchbox_plugin_activate (AnjutaPlugin *plugin)
-{
-	ScratchboxPlugin *self = ANJUTA_PLUGIN_SCRATCHBOX (plugin);
-	
-	DEBUG_PRINT ("%s", "Scratchbox 1 and 2 Plugin: Activating plugin...");
-
-	self->launcher = anjuta_launcher_new ();
-
-	/* Connect to session signal */
-	g_signal_connect (plugin->shell, "save-session",
-					  G_CALLBACK (on_session_save), self);
-	g_signal_connect (plugin->shell, "load-session",
-					  G_CALLBACK (on_session_load), self);
-
-	/* Connect launcher signal */
-	g_signal_connect (self->launcher, "child-exited",
-                          G_CALLBACK (on_list_terminated), self);
-	
-	return TRUE;
-}
-
-static gboolean
-scratchbox_plugin_deactivate (AnjutaPlugin *plugin)
-{
-	ScratchboxPlugin *self = ANJUTA_PLUGIN_SCRATCHBOX (plugin);
-
-	DEBUG_PRINT ("%s", "Scratchbox 1 Plugin: Deactivating plugin...");
-	
-	g_signal_handlers_disconnect_by_func (plugin->shell, G_CALLBACK (on_session_save), self);
-	g_signal_handlers_disconnect_by_func (plugin->shell, G_CALLBACK (on_session_load), self);
-	
-	return TRUE;
-}
-
-static void
-sbox2_environment_override (IAnjutaEnvironment* environment, gchar **dir, gchar ***argvp, gchar ***envp, GError** err)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (environment);
-	AnjutaPreferences* prefs;
-	gchar **new_argv;
-	gchar* sb_dir;
-	int i;
-
-	if (plugin->target == NULL || !strcmp(plugin->target, "host"))
-		return;
-
-	prefs = anjuta_shell_get_preferences (ANJUTA_PLUGIN (plugin)->shell, NULL);
-	sb_dir = anjuta_preferences_get(prefs, PREF_SB_PATH);
-
-	if (plugin->user_dir) g_free (plugin->user_dir);
-	plugin->user_dir = g_strconcat (sb_dir, G_DIR_SEPARATOR_S, NULL);
-
-	/* Build in scratchbox environment */
-	gsize len_argv = g_strv_length (*argvp);
-
-	/* Add scratchbox login */
-	new_argv = g_new (gchar*, len_argv + 4);
-	new_argv[0] = g_strconcat (sb_dir, G_DIR_SEPARATOR_S,
-				   sbox2_commands_args[EXECUTE_CMD][0],
-				   NULL);
-	new_argv[1] = g_strconcat (sbox2_commands_args[EXECUTE_CMD][1], NULL);
-	new_argv[2] = g_strconcat (plugin->target, NULL);
-
-	for (i = 0; i < len_argv; i++)
-		new_argv[3 + i] = g_strconcat("\"", *(*argvp + i), "\"", NULL);
-	
-	g_free (*argvp);
-	*argvp = new_argv;
-	g_free(sb_dir);
-}
-static void
-sbox1_environment_override (IAnjutaEnvironment* environment, gchar **dir, gchar ***argvp, gchar ***envp, GError** err)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (environment);
-	AnjutaPreferences* prefs;
-	gchar* sb_dir;
-	gsize len;
-
-	prefs = anjuta_shell_get_preferences (ANJUTA_PLUGIN (plugin)->shell, NULL);
-
-	sb_dir = anjuta_preferences_get(prefs, PREF_SB_PATH);
-	
-	if (plugin->user_dir) g_free (plugin->user_dir);
-	plugin->user_dir = g_strconcat (sb_dir, G_DIR_SEPARATOR_S,
-						   "users", G_DIR_SEPARATOR_S,
-						   g_get_user_name(), NULL);
-	
-	len = strlen (plugin->user_dir);
-
-	if (strncmp (*dir, plugin->user_dir, len) == 0)
-	{
-		/* Build in scratchbox environment */
-		gchar **new_argv;
-		gsize len_argv = g_strv_length (*argvp);
-
-		/* Add scratchbox login */
-		new_argv = g_new (gchar*, len_argv + 3);
-		memcpy (new_argv + 2, *argvp, sizeof(gchar *) * (len_argv + 1));
-		new_argv[0] = g_strconcat (sb_dir, G_DIR_SEPARATOR_S,
-					   sbox1_commands_args[EXECUTE_CMD][0],
-					   NULL);
-		new_argv[1] = g_strconcat (sbox1_commands_args[EXECUTE_CMD][1],
-					   (*dir) + len, NULL);
-		
-		g_free (*argvp);
-		*argvp = new_argv;
-	}
-
-	g_free (sb_dir);
-}
-
-/* IAnjutaEnvironment implementation
- *---------------------------------------------------------------------------*/
-
-static gboolean
-ienvironment_override (IAnjutaEnvironment* environment, gchar **dir, gchar ***argvp, gchar ***envp, GError** err)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (environment);
-	AnjutaPreferences* prefs;
-	gchar* sb_dir;
-	gchar* sb_ver;
-
-	prefs = anjuta_shell_get_preferences (ANJUTA_PLUGIN (plugin)->shell, NULL);
-	sb_dir = anjuta_preferences_get(prefs, PREF_SB_PATH);
-
-	if (!sb_dir)
-		return FALSE;
-
-	sb_ver = anjuta_preferences_get(prefs, PREF_SB_VERSION);
-	if (!strcmp(sb_ver, "Sbox1"))
-		sbox1_environment_override(environment, dir, argvp, envp, err);
-	else
-		sbox2_environment_override(environment, dir, argvp, envp, err);
-
-	return TRUE;
-}
-
-static gchar*
-ienvironment_get_real_directory (IAnjutaEnvironment* environment, gchar *dir, GError** err)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (environment);
-
-	if (plugin->user_dir)
-	{
-		gchar *real_dir;
-		
-		real_dir = g_strconcat(plugin->user_dir, dir, NULL);
-		g_free (dir);
-	
-		return real_dir;
-	}
-	else
-	{
-		return dir;
-	}
-}
-
-static void
-ienvironment_iface_init(IAnjutaEnvironmentIface* iface)
-{
-	iface->override = ienvironment_override;
-	iface->get_real_directory = ienvironment_get_real_directory;
-}
-
-/* IAnjutaPreferences implementation
- *---------------------------------------------------------------------------*/
-
-static void
-ipreferences_merge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError** e)
-{
-	ScratchboxPlugin* plugin = ANJUTA_PLUGIN_SCRATCHBOX (ipref);
-	GtkWidget* combo_target_entry;
-	GtkWidget *combo_sbox_entry;
-	GtkWidget *chooser_dir_entry;
-
-	/* Create the preferences page */
-	gxml = glade_xml_new (GLADE_FILE,
-					"preferences_dialog_scratchbox", NULL);
-	combo_target_entry = glade_xml_get_widget(gxml, SB_TARGET_ENTRY);
-	combo_sbox_entry = glade_xml_get_widget(gxml, SB_SBOX_ENTRY);
-	chooser_dir_entry = glade_xml_get_widget(gxml, SB_ENTRY);
-	
-	plugin->id = anjuta_preferences_get_int(prefs, SB_TARGET_ENTRY);
-
-	anjuta_preferences_add_page (prefs, gxml, "Scratchbox", _("Scratchbox"),  ICON_FILE);
-	g_signal_connect(chooser_dir_entry, "current-folder-changed",
-			 G_CALLBACK(on_change_directory),
-			 plugin);
-	g_signal_connect(combo_sbox_entry, "changed",
-			 G_CALLBACK(on_update_target), plugin);
-
-	g_signal_connect(combo_target_entry,
-			 "changed", G_CALLBACK(on_change_target),
-			 plugin);
-
-        plugin->target = gtk_combo_box_get_active_text (
-				GTK_COMBO_BOX(combo_target_entry));
-}
-
-static void
-ipreferences_unmerge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError** e)
-{
-	GtkWidget *sb_entry;
-
-	sb_entry = glade_xml_get_widget(gxml, SB_ENTRY);
-		
-	anjuta_preferences_remove_page(prefs, _("Scratchbox"));
-	
-	g_object_unref (gxml);
-}
-
-static void
-ipreferences_iface_init(IAnjutaPreferencesIface* iface)
-{
-	iface->merge = ipreferences_merge;
-	iface->unmerge = ipreferences_unmerge;	
-}
-
-/* GObject functions
- *---------------------------------------------------------------------------*/
-
-/* Used in dispose and finalize */
-static gpointer parent_class;
-
-static void
-scratchbox_plugin_instance_init (GObject *obj)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (obj);
-	
-	plugin->user_dir = NULL;
-	plugin->target_list = NULL;
-	plugin->buffer = NULL;
-	plugin->combo_element = 1;
-	plugin->launcher = NULL;
-	plugin->id = 0;
-	plugin->target = NULL;
-}
-
-/* dispose is used to unref object created with instance_init */
-
-static void
-scratchbox_plugin_dispose (GObject *obj)
-{
-	ScratchboxPlugin *plugin = ANJUTA_PLUGIN_SCRATCHBOX (obj);
-	
-	/* Warning this function could be called several times */
-
-	if (plugin->user_dir)
-	{
-		g_free (plugin->user_dir);
-		plugin->user_dir = NULL;
-	}
-	
-	G_OBJECT_CLASS (parent_class)->dispose (obj);
-}
-
-static void
-scratchbox_plugin_finalize (GObject *obj)
-{
-	/*ScratchboxPlugin *self = ANJUTA_PLUGIN_SCRATCHBOX (obj);*/
-	
-	G_OBJECT_CLASS (parent_class)->finalize (obj);
-}
-
-/* finalize used to free object created with instance init is not used */
-
-static void
-scratchbox_plugin_class_init (GObjectClass *klass) 
-{
-	AnjutaPluginClass *plugin_class = ANJUTA_PLUGIN_CLASS (klass);
-
-	parent_class = g_type_class_peek_parent (klass);
-
-	plugin_class->activate = scratchbox_plugin_activate;
-	plugin_class->deactivate = scratchbox_plugin_deactivate;
-	klass->dispose = scratchbox_plugin_dispose;
-	klass->finalize = scratchbox_plugin_finalize;
-}
-
-/* AnjutaPlugin declaration
- *---------------------------------------------------------------------------*/
-
-ANJUTA_PLUGIN_BEGIN (ScratchboxPlugin, scratchbox_plugin);
-ANJUTA_PLUGIN_ADD_INTERFACE (ienvironment, IANJUTA_TYPE_ENVIRONMENT);
-ANJUTA_PLUGIN_ADD_INTERFACE (ipreferences, IANJUTA_TYPE_PREFERENCES);
-ANJUTA_PLUGIN_END;
-			 
-ANJUTA_SIMPLE_PLUGIN (ScratchboxPlugin, scratchbox_plugin);
-
-/* Public functions
-*---------------------------------------------------------------------------*/
-
diff --git a/plugins/scratchbox/plugin.h b/plugins/scratchbox/plugin.h
deleted file mode 100644
index b1c91fc..0000000
--- a/plugins/scratchbox/plugin.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
-/*
-    plugin.h
-    Copyright (C) 2008 Sébastien Granjoux
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#ifndef _PLUGIN_H_
-#define _PLUGIN_H_
-
-#include <libanjuta/anjuta-plugin.h>
-
-extern GType scratchbox_plugin_get_type 		(GTypeModule *module);
-#define ANJUTA_TYPE_PLUGIN_SCRATCHBOX			(scratchbox_plugin_get_type (NULL))
-#define ANJUTA_PLUGIN_SCRATCHBOX(o)				(G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_SCRATCHBOX, ScratchboxPlugin))
-#define ANJUTA_PLUGIN_SCRATCHBOX_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_SCRATCHBOX, ScratchboxPluginClass))
-#define ANJUTA_IS_PLUGIN_SCRATCHBOX(o)			(G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_SCRATCHBOX))
-#define ANJUTA_IS_PLUGIN_SCRATCHBOX_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_SCRATCHBOX))
-#define ANJUTA_PLUGIN_SCRATCHBOX_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_SCRATCHBOX, ScratchboxPluginClass))
-
-typedef struct _ScratchboxPlugin ScratchboxPlugin;
-typedef struct _ScratchboxPluginClass ScratchboxPluginClass;
-
-#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]