Changeset 2188

Show
Ignore:
Timestamp:
06/17/07 12:39:53
Author:
pvanhoof
Message:

Bugfix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-maemo/tny-maemo-account-store.c

    r2154 r2188  
    105105{ 
    106106        GtkMessageType gtktype; 
     107        gboolean retval = FALSE; 
    107108        GtkWidget *dialog; 
    108109 
     
    121122        } 
    122123 
    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; 
    148124        dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, 
    149                                   gtktype, GTK_BUTTONS_YES_NO, prompt); 
     125               gtktype, GTK_BUTTONS_YES_NO, error->message); 
    150126 
    151127        if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES)