/* gitg-notifications.c generated by valac 0.28.0, the Vala compiler
 * generated from gitg-notifications.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include "libgitg-ext/libgitg-ext.h"
#include <gtk/gtk.h>
#include <gee.h>


#define GITG_TYPE_NOTIFICATIONS (gitg_notifications_get_type ())
#define GITG_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_NOTIFICATIONS, GitgNotifications))
#define GITG_NOTIFICATIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_NOTIFICATIONS, GitgNotificationsClass))
#define GITG_IS_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_NOTIFICATIONS))
#define GITG_IS_NOTIFICATIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_NOTIFICATIONS))
#define GITG_NOTIFICATIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_NOTIFICATIONS, GitgNotificationsClass))

typedef struct _GitgNotifications GitgNotifications;
typedef struct _GitgNotificationsClass GitgNotificationsClass;
typedef struct _GitgNotificationsPrivate GitgNotificationsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block42Data Block42Data;
typedef struct _Block43Data Block43Data;

struct _GitgNotifications {
	GObject parent_instance;
	GitgNotificationsPrivate * priv;
};

struct _GitgNotificationsClass {
	GObjectClass parent_class;
};

struct _GitgNotificationsPrivate {
	GtkOverlay* d_overlay;
	GeeHashSet* d_delay_handles;
	GtkBox* d_box;
};

struct _Block42Data {
	int _ref_count_;
	GitgNotifications* self;
	GtkRevealer* revealer;
	GtkWidget* widget;
};

struct _Block43Data {
	int _ref_count_;
	GitgNotifications* self;
	guint id;
	GtkWidget* widget;
};


static gpointer gitg_notifications_parent_class = NULL;
static GitgExtNotificationsIface* gitg_notifications_gitg_ext_notifications_parent_iface = NULL;

GType gitg_notifications_get_type (void) G_GNUC_CONST;
#define GITG_NOTIFICATIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_NOTIFICATIONS, GitgNotificationsPrivate))
enum  {
	GITG_NOTIFICATIONS_DUMMY_PROPERTY
};
GitgNotifications* gitg_notifications_new (GtkOverlay* overlay);
GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay);
static void gitg_notifications_real_dispose (GObject* base);
static void gitg_notifications_real_add (GitgExtNotifications* base, GtkWidget* widget);
static void gitg_notifications_remove_now (GitgNotifications* self, GtkWidget* widget);
static Block42Data* block42_data_ref (Block42Data* _data42_);
static void block42_data_unref (void * _userdata_);
static void __lambda94_ (Block42Data* _data42_);
static void ___lambda94__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_notifications_real_remove (GitgExtNotifications* base, GtkWidget* widget, guint delay);
static Block43Data* block43_data_ref (Block43Data* _data43_);
static void block43_data_unref (void * _userdata_);
static gboolean __lambda95_ (Block43Data* _data43_);
static gboolean ___lambda95__gsource_func (gpointer self);
static void gitg_notifications_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 31 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return self ? g_object_ref (self) : NULL;
#line 103 "gitg-notifications.c"
}


GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay) {
	GitgNotifications * self = NULL;
	GtkOverlay* _tmp0_ = NULL;
	GtkOverlay* _tmp1_ = NULL;
	GeeHashSet* _tmp2_ = NULL;
	GtkBox* _tmp3_ = NULL;
	GtkBox* _tmp4_ = NULL;
	GtkStyleContext* _tmp5_ = NULL;
	GtkBox* _tmp6_ = NULL;
	GtkBox* _tmp7_ = NULL;
	GtkOverlay* _tmp8_ = NULL;
	GtkBox* _tmp9_ = NULL;
#line 29 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_return_val_if_fail (overlay != NULL, NULL);
#line 29 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) g_object_new (object_type, NULL);
#line 31 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = overlay;
#line 31 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 31 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 31 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self->priv->d_overlay = _tmp1_;
#line 32 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 32 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 32 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self->priv->d_delay_handles = _tmp2_;
#line 34 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
#line 34 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp3_);
#line 34 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 34 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self->priv->d_box = _tmp3_;
#line 35 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = self->priv->d_box;
#line 35 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 35 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_style_context_add_class (_tmp5_, "notifications");
#line 36 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = self->priv->d_box;
#line 36 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) _tmp6_);
#line 38 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = self->priv->d_box;
#line 38 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp7_, GTK_ALIGN_END);
#line 39 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = self->priv->d_overlay;
#line 39 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = self->priv->d_box;
#line 39 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_overlay_add_overlay (_tmp8_, (GtkWidget*) _tmp9_);
#line 29 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return self;
#line 167 "gitg-notifications.c"
}


GitgNotifications* gitg_notifications_new (GtkOverlay* overlay) {
#line 29 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return gitg_notifications_construct (GITG_TYPE_NOTIFICATIONS, overlay);
#line 174 "gitg-notifications.c"
}


static void gitg_notifications_real_dispose (GObject* base) {
	GitgNotifications * self;
	GeeHashSet* _tmp7_ = NULL;
#line 42 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 183 "gitg-notifications.c"
	{
		GeeIterator* _id_it = NULL;
		GeeHashSet* _tmp0_ = NULL;
		GeeIterator* _tmp1_ = NULL;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_tmp0_ = self->priv->d_delay_handles;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_tmp1_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp0_);
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_id_it = _tmp1_;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		while (TRUE) {
#line 196 "gitg-notifications.c"
			GeeIterator* _tmp2_ = NULL;
			gboolean _tmp3_ = FALSE;
			guint id = 0U;
			GeeIterator* _tmp4_ = NULL;
			gpointer _tmp5_ = NULL;
			guint _tmp6_ = 0U;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			_tmp2_ = _id_it;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			_tmp3_ = gee_iterator_next (_tmp2_);
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			if (!_tmp3_) {
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
				break;
#line 211 "gitg-notifications.c"
			}
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			_tmp4_ = _id_it;
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			_tmp5_ = gee_iterator_get (_tmp4_);
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			id = (guint) ((guintptr) _tmp5_);
#line 46 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			_tmp6_ = id;
#line 46 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
			g_source_remove (_tmp6_);
#line 223 "gitg-notifications.c"
		}
#line 44 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_id_it);
#line 227 "gitg-notifications.c"
	}
#line 49 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = self->priv->d_delay_handles;
#line 49 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp7_);
#line 51 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	G_OBJECT_CLASS (gitg_notifications_parent_class)->dispose (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject));
#line 235 "gitg-notifications.c"
}


static void gitg_notifications_real_add (GitgExtNotifications* base, GtkWidget* widget) {
	GitgNotifications * self;
	GtkRevealer* revealer = NULL;
	GtkRevealer* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkBox* _tmp3_ = NULL;
#line 54 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 54 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 56 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = (GtkRevealer*) gtk_revealer_new ();
#line 56 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp0_);
#line 56 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	revealer = _tmp0_;
#line 58 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_margin_top ((GtkWidget*) revealer, 1);
#line 59 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_duration (revealer, (guint) 500);
#line 60 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_type (revealer, GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP);
#line 61 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = widget;
#line 61 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) revealer, _tmp1_);
#line 63 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = widget;
#line 63 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show (_tmp2_);
#line 64 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) revealer);
#line 66 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = self->priv->d_box;
#line 66 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) _tmp3_, (GtkWidget*) revealer);
#line 67 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (revealer, TRUE);
#line 54 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (revealer);
#line 280 "gitg-notifications.c"
}


static Block42Data* block42_data_ref (Block42Data* _data42_) {
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data42_->_ref_count_);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return _data42_;
#line 289 "gitg-notifications.c"
}


static void block42_data_unref (void * _userdata_) {
	Block42Data* _data42_;
	_data42_ = (Block42Data*) _userdata_;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data42_->_ref_count_)) {
#line 298 "gitg-notifications.c"
		GitgNotifications* self;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		self = _data42_->self;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data42_->revealer);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data42_->widget);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block42Data, _data42_);
#line 310 "gitg-notifications.c"
	}
}


static void __lambda94_ (Block42Data* _data42_) {
	GitgNotifications* self;
	GtkWidget* _tmp0_ = NULL;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = _data42_->self;
#line 75 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = _data42_->widget;
#line 75 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_container_remove ((GtkContainer*) _data42_->revealer, _tmp0_);
#line 76 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_widget_destroy ((GtkWidget*) _data42_->revealer);
#line 326 "gitg-notifications.c"
}


static void ___lambda94__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 74 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	__lambda94_ (self);
#line 333 "gitg-notifications.c"
}


static void gitg_notifications_remove_now (GitgNotifications* self, GtkWidget* widget) {
	Block42Data* _data42_;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkContainer* _tmp3_ = NULL;
	GtkRevealer* _tmp4_ = NULL;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (self != NULL);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_ = g_slice_new0 (Block42Data);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_->_ref_count_ = 1;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_->self = g_object_ref (self);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = widget;
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data42_->widget);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_->widget = _tmp1_;
#line 72 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _data42_->widget;
#line 72 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = (GtkContainer*) gtk_widget_get_parent (_tmp2_);
#line 72 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_revealer_get_type ()) ? ((GtkRevealer*) _tmp3_) : NULL);
#line 72 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_->revealer = _tmp4_;
#line 74 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_signal_connect_data ((GObject*) _data42_->revealer, "notify::child-revealed", (GCallback) ___lambda94__g_object_notify, block42_data_ref (_data42_), (GClosureNotify) block42_data_unref, 0);
#line 79 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (_data42_->revealer, FALSE);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	block42_data_unref (_data42_);
#line 70 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data42_ = NULL;
#line 378 "gitg-notifications.c"
}


static Block43Data* block43_data_ref (Block43Data* _data43_) {
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data43_->_ref_count_);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return _data43_;
#line 387 "gitg-notifications.c"
}


static void block43_data_unref (void * _userdata_) {
	Block43Data* _data43_;
	_data43_ = (Block43Data*) _userdata_;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data43_->_ref_count_)) {
#line 396 "gitg-notifications.c"
		GitgNotifications* self;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		self = _data43_->self;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data43_->widget);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block43Data, _data43_);
#line 406 "gitg-notifications.c"
	}
}


static gboolean __lambda95_ (Block43Data* _data43_) {
	GitgNotifications* self;
	gboolean result = FALSE;
	GeeHashSet* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	GtkWidget* _tmp2_ = NULL;
#line 91 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = _data43_->self;
#line 92 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = self->priv->d_delay_handles;
#line 92 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _data43_->id;
#line 92 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, (gpointer) ((guintptr) _tmp1_));
#line 93 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _data43_->widget;
#line 93 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_remove_now (self, _tmp2_);
#line 95 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	result = FALSE;
#line 95 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return result;
#line 433 "gitg-notifications.c"
}


static gboolean ___lambda95__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda95_ (self);
#line 91 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	return result;
#line 442 "gitg-notifications.c"
}


static void gitg_notifications_real_remove (GitgExtNotifications* base, GtkWidget* widget, guint delay) {
	GitgNotifications * self;
	Block43Data* _data43_;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	guint _tmp2_ = 0U;
	guint _tmp4_ = 0U;
	guint _tmp5_ = 0U;
	GeeHashSet* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_ = g_slice_new0 (Block43Data);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_->_ref_count_ = 1;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_->self = g_object_ref (self);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = widget;
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data43_->widget);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_->widget = _tmp1_;
#line 84 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = delay;
#line 84 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	if (_tmp2_ == ((guint) 0)) {
#line 478 "gitg-notifications.c"
		GtkWidget* _tmp3_ = NULL;
#line 86 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		_tmp3_ = _data43_->widget;
#line 86 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
		gitg_notifications_remove_now (self, _tmp3_);
#line 484 "gitg-notifications.c"
	}
#line 89 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_->id = (guint) 0;
#line 91 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = delay;
#line 91 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = g_timeout_add_full (G_PRIORITY_DEFAULT, _tmp4_, ___lambda95__gsource_func, block43_data_ref (_data43_), block43_data_unref);
#line 91 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_->id = _tmp5_;
#line 98 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = self->priv->d_delay_handles;
#line 98 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = _data43_->id;
#line 98 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp6_, (gpointer) ((guintptr) _tmp7_));
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	block43_data_unref (_data43_);
#line 82 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_data43_ = NULL;
#line 504 "gitg-notifications.c"
}


static void gitg_notifications_class_init (GitgNotificationsClass * klass) {
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	g_type_class_add_private (klass, sizeof (GitgNotificationsPrivate));
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	((GObjectClass *) klass)->dispose = gitg_notifications_real_dispose;
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_notifications_finalize;
#line 517 "gitg-notifications.c"
}


static void gitg_notifications_gitg_ext_notifications_interface_init (GitgExtNotificationsIface * iface) {
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_gitg_ext_notifications_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	iface->add = (void (*)(GitgExtNotifications*, GtkWidget*)) gitg_notifications_real_add;
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	iface->remove = (void (*)(GitgExtNotifications*, GtkWidget*, guint)) gitg_notifications_real_remove;
#line 528 "gitg-notifications.c"
}


static void gitg_notifications_instance_init (GitgNotifications * self) {
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self->priv = GITG_NOTIFICATIONS_GET_PRIVATE (self);
#line 535 "gitg-notifications.c"
}


static void gitg_notifications_finalize (GObject* obj) {
	GitgNotifications * self;
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_NOTIFICATIONS, GitgNotifications);
#line 25 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 26 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 27 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 23 "/home/jesse/devel/gitg/gitg/gitg-notifications.vala"
	G_OBJECT_CLASS (gitg_notifications_parent_class)->finalize (obj);
#line 551 "gitg-notifications.c"
}


GType gitg_notifications_get_type (void) {
	static volatile gsize gitg_notifications_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_notifications_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgNotificationsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_notifications_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgNotifications), 0, (GInstanceInitFunc) gitg_notifications_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_notifications_info = { (GInterfaceInitFunc) gitg_notifications_gitg_ext_notifications_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_notifications_type_id;
		gitg_notifications_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgNotifications", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_notifications_type_id, GITG_EXT_TYPE_NOTIFICATIONS, &gitg_ext_notifications_info);
		g_once_init_leave (&gitg_notifications_type_id__volatile, gitg_notifications_type_id);
	}
	return gitg_notifications_type_id__volatile;
}



