aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-11-23 18:16:00 +0000
committerThomas White <taw27@cam.ac.uk>2008-11-23 18:16:00 +0000
commita2687f9d6b0ed5b962f471598c8361c19d773679 (patch)
tree8ffea27447d440598f8394e6eb5416108140bea0 /src/main.c
parentec010b19cac1d5aea5393a687a91431f2e541101 (diff)
Initial cleanup - remove "physics"
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1d74b7b..f07e829 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,16 +30,26 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
+#include <glib.h>
#include "types.h"
#include "mainwindow.h"
+#include "accelerometers.h"
int main(int argc, char *argv[]) {
MainWindow *mw;
gtk_init(&argc, &argv);
+ g_thread_init(NULL);
+
+ /* Start the accelerometer thread */
+ accelerometer_start();
+
+ /* Open the window */
mw = mainwindow_open();
+
+ /* Wait "forever" */
if ( mw != NULL ) {
gtk_main();
}