/*
- * 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
/***********
* Methods *
***********/
+void gis_viewer_setup(GisViewer *self, GisPlugins *plugins, GisPrefs *prefs)
+{
+ self->plugins = plugins;
+ self->prefs = prefs;
+ self->offline = gis_prefs_get_boolean(prefs, "gis/offline", NULL);
+}
+
void gis_viewer_set_time(GisViewer *self, const char *time)
{
g_assert(GIS_IS_VIEWER(self));
{
g_assert(GIS_IS_VIEWER(self));
g_debug("GisViewer: set_offline - %d", offline);
+ gis_prefs_set_boolean(self->prefs, "gis/offline", offline);
self->offline = offline;
_gis_viewer_emit_offline(self);
}