aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-03-31 22:03:06 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-03-31 22:03:06 +0800
commit9bb99f836abd0e1570fd49be1feec27c8ddfb3cb (patch)
treeef0b3e734cb1355574d8afa4e37e124408a133e3
parent65e526dcb0881ef592ff2b339d6a340c68687e83 (diff)
downloadgsoc2013-evolution-9bb99f836abd0e1570fd49be1feec27c8ddfb3cb.tar.gz
gsoc2013-evolution-9bb99f836abd0e1570fd49be1feec27c8ddfb3cb.tar.zst
gsoc2013-evolution-9bb99f836abd0e1570fd49be1feec27c8ddfb3cb.zip
**Fixes #74002 return cnc as NULL if evoluiton is in offline.
2005-03-31 Vivek Jain <jvivek@novell.com> **Fixes #74002 * share-folder-common.c : (get_cnc): return cnc as NULL if evoluiton is in offline. (create_folder): return -1 if in offline svn path=/trunk/; revision=29132
-rw-r--r--plugins/shared-folder/ChangeLog7
-rw-r--r--plugins/shared-folder/share-folder-common.c11
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/shared-folder/ChangeLog b/plugins/shared-folder/ChangeLog
index 8d381f4e0b..fab2bbd8a8 100644
--- a/plugins/shared-folder/ChangeLog
+++ b/plugins/shared-folder/ChangeLog
@@ -1,5 +1,12 @@
2005-03-31 Vivek Jain <jvivek@novell.com>
+ **Fixes #74002
+ * share-folder-common.c :
+ (get_cnc): return cnc as NULL if evoluiton is in offline.
+ (create_folder): return -1 if in offline
+
+2005-03-31 Vivek Jain <jvivek@novell.com>
+
**Fixes #73787 (bugzilla innerweb.novell)
* share-folder.c :
(add_right_clicked)
diff --git a/plugins/shared-folder/share-folder-common.c b/plugins/shared-folder/share-folder-common.c
index 69a8049043..9d5b71ce77 100644
--- a/plugins/shared-folder/share-folder-common.c
+++ b/plugins/shared-folder/share-folder-common.c
@@ -40,12 +40,14 @@
#include <camel/camel-store.h>
#include <camel/camel-session.h>
#include <camel/camel-store.h>
+#include <camel/camel-offline-store.h>
#include <camel/camel-vee-store.h>
#include <camel/camel-folder.h>
#include <e-gw-container.h>
#include <e-gw-connection.h>
#include <glade/glade.h>
#include <libgnomeui/libgnomeui.h>
+#include <widgets/misc/e-error.h>
#include "share-folder.h"
#define d(x)
@@ -212,6 +214,12 @@ create_folder (CamelStore *store, const char *full_name, void (* done) (struct _
struct _EMCreateFolder *m;
const char *parent;
int id;
+
+ if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) {
+ //e_error_run (NULL, _("Cannot create GroupWise folders in offline mode."), NULL, NULL);
+ g_warning (_("Cannot Create shared folder in offline mode."));
+ return -1;
+ }
namebuf = g_strdup (full_name);
if (!(name = strrchr (namebuf, '/'))) {
@@ -420,6 +428,9 @@ get_cnc (CamelStore *store)
if (!store)
return NULL;
+ if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL)
+ return NULL;
+
service = CAMEL_SERVICE(store);
url = service->url;
server_name = g_strdup (url->host);