/*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@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 published by
#include <gtk/gtk.h>
#include <gtk/gtkgl.h>
-#include <gis/gis.h>
+#include <gis.h>
#include "aweather-gui.h"
+#include "aweather-location.h"
static gint log_levels = 0;
GObject *action = aweather_gui_get_object(gui, "prefs_general_log");
g_signal_connect(action, "changed", G_CALLBACK(on_log_level_changed), NULL);
+ /* set locaiton */
+ for (city_t *city = cities; city->type; city++)
+ if (city->type == LOCATION_CITY && g_str_equal(city->code, site)) {
+ gis_viewer_set_location(gui->viewer, city->lat, city->lon, EARTH_R/20);
+ break;
+ }
+
gtk_widget_show_all(GTK_WIDGET(gui));
- gis_viewer_set_site(gui->viewer, site);
gtk_main();
return 0;
}