Add grits_object_destroy functions and fix memory leaks
Add grits_http_abort function This is similar to soup_session_abort, except that it also prevents any additional requests from being queued. This prevents long waits if we cancel during a loop, as was done in the AWeather alerts plugin.
Move threading out of tile update/gc functions This prevents all sorts of race conditions when unloading plugins. I hope.
Move low level tile loading to GritsTile Move all the OpenGL stuff out of the plugins and into GritsTile, this prevents needing to explicit idle callbacks in plugins, which is extremely unstable when unloading a plugin. Note: The tile code is _not_ thread safe and will be reworked in subsequent changes. The plan is to use some sort of priority queue and do all the updating and garbage collecting from the main thread directly from the location-changed callback. The plugins can still use thread pools for the actual downloading and loading.
More reference counting updates The viewer now adds it's own references and doesn't take references from the caller. In almost all cases the caller needs to keep it's reference so that it can remove the object when the plugin is unloaded.
Fix race conditions
Fix a variety of memory leaks
Switch to explicit GL_CLAMP_TO_EDGE GL_CLAMP will sample the black edge color whereas GL_CLAMP_TO_EDGE does not. However, some graphics cards/drivers treat GL_CLAMP like GL_CLAMP_TO_EDGE. This forces the desired behavior.
Reentrant dispose functions for sat and map
Move OpenGL includes to a common place Apple seems to think the should put GL.h in OpenGL instead of GL.. putting it all gtkgl.h makes it a little easier, but requires gtkgl.h to be included in the install and by grits.h.
Update copyright notices
Pass objects to grits_viewer_remove instead of refs (finally)
Switch map and sat plugins to using thread pools TODO: switch evel as well
Improve shutdown code
libgis -> grits: Update functions/types/etc
libgis -> grits: Fix build after rename
Fix compiler warnings
Move gdk_pixbuf calls to main thread Hopefully this will fix some Win32 issues
Miscellaneous bug fixes - Lots of plugged memory leaks - Lots of small improvements
Add z-index to tiles Tiles are still drawn on the ground, Z-indexes are used as polygon offsets so that you can draw things like composite radar images above the satellite imagery.