anjuta r3672 - in trunk: . plugins/project-import plugins/project-manager
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3672 - in trunk: . plugins/project-import plugins/project-manager
- Date: Sat, 16 Feb 2008 14:07:15 +0000 (GMT)
Author: sgranjoux
Date: Sat Feb 16 14:07:15 2008
New Revision: 3672
URL: http://svn.gnome.org/viewvc/anjuta?rev=3672&view=rev
Log:
* plugins/project-import/project-import.c:
Fix #516743: Import project keeps an old date on project file
* plugins/project-manager/plugin.c:
Fix #516737: Import project doesn't load project with space in name
Modified:
trunk/ChangeLog
trunk/plugins/project-import/project-import.c
trunk/plugins/project-manager/plugin.c
Modified: trunk/plugins/project-import/project-import.c
==============================================================================
--- trunk/plugins/project-import/project-import.c (original)
+++ trunk/plugins/project-import/project-import.c Sat Feb 16 14:07:15 2008
@@ -338,6 +338,23 @@
NULL);
}
}
+
+ /* Update file time if possible */
+ if (error == GNOME_VFS_OK)
+ {
+ GnomeVFSFileInfo *file_info;
+
+ file_info = gnome_vfs_file_info_new ();
+ file_info->ctime = time (NULL);
+ file_info->mtime = file_info->ctime;
+ file_info->atime = file_info->ctime;
+
+ gnome_vfs_set_file_info_uri (dest_uri,
+ file_info,
+ GNOME_VFS_SET_FILE_INFO_TIME);
+
+ gnome_vfs_file_info_unref (file_info);
+ }
gnome_vfs_uri_unref (source_uri);
gnome_vfs_uri_unref (dest_uri);
Modified: trunk/plugins/project-manager/plugin.c
==============================================================================
--- trunk/plugins/project-manager/plugin.c (original)
+++ trunk/plugins/project-manager/plugin.c Sat Feb 16 14:07:15 2008
@@ -2254,7 +2254,9 @@
/* If there is already a project loaded, load in separate anjuta window */
if (plugin->project_root_uri)
{
- gchar *cmd = g_strconcat ("anjuta --no-splash --no-client ", uri, NULL);
+ gchar *quoted_uri = g_shell_quote (uri);
+ gchar *cmd = g_strconcat ("anjuta --no-splash --no-client ", quoted_uri, NULL);
+ g_free (quoted_uri);
anjuta_util_execute_shell (NULL, cmd);
g_free (cmd);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]