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.
Этот коммит содержится в:
родитель
3171176505
Коммит
2d77bf3f10
@ -1,5 +1,8 @@
|
||||
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
|
||||
child process.
|
||||
|
||||
|
@ -163,6 +163,9 @@ gtk_dtree_select_row (GtkCTree *ctree, GtkCTreeNode *row, gint column)
|
||||
GtkDTree *dtree = GTK_DTREE (ctree);
|
||||
char *path;
|
||||
|
||||
if (dtree->removing_rows)
|
||||
return;
|
||||
|
||||
parent_class->tree_select_row (ctree, row, column);
|
||||
|
||||
if (row == dtree->last_node)
|
||||
@ -392,8 +395,11 @@ entry_removed_callback (tree_entry *tree, void *data)
|
||||
break;
|
||||
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);
|
||||
dtree->removing_rows = 0;
|
||||
}
|
||||
|
||||
g_free (dirname);
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ typedef struct {
|
||||
unsigned short internal;
|
||||
unsigned short loading_dir;
|
||||
int *show_dot_files;
|
||||
unsigned short removing_rows;
|
||||
} GtkDTree;
|
||||
|
||||
typedef struct {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user