]> Pileus Git - grits/blobdiff - src/plugins/test.c
libgis -> grits: Fix build after rename
[grits] / src / plugins / test.c
index 47eadd5ad50071b6131ee14a474b7e00e441f500..f42f02cadf9e44684c4aff1ca16d43dad1874a7b 100644 (file)
 #include <GL/gl.h>
 #include <GL/glu.h>
 
-#include <gis.h>
+#include <grits.h>
 
 #include "test.h"
 
 /***********
  * Methods *
  ***********/
+gboolean _load_marker(gpointer _test)
+{
+       GisPluginTest *test = _test;
+       GisMarker *marker = gis_marker_new("St. Charles");
+       gis_point_set_lle(gis_object_center(marker), 38.841847, -90.491982, 0);
+       GIS_OBJECT(marker)->lod = EARTH_R;
+       test->marker = gis_viewer_add(test->viewer, GIS_OBJECT(marker), GIS_LEVEL_OVERLAY, 0);
+       return FALSE;
+}
 /**
  * gis_plugin_test_new:
  * @viewer: the #GisViewer to use for drawing
@@ -47,12 +56,7 @@ GisPluginTest *gis_plugin_test_new(GisViewer *viewer)
        g_debug("GisPluginTest: new");
        GisPluginTest *test = g_object_new(GIS_TYPE_PLUGIN_TEST, NULL);
        test->viewer = g_object_ref(viewer);
-
-       GisMarker *marker = gis_marker_new("St. Charles");
-       gis_point_set_lle(gis_object_center(marker), 38.841847, -90.491982, 0);
-       GIS_OBJECT(marker)->lod = EARTH_R/4;
-       test->marker = gis_viewer_add(test->viewer, GIS_OBJECT(marker), GIS_LEVEL_OVERLAY, 0);
-
+       g_idle_add(_load_marker, test);
        return test;
 }