summaryrefslogtreecommitdiff
path: root/desktop/treeview.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-10-04 20:23:20 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-10-04 20:24:10 +0100
commit7e08cf4352d41c372584db69fc59c928f63c324f (patch)
tree23272af635b0d620b1f8a6c600ebeed20517a7e8 /desktop/treeview.c
parent4a24a14b09304272349c83c57b0d202193d30d4d (diff)
downloadnetsurf-7e08cf4352d41c372584db69fc59c928f63c324f.tar.gz
netsurf-7e08cf4352d41c372584db69fc59c928f63c324f.tar.bz2
Treeview: Fix designated struct initialisation.
Diffstat (limited to 'desktop/treeview.c')
-rw-r--r--desktop/treeview.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 48422e8e3..3db90cc41 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -4773,12 +4773,12 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y)
} else {
/* On tree */
struct treeview_mouse_action ma = {
- ma.tree = tree,
- ma.mouse = mouse,
- ma.x = x,
- ma.y = y,
- ma.current_y = search_height,
- ma.search_height = search_height,
+ .tree = tree,
+ .mouse = mouse,
+ .x = x,
+ .y = y,
+ .current_y = search_height,
+ .search_height = search_height,
};
treeview_walk_internal(tree, tree->root,