inputname.c: consistent indentation

This commit is contained in:
wdlkmpx 2021-01-14 21:50:35 +08:00
parent 9cf177147d
commit 2a361fec55

View File

@ -21,7 +21,8 @@ static GtkWidget *_dialog = NULL;
static gchar _last_player_name[15] = "";
static gint _saved_score = 0;
void read_entry(GtkWidget *widget, gpointer data) {
void read_entry(GtkWidget *widget, gpointer data)
{
struct score_board current_entry;
time_t current_time;
struct tm *timeptr;
@ -37,6 +38,7 @@ void read_entry(GtkWidget *widget, gpointer data) {
current_entry.score = _saved_score;
current_time = time(NULL);
timeptr = localtime(&current_time);
if (!timeptr) {
ut_simple_message_box(_("Unable to determine current date.\n"));
strncpy(current_entry.date, _("Unknown"), sizeof(current_entry.date));
@ -74,7 +76,9 @@ void read_entry(GtkWidget *widget, gpointer data) {
/* show scores to let user see if (s)he's on top ;) */
}
void input_name_dialog(void) {
void input_name_dialog(void)
{
GtkWidget * prompt_label, * vbox;
GtkWidget * name;
GtkWidget * button;