Browse Source

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.
Miguel de Icaza 26 years ago
parent
commit
3171176505
3 changed files with 8 additions and 3 deletions
  1. 5 0
      src/ChangeLog
  2. 2 2
      src/treestore.c
  3. 1 1
      src/treestore.h

+ 5 - 0
src/ChangeLog

@@ -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>
 
 	* treestore.c (tree_store_notify_add): A tree_store_add_fn wants a

+ 2 - 2
src/treestore.c

@@ -762,14 +762,14 @@ tree_store_remove_entry_add_hook (tree_store_add_fn callback)
 }
 
 void
-tree_store_notify_add (tree_entry *entry)
+tree_store_notify_add (char *directory)
 {
 	Hook *p = add_entry_hooks;
 	tree_store_add_fn r;
 	
 	while (p) {
 		r = (tree_store_add_fn) p->hook_fn;
-		r (entry->name, p->hook_data);
+		r (directory, p->hook_data);
 		p = p->next;
 	}
 }

+ 1 - 1
src/treestore.h

@@ -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
  */
 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_entry *tree_store_readdir       (tree_scan *scanner);