Changeset 3599

Show
Ignore:
Timestamp:
04/18/08 11:45:57
Author:
jdapena
Message:

* libtinymail-maemo/tny-maemo-conic-device.c: add a simple hack to

detect when we cancel the connection dialog (and then report this
properly)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3597 r3599  
     12008-04-18  Jose Dapena Paz  <jose@gondomar.wired.citic.igalia.com> 
     2 
     3        * libtinymail-maemo/tny-maemo-conic-device.c: add a simple hack to 
     4        detect when we cancel the connection dialog (and then report this 
     5        properly). 
     6 
    172008-04-18  Philip Van Hoof <pvanhoof@gnome.org> 
    28 
  • trunk/libtinymail-maemo/tny-maemo-conic-device.c

    r3591 r3599  
    265265        HandleConnInfo *iinfo; 
    266266        int con_err, con_state; 
     267        const gchar *event_iap_id; 
    267268         
    268269        /* we don't need cnx in this function */ 
     
    280281        con_err = con_ic_connection_event_get_error (event); 
    281282        con_state = con_ic_connection_event_get_status (event); 
     283        event_iap_id = con_ic_event_get_iap_id ((ConIcEvent *) event); 
    282284 
    283285        switch (con_err) { 
     
    300302                case CON_IC_STATUS_CONNECTED: 
    301303                        g_free (priv->iap); 
    302                         priv->iap = g_strdup (con_ic_event_get_iap_id ((ConIcEvent*)(event))); 
     304                        priv->iap = g_strdup (event_iap_id); 
    303305                        if (!priv->is_online) 
    304306                                emit = TRUE; 
     
    313315                        if (priv->is_online) 
    314316                                emit = TRUE; 
     317                        /* if iap is "" then connection attempt has been canceled */ 
     318                        if ((con_err == CON_IC_CONNECTION_ERROR_NONE) && 
     319                            (!event_iap_id || (strlen (event_iap_id)== 0))) 
     320                                con_err = CON_IC_CONNECTION_ERROR_USER_CANCELED; 
    315321                        is_online = FALSE; 
    316322                        /* Stop blocking tny_maemo_conic_device_connect(), if we are: */