diff options
author | Ted Gould <ted@canonical.com> | 2009-10-06 15:28:41 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-06 15:28:41 -0400 |
commit | 1f822bf64b8891dab03937060dd47b8003bb8ab5 (patch) | |
tree | ba0addb7f510a9a1d85e6a721fb42e7a7e716219 /libindicator/indicator-object.c | |
parent | 1c30efea4d348d8bf9f74c1b821b9dfe16d890b9 (diff) | |
download | libayatana-indicator-1f822bf64b8891dab03937060dd47b8003bb8ab5.tar.gz libayatana-indicator-1f822bf64b8891dab03937060dd47b8003bb8ab5.tar.bz2 libayatana-indicator-1f822bf64b8891dab03937060dd47b8003bb8ab5.zip |
Building a base object.
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c new file mode 100644 index 0000000..772110b --- /dev/null +++ b/libindicator/indicator-object.c @@ -0,0 +1,55 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "indicator-object.h" + +typedef struct _IndicatorObjectPrivate IndicatorObjectPrivate; +struct _IndicatorObjectPrivate { +}; + +#define INDICATOR_OBJECT_GET_PRIVATE(o) \ + (G_TYPE_INSTANCE_GET_PRIVATE ((o), INDICATOR_OBJECT_TYPE, IndicatorObjectPrivate)) + +static void indicator_object_class_init (IndicatorObjectClass *klass); +static void indicator_object_init (IndicatorObject *self); +static void indicator_object_dispose (GObject *object); +static void indicator_object_finalize (GObject *object); + +G_DEFINE_TYPE (IndicatorObject, indicator_object, G_TYPE_OBJECT); + +static void +indicator_object_class_init (IndicatorObjectClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + g_type_class_add_private (klass, sizeof (IndicatorObjectPrivate)); + + object_class->dispose = indicator_object_dispose; + object_class->finalize = indicator_object_finalize; + + return; +} + +static void +indicator_object_init (IndicatorObject *self) +{ + + return; +} + +static void +indicator_object_dispose (GObject *object) +{ + + G_OBJECT_CLASS (indicator_object_parent_class)->dispose (object); + return; +} + +static void +indicator_object_finalize (GObject *object) +{ + + G_OBJECT_CLASS (indicator_object_parent_class)->finalize (object); + return; +} |