From 7cb276b63e6be10b5ea4715c0497e506e81a8898 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 26 Jan 1999 02:02:21 +0000 Subject: [PATCH] 1999-01-25 Miguel de Icaza * gtkdtree.c (gtk_dtree_select_row): This should be also protected against async notifications. --- gnome/ChangeLog | 5 +++++ gnome/gtkdtree.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 71ea6210d..f82ed61be 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,8 @@ +1999-01-25 Miguel de Icaza + + * gtkdtree.c (gtk_dtree_select_row): This should be also protected + against async notifications. + 1999-01-25 Federico Mena Quintero * gdnd.c (get_action): Sensitize the menu items based on the diff --git a/gnome/gtkdtree.c b/gnome/gtkdtree.c index f2356307e..d5ab40dc1 100644 --- a/gnome/gtkdtree.c +++ b/gnome/gtkdtree.c @@ -170,6 +170,7 @@ gtk_dtree_select_row (GtkCTree *ctree, GtkCTreeNode *row, gint column) if (row == dtree->last_node) return; + dtree->loading_dir++; dtree->last_node = row; gtk_clist_freeze (GTK_CLIST (ctree)); @@ -198,7 +199,8 @@ gtk_dtree_select_row (GtkCTree *ctree, GtkCTreeNode *row, gint column) g_free (np); } #endif - + + dtree->loading_dir--; gtk_clist_thaw (GTK_CLIST (ctree)); }