anjuta r4494 - in trunk: . plugins/cvs-plugin
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4494 - in trunk: . plugins/cvs-plugin
- Date: Sun, 28 Dec 2008 09:43:01 +0000 (UTC)
Author: jhs
Date: Sun Dec 28 09:43:00 2008
New Revision: 4494
URL: http://svn.gnome.org/viewvc/anjuta?rev=4494&view=rev
Log:
2008-12-27 Jens Georg <mail jensge org>
* plugins/cvs-plugin/plugin.c:
Fix regression introduced with last patch for CVS plugin
Modified:
trunk/ChangeLog
trunk/plugins/cvs-plugin/plugin.c
Modified: trunk/plugins/cvs-plugin/plugin.c
==============================================================================
--- trunk/plugins/cvs-plugin/plugin.c (original)
+++ trunk/plugins/cvs-plugin/plugin.c Sun Dec 28 09:43:00 2008
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]