2004-10-03 [colin] 0.9.12cvs119.3
[claws.git] / src / gtk / gtksctree.c
index 1acfc2f18e69bfcff0b83e5e386deedb366374df..d6b28e7062ce8b86eb5c0ad2606a6d2008ecfc48 100644 (file)
@@ -235,7 +235,11 @@ select_row (GtkSCTree *sctree, gint row, gint col, guint state)
 
        gtk_clist_freeze (GTK_CLIST (sctree));
 
-       if (!additive && GTK_CLIST(sctree)->selection)
+       GTK_CLIST(sctree)->focus_row = row;
+
+       GTK_CLIST_GET_CLASS(sctree)->refresh(GTK_CLIST(sctree));
+
+       if (!additive)
                gtk_clist_unselect_all (GTK_CLIST (sctree));
 
        if (!range) {
@@ -260,8 +264,6 @@ select_row (GtkSCTree *sctree, gint row, gint col, guint state)
        } else
                select_range (sctree, row);
        
-       GTK_CLIST_GET_CLASS(sctree)->refresh(GTK_CLIST(sctree));
-
        gtk_clist_thaw (GTK_CLIST (sctree));
 }