+ hide_account_title = FALSE;
+ proto_name = modest_provider_picker_get_active_provider_id (MODEST_PROVIDER_PICKER (priv->account_serviceprovider_picker));
+ if (proto_name != NULL) {
+ protocol = modest_protocol_registry_get_protocol_by_name (modest_runtime_get_protocol_registry (),
+ MODEST_PROTOCOL_REGISTRY_PROVIDER_PROTOCOLS,
+ proto_name);
+ if (protocol != NULL) {
+ proto_type = modest_protocol_get_type_id (protocol);
+
+ hide_account_title = (modest_protocol_registry_protocol_type_has_tag
+ (modest_runtime_get_protocol_registry (),
+ proto_type,
+ MODEST_PROTOCOL_REGISTRY_SINGLETON_PROVIDER_PROTOCOLS) ||
+ modest_protocol_registry_protocol_type_has_tag
+ (modest_runtime_get_protocol_registry (),
+ proto_type,
+ MODEST_PROTOCOL_REGISTRY_MULTI_MAILBOX_PROVIDER_PROTOCOLS));
+ }
+ }
+
+ if (hide_account_title)
+ gtk_widget_hide (priv->caption_account_title);
+ else
+ gtk_widget_show (priv->caption_account_title);
+