X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Fplugin-example.c;h=d81f11a8cc654607f68c99f8a1932a609041a36e;hp=f2ae95ed364715bd5bb230829108e2ca6ab0c743;hb=5e8bf923bce829075eb0754eecfd7e6b9b768a61;hpb=aba05890085cec97c631b5b8a25fd04c960ec203 diff --git a/src/plugin-example.c b/src/plugin-example.c index f2ae95e..d81f11a 100644 --- a/src/plugin-example.c +++ b/src/plugin-example.c @@ -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; }