| 123 | | const gchar *prompt = NULL; |
|---|
| 124 | | switch (error->code) |
|---|
| 125 | | { |
|---|
| 126 | | /* Currently, this seems to be the only possible error. |
|---|
| 127 | | * It originates from _tny_camel_account_try_connect(), |
|---|
| 128 | | * and maybe from similar functions. |
|---|
| 129 | | * The error->message text originates from |
|---|
| 130 | | * camel-imap-store.c:imap_auth_loop(). |
|---|
| 131 | | */ |
|---|
| 132 | | case TNY_ACCOUNT_ERROR_TRY_CONNECT: |
|---|
| 133 | | /* Use a Logical ID: */ |
|---|
| 134 | | prompt = _("Account not yet fully configured"); |
|---|
| 135 | | break; |
|---|
| 136 | | default: |
|---|
| 137 | | g_warning ("%s: Unhandled GError code.", __FUNCTION__); |
|---|
| 138 | | prompt = NULL; |
|---|
| 139 | | break; |
|---|
| 140 | | } |
|---|
| 141 | | |
|---|
| 142 | | if (!prompt) |
|---|
| 143 | | return FALSE; |
|---|
| 144 | | |
|---|
| 145 | | /* TODO: Show more appropriate explicitly named buttons in the dialog, |
|---|
| 146 | | * and just show one button if there is no choice to be made. */ |
|---|
| 147 | | gboolean retval = FALSE; |
|---|