Changeset 1496

Show
Ignore:
Timestamp:
01/29/07 01:27:03
Author:
pvanhoof
Message:

Some bugfixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/tny-session-camel.c

    r1495 r1496  
    252252                }*/ 
    253253 
    254  
    255                 if (priv->in_auth_function)  
    256                         return; 
    257  
    258                 g_mutex_lock (priv->colock); 
    259  
    260                 priv->in_auth_function = TRUE; 
    261  
    262254                tny_lockable_lock (self->priv->ui_lock); 
    263255                retval = func (account, prmpt, &cancel); 
    264256                tny_lockable_unlock (self->priv->ui_lock); 
    265257 
    266                 priv->in_auth_function = FALSE; 
    267  
    268                 g_mutex_unlock (priv->colock); 
    269  
    270258                if (freeprmpt) 
    271259                        g_free (prmpt); 
    272  
    273260        } 
    274261 
     
    333320        if (G_LIKELY (found)) 
    334321        { 
    335  
    336                 if (priv->in_auth_function)  
    337                         return; 
    338  
    339                 g_mutex_lock (priv->colock); 
    340  
    341                 priv->in_auth_function = TRUE; 
    342  
    343322                tny_lockable_lock (self->priv->ui_lock); 
    344323                func (account); 
    345324                tny_lockable_unlock (self->priv->ui_lock); 
    346  
    347                 priv->in_auth_function = FALSE; 
    348  
    349                 g_mutex_unlock (priv->colock); 
    350  
    351         } 
    352  
    353         return; 
    354 
    355  
     325        } 
     326 
     327        return; 
     328
    356329 
    357330 
     
    389362                } 
    390363 
    391                 if (priv->in_auth_function)  
    392                         return FALSE; 
    393  
    394                 g_mutex_lock (priv->colock); 
    395  
    396                 priv->in_auth_function = TRUE; 
    397  
    398364                tny_lockable_lock (self->priv->ui_lock); 
    399365                retval = tny_account_store_alert ( 
     
    401367                        tnytype, (const gchar *) prompt); 
    402368                tny_lockable_unlock (self->priv->ui_lock); 
    403  
    404                 priv->in_auth_function = FALSE; 
    405  
    406                 g_mutex_unlock (priv->colock); 
    407  
    408369        } 
    409370 
     
    646607        } 
    647608 
    648         if (g_main_depth () > 0) 
    649         { 
    650                 g_idle_add_full (G_PRIORITY_HIGH,  
    651                         background_connect_idle,  
    652                         info, background_connect_destroy); 
    653         } else { 
    654                 background_connect_idle (info); 
    655                 background_connect_destroy (info); 
    656         } 
     609        g_idle_add_full (G_PRIORITY_HIGH,  
     610                background_connect_idle,  
     611                info, background_connect_destroy); 
    657612 
    658613        priv->first_switch = FALSE; 
  • trunk/libtinymailui-gtk/tny-gtk-lockable.c

    r1405 r1496  
    3030{ 
    3131        gdk_threads_enter (); 
    32         gdk_flush (); 
    3332} 
    3433 
     
    3635tny_gtk_lockable_unlock (TnyLockable *self) 
    3736{ 
    38         gdk_flush (); 
    3937        gdk_threads_leave (); 
    4038} 
  • trunk/tinymail/tny-demoui-summary-view.c

    r1495 r1496  
    532532                        } 
    533533 
     534                        priv->last_mailbox_correct_select_set = FALSE; 
     535 
    534536                } else { 
     537 
     538                        priv->last_mailbox_correct_select_set = FALSE; 
    535539 
    536540                        gtk_tree_model_get (model, &iter,