halloffame.c: consistent indentation
This commit is contained in:
parent
bf6e98f682
commit
9cf177147d
@ -11,7 +11,8 @@
|
||||
#include "gtkutils.h"
|
||||
#include "scoreboard.h"
|
||||
|
||||
void show_hall_of_fame(GtkWidget *widget, gpointer data, struct score_board b[10]) {
|
||||
void show_hall_of_fame (GtkWidget *widget, gpointer data, struct score_board b[10])
|
||||
{
|
||||
GtkWidget * hall_of_fame;
|
||||
GtkWidget * frame, * sw, * tv;
|
||||
GtkWidget * vbox, * button_box;
|
||||
@ -48,7 +49,10 @@ void show_hall_of_fame(GtkWidget *widget, gpointer data, struct score_board b[10
|
||||
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_add(GTK_CONTAINER(frame), sw);
|
||||
|
||||
store = gtk_list_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
|
||||
store = gtk_list_store_new (3,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING);
|
||||
for (i = 0; bs[i].score && i < 10; i++) {
|
||||
gtk_list_store_append(store, &iter);
|
||||
str = g_strdup_printf("%d", bs[i].score);
|
||||
@ -96,6 +100,8 @@ void show_hall_of_fame(GtkWidget *widget, gpointer data, struct score_board b[10
|
||||
gtk_widget_show_all (hall_of_fame);
|
||||
}
|
||||
|
||||
void show_hall_of_fame_cb(void) {
|
||||
|
||||
void show_hall_of_fame_cb(void)
|
||||
{
|
||||
show_hall_of_fame(NULL, NULL, NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user