From ab4b742501cbc952ac186673a0a1f4886aa9faba Mon Sep 17 00:00:00 2001 From: Craven Date: Thu, 29 Aug 2024 12:27:41 +0100 Subject: [PATCH] make format --- src/component/title.c | 2 +- src/timer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/title.c b/src/component/title.c index 8aa80f5..0942288 100644 --- a/src/component/title.c +++ b/src/component/title.c @@ -36,7 +36,7 @@ LSComponent* ls_component_title_new() gtk_widget_set_valign(self->attempt_count, GTK_ALIGN_START); gtk_container_add(GTK_CONTAINER(self->header), self->attempt_count); gtk_widget_show(self->attempt_count); - + self->finished_count = gtk_label_new(NULL); add_class(self->finished_count, "finished_count"); gtk_widget_set_margin_start(self->finished_count, 8); diff --git a/src/timer.c b/src/timer.c index 7491525..96e7a9b 100644 --- a/src/timer.c +++ b/src/timer.c @@ -215,7 +215,7 @@ int ls_game_create(ls_game** game_ptr, const char* path, char** error_msg) if (ref) { game->attempt_count = json_integer_value(ref); } - //get finished count + // get finished count ref = json_object_get(json, "finished_count"); if (ref) { game->finished_count = json_integer_value(ref); @@ -648,7 +648,7 @@ int ls_timer_split(ls_timer* timer) ++timer->curr_split; // stop timer if last split if (timer->curr_split == timer->game->split_count) { - //Increment finished_count + // Increment finished_count ++*timer->finished_count; ls_timer_stop(timer); ls_game_update_splits((ls_game*)timer->game, timer);