Changeset 893

Show
Ignore:
Timestamp:
09/05/06 20:49:14
Author:
pvanhoof
Message:

Fixed that damn critical warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/TODO

    r889 r893  
    22o. Rename types in the demo-ui 
    33o. Refactor TnySaveStrategy to a TnyGnomeVfsSaveStrategy and a TnyPosixSaveStrategy 
    4 o. Fix the GTK_TREE_MODEL_SORT assertion of the demo-ui 
    54o. camel-lite-builder builds without nspr-dev resulting in a compilation error 
    65o. The docs don't describe the enums 
  • trunk/tinymail/tny-demoui-summary-view.c

    r891 r893  
    8787        GtkTreeSelection *mailbox_select; 
    8888        GtkTreeIter last_mailbox_correct_select; 
     89        gboolean last_mailbox_correct_select_set; 
    8990        guint connchanged_signal, online_button_signal; 
    9091        TnyListIface *current_accounts; 
     
    457458                {  
    458459                        /* If an "account name"-row was clicked */ 
    459                         g_signal_handler_block (G_OBJECT (priv->mailbox_select), priv->mailbox_select_sid); 
    460                         gtk_tree_selection_select_iter (priv->mailbox_select, &priv->last_mailbox_correct_select); 
    461                         g_signal_handler_unblock (G_OBJECT (priv->mailbox_select), priv->mailbox_select_sid); 
     460                        if (priv->last_mailbox_correct_select_set)  
     461                        { 
     462                                g_signal_handler_block (G_OBJECT (priv->mailbox_select), priv->mailbox_select_sid); 
     463                                gtk_tree_selection_select_iter (priv->mailbox_select, &priv->last_mailbox_correct_select); 
     464                                g_signal_handler_unblock (G_OBJECT (priv->mailbox_select), priv->mailbox_select_sid); 
     465                        } 
     466                        priv->last_mailbox_correct_select_set = TRUE; 
    462467                        return;  
    463468                } 
     
    494499                 
    495500        model = gtk_tree_view_get_model(treeview); 
    496          
     501     
    497502        if (G_LIKELY (gtk_tree_model_get_iter(model, &iter, path))) 
    498503        { 
     
    591596        /* TODO: Persist application UI status (of the panes) */ 
    592597 
     598        priv->last_mailbox_correct_select_set = FALSE; 
    593599        priv->online_button = gtk_toggle_button_new (); 
    594600        priv->current_accounts = NULL;