defined sensors box, sensors list and graph widgets in the glade file.
[psensor.git] / src / main.c
index 4c16bf7..90d26ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2013 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -81,7 +81,7 @@ static void print_version()
                 "This is free software: you are free to change and "
                 " redistribute it.\n"
                 "There is NO WARRANTY, to the extent permitted by law.\n"),
-              "2010-2012");
+              "2010-2013");
 }
 
 static void print_help()
@@ -585,16 +585,9 @@ int main(int argc, char **argv)
 
        /* main window */
        ui_window_create(&ui);
-       ui.sensor_box = NULL;
-
-       /* drawing box */
-       ui.w_graph = ui_graph_create(&ui);
 
        ui_enable_alpha_channel(&ui);
 
-       /* sensor list */
-       ui_sensorlist_create(&ui);
-
        thread = g_thread_create((GThreadFunc) update_measures,
                                 &ui, TRUE, &error);
 
@@ -622,7 +615,6 @@ int main(int argc, char **argv)
        else
                initial_window_show(&ui);
 
-       printf("main loop\n");
        /* main loop */
        gtk_main();