]> Pileus Git - grits/blobdiff - examples/plugin/teapot.c
Fix header in teapot example
[grits] / examples / plugin / teapot.c
index a506cf1b63bfc0f2dd2ce312bf1f541f7248baa3..4c52465587afa3b171b3b9878667f60331adc39c 100644 (file)
@@ -18,7 +18,7 @@
 #include <gtk/gtkgl.h>
 #include <GL/gl.h>
 
-#include <gis/gis.h>
+#include <gis.h>
 
 #include "teapot.h"
 
@@ -35,7 +35,7 @@ static gboolean rotate(gpointer _teapot)
        return TRUE;
 }
 
-static gpointer expose(GisCallback *callback, gpointer _teapot)
+static void expose(GisCallback *callback, gpointer _teapot)
 {
        GisPluginTeapot *teapot = GIS_PLUGIN_TEAPOT(_teapot);
        g_debug("GisPluginTeapot: expose");
@@ -60,8 +60,6 @@ static gpointer expose(GisCallback *callback, gpointer _teapot)
        glColor4f(0.9, 0.9, 0.7, 1.0);
        glDisable(GL_CULL_FACE);
        gdk_gl_draw_teapot(TRUE, 0.25);
-
-       return NULL;
 }