diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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(); } |