]> Pileus Git - grits/blobdiff - src/plugin-example.c
* Fixing some async issue (w/ gthread_init)
[grits] / src / plugin-example.c
index 553dd3d6acb6aabe90ed74905e2d271e50461f8e..40606423319e2888c49f40479bb9f0b2955bc463 100644 (file)
@@ -21,7 +21,6 @@
 #include <GL/gl.h>
 
 #include "aweather-gui.h"
-#include "aweather-plugin.h"
 #include "plugin-example.h"
 
 /****************
@@ -67,7 +66,7 @@ static gboolean rotate(gpointer _example)
  ***********/
 AWeatherExample *aweather_example_new(AWeatherGui *gui)
 {
-       //g_message("aweather_view_new");
+       g_debug("AWeatherExample: new");
        AWeatherExample *example = g_object_new(AWEATHER_TYPE_EXAMPLE, NULL);
        example->gui = gui;
 
@@ -75,7 +74,7 @@ AWeatherExample *aweather_example_new(AWeatherGui *gui)
        GtkWidget *config  = aweather_gui_get_widget(gui, "tabs");
 
        /* Add configuration tab */
-       GtkWidget *label = gtk_label_new("example");
+       GtkWidget *label = gtk_label_new("Example");
        example->button = GTK_TOGGLE_BUTTON(gtk_toggle_button_new_with_label("Rotate"));
        gtk_notebook_append_page(GTK_NOTEBOOK(config), GTK_WIDGET(example->button), label);
 
@@ -89,7 +88,7 @@ AWeatherExample *aweather_example_new(AWeatherGui *gui)
 static void aweather_example_expose(AWeatherPlugin *_example)
 {
        AWeatherExample *example = AWEATHER_EXAMPLE(_example);
-       g_message("aweather_example_expose");
+       g_debug("AWeatherExample: expose");
        glDisable(GL_TEXTURE_2D);
        glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity();
        glOrtho(-1,1,-1,1,-10,10);