#include "globals.h"
#include "vikmapslayer.h"
#include "vikrouting.h"
+#include "vikutils.h"
#include "util.h"
+#include "toolbar.h"
#ifdef VIK_CONFIG_GEOCACHES
void a_datasource_gc_init();
XSetErrorHandler(myXErrorHandler);
#endif
+ // Discover if this is the very first run
+ a_vik_very_first_run ();
+
a_settings_init ();
a_preferences_init ();
a_datasource_gc_init();
#endif
+ a_toolbar_init();
vik_routing_prefs_init();
+ if ( a_vik_get_time_ref_frame() == VIK_TIME_REF_WORLD )
+ vu_setup_lat_lon_tz_lookup();
+
/* Set the icon */
main_icon = gdk_pixbuf_from_pixdata(&viking_pixbuf, FALSE, NULL);
gtk_window_set_default_icon(main_icon);
gdk_threads_enter ();
+ // Ask for confirmation of default settings on first run
+ vu_set_auto_features_on_first_run ();
+
/* Create the first window */
first_window = vik_window_new_window();
- check_latest_version ( GTK_WINDOW(first_window) );
+ vu_check_latest_version ( GTK_WINDOW(first_window) );
while ( ++i < argc ) {
if ( strcmp(argv[i],"--") == 0 && !dashdash_already )
}
}
+ vik_window_new_window_finish ( first_window );
+
gtk_main ();
gdk_threads_leave ();
a_babel_uninit ();
-
+ a_toolbar_uninit ();
a_background_uninit ();
a_mapcache_uninit ();
a_dems_uninit ();
curl_download_uninit();
+ vu_finalize_lat_lon_tz_lookup ();
+
+ // Clean up any temporary files
+ util_remove_all_in_deletion_list ();
+
return 0;
}