X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fplugins%2Ftest.c;h=c051806a0b392dc79616ca39c96666b4eb8243b9;hp=609297c58904d3682c0513901f3d0e32c1e8a83b;hb=07448c519e963bae1cfde4f1ff353478dd28136c;hpb=f383c18c9f85a1b439c6bfb2a27d652278ed019a diff --git a/src/plugins/test.c b/src/plugins/test.c index 609297c..c051806 100644 --- a/src/plugins/test.c +++ b/src/plugins/test.c @@ -23,7 +23,6 @@ * for how to create a plugin. */ -#include #include #include @@ -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) {