X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugins%2Ftest.c;h=4dbc8380dfa50823a87c1c03c4b78a8cbe9b5a1a;hb=14c34a746fc94a9e5477d081275f04bd1c8b5d6d;hp=986a4f05f5f2730b090e6050e1394d33d5aedf71;hpb=bd716715f1d13a8df514fcfa53fd82aebdfda770;p=grits
diff --git a/src/plugins/test.c b/src/plugins/test.c
index 986a4f0..4dbc838 100644
--- a/src/plugins/test.c
+++ b/src/plugins/test.c
@@ -15,6 +15,14 @@
* along with this program. If not, see .
*/
+/**
+ * SECTION:test
+ * @short_description: Testing plugin
+ *
+ * #GisPluginTest is a testing plugin used during development and as an example
+ * for how to create a plugin.
+ */
+
#include
#include
#include
@@ -26,6 +34,14 @@
/***********
* Methods *
***********/
+/**
+ * gis_plugin_test_new:
+ * @viewer: the #GisViewer to use for drawing
+ *
+ * Create a new instance of the testing plugin.
+ *
+ * Returns: the new #GisPluginTest
+ */
GisPluginTest *gis_plugin_test_new(GisViewer *viewer)
{
g_debug("GisPluginTest: new");
@@ -33,8 +49,8 @@ GisPluginTest *gis_plugin_test_new(GisViewer *viewer)
test->viewer = g_object_ref(viewer);
GisMarker *marker = gis_marker_new("St. Charles");
- gis_point_set_lle(gis_object_center(GIS_OBJECT(marker)), 38.841847, -90.491982, 0);
- GIS_OBJECT(marker)->lod = EARTH_R/4;
+ 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 test;