foreach_data should be set to the caller-supplied data, not the tree item

* e-storage.c (get_path_for_physical_uri_foreach): foreach_data
	should be set to the caller-supplied data, not the tree item data.

svn path=/trunk/; revision=5452
This commit is contained in:
Dan Winship
2000-09-15 15:52:23 +00:00
parent 3b3f989e83
commit a189405161
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-09-15 Dan Winship <danw@helixcode.com>
* e-storage.c (get_path_for_physical_uri_foreach): foreach_data
should be set to the caller-supplied data, not the tree item data.
2000-09-14 Iain Holmes <iain@helixcode.com>
* e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct):

View File

@ -353,18 +353,18 @@ typedef struct _GetPathForPhysicalUriForeachData GetPathForPhysicalUriForeachDat
static void
get_path_for_physical_uri_foreach (EFolderTree *folder_tree,
const char *path,
void *data,
void *closure)
void *path_data,
void *user_data)
{
GetPathForPhysicalUriForeachData *foreach_data;
const char *physical_uri;
EFolder *e_folder;
foreach_data = (GetPathForPhysicalUriForeachData *) data;
foreach_data = (GetPathForPhysicalUriForeachData *) user_data;
if (foreach_data->retval != NULL)
return;
e_folder = (EFolder *) data;
e_folder = (EFolder *) path_data;
if (e_folder == NULL)
return;