/* gitg-notifications.c generated by valac 0.32.1, 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 _Block48Data Block48Data;
typedef struct _Block49Data Block49Data;
typedef struct _Block50Data Block50Data;

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

struct _GitgNotificationsClass {
	GObjectClass parent_class;
};

struct _GitgNotificationsPrivate {
	GtkOverlay* d_overlay;
	GeeHashMap* d_delay_handles;
	GtkBox* d_box;
	GeeHashMap* d_handles;
};

struct _Block48Data {
	int _ref_count_;
	GitgNotifications* self;
	GitgExtNotification* notification;
};

struct _Block49Data {
	int _ref_count_;
	GitgNotifications* self;
	GtkRevealer* revealer;
	GitgExtNotification* notification;
};

struct _Block50Data {
	int _ref_count_;
	GitgNotifications* self;
	GitgExtNotification* notification;
};


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, GitgExtNotification* notification);
static Block48Data* block48_data_ref (Block48Data* _data48_);
static void block48_data_unref (void * _userdata_);
static void __lambda111_ (Block48Data* _data48_, guint delay);
static void ___lambda111__gitg_ext_notification_close (GitgExtNotification* _sender, guint delay, gpointer self);
static void gitg_notifications_remove_now (GitgNotifications* self, GitgExtNotification* notification);
static Block49Data* block49_data_ref (Block49Data* _data49_);
static void block49_data_unref (void * _userdata_);
static void __lambda113_ (Block49Data* _data49_);
static void ___lambda113__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_notifications_real_remove (GitgExtNotifications* base, GitgExtNotification* notification, guint delay);
static Block50Data* block50_data_ref (Block50Data* _data50_);
static void block50_data_unref (void * _userdata_);
static gboolean __lambda112_ (Block50Data* _data50_);
static gboolean ___lambda112__gsource_func (gpointer self);
static void gitg_notifications_finalize (GObject* obj);


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


GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay) {
	GitgNotifications * self = NULL;
	GtkOverlay* _tmp0_ = NULL;
	GtkOverlay* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	GeeHashMap* _tmp3_ = NULL;
	GtkBox* _tmp4_ = NULL;
	GtkBox* _tmp5_ = NULL;
	GtkStyleContext* _tmp6_ = NULL;
	GtkBox* _tmp7_ = NULL;
	GtkBox* _tmp8_ = NULL;
	GtkOverlay* _tmp9_ = NULL;
	GtkBox* _tmp10_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_return_val_if_fail (overlay != NULL, NULL);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) g_object_new (object_type, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = overlay;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self->priv->d_overlay = _tmp1_;
#line 33 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = gee_hash_map_new (GITG_EXT_TYPE_NOTIFICATION, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_UINT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self->priv->d_delay_handles = _tmp2_;
#line 34 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = gee_hash_map_new (GITG_EXT_TYPE_NOTIFICATION, (GBoxedCopyFunc) g_object_ref, g_object_unref, G_TYPE_ULONG, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_handles);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self->priv->d_handles = _tmp3_;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp4_);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self->priv->d_box = _tmp4_;
#line 37 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = self->priv->d_box;
#line 37 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) _tmp5_);
#line 37 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_style_context_add_class (_tmp6_, "notifications");
#line 38 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = self->priv->d_box;
#line 38 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) _tmp7_);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = self->priv->d_box;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp8_, GTK_ALIGN_END);
#line 41 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = self->priv->d_overlay;
#line 41 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp10_ = self->priv->d_box;
#line 41 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_overlay_add_overlay (_tmp9_, (GtkWidget*) _tmp10_);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return self;
#line 185 "gitg-notifications.c"
}


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


static void gitg_notifications_real_dispose (GObject* base) {
	GitgNotifications * self;
	GeeHashMap* _tmp11_ = NULL;
	GeeHashMap* _tmp26_ = NULL;
#line 44 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 202 "gitg-notifications.c"
	{
		GeeIterator* _id_it = NULL;
		GeeHashMap* _tmp0_ = NULL;
		GeeCollection* _tmp1_ = NULL;
		GeeCollection* _tmp2_ = NULL;
		GeeCollection* _tmp3_ = NULL;
		GeeIterator* _tmp4_ = NULL;
		GeeIterator* _tmp5_ = NULL;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp0_ = self->priv->d_delay_handles;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp1_ = gee_abstract_map_get_values ((GeeMap*) _tmp0_);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp2_ = _tmp1_;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp3_ = _tmp2_;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp4_ = gee_iterable_iterator ((GeeIterable*) _tmp3_);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp5_ = _tmp4_;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_tmp3_);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_id_it = _tmp5_;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		while (TRUE) {
#line 229 "gitg-notifications.c"
			GeeIterator* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			guint id = 0U;
			GeeIterator* _tmp8_ = NULL;
			gpointer _tmp9_ = NULL;
			guint _tmp10_ = 0U;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp6_ = _id_it;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			if (!_tmp7_) {
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
				break;
#line 244 "gitg-notifications.c"
			}
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp8_ = _id_it;
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			id = (guint) ((guintptr) _tmp9_);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp10_ = id;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			g_source_remove (_tmp10_);
#line 256 "gitg-notifications.c"
		}
#line 46 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_id_it);
#line 260 "gitg-notifications.c"
	}
#line 51 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp11_ = self->priv->d_delay_handles;
#line 51 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gee_abstract_map_clear ((GeeAbstractMap*) _tmp11_);
#line 266 "gitg-notifications.c"
	{
		GeeIterator* _notification_it = NULL;
		GeeHashMap* _tmp12_ = NULL;
		GeeSet* _tmp13_ = NULL;
		GeeSet* _tmp14_ = NULL;
		GeeSet* _tmp15_ = NULL;
		GeeIterator* _tmp16_ = NULL;
		GeeIterator* _tmp17_ = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp12_ = self->priv->d_handles;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp13_ = gee_abstract_map_get_keys ((GeeMap*) _tmp12_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp14_ = _tmp13_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp15_ = _tmp14_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp16_ = gee_iterable_iterator ((GeeIterable*) _tmp15_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp17_ = _tmp16_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_tmp15_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_notification_it = _tmp17_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		while (TRUE) {
#line 293 "gitg-notifications.c"
			GeeIterator* _tmp18_ = NULL;
			gboolean _tmp19_ = FALSE;
			GitgExtNotification* notification = NULL;
			GeeIterator* _tmp20_ = NULL;
			gpointer _tmp21_ = NULL;
			GitgExtNotification* _tmp22_ = NULL;
			GeeHashMap* _tmp23_ = NULL;
			GitgExtNotification* _tmp24_ = NULL;
			gpointer _tmp25_ = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp18_ = _notification_it;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp19_ = gee_iterator_next (_tmp18_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			if (!_tmp19_) {
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
				break;
#line 311 "gitg-notifications.c"
			}
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp20_ = _notification_it;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp21_ = gee_iterator_get (_tmp20_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			notification = (GitgExtNotification*) _tmp21_;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp22_ = notification;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp23_ = self->priv->d_handles;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp24_ = notification;
#line 55 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_tmp25_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp23_, _tmp24_);
#line 55 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			g_signal_handler_disconnect ((GObject*) _tmp22_, (gulong) ((guintptr) _tmp25_));
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
			_g_object_unref0 (notification);
#line 331 "gitg-notifications.c"
		}
#line 53 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_notification_it);
#line 335 "gitg-notifications.c"
	}
#line 58 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp26_ = self->priv->d_handles;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gee_abstract_map_clear ((GeeAbstractMap*) _tmp26_);
#line 60 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	G_OBJECT_CLASS (gitg_notifications_parent_class)->dispose (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject));
#line 343 "gitg-notifications.c"
}


static Block48Data* block48_data_ref (Block48Data* _data48_) {
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data48_->_ref_count_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return _data48_;
#line 352 "gitg-notifications.c"
}


static void block48_data_unref (void * _userdata_) {
	Block48Data* _data48_;
	_data48_ = (Block48Data*) _userdata_;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data48_->_ref_count_)) {
#line 361 "gitg-notifications.c"
		GitgNotifications* self;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		self = _data48_->self;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data48_->notification);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block48Data, _data48_);
#line 371 "gitg-notifications.c"
	}
}


static void __lambda111_ (Block48Data* _data48_, guint delay) {
	GitgNotifications* self;
	GitgExtNotification* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = _data48_->self;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = _data48_->notification;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = delay;
#line 79 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gitg_ext_notifications_remove ((GitgExtNotifications*) self, _tmp0_, _tmp1_);
#line 388 "gitg-notifications.c"
}


static void ___lambda111__gitg_ext_notification_close (GitgExtNotification* _sender, guint delay, gpointer self) {
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	__lambda111_ (self, delay);
#line 395 "gitg-notifications.c"
}


static void gitg_notifications_real_add (GitgExtNotifications* base, GitgExtNotification* notification) {
	GitgNotifications * self;
	Block48Data* _data48_;
	GitgExtNotification* _tmp0_ = NULL;
	GitgExtNotification* _tmp1_ = NULL;
	GtkRevealer* revealer = NULL;
	GtkRevealer* _tmp2_ = NULL;
	GitgExtNotification* _tmp3_ = NULL;
	GtkWidget* _tmp4_ = NULL;
	GtkWidget* _tmp5_ = NULL;
	GtkWidget* _tmp6_ = NULL;
	GitgExtNotification* _tmp7_ = NULL;
	GtkWidget* _tmp8_ = NULL;
	GtkWidget* _tmp9_ = NULL;
	GtkWidget* _tmp10_ = NULL;
	GtkBox* _tmp11_ = NULL;
	GeeHashMap* _tmp12_ = NULL;
	GitgExtNotification* _tmp13_ = NULL;
	GitgExtNotification* _tmp14_ = NULL;
	gulong _tmp15_ = 0UL;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (notification != NULL);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data48_ = g_slice_new0 (Block48Data);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data48_->_ref_count_ = 1;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data48_->self = g_object_ref (self);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = notification;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data48_->notification);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data48_->notification = _tmp1_;
#line 65 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = (GtkRevealer*) gtk_revealer_new ();
#line 65 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_object_ref_sink (_tmp2_);
#line 65 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	revealer = _tmp2_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_set_margin_top ((GtkWidget*) revealer, 1);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_duration (revealer, (guint) 500);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_transition_type (revealer, GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = _data48_->notification;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = gitg_ext_notification_get_widget (_tmp3_);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = _tmp4_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = _tmp5_;
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) revealer, _tmp6_);
#line 70 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_tmp6_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = _data48_->notification;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = gitg_ext_notification_get_widget (_tmp7_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = _tmp8_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp10_ = _tmp9_;
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show (_tmp10_);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_tmp10_);
#line 73 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_show ((GtkWidget*) revealer);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp11_ = self->priv->d_box;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) revealer);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (revealer, TRUE);
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp12_ = self->priv->d_handles;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp13_ = _data48_->notification;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp14_ = _data48_->notification;
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp15_ = g_signal_connect_data (_tmp14_, "close", (GCallback) ___lambda111__gitg_ext_notification_close, block48_data_ref (_data48_), (GClosureNotify) block48_data_unref, 0);
#line 78 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, _tmp13_, (gpointer) ((guintptr) _tmp15_));
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (revealer);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	block48_data_unref (_data48_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data48_ = NULL;
#line 497 "gitg-notifications.c"
}


static Block49Data* block49_data_ref (Block49Data* _data49_) {
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data49_->_ref_count_);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return _data49_;
#line 506 "gitg-notifications.c"
}


static void block49_data_unref (void * _userdata_) {
	Block49Data* _data49_;
	_data49_ = (Block49Data*) _userdata_;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data49_->_ref_count_)) {
#line 515 "gitg-notifications.c"
		GitgNotifications* self;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		self = _data49_->self;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data49_->revealer);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data49_->notification);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block49Data, _data49_);
#line 527 "gitg-notifications.c"
	}
}


static void __lambda113_ (Block49Data* _data49_) {
	GitgNotifications* self;
	GitgExtNotification* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkWidget* _tmp3_ = NULL;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = _data49_->self;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = _data49_->notification;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = gitg_ext_notification_get_widget (_tmp0_);
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _tmp1_;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = _tmp2_;
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_container_remove ((GtkContainer*) _data49_->revealer, _tmp3_);
#line 90 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_tmp3_);
#line 91 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_widget_destroy ((GtkWidget*) _data49_->revealer);
#line 554 "gitg-notifications.c"
}


static void ___lambda113__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 89 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	__lambda113_ (self);
#line 561 "gitg-notifications.c"
}


static void gitg_notifications_remove_now (GitgNotifications* self, GitgExtNotification* notification) {
	Block49Data* _data49_;
	GitgExtNotification* _tmp0_ = NULL;
	GitgExtNotification* _tmp1_ = NULL;
	GitgExtNotification* _tmp2_ = NULL;
	GtkWidget* _tmp3_ = NULL;
	GtkWidget* _tmp4_ = NULL;
	GtkWidget* _tmp5_ = NULL;
	GtkContainer* _tmp6_ = NULL;
	GtkRevealer* _tmp7_ = NULL;
	GtkRevealer* _tmp8_ = NULL;
	GitgExtNotification* _tmp9_ = NULL;
	GeeHashMap* _tmp10_ = NULL;
	GitgExtNotification* _tmp11_ = NULL;
	gpointer _tmp12_ = NULL;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (self != NULL);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (notification != NULL);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_ = g_slice_new0 (Block49Data);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_->_ref_count_ = 1;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_->self = g_object_ref (self);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = notification;
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data49_->notification);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_->notification = _tmp1_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _data49_->notification;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = gitg_ext_notification_get_widget (_tmp2_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = _tmp3_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp5_ = _tmp4_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp6_ = (GtkContainer*) gtk_widget_get_parent (_tmp5_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_revealer_get_type ()) ? ((GtkRevealer*) _tmp6_) : NULL);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = _tmp7_;
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_tmp5_);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_->revealer = _tmp8_;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = _data49_->notification;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp10_ = self->priv->d_handles;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp11_ = _data49_->notification;
#line 87 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp12_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp10_, _tmp11_);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_signal_handler_disconnect ((GObject*) _tmp9_, (gulong) ((guintptr) _tmp12_));
#line 89 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_signal_connect_data ((GObject*) _data49_->revealer, "notify::child-revealed", (GCallback) ___lambda113__g_object_notify, block49_data_ref (_data49_), (GClosureNotify) block49_data_unref, 0);
#line 94 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gtk_revealer_set_reveal_child (_data49_->revealer, FALSE);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	block49_data_unref (_data49_);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data49_ = NULL;
#line 634 "gitg-notifications.c"
}


static Block50Data* block50_data_ref (Block50Data* _data50_) {
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_atomic_int_inc (&_data50_->_ref_count_);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return _data50_;
#line 643 "gitg-notifications.c"
}


static void block50_data_unref (void * _userdata_) {
	Block50Data* _data50_;
	_data50_ = (Block50Data*) _userdata_;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	if (g_atomic_int_dec_and_test (&_data50_->_ref_count_)) {
#line 652 "gitg-notifications.c"
		GitgNotifications* self;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		self = _data50_->self;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (_data50_->notification);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_g_object_unref0 (self);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		g_slice_free (Block50Data, _data50_);
#line 662 "gitg-notifications.c"
	}
}


static gboolean __lambda112_ (Block50Data* _data50_) {
	GitgNotifications* self;
	gboolean result = FALSE;
	GeeHashMap* _tmp0_ = NULL;
	GitgExtNotification* _tmp1_ = NULL;
	GitgExtNotification* _tmp2_ = NULL;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = _data50_->self;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = self->priv->d_delay_handles;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _data50_->notification;
#line 105 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gee_abstract_map_unset ((GeeAbstractMap*) _tmp0_, _tmp1_, NULL);
#line 106 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = _data50_->notification;
#line 106 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gitg_notifications_remove_now (self, _tmp2_);
#line 108 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	result = FALSE;
#line 108 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return result;
#line 689 "gitg-notifications.c"
}


static gboolean ___lambda112__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda112_ (self);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	return result;
#line 698 "gitg-notifications.c"
}


static void gitg_notifications_real_remove (GitgExtNotifications* base, GitgExtNotification* notification, guint delay) {
	GitgNotifications * self;
	Block50Data* _data50_;
	GitgExtNotification* _tmp0_ = NULL;
	GitgExtNotification* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	GitgExtNotification* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GeeHashMap* _tmp8_ = NULL;
	GitgExtNotification* _tmp9_ = NULL;
	guint _tmp10_ = 0U;
	guint _tmp11_ = 0U;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = (GitgNotifications*) base;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	g_return_if_fail (notification != NULL);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data50_ = g_slice_new0 (Block50Data);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data50_->_ref_count_ = 1;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data50_->self = g_object_ref (self);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp0_ = notification;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (_data50_->notification);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data50_->notification = _tmp1_;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp2_ = self->priv->d_delay_handles;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp3_ = _data50_->notification;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp4_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp2_, _tmp3_);
#line 99 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	if (_tmp4_) {
#line 740 "gitg-notifications.c"
		GeeHashMap* _tmp5_ = NULL;
		GitgExtNotification* _tmp6_ = NULL;
		gpointer _tmp7_ = NULL;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp5_ = self->priv->d_delay_handles;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp6_ = _data50_->notification;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		_tmp7_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp5_, _tmp6_);
#line 101 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
		g_source_remove ((guint) ((guintptr) _tmp7_));
#line 752 "gitg-notifications.c"
	}
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp8_ = self->priv->d_delay_handles;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp9_ = _data50_->notification;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp10_ = delay;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_tmp11_ = g_timeout_add_full (G_PRIORITY_DEFAULT, _tmp10_, ___lambda112__gsource_func, block50_data_ref (_data50_), block50_data_unref);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp8_, _tmp9_, (gpointer) ((guintptr) _tmp11_));
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	block50_data_unref (_data50_);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_data50_ = NULL;
#line 768 "gitg-notifications.c"
}


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


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


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


static void gitg_notifications_finalize (GObject* obj) {
	GitgNotifications * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_NOTIFICATIONS, GitgNotifications);
#line 25 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 26 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_delay_handles);
#line 27 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_box);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	_g_object_unref0 (self->priv->d_handles);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-notifications.vala"
	G_OBJECT_CLASS (gitg_notifications_parent_class)->finalize (obj);
#line 817 "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;
}



