anjuta r4430 - in trunk: . plugins/class-gen
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4430 - in trunk: . plugins/class-gen
- Date: Sun, 7 Dec 2008 18:40:35 +0000 (UTC)
Author: sgranjoux
Date: Sun Dec 7 18:40:35 2008
New Revision: 4430
URL: http://svn.gnome.org/viewvc/anjuta?rev=4430&view=rev
Log:
* plugins/class-gen/plugin.c:
Fix #559951: Class Generator cannot add new class
Modified:
trunk/ChangeLog
trunk/plugins/class-gen/plugin.c
Modified: trunk/plugins/class-gen/plugin.c
==============================================================================
--- trunk/plugins/class-gen/plugin.c (original)
+++ trunk/plugins/class-gen/plugin.c Sun Dec 7 18:40:35 2008
@@ -215,14 +215,21 @@
}
else
{
- *new_header_file = added_files->data;
- *new_source_file = g_list_next (added_files)->data;
+ GFile *file;
+ file = g_file_new_for_uri ((gchar *)added_files->data);
+ *new_header_file = g_file_get_path(file);
+ g_object_unref (file);
+ file = g_file_new_for_uri ((gchar *)g_list_next (added_files)->data);
+ *new_source_file = g_file_get_path(file);
+ g_object_unref (file);
+
result = TRUE;
}
g_free (curdir);
g_free (dirname);
+ g_list_foreach (added_files, (GFunc)g_free, NULL);
g_list_free (added_files);
g_list_free (filenames);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]