aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-25 22:49:56 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-25 22:49:56 +0200
commitfc921619e91c55d7868f90c670a609b931cbab69 (patch)
treec81d7baf22216ec36514ece6a586865a7c096ef8 /src
parent4a378e56cd5b2c97207169bab2365e0897436df5 (diff)
downloadcherry-fc921619e91c55d7868f90c670a609b931cbab69.tar.gz
cherry-fc921619e91c55d7868f90c670a609b931cbab69.zip
Rename variables
Diffstat (limited to 'src')
-rw-r--r--src/widget.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widget.c b/src/widget.c
index e734cb6..fabc67d 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -6,14 +6,14 @@
CherryWidget *
cherry_widget_new(void)
{
- CherryWidget *comp = malloc(sizeof(*comp));
- comp->x = 0;
- comp->y = 0;
- comp->components = clist_create();
- comp->draw = NULL;
- comp->dimension = cherry_dimension_new();
+ CherryWidget *widget = malloc(sizeof(*widget));
+ widget->x = 0;
+ widget->y = 0;
+ widget->widgets = clist_create();
+ widget->draw = NULL;
+ widget->dimension = cherry_dimension_new();
- return comp;
+ return widget;
}
CherryDimension *
@@ -24,5 +24,5 @@ cherry_widget_get_dimension(CherryWidget *comp) {
void
cherry_widget_add_component(CherryWidget *parent, CherryWidget *child)
{
- clist_add(&parent->components, child);
+ clist_add(&parent->widgets, child);
}