mainwin.c: consistent indentation

This commit is contained in:
wdlkmpx 2021-01-14 21:58:11 +08:00
parent 04665b6453
commit 3588163047

View File

@ -68,7 +68,8 @@ void mw_set_user_score(gint score) {
g_free(str);
}
gboolean _countdown_timer(gpointer data) {
gboolean _countdown_timer(gpointer data)
{
gchar *text;
GtkLabel *label = data;
gint trem;
@ -94,7 +95,8 @@ gboolean _countdown_timer(gpointer data) {
return TRUE;
}
gint _user_action_event(GtkWidget *w, GdkEvent *ev) {
gint _user_action_event(GtkWidget *w, GdkEvent *ev)
{
if (ev->type == GDK_MOTION_NOTIFY) {
move_pointer_to(gtkb_theme_get_coord_at_x(ev->motion.x),
gtkb_theme_get_coord_at_y(ev->motion.y));
@ -137,13 +139,16 @@ gint _user_action_event(GtkWidget *w, GdkEvent *ev) {
return FALSE;
}
static void main_window_destroy_cb (GtkWidget * w, gpointer user_data)
{
gtkb_theme_free_handler (NULL, NULL);
gtk_main_quit ();
}
void mw_create(gint da_width, gint da_height) {
void mw_create(gint da_width, gint da_height)
{
GtkWidget * mainwin;
GtkWidget * menubar;
GtkWidget * vbox, * hbox, * hbox1, * drawing_area_box;