X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fplugin-example.h;h=5e52f6e53c44940f49a814b3ca26d1c490a1bcc4;hp=66c1cbf21306184ecdb34b3e4948151f5057beb4;hb=55d69c616a9f4f3bae23045f1174047003e2e1d4;hpb=d6cf708a2db6eae88dda328a17bf2157c9c90ca8
diff --git a/src/plugin-example.h b/src/plugin-example.h
index 66c1cbf..5e52f6e 100644
--- a/src/plugin-example.h
+++ b/src/plugin-example.h
@@ -15,9 +15,37 @@
* along with this program. If not, see .
*/
-#ifndef EXAMPLE_H
-#define EXAMPLE_H
+#ifndef __EXAMPLE_H__
+#define __EXAMPLE_H__
-gboolean example_init(AWeatherGui *gui);
+#include
+
+#define AWEATHER_TYPE_EXAMPLE (aweather_example_get_type ())
+#define AWEATHER_EXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AWEATHER_TYPE_EXAMPLE, AWeatherExample))
+#define AWEATHER_IS_EXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AWEATHER_TYPE_EXAMPLE))
+#define AWEATHER_EXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AWEATHER_TYPE_EXAMPLE, AWeatherExampleClass))
+#define AWEATHER_IS_EXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AWEATHER_TYPE_EXAMPLE))
+#define AWEATHER_EXAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AWEATHER_TYPE_EXAMPLE, AWeatherExampleClass))
+
+typedef struct _AWeatherExample AWeatherExample;
+typedef struct _AWeatherExampleClass AWeatherExampleClass;
+
+struct _AWeatherExample {
+ GObject parent_instance;
+
+ /* instance members */
+ AWeatherGui *gui;
+ GtkToggleButton *button;
+ float rotation;
+};
+
+struct _AWeatherExampleClass {
+ GObjectClass parent_class;
+};
+
+GType aweather_example_get_type (void);
+
+/* Methods */
+AWeatherExample *aweather_example_new(AWeatherGui *gui);
#endif