Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 4490)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,8 @@
+2008-12-27  Jens Georg  <mail@jensge.org>
+
+	* plugins/cvs-plugin/plugin.c: 
+	Fix regression introduced with last patch for CVS plugin
+
 2008-12-27  Johannes  Schmid <jhs@gnome.org>
 
 	* plugins/document-manager/action-callbacks.c
Index: plugins/cvs-plugin/plugin.c
===================================================================
--- plugins/cvs-plugin/plugin.c	(Revision 4490)
+++ plugins/cvs-plugin/plugin.c	(Arbeitskopie)
@@ -172,6 +172,7 @@
 	gchar *filename;
 	GFileType type;
 	GFile *cvs_dir;
+	GFileEnumerator *en;
 	
 	GFile* file = G_FILE (g_value_get_object (value));
 	filename = g_file_get_path (file);
@@ -191,7 +192,7 @@
 	if it is a file we check if it's directory contains a "CVS" directory */
 
 	type = g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NULL);
-	if (type == GNOME_VFS_FILE_TYPE_DIRECTORY)
+	if (type == G_FILE_TYPE_DIRECTORY)
 	{
 		cvs_dir = g_file_get_child (file, "CVS");
 	}
@@ -212,9 +213,12 @@
 		}
 	}	
 
-	type = g_file_query_file_type (cvs_dir, G_FILE_QUERY_INFO_NONE, NULL);
-	if (type == G_FILE_TYPE_DIRECTORY)
+	en = g_file_enumerate_children (cvs_dir, "", 
+			G_FILE_QUERY_INFO_NONE,
+			NULL, NULL);
+	if (en != NULL)
 	{
+		g_object_unref (G_OBJECT (en));
 		g_object_set (G_OBJECT (cvs_menu_action), "sensitive", TRUE, NULL);
 	}
 	else
