Author: sragavan
Date: Mon Feb 18 04:44:15 2008
New Revision: 35041
URL: http://svn.gnome.org/viewvc/evolution?rev=35041&view=rev

Log:
2008-02-18  Srinivasa Ragavan  <[EMAIL PROTECTED]>

        * Fix for bug #339266 

        * exchange-account-setup.c:
        (org_gnome_exchange_show_folder_size_factory): Upstreamed OpenSUSE
        patch.


Modified:
   trunk/plugins/exchange-operations/ChangeLog
   trunk/plugins/exchange-operations/exchange-account-setup.c

Modified: trunk/plugins/exchange-operations/exchange-account-setup.c
==============================================================================
--- trunk/plugins/exchange-operations/exchange-account-setup.c  (original)
+++ trunk/plugins/exchange-operations/exchange-account-setup.c  Mon Feb 18 
04:44:15 2008
@@ -953,6 +953,7 @@
        GtkVBox *vbx;
        GtkHBox *hbx_size;
        char *folder_name, *folder_size;
+       int mode;
 
        service = CAMEL_SERVICE (camel_folder_get_parent_store (cml_folder));
        if (!service)
@@ -965,10 +966,15 @@
        if (g_ascii_strcasecmp (provider->protocol, "exchange"))
                return NULL;
 
+       account = exchange_operations_get_exchange_account ();  
+       exchange_account_is_offline (account, &mode);  
+       if (mode == OFFLINE_MODE)  
+               return NULL;  
+       
        folder_name = (char*) camel_folder_get_name (cml_folder);
        if (!folder_name)
                folder_name = g_strdup ("name");
-       account = exchange_operations_get_exchange_account ();
+
        model = exchange_account_folder_size_get_model (account);
        if (model)
                folder_size = g_strdup_printf (_("%s KB"), 
exchange_folder_size_get_val (model, folder_name));
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to