aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2009-03-16 16:09:21 +0000
committerThomas White <taw27@cam.ac.uk>2009-03-16 16:09:21 +0000
commiteac1474a8031ec367a9f21c367e65df9fe8b99fc (patch)
treef4e7a3d8a0063c149d00d83d4578e1fbc2bdae48 /src/mainwindow.c
parent6ed7222f16f372b0e99faeb2a237b6a5db9d0016 (diff)
Linewrap, brackets etc
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index e718073..25b9a57 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -32,18 +32,21 @@
#include "types.h"
#include "audio.h"
-static gint mainwindow_closed(GtkWidget *widget, MainWindow *mw) {
+static gint mainwindow_closed(GtkWidget *widget, MainWindow *mw)
+{
gtk_main_quit();
return 0;
}
-static gint mainwindow_clicked(GtkWidget *widget, GdkEventButton *event, gpointer data) {
+static gint mainwindow_clicked(GtkWidget *widget, GdkEventButton *event,
+ gpointer data)
+{
audio_trigger_moo();
return 0;
}
-MainWindow *mainwindow_open(void) {
-
+MainWindow *mainwindow_open()
+{
MainWindow *mw;
GtkWidget *eb;
@@ -61,10 +64,11 @@ MainWindow *mainwindow_open(void) {
gtk_widget_add_events(GTK_WIDGET(eb), GDK_BUTTON_PRESS_MASK);
gtk_misc_set_alignment(GTK_MISC(mw->cow), 0.5, 1.0);
- g_signal_connect(G_OBJECT(eb), "button_press_event", G_CALLBACK(mainwindow_clicked), mw);
- g_signal_connect(G_OBJECT(mw->window), "destroy", G_CALLBACK(mainwindow_closed), mw);
+ g_signal_connect(G_OBJECT(eb), "button_press_event",
+ G_CALLBACK(mainwindow_clicked), mw);
+ g_signal_connect(G_OBJECT(mw->window), "destroy",
+ G_CALLBACK(mainwindow_closed), mw);
gtk_widget_show_all(mw->window);
return mw;
-
}