]> Pileus Git - grits/blobdiff - src/plugins/test.c
Switch from GtkGLExt to internal OpenGL handling
[grits] / src / plugins / test.c
index 609297c58904d3682c0513901f3d0e32c1e8a83b..c051806a0b392dc79616ca39c96666b4eb8243b9 100644 (file)
@@ -23,7 +23,6 @@
  * for how to create a plugin.
  */
 
-#include <gtk/gtkgl.h>
 #include <GL/gl.h>
 #include <GL/glu.h>
 
@@ -56,7 +55,7 @@ GritsPluginTest *grits_plugin_test_new(GritsViewer *viewer)
        g_debug("GritsPluginTest: new");
        GritsPluginTest *test = g_object_new(GRITS_TYPE_PLUGIN_TEST, NULL);
        test->viewer = g_object_ref(viewer);
-       g_idle_add(_load_marker, test);
+       _load_marker(test);
        return test;
 }
 
@@ -88,7 +87,7 @@ static void grits_plugin_test_dispose(GObject *_test)
                g_object_unref(test->viewer);
                test->viewer = NULL;
        }
-       G_OBJECT_CLASS(grits_plugin_test_parent_class)->finalize(_test);
+       G_OBJECT_CLASS(grits_plugin_test_parent_class)->dispose(_test);
 }
 static void grits_plugin_test_class_init(GritsPluginTestClass *klass)
 {