[empathy] set TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_ENABLED restriction



commit 08dedb8027eb3947b689ee7c99171406c8e82b47
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Aug 31 16:04:30 2011 +0200

    set TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_ENABLED restriction
    
    We can't change the 'Chat' switch on the GOA account so user will have to use
    GOA to enable/disable the TP account.

 goa-mc-plugin/mcp-account-manager-goa.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index a0a8b3f..6f06f34 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -413,7 +413,8 @@ mcp_account_manager_goa_get_restrictions (const McpAccountStorage *self,
     const gchar *account)
 {
   return TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_PARAMETERS |
-         TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_SERVICE;
+         TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_SERVICE |
+         TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_ENABLED;
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]