BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
6be0089c
Commit
6be0089c
authored
May 16, 2018
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_group_del: remove the objects from the groups too
parent
80cb93f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lv_group.c
lv_core/lv_group.c
+12
-1
No files found.
lv_core/lv_group.c
View file @
6be0089c
...
...
@@ -58,6 +58,18 @@ lv_group_t * lv_group_create(void)
*/
void
lv_group_del
(
lv_group_t
*
group
)
{
/*Defocus the the currently focussed object*/
if
(
group
->
obj_focus
!=
NULL
)
{
(
*
group
->
obj_focus
)
->
signal_func
(
*
group
->
obj_focus
,
LV_SIGNAL_DEFOCUS
,
NULL
);
lv_obj_invalidate
(
*
group
->
obj_focus
);
}
/*Remove the objects from the group*/
lv_obj_t
**
obj
;
LL_READ
(
group
->
obj_ll
,
obj
)
{
(
*
obj
)
->
group_p
=
NULL
;
}
lv_ll_clear
(
&
(
group
->
obj_ll
));
lv_mem_free
(
group
);
}
...
...
@@ -116,7 +128,6 @@ void lv_group_focus_obj(lv_obj_t * obj)
if
(
g
->
frozen
!=
0
)
return
;
lv_obj_t
**
i
;
LL_READ
(
g
->
obj_ll
,
i
)
{
if
(
*
i
==
obj
)
{
if
(
g
->
obj_focus
!=
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment