1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* treestore.c (tree_store_notify_add): Close, but no cigar. The bug was deeper: This list keeps names, not tree_entries.
Этот коммит содержится в:
родитель
faa8560535
Коммит
3171176505
@ -1,3 +1,8 @@
|
|||||||
|
1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* treestore.c (tree_store_notify_add): Close, but no cigar. The
|
||||||
|
bug was deeper: This list keeps names, not tree_entries.
|
||||||
|
|
||||||
1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
* treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
|
* treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
|
||||||
|
@ -762,14 +762,14 @@ tree_store_remove_entry_add_hook (tree_store_add_fn callback)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tree_store_notify_add (tree_entry *entry)
|
tree_store_notify_add (char *directory)
|
||||||
{
|
{
|
||||||
Hook *p = add_entry_hooks;
|
Hook *p = add_entry_hooks;
|
||||||
tree_store_add_fn r;
|
tree_store_add_fn r;
|
||||||
|
|
||||||
while (p) {
|
while (p) {
|
||||||
r = (tree_store_add_fn) p->hook_fn;
|
r = (tree_store_add_fn) p->hook_fn;
|
||||||
r (entry->name, p->hook_data);
|
r (directory, p->hook_data);
|
||||||
p = p->next;
|
p = p->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ void tree_store_remove_entry_add_hook (tree_store_add_fn callback);
|
|||||||
* Changes in the tree_entry are notified with these
|
* Changes in the tree_entry are notified with these
|
||||||
*/
|
*/
|
||||||
void tree_store_notify_remove (tree_entry *entry);
|
void tree_store_notify_remove (tree_entry *entry);
|
||||||
void tree_store_notify_add (tree_entry *entry);
|
void tree_store_notify_add (char *directory);
|
||||||
|
|
||||||
tree_scan *tree_store_opendir (char *path);
|
tree_scan *tree_store_opendir (char *path);
|
||||||
tree_entry *tree_store_readdir (tree_scan *scanner);
|
tree_entry *tree_store_readdir (tree_scan *scanner);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user