1
1

1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gtkdtree.c (gtk_dtree_select_row): Disable row selection when
	were are removing entries from the tree.
Этот коммит содержится в:
Miguel de Icaza 1999-02-07 07:23:41 +00:00
родитель 3171176505
Коммит 2d77bf3f10
3 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,8 @@
1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx> 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtkdtree.c (gtk_dtree_select_row): Disable row selection when
were are removing entries from the tree.
* gutil.c (my_system_get_child_pid): Fix. We always wait for the * gutil.c (my_system_get_child_pid): Fix. We always wait for the
child process. child process.

Просмотреть файл

@ -163,6 +163,9 @@ gtk_dtree_select_row (GtkCTree *ctree, GtkCTreeNode *row, gint column)
GtkDTree *dtree = GTK_DTREE (ctree); GtkDTree *dtree = GTK_DTREE (ctree);
char *path; char *path;
if (dtree->removing_rows)
return;
parent_class->tree_select_row (ctree, row, column); parent_class->tree_select_row (ctree, row, column);
if (row == dtree->last_node) if (row == dtree->last_node)
@ -392,8 +395,11 @@ entry_removed_callback (tree_entry *tree, void *data)
break; break;
copy = NULL; copy = NULL;
} }
if (current == NULL && current_node) if (current == NULL && current_node){
dtree->removing_rows = 1;
gtk_ctree_remove_node (GTK_CTREE (data), current_node); gtk_ctree_remove_node (GTK_CTREE (data), current_node);
dtree->removing_rows = 0;
}
g_free (dirname); g_free (dirname);
} }

Просмотреть файл

@ -34,6 +34,7 @@ typedef struct {
unsigned short internal; unsigned short internal;
unsigned short loading_dir; unsigned short loading_dir;
int *show_dot_files; int *show_dot_files;
unsigned short removing_rows;
} GtkDTree; } GtkDTree;
typedef struct { typedef struct {