]> Pileus Git - aweather/blobdiff - src/plugin-example.c
Refactoring a lot of things. Taking all the opengl and GIS stuff out of
[aweather] / src / plugin-example.c
index f2ae95ed364715bd5bb230829108e2ca6ab0c743..d81f11a8cc654607f68c99f8a1932a609041a36e 100644 (file)
@@ -73,12 +73,12 @@ static void aweather_example_class_init(AWeatherExampleClass *klass)
 /***********
  * Helpers *
  ***********/
-static gboolean rotate(gpointer _example)
+static gboolean rotate(gpointer _self)
 {
-       AWeatherExample *example = _example;
-       if (gtk_toggle_button_get_active(example->button)) {
-               example->rotation += 1.0;
-               aweather_gui_gl_redraw(example->gui);
+       AWeatherExample *self = _self;
+       if (gtk_toggle_button_get_active(self->button)) {
+               self->rotation += 1.0;
+               gis_opengl_redraw(aweather_gui_get_opengl(self->gui));
        }
        return TRUE;
 }