inputname.c: consistent indentation
This commit is contained in:
parent
9cf177147d
commit
2a361fec55
@ -21,7 +21,8 @@ static GtkWidget *_dialog = NULL;
|
|||||||
static gchar _last_player_name[15] = "";
|
static gchar _last_player_name[15] = "";
|
||||||
static gint _saved_score = 0;
|
static gint _saved_score = 0;
|
||||||
|
|
||||||
void read_entry(GtkWidget *widget, gpointer data) {
|
void read_entry(GtkWidget *widget, gpointer data)
|
||||||
|
{
|
||||||
struct score_board current_entry;
|
struct score_board current_entry;
|
||||||
time_t current_time;
|
time_t current_time;
|
||||||
struct tm *timeptr;
|
struct tm *timeptr;
|
||||||
@ -37,6 +38,7 @@ void read_entry(GtkWidget *widget, gpointer data) {
|
|||||||
current_entry.score = _saved_score;
|
current_entry.score = _saved_score;
|
||||||
current_time = time(NULL);
|
current_time = time(NULL);
|
||||||
timeptr = localtime(¤t_time);
|
timeptr = localtime(¤t_time);
|
||||||
|
|
||||||
if (!timeptr) {
|
if (!timeptr) {
|
||||||
ut_simple_message_box(_("Unable to determine current date.\n"));
|
ut_simple_message_box(_("Unable to determine current date.\n"));
|
||||||
strncpy(current_entry.date, _("Unknown"), sizeof(current_entry.date));
|
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 ;) */
|
/* 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 * prompt_label, * vbox;
|
||||||
GtkWidget * name;
|
GtkWidget * name;
|
||||||
GtkWidget * button;
|
GtkWidget * button;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user