]> Pileus Git - grits/blobdiff - src/main.c
(no commit message)
[grits] / src / main.c
index f65d5b83ec48fde1b57ba5322aaf7ae8fc9cc309..343b6b9849bd6ed8e7101f9716c89c806c84084a 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * 
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #include <config.h>
 #include <gtk/gtk.h>
 #include <gtk/gtkgl.h>
@@ -20,9 +37,9 @@ int main(int argc, char *argv[])
        //AWeatherView *view = aweather_gui_get_view(gui);
 
        /* Load plugins */
-       //example_init(gui);
-        ridge_init  (gui);
-       radar_init  (gui);
+       aweather_gui_register_plugin(gui, AWEATHER_PLUGIN(aweather_example_new(gui)));
+       aweather_gui_register_plugin(gui, AWEATHER_PLUGIN(aweather_ridge_new(gui)));
+       aweather_gui_register_plugin(gui, AWEATHER_PLUGIN(aweather_radar_new(gui)));
 
        gtk_widget_show_all(aweather_gui_get_widget(gui, "window"));
        gtk_main();