2007-05-21 Murray Cumming <murrayc@murrayc.com>
+ * src/modest-ui-actions.c:
+ (modest_ui_actions_on_password_requested): Make sure that the remember
+ output parameter is always TRUE.
+
+2007-05-21 Murray Cumming <murrayc@murrayc.com>
+
* src/modest-tny-account-store.c: (modest_tny_account_store_alert):
Show a OK/Cancel dialog if the error is a question, though we still do not
know anything more about what we are asking the user.
static gchar*
get_password (TnyAccount *account, const gchar *prompt, gboolean *cancel)
{
+ /* Initialize the output parameter: */
+ if (cancel)
+ *cancel = FALSE;
+
const gchar *key;
const TnyAccountStore *account_store;
ModestTnyAccountStore *self;
static void
forget_password (TnyAccount *account)
{
+ printf ("DEBUG: %s\n", __FUNCTION__);
ModestTnyAccountStore *self;
ModestTnyAccountStorePrivate *priv;
const TnyAccountStore *account_store;
/* mbox and maildir accounts use a URI instead of the rest: */
if (account_data->uri) {
- printf("DEBUG: %s: Using URI=%s\n", __FUNCTION__, account_data->uri);
+ /* printf("DEBUG: %s: Using URI=%s\n", __FUNCTION__, account_data->uri); */
tny_account_set_url_string (TNY_ACCOUNT(tny_account), account_data->uri);
}
else {
/* Set camel-specific options: */
/* Enable secure connection settings: */
- printf("DEBUG: %s: security=%d\n", __FUNCTION__, account_data->security);
+ /* printf("DEBUG: %s: security=%d\n", __FUNCTION__, account_data->security); */
const gchar* option_security = NULL;
switch (account_data->security) {
case MODEST_PROTOCOL_CONNECTION_NORMAL:
option_security);
/* Secure authentication: */
- printf("DEBUG: %s: secure-auth=%d\n", __FUNCTION__, account_data->secure_auth);
+ /* printf("DEBUG: %s: secure-auth=%d\n", __FUNCTION__, account_data->secure_auth); */
const gchar* auth_mech_name = NULL;
switch (account_data->secure_auth) {
case MODEST_PROTOCOL_AUTH_NONE:
g_return_if_fail(server_account_name);
/* printf("DEBUG: %s: server_account_name=%s\n", __FUNCTION__, server_account_name); */
+ /* Initalize output parameters: */
+ if (cancel)
+ *cancel = FALSE;
+
+ if (remember)
+ *remember = TRUE;
+
#ifdef MODEST_PLATFORM_MAEMO
/* Maemo uses a different (awkward) button order,
* It should probably just use gtk_alternative_dialog_button_order ().
*/
gtk_widget_destroy (dialog);
+
+ printf ("DEBUG: %s: cancel=%d\n", __FUNCTION__, *cancel);
}
void