summaryrefslogtreecommitdiff
path: root/desktop/global_history.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-29 18:31:58 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-08-29 18:31:58 +0100
commitafaf24378ba8de2e781801b270f2d124fcd6836c (patch)
tree24c462a1ee37c1591333cbadae9c81b237ab2e72 /desktop/global_history.c
parent895954a1e1de4da43cbba6cbe431983d43dda8c6 (diff)
downloadnetsurf-afaf24378ba8de2e781801b270f2d124fcd6836c.tar.gz
netsurf-afaf24378ba8de2e781801b270f2d124fcd6836c.tar.bz2
Add flag to suppress redraw on node creation.
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r--desktop/global_history.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index 3861ee27b..66bf37dcb 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -198,7 +198,8 @@ static nserror global_history_create_dir(enum global_history_folders f)
&gh_ctx.folders[f].data,
&gh_ctx.folders[f],
gh_ctx.built ? TREE_CREATE_NONE :
- TREE_CREATE_SUPPRESS_RESIZE);
+ TREE_CREATE_SUPPRESS_RESIZE |
+ TREE_CREATE_SUPPRESS_REDRAW);
return err;
}
@@ -326,7 +327,8 @@ 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_RESIZE |
+ TREE_CREATE_SUPPRESS_REDRAW);
if (err != NSERROR_OK) {
return err;
}