/* gitg-notifications.c generated by valac 0.27.1.26-9b1a5-dirty, 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 _Block32Data Block32Data;
typedef struct _Block33Data Block33Data;

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 _Block32Data {
	int _ref_count_;
	GitgNotifications* self;
	GtkRevealer* revealer;
	GtkWidget* widget;
};

struct _Block33Data {
	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 Block32Data* block32_data_ref (Block32Data* _data32_);
static void block32_data_unref (void * _userdata_);
static void __lambda72_ (Block32Data* _data32_);
static void ___lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_notifications_real_remove (GitgExtNotifications* base, GtkWidget* widget, guint delay);
static Block33Data* block33_data_ref (Block33Data* _data33_);
static void block33_data_unref (void * _userdata_);
static gboolean __lambda73_ (Block33Data* _data33_);
static gboolean ___lambda73__gsource_func (gpointer self);
static void gitg_notifications_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 31 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_return_val_if_fail (overlay != NULL, NULL);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) g_object_new (object_type, NULL);
#line 31 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = overlay;
#line 31 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 31 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 31 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self->priv->d_overlay = _tmp1_;
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 32 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self->priv->d_delay_handles = _tmp2_;
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp3_);
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self->priv->d_box = _tmp3_;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = self->priv->d_box;
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 35 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_style_context_add_class (_tmp5_, "notifications");
#line 36 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = self->priv->d_box;
#line 36 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) _tmp6_);
#line 38 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = self->priv->d_box;
#line 38 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp7_, GTK_ALIGN_END);
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = self->priv->d_overlay;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = self->priv->d_box;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_overlay_add_overlay (_tmp8_, (GtkWidget*) _tmp9_);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	return self;
#line 167 "gitg-notifications.c"
}


GitgNotifications* gitg_notifications_new (GtkOverlay* overlay) {
#line 29 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_tmp0_ = self->priv->d_delay_handles;
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_tmp1_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp0_);
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_id_it = _tmp1_;
#line 44 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			_tmp2_ = _id_it;
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			_tmp3_ = gee_iterator_next (_tmp2_);
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			if (!_tmp3_) {
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
				break;
#line 211 "gitg-notifications.c"
			}
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			_tmp4_ = _id_it;
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			_tmp5_ = gee_iterator_get (_tmp4_);
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			id = (guint) ((guintptr) _tmp5_);
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			_tmp6_ = id;
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
			g_source_remove (_tmp6_);
#line 223 "gitg-notifications.c"
		}
#line 44 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_id_it);
#line 227 "gitg-notifications.c"
	}
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = self->priv->d_delay_handles;
#line 49 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp7_);
#line 51 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = (GtkRevealer*) gtk_revealer_new ();
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp0_);
#line 56 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	revealer = _tmp0_;
#line 58 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_margin_top ((GtkWidget*) revealer, 1);
#line 59 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_duration (revealer, (guint) 500);
#line 60 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_type (revealer, GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP);
#line 61 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = widget;
#line 61 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) revealer, _tmp1_);
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = widget;
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show (_tmp2_);
#line 64 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) revealer);
#line 66 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = self->priv->d_box;
#line 66 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) _tmp3_, (GtkWidget*) revealer);
#line 67 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (revealer, TRUE);
#line 54 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (revealer);
#line 280 "gitg-notifications.c"
}


static Block32Data* block32_data_ref (Block32Data* _data32_) {
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data32_->_ref_count_);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	return _data32_;
#line 289 "gitg-notifications.c"
}


static void block32_data_unref (void * _userdata_) {
	Block32Data* _data32_;
	_data32_ = (Block32Data*) _userdata_;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data32_->_ref_count_)) {
#line 298 "gitg-notifications.c"
		GitgNotifications* self;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		self = _data32_->self;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data32_->revealer);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data32_->widget);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block32Data, _data32_);
#line 310 "gitg-notifications.c"
	}
}


static void __lambda72_ (Block32Data* _data32_) {
	GitgNotifications* self;
	GtkWidget* _tmp0_ = NULL;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self = _data32_->self;
#line 75 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = _data32_->widget;
#line 75 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_container_remove ((GtkContainer*) _data32_->revealer, _tmp0_);
#line 76 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_widget_destroy ((GtkWidget*) _data32_->revealer);
#line 326 "gitg-notifications.c"
}


static void ___lambda72__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	__lambda72_ (self);
#line 333 "gitg-notifications.c"
}


static void gitg_notifications_remove_now (GitgNotifications* self, GtkWidget* widget) {
	Block32Data* _data32_;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkContainer* _tmp3_ = NULL;
	GtkRevealer* _tmp4_ = NULL;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (self != NULL);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_ = g_slice_new0 (Block32Data);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_->_ref_count_ = 1;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_->self = g_object_ref (self);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = widget;
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data32_->widget);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_->widget = _tmp1_;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _data32_->widget;
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = (GtkContainer*) gtk_widget_get_parent (_tmp2_);
#line 72 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_->revealer = _tmp4_;
#line 74 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_signal_connect_data ((GObject*) _data32_->revealer, "notify::child-revealed", (GCallback) ___lambda72__g_object_notify, block32_data_ref (_data32_), (GClosureNotify) block32_data_unref, 0);
#line 79 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (_data32_->revealer, FALSE);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	block32_data_unref (_data32_);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data32_ = NULL;
#line 378 "gitg-notifications.c"
}


static Block33Data* block33_data_ref (Block33Data* _data33_) {
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data33_->_ref_count_);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	return _data33_;
#line 387 "gitg-notifications.c"
}


static void block33_data_unref (void * _userdata_) {
	Block33Data* _data33_;
	_data33_ = (Block33Data*) _userdata_;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data33_->_ref_count_)) {
#line 396 "gitg-notifications.c"
		GitgNotifications* self;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		self = _data33_->self;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data33_->widget);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block33Data, _data33_);
#line 406 "gitg-notifications.c"
	}
}


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


static gboolean ___lambda73__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda73_ (self);
#line 91 "/home/garrett/hacking/gnome/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;
	Block33Data* _data33_;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	guint _tmp2_ = 0U;
	guint _tmp4_ = 0U;
	guint _tmp5_ = 0U;
	GeeHashSet* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (widget != NULL);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_ = g_slice_new0 (Block33Data);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_->_ref_count_ = 1;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_->self = g_object_ref (self);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = widget;
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data33_->widget);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_->widget = _tmp1_;
#line 84 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = delay;
#line 84 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	if (_tmp2_ == ((guint) 0)) {
#line 478 "gitg-notifications.c"
		GtkWidget* _tmp3_ = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		_tmp3_ = _data33_->widget;
#line 86 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
		gitg_notifications_remove_now (self, _tmp3_);
#line 484 "gitg-notifications.c"
	}
#line 89 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_->id = (guint) 0;
#line 91 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = delay;
#line 91 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = g_timeout_add_full (G_PRIORITY_DEFAULT, _tmp4_, ___lambda73__gsource_func, block33_data_ref (_data33_), block33_data_unref);
#line 91 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_->id = _tmp5_;
#line 98 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = self->priv->d_delay_handles;
#line 98 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = _data33_->id;
#line 98 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp6_, (gpointer) ((guintptr) _tmp7_));
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	block33_data_unref (_data33_);
#line 82 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_data33_ = NULL;
#line 504 "gitg-notifications.c"
}


static void gitg_notifications_class_init (GitgNotificationsClass * klass) {
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	g_type_class_add_private (klass, sizeof (GitgNotificationsPrivate));
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	((GObjectClass *) klass)->dispose = gitg_notifications_real_dispose;
#line 23 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_gitg_ext_notifications_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	iface->add = (void (*)(GitgExtNotifications*, GtkWidget*)) gitg_notifications_real_add;
#line 23 "/home/garrett/hacking/gnome/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/garrett/hacking/gnome/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/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_NOTIFICATIONS, GitgNotifications);
#line 25 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 26 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 27 "/home/garrett/hacking/gnome/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 23 "/home/garrett/hacking/gnome/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;
}



