X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fmain.c;h=343b6b9849bd6ed8e7101f9716c89c806c84084a;hb=13e5efb9aae0da9f9c3cc6e0c32aafae2037de18;hp=22cc7f04f00ca7b04c8fc10161a5bab174202bd8;hpb=d1d479adc78f455398046e115ffd382954d3cc82;p=grits diff --git a/src/main.c b/src/main.c index 22cc7f0..343b6b9 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2009 Andy Spencer + * + * 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 . + */ + #include #include #include @@ -20,11 +37,11 @@ int main(int argc, char *argv[]) //AWeatherView *view = aweather_gui_get_view(gui); /* Load plugins */ - radar_init (gui); - ridge_init (gui); - example_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(GTK_WIDGET(aweather_gui_get_window(gui))); + gtk_widget_show_all(aweather_gui_get_widget(gui, "window")); gtk_main(); return 0;