/* alm-plug.c generated by valac 0.20.1, the Vala compiler
 * generated from alm-plug.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <pantheon.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>


#define ALM_TYPE_ALM_PLUG (alm_alm_plug_get_type ())
#define ALM_ALM_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALM_TYPE_ALM_PLUG, AlmAlmPlug))
#define ALM_ALM_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ALM_TYPE_ALM_PLUG, AlmAlmPlugClass))
#define ALM_IS_ALM_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ALM_TYPE_ALM_PLUG))
#define ALM_IS_ALM_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ALM_TYPE_ALM_PLUG))
#define ALM_ALM_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ALM_TYPE_ALM_PLUG, AlmAlmPlugClass))

typedef struct _AlmAlmPlug AlmAlmPlug;
typedef struct _AlmAlmPlugClass AlmAlmPlugClass;
typedef struct _AlmAlmPlugPrivate AlmAlmPlugPrivate;

#define ALM_TYPE_PRIVACY_WIDGET (alm_privacy_widget_get_type ())
#define ALM_PRIVACY_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALM_TYPE_PRIVACY_WIDGET, AlmPrivacyWidget))
#define ALM_PRIVACY_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ALM_TYPE_PRIVACY_WIDGET, AlmPrivacyWidgetClass))
#define ALM_IS_PRIVACY_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ALM_TYPE_PRIVACY_WIDGET))
#define ALM_IS_PRIVACY_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ALM_TYPE_PRIVACY_WIDGET))
#define ALM_PRIVACY_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ALM_TYPE_PRIVACY_WIDGET, AlmPrivacyWidgetClass))

typedef struct _AlmPrivacyWidget AlmPrivacyWidget;
typedef struct _AlmPrivacyWidgetClass AlmPrivacyWidgetClass;

#define ALM_TYPE_BLACKLIST (alm_blacklist_get_type ())
#define ALM_BLACKLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ALM_TYPE_BLACKLIST, AlmBlacklist))
#define ALM_BLACKLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ALM_TYPE_BLACKLIST, AlmBlacklistClass))
#define ALM_IS_BLACKLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ALM_TYPE_BLACKLIST))
#define ALM_IS_BLACKLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ALM_TYPE_BLACKLIST))
#define ALM_BLACKLIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ALM_TYPE_BLACKLIST, AlmBlacklistClass))

typedef struct _AlmBlacklist AlmBlacklist;
typedef struct _AlmBlacklistClass AlmBlacklistClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _alm_blacklist_unref0(var) ((var == NULL) ? NULL : (var = (alm_blacklist_unref (var), NULL)))

struct _AlmAlmPlug {
	PantheonSwitchboardPlug parent_instance;
	AlmAlmPlugPrivate * priv;
};

struct _AlmAlmPlugClass {
	PantheonSwitchboardPlugClass parent_class;
};

struct _AlmAlmPlugPrivate {
	AlmPrivacyWidget* privacy_widget;
	AlmBlacklist* blacklist;
};


static gpointer alm_alm_plug_parent_class = NULL;

GType alm_alm_plug_get_type (void) G_GNUC_CONST;
GType alm_privacy_widget_get_type (void) G_GNUC_CONST;
gpointer alm_blacklist_ref (gpointer instance);
void alm_blacklist_unref (gpointer instance);
GParamSpec* alm_param_spec_blacklist (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void alm_value_set_blacklist (GValue* value, gpointer v_object);
void alm_value_take_blacklist (GValue* value, gpointer v_object);
gpointer alm_value_get_blacklist (const GValue* value);
GType alm_blacklist_get_type (void) G_GNUC_CONST;
#define ALM_ALM_PLUG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ALM_TYPE_ALM_PLUG, AlmAlmPlugPrivate))
enum  {
	ALM_ALM_PLUG_DUMMY_PROPERTY
};
AlmAlmPlug* alm_alm_plug_new (void);
AlmAlmPlug* alm_alm_plug_construct (GType object_type);
AlmBlacklist* alm_blacklist_new (void);
AlmBlacklist* alm_blacklist_construct (GType object_type);
AlmPrivacyWidget* alm_privacy_widget_new (AlmBlacklist* blacklist_interface);
AlmPrivacyWidget* alm_privacy_widget_construct (GType object_type, AlmBlacklist* blacklist_interface);
static void alm_alm_plug_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


AlmAlmPlug* alm_alm_plug_construct (GType object_type) {
	AlmAlmPlug * self = NULL;
	AlmBlacklist* _tmp0_;
	AlmBlacklist* _tmp1_;
	AlmPrivacyWidget* _tmp2_;
	AlmPrivacyWidget* _tmp3_;
	self = (AlmAlmPlug*) pantheon_switchboard_plug_construct (object_type);
	_tmp0_ = alm_blacklist_new ();
	_alm_blacklist_unref0 (self->priv->blacklist);
	self->priv->blacklist = _tmp0_;
	_tmp1_ = self->priv->blacklist;
	_tmp2_ = alm_privacy_widget_new (_tmp1_);
	g_object_ref_sink (_tmp2_);
	_g_object_unref0 (self->priv->privacy_widget);
	self->priv->privacy_widget = _tmp2_;
	_tmp3_ = self->priv->privacy_widget;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp3_);
	return self;
}


AlmAlmPlug* alm_alm_plug_new (void) {
	return alm_alm_plug_construct (ALM_TYPE_ALM_PLUG);
}


static void alm_alm_plug_class_init (AlmAlmPlugClass * klass) {
	alm_alm_plug_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (AlmAlmPlugPrivate));
	G_OBJECT_CLASS (klass)->finalize = alm_alm_plug_finalize;
}


static void alm_alm_plug_instance_init (AlmAlmPlug * self) {
	self->priv = ALM_ALM_PLUG_GET_PRIVATE (self);
}


static void alm_alm_plug_finalize (GObject* obj) {
	AlmAlmPlug * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, ALM_TYPE_ALM_PLUG, AlmAlmPlug);
	_g_object_unref0 (self->priv->privacy_widget);
	_alm_blacklist_unref0 (self->priv->blacklist);
	G_OBJECT_CLASS (alm_alm_plug_parent_class)->finalize (obj);
}


GType alm_alm_plug_get_type (void) {
	static volatile gsize alm_alm_plug_type_id__volatile = 0;
	if (g_once_init_enter (&alm_alm_plug_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AlmAlmPlugClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) alm_alm_plug_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AlmAlmPlug), 0, (GInstanceInitFunc) alm_alm_plug_instance_init, NULL };
		GType alm_alm_plug_type_id;
		alm_alm_plug_type_id = g_type_register_static (PANTHEON_SWITCHBOARD_TYPE_PLUG, "AlmAlmPlug", &g_define_type_info, 0);
		g_once_init_leave (&alm_alm_plug_type_id__volatile, alm_alm_plug_type_id);
	}
	return alm_alm_plug_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	AlmAlmPlug* _tmp0_;
	AlmAlmPlug* plug;
	gtk_init (&args_length1, &args);
	_tmp0_ = alm_alm_plug_new ();
	g_object_ref_sink (_tmp0_);
	plug = _tmp0_;
	pantheon_switchboard_plug_register ((PantheonSwitchboardPlug*) plug, "Activity log manager");
	gtk_widget_show_all ((GtkWidget*) plug);
	gtk_main ();
	result = 0;
	_g_object_unref0 (plug);
	return result;
}


int main (int argc, char ** argv) {
	g_type_init ();
	return _vala_main (argv, argc);
}



