aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiping Ke <liping.ke@intel.com>2010-06-18 11:39:21 +0800
committerLiping Ke <liping.ke@intel.com>2010-06-28 13:36:49 +0800
commitdc1436f85bda8aad734b379e0aad9128ab4e8321 (patch)
treec9a1a454af6c5b18b6e3d03502b2b84a27476a0e
parent9cfb44607daa48f2d9910f77a8e8c94605a588d2 (diff)
downloadanjuta-poky-dc1436f85bda8aad734b379e0aad9128ab4e8321.tar.gz
anjuta-poky-dc1436f85bda8aad734b379e0aad9128ab4e8321.tar.bz2
anjuta-poky-dc1436f85bda8aad734b379e0aad9128ab4e8321.zip
Add gnome_vfs_init before first time calling gnomevfs APIs
This is a small bug fixing related to bug 2122. Before calling the first gnome_vfs API, we must first to init gnome_vfs by calling gnome_vfs_init(). Signed-off-by: Liping Ke <liping.ke@intel.com>
-rw-r--r--src/plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 1db6302..216e134 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -439,6 +439,13 @@ deploy_do_delete (AnjutaPluginSdk *sp)
if (sp->deploy_path)
{
+ if (!gnome_vfs_init())
+ {
+ g_warning("Error while initing gnome vfs!\n");
+ deploy_set_state (sp, DEPLOY_STATE_ERROR);
+ return;
+ }
+
uri = gnome_vfs_uri_new (sp->deploy_path);
list = g_list_append (list, uri);