/* Active the authentication checkbox */
if (modest_protocol_registry_protocol_type_is_secure (modest_runtime_get_protocol_registry (),
secure_auth))
-#ifdef MODEST_TOOLKIT_HILDON2
- hildon_check_button_set_active (HILDON_CHECK_BUTTON (priv->auth_view),
- TRUE);
-#else
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->auth_view),
- TRUE);
-#endif
+ modest_togglable_set_active (priv->auth_view,
+ TRUE);
} else {
#ifdef MODEST_TOOLKIT_HILDON2
modest_secureauth_picker_set_active_secureauth (
#endif
if (self->type == MODEST_SECURITY_OPTIONS_INCOMING) {
-#ifdef MODEST_TOOLKIT_HILDON2
- if (hildon_check_button_get_active (HILDON_CHECK_BUTTON (priv->auth_view))) {
-#else
- if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->auth_view))) {
-#endif
+ if (modest_togglable_get_active (priv->auth_view)) {
if (!modest_protocol_registry_protocol_type_is_secure (proto_registry,
security_proto)) {
/* TODO */
if (priv->full) {
}
} else {
-#ifdef MODEST_TOOLKIT_HILDON2
- if (hildon_check_button_get_active (HILDON_CHECK_BUTTON (priv->auth_view)))
-#else
- if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->auth_view)))
-#endif
+ if (modest_togglable_get_active (priv->auth_view))
state->auth = priv->initial_state.auth;
else
state->auth = MODEST_PROTOCOLS_AUTH_NONE;
modest_serversecurity_combo_box_get_active_serversecurity (MODEST_SERVERSECURITY_COMBO_BOX (priv->security_view));
#endif
-#ifdef MODEST_TOOLKIT_HILDON2
auth_active =
- hildon_check_button_get_active (HILDON_CHECK_BUTTON (priv->auth_view));
-#else
- auth_active =
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->auth_view));
-#endif
+ modest_togglable_get_active (priv->auth_view);
is_secure =
modest_protocol_registry_protocol_type_has_tag (protocol_registry,
security_incoming_type,