diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 12:24:14 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 12:24:14 +0100 |
commit | abf5512aff5cf03a764963aaa9dad9e2e570f03e (patch) | |
tree | 75be8db0f7e6fc2cc093f8377f542e4b41f0a42c /desktop/global_history.c | |
parent | cdf9c9ba72c7588a1e3f503fea9f288c8394af9e (diff) | |
download | netsurf-abf5512aff5cf03a764963aaa9dad9e2e570f03e.tar.gz netsurf-abf5512aff5cf03a764963aaa9dad9e2e570f03e.tar.bz2 |
Make releationship enum meanings clearer.
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r-- | desktop/global_history.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c index 5ebc1ec27..c2df24921 100644 --- a/desktop/global_history.c +++ b/desktop/global_history.c @@ -175,7 +175,7 @@ static nserror global_history_entry_insert(struct global_history_entry *e, } err = treeview_create_node_entry(gh_ctx.tree, &(e->entry), - parent, TREE_REL_CHILD, e->data, e); + parent, TREE_REL_FIRST_CHILD, e->data, e); if (err != NSERROR_OK) { return err; } @@ -429,7 +429,7 @@ static nserror global_history_init_dir(enum global_history_folders f, nserror err; time_t t = gh_ctx.today; struct treeview_node *relation = NULL; - enum treeview_relationship rel = TREE_REL_CHILD; + enum treeview_relationship rel = TREE_REL_FIRST_CHILD; t -= age * N_SEC_PER_DAY; @@ -437,7 +437,7 @@ static nserror global_history_init_dir(enum global_history_folders f, if (f != GH_TODAY) { relation = gh_ctx.folders[f - 1].folder; - rel = TREE_REL_SIBLING_NEXT; + rel = TREE_REL_NEXT_SIBLING; } gh_ctx.folders[f].data.field = gh_ctx.fields[N_FIELDS - 1].field; |