]> Pileus Git - aweather/blobdiff - src/main.c
compiler fixes
[aweather] / src / main.c
index cdd97e637308cb468c08a83eb1d01b06b6dd3660..546628330471e2a377397ac3b13d3e515893691b 100644 (file)
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
        gtk_gl_init(&argc, &argv);
 
        /* Finish arguments */
-       log_levels = 1 << opt_debug;
+       log_levels = (1 << (opt_debug+1))-1;
 
        /* Logging */
        g_log_set_handler(NULL, G_LOG_LEVEL_MASK, log_func, NULL);
@@ -79,9 +79,9 @@ int main(int argc, char *argv[])
        g_signal_connect(gui, "map-event", G_CALLBACK(on_map), opt_site);
 
        /* Load plugins */
-       //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)));
+       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(gui));
        gtk_main();