aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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();
}