Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 4534)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,10 @@
+2009-01-06  Jens Georg  <mail@jensge.org>
+
+	* plugins/cvs-plugin/cvs-interface.c: 
+	* plugins/cvs-plugin/plugin.c: 
+	* plugins/subversion/plugin.c: 
+	Do not use glib 2.18 functions
+
 2009-01-05  Adam Dingle  <adam@medovina.org>
  
  	* plugins/search/search-replace.c (write_message_pane):
Index: plugins/cvs-plugin/plugin.c
===================================================================
--- plugins/cvs-plugin/plugin.c	(Revision 4534)
+++ plugins/cvs-plugin/plugin.c	(Arbeitskopie)
@@ -173,6 +173,7 @@
 	GFileType type;
 	GFile *cvs_dir;
 	GFileEnumerator *en;
+	GFileInfo *file_info;
 	
 	GFile* file = G_FILE (g_value_get_object (value));
 	filename = g_file_get_path (file);
@@ -190,8 +191,18 @@
 	
 	/* If a directory is selected we check if it contains a "CVS" directory,
 	if it is a file we check if it's directory contains a "CVS" directory */
+	file_info = g_file_query_info (file,
+			G_FILE_ATTRIBUTE_STANDARD_TYPE,
+			G_FILE_QUERY_INFO_NONE, NULL, NULL);
 
-	type = g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NULL);
+	if (file_info == NULL)
+	{
+		return;
+	}
+
+	type = g_file_info_get_attribute_uint32 (file_info, 
+			G_FILE_ATTRIBUTE_STANDARD_TYPE);
+	g_object_unref (file_info);
 	if (type == G_FILE_TYPE_DIRECTORY)
 	{
 		cvs_dir = g_file_get_child (file, "CVS");
Index: plugins/cvs-plugin/cvs-interface.c
===================================================================
--- plugins/cvs-plugin/cvs-interface.c	(Revision 4534)
+++ plugins/cvs-plugin/cvs-interface.c	(Arbeitskopie)
@@ -88,10 +88,23 @@
 {
 	GFile* file;
 	GFileType type;
+	GFileInfo *file_info;
 
 	// FIXME check if filename can only be local file here
 	file = g_file_new_for_path(filename);
-	type = g_file_query_file_type(file, G_FILE_QUERY_INFO_NONE, NULL);
+	file_info = g_file_query_info (file, 
+			G_FILE_ATTRIBUTE_STANDARD_TYPE,
+			G_FILE_QUERY_INFO_NONE,
+			NULL, NULL);
+	if (file_info == NULL)
+	{
+		g_object_unref (G_OBJECT (file));
+		return FALSE;
+	}
+
+	type = g_file_info_get_attribute_uint32 (file_info, 
+			G_FILE_ATTRIBUTE_STANDARD_TYPE);
+	g_object_unref(G_OBJECT(file_info));
 	g_object_unref(G_OBJECT(file));
 	
 	return type == G_FILE_TYPE_DIRECTORY ? TRUE : FALSE;
Index: plugins/subversion/plugin.c
===================================================================
--- plugins/subversion/plugin.c	(Revision 4534)
+++ plugins/subversion/plugin.c	(Arbeitskopie)
@@ -213,6 +213,7 @@
 	GFile* svn_dir;
 	GFileType type;
 	GFileEnumerator *en;
+	GFileInfo *file_info;
 	
 	file = G_FILE(g_value_get_object (value));
 	filename = g_file_get_path (file);
@@ -230,7 +231,18 @@
 	
 	/* If a directory is selected we check if it contains a "Subversion" directory,
 	if it is a file we check if it's directory contains a "Subversion" directory */
-	type = g_file_query_file_type (file, G_FILE_QUERY_INFO_NONE, NULL);
+	file_info = g_file_query_info (file, 
+			G_FILE_ATTRIBUTE_STANDARD_TYPE,
+			G_FILE_QUERY_INFO_NONE,
+			NULL, NULL);
+	if (file_info == NULL)
+	{
+		return;
+	}
+
+	type = g_file_info_get_attribute_uint32 (file_info, 
+			G_FILE_ATTRIBUTE_STANDARD_TYPE);
+	g_object_unref (G_OBJECT (file_info));
 	if (type == G_FILE_TYPE_DIRECTORY)
 	{
 		svn_dir = g_file_get_child (file, ".svn");
