When changing focus in folderview, make sure the newly focused folder is visible...
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 20 Aug 2014 11:02:24 +0000 (13:02 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 20 Aug 2014 11:02:24 +0000 (13:02 +0200)
src/folderview.c

index d9d3a75..c061c0c 100644 (file)
@@ -857,6 +857,8 @@ static void folderview_select_node(FolderView *folderview, GtkCMCTreeNode *node)
                return;
        }
 
                return;
        }
 
+       gtkut_ctree_expand_parent_all(ctree, node);
+
        folderview->open_folder = TRUE;
        gtkut_ctree_set_focus_row(ctree, node);
        gtk_cmctree_select(ctree, node);
        folderview->open_folder = TRUE;
        gtkut_ctree_set_focus_row(ctree, node);
        gtk_cmctree_select(ctree, node);
@@ -866,8 +868,6 @@ static void folderview_select_node(FolderView *folderview, GtkCMCTreeNode *node)
                summary_grab_focus(folderview->summaryview);
        else
                gtk_widget_grab_focus(folderview->ctree);
                summary_grab_focus(folderview->summaryview);
        else
                gtk_widget_grab_focus(folderview->ctree);
-
-       gtkut_ctree_expand_parent_all(ctree, node);
 }
 
 void folderview_unselect(FolderView *folderview)
 }
 
 void folderview_unselect(FolderView *folderview)