diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-30 12:51:40 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-30 12:51:40 +0100 |
commit | 09f5b0e95ffa3d40d1e07c5ba8be218de6676d73 (patch) | |
tree | 4c740592655a18da23c963605b59aa6434266921 /desktop/global_history.c | |
parent | e2fbd3a266fcd33e7d380f45f891eee515b3fc90 (diff) | |
download | netsurf-09f5b0e95ffa3d40d1e07c5ba8be218de6676d73.tar.gz netsurf-09f5b0e95ffa3d40d1e07c5ba8be218de6676d73.tar.bz2 |
Improve callback suppression options. Reduce unnecessary callback usage.
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r-- | desktop/global_history.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c index 66bf37dcb..2b384b1ef 100644 --- a/desktop/global_history.c +++ b/desktop/global_history.c @@ -197,9 +197,9 @@ static nserror global_history_create_dir(enum global_history_folders f) relation, rel, &gh_ctx.folders[f].data, &gh_ctx.folders[f], - gh_ctx.built ? TREE_CREATE_NONE : - TREE_CREATE_SUPPRESS_RESIZE | - TREE_CREATE_SUPPRESS_REDRAW); + gh_ctx.built ? TREE_OPTION_NONE : + TREE_OPTION_SUPPRESS_RESIZE | + TREE_OPTION_SUPPRESS_REDRAW); return err; } @@ -326,9 +326,9 @@ static nserror global_history_entry_insert(struct global_history_entry *e, err = treeview_create_node_entry(gh_ctx.tree, &(e->entry), parent, TREE_REL_FIRST_CHILD, e->data, e, - gh_ctx.built ? TREE_CREATE_NONE : - TREE_CREATE_SUPPRESS_RESIZE | - TREE_CREATE_SUPPRESS_REDRAW); + gh_ctx.built ? TREE_OPTION_NONE : + TREE_OPTION_SUPPRESS_RESIZE | + TREE_OPTION_SUPPRESS_REDRAW); if (err != NSERROR_OK) { return err; } @@ -500,7 +500,9 @@ static bool global_history_add_entry(nsurl *url, /* Delete any existing entry for this URL */ e = global_history_find(url); if (e != NULL) { - treeview_delete_node(gh_ctx.tree, e->entry); + treeview_delete_node(gh_ctx.tree, e->entry, + TREE_OPTION_SUPPRESS_REDRAW | + TREE_OPTION_SUPPRESS_RESIZE); } } |