is_secure = modest_protocol_registry_protocol_type_has_tag (proto_registry, proto_type,
MODEST_PROTOCOL_REGISTRY_SECURE_PROTOCOLS);
- if (MODEST_SECURITY_OPTIONS_VIEW (self)->type == MODEST_SECURITY_OPTIONS_INCOMING) {
- /* Activate and dim checkbutton if it's secure */
- modest_togglable_set_active (ppriv->auth_view,
- is_secure);
- gtk_widget_set_sensitive (ppriv->auth_view, !is_secure);
- } else {
-
- }
-
if (ppriv->full) {
- gint port_number =
+ gint port_number =
modest_serversecurity_selector_get_active_serversecurity_port (ppriv->security_view);
-
+
if(port_number) {
modest_number_entry_set_value (ppriv->port_view,
port_number);
/* Get captions, well dimm the whole widget */
user_caption = gtk_widget_get_parent (ppriv->user_entry);
pwd_caption = gtk_widget_get_parent (ppriv->pwd_entry);
-
+
/* Enable / disable */
gtk_widget_set_sensitive (user_caption, secureauth_used);
gtk_widget_set_sensitive (pwd_caption, secureauth_used);