]> Pileus Git - aweather/blobdiff - src/main.c
Add -no-undefined for win32 build
[aweather] / src / main.c
index 1e6aea6710a3ed5a59f232feb8fa35bdab153fef..af4c0c253d993ac077fc4f8e1b4cc63d5b6553ef 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#define _XOPEN_SOURCE
+#include <sys/time.h>
 #include <config.h>
 #include <gtk/gtk.h>
-#include <gtk/gtkgl.h>
 #include <glib/gstdio.h>
-#include <time.h>
 
 #include <grits.h>
 
@@ -63,7 +63,7 @@ gboolean set_location_time(AWeatherGui *gui, char *site, char *time)
        for (city_t *city = cities; city->type; city++) {
                if (city->type == LOCATION_CITY && g_str_equal(city->code, site)) {
                        grits_viewer_set_location(gui->viewer,
-                               city->pos.lat, city->pos.lon, EARTH_R/25);
+                               city->pos.lat, city->pos.lon, EARTH_R/35);
                        break;
                }
        }
@@ -107,7 +107,6 @@ int main(int argc, char *argv[])
                g_error_free(error);
                return -1;
        }
-       gtk_gl_init(&argc, &argv);
 
        /* Do some logging here for aweather_gui_new */
        if (opt_debug) log_levels = (1 << (opt_debug+1))-1;