/* gitg-popup-menu.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-popup-menu.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 <gtk/gtk.h>
#include <gdk/gdk.h>


#define GITG_TYPE_POPUP_MENU (gitg_popup_menu_get_type ())
#define GITG_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_POPUP_MENU, GitgPopupMenu))
#define GITG_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_POPUP_MENU, GitgPopupMenuClass))
#define GITG_IS_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_POPUP_MENU))
#define GITG_IS_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_POPUP_MENU))
#define GITG_POPUP_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_POPUP_MENU, GitgPopupMenuClass))

typedef struct _GitgPopupMenu GitgPopupMenu;
typedef struct _GitgPopupMenuClass GitgPopupMenuClass;
typedef struct _GitgPopupMenuPrivate GitgPopupMenuPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgPopupMenu {
	GObject parent_instance;
	GitgPopupMenuPrivate * priv;
};

struct _GitgPopupMenuClass {
	GObjectClass parent_class;
};

struct _GitgPopupMenuPrivate {
	GtkWidget* d_widget;
};


static gpointer gitg_popup_menu_parent_class = NULL;

GType gitg_popup_menu_get_type (void) G_GNUC_CONST;
#define GITG_POPUP_MENU_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_POPUP_MENU, GitgPopupMenuPrivate))
enum  {
	GITG_POPUP_MENU_DUMMY_PROPERTY
};
GitgPopupMenu* gitg_popup_menu_new (GtkWidget* widget);
GitgPopupMenu* gitg_popup_menu_construct (GType object_type, GtkWidget* widget);
static gboolean gitg_popup_menu_on_button_press_event (GitgPopupMenu* self, GtkWidget* widget, GdkEventButton* event);
static gboolean _gitg_popup_menu_on_button_press_event_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static gboolean gitg_popup_menu_on_popup_menu (GitgPopupMenu* self, GtkWidget* widget);
static gboolean _gitg_popup_menu_on_popup_menu_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self);
static void gitg_popup_menu_real_dispose (GObject* base);
static gboolean gitg_popup_menu_popup_menu (GitgPopupMenu* self, GtkWidget* widget, GdkEventButton* event);
static void g_cclosure_user_marshal_OBJECT__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void gitg_popup_menu_finalize (GObject* obj);


static gboolean _gitg_popup_menu_on_button_press_event_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = gitg_popup_menu_on_button_press_event ((GitgPopupMenu*) self, _sender, event);
#line 31 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return result;
#line 80 "gitg-popup-menu.c"
}


static gboolean _gitg_popup_menu_on_popup_menu_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self) {
	gboolean result;
	result = gitg_popup_menu_on_popup_menu ((GitgPopupMenu*) self, _sender);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return result;
#line 89 "gitg-popup-menu.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 34 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return self ? g_object_ref (self) : NULL;
#line 96 "gitg-popup-menu.c"
}


GitgPopupMenu* gitg_popup_menu_construct (GType object_type, GtkWidget* widget) {
	GitgPopupMenu * self = NULL;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkWidget* _tmp3_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (widget != NULL, NULL);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	self = (GitgPopupMenu*) g_object_new (object_type, NULL);
#line 31 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp0_ = widget;
#line 31 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_signal_connect_object (_tmp0_, "button-press-event", (GCallback) _gitg_popup_menu_on_button_press_event_gtk_widget_button_press_event, self, 0);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp1_ = widget;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_signal_connect_object (_tmp1_, "popup-menu", (GCallback) _gitg_popup_menu_on_popup_menu_gtk_widget_popup_menu, self, 0);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp2_ = widget;
#line 34 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_g_object_unref0 (self->priv->d_widget);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	self->priv->d_widget = _tmp3_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return self;
#line 128 "gitg-popup-menu.c"
}


GitgPopupMenu* gitg_popup_menu_new (GtkWidget* widget) {
#line 29 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return gitg_popup_menu_construct (GITG_TYPE_POPUP_MENU, widget);
#line 135 "gitg-popup-menu.c"
}


static void gitg_popup_menu_real_dispose (GObject* base) {
	GitgPopupMenu * self;
	GtkWidget* _tmp0_ = NULL;
#line 37 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	self = (GitgPopupMenu*) base;
#line 39 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp0_ = self->priv->d_widget;
#line 39 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (_tmp0_ != NULL) {
#line 148 "gitg-popup-menu.c"
		GtkWidget* _tmp1_ = NULL;
		guint _tmp2_ = 0U;
		GtkWidget* _tmp3_ = NULL;
		guint _tmp4_ = 0U;
#line 41 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp1_ = self->priv->d_widget;
#line 41 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp2_, NULL, FALSE);
#line 41 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _gitg_popup_menu_on_button_press_event_gtk_widget_button_press_event, self);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp3_ = self->priv->d_widget;
#line 42 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		g_signal_parse_name ("popup-menu", gtk_widget_get_type (), &_tmp4_, NULL, FALSE);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _gitg_popup_menu_on_popup_menu_gtk_widget_popup_menu, self);
#line 44 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_g_object_unref0 (self->priv->d_widget);
#line 44 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		self->priv->d_widget = NULL;
#line 169 "gitg-popup-menu.c"
	}
}


static gboolean gitg_popup_menu_popup_menu (GitgPopupMenu* self, GtkWidget* widget, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkMenu* menu = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GtkMenu* _tmp1_ = NULL;
	GtkMenu* _tmp2_ = NULL;
	guint32 _tmp3_ = 0U;
	GdkEventButton* _tmp4_ = NULL;
	guint32 time = 0U;
	guint _tmp8_ = 0U;
	GdkEventButton* _tmp9_ = NULL;
	guint button = 0U;
	GtkMenu* _tmp12_ = NULL;
	GtkWidget* _tmp13_ = NULL;
	GtkMenu* _tmp14_ = NULL;
	guint _tmp15_ = 0U;
	guint32 _tmp16_ = 0U;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp0_ = event;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_signal_emit_by_name (self, "populate-menu", _tmp0_, &_tmp1_);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	menu = _tmp1_;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp2_ = menu;
#line 52 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (_tmp2_ == NULL) {
#line 54 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		result = FALSE;
#line 54 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_g_object_unref0 (menu);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		return result;
#line 211 "gitg-popup-menu.c"
	}
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp4_ = event;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (_tmp4_ == NULL) {
#line 217 "gitg-popup-menu.c"
		guint32 _tmp5_ = 0U;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp5_ = gtk_get_current_event_time ();
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp3_ = _tmp5_;
#line 223 "gitg-popup-menu.c"
	} else {
		GdkEventButton* _tmp6_ = NULL;
		guint32 _tmp7_ = 0U;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp6_ = event;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp7_ = _tmp6_->time;
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp3_ = _tmp7_;
#line 233 "gitg-popup-menu.c"
	}
#line 57 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	time = _tmp3_;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp9_ = event;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (_tmp9_ == NULL) {
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp8_ = (guint) 0;
#line 243 "gitg-popup-menu.c"
	} else {
		GdkEventButton* _tmp10_ = NULL;
		guint _tmp11_ = 0U;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp10_ = event;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp11_ = _tmp10_->button;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		_tmp8_ = _tmp11_;
#line 253 "gitg-popup-menu.c"
	}
#line 58 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	button = _tmp8_;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp12_ = menu;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp13_ = widget;
#line 60 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	gtk_menu_attach_to_widget (_tmp12_, _tmp13_, NULL);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp14_ = menu;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp15_ = button;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp16_ = time;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	gtk_menu_popup (_tmp14_, NULL, NULL, NULL, NULL, _tmp15_, _tmp16_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	result = TRUE;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_g_object_unref0 (menu);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return result;
#line 277 "gitg-popup-menu.c"
}


static gboolean gitg_popup_menu_on_popup_menu (GitgPopupMenu* self, GtkWidget* widget) {
	gboolean result = FALSE;
	GtkWidget* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 66 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp0_ = widget;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp1_ = gitg_popup_menu_popup_menu (self, _tmp0_, NULL);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	result = _tmp1_;
#line 68 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return result;
#line 297 "gitg-popup-menu.c"
}


static gboolean gitg_popup_menu_on_button_press_event (GitgPopupMenu* self, GtkWidget* widget, GdkEventButton* event) {
	gboolean result = FALSE;
	GdkEvent* ev = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GdkEvent* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GtkWidget* _tmp3_ = NULL;
	GdkEventButton* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 71 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 73 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp0_ = event;
#line 73 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	ev = (GdkEvent*) _tmp0_;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp1_ = ev;
#line 75 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp2_ = gdk_event_triggers_context_menu (_tmp1_);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (!_tmp2_) {
#line 77 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		result = FALSE;
#line 77 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		return result;
#line 330 "gitg-popup-menu.c"
	}
#line 80 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp3_ = widget;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp4_ = event;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_tmp5_ = gitg_popup_menu_popup_menu (self, _tmp3_, _tmp4_);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	result = _tmp5_;
#line 80 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	return result;
#line 342 "gitg-popup-menu.c"
}


static void g_cclosure_user_marshal_OBJECT__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
	typedef gpointer (*GMarshalFunc_OBJECT__BOXED) (gpointer data1, gpointer arg_1, gpointer data2);
	register GMarshalFunc_OBJECT__BOXED callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	gpointer v_return;
	cc = (GCClosure *) closure;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_if_fail (return_value != NULL);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_return_if_fail (n_param_values == 2);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		data1 = closure->data;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		data2 = param_values->data[0].v_pointer;
#line 364 "gitg-popup-menu.c"
	} else {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		data1 = param_values->data[0].v_pointer;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
		data2 = closure->data;
#line 370 "gitg-popup-menu.c"
	}
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	callback = (GMarshalFunc_OBJECT__BOXED) (marshal_data ? marshal_data : cc->callback);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	v_return = callback (data1, g_value_get_boxed (param_values + 1), data2);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_value_take_object (return_value, v_return);
#line 378 "gitg-popup-menu.c"
}


static void gitg_popup_menu_class_init (GitgPopupMenuClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	gitg_popup_menu_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_type_class_add_private (klass, sizeof (GitgPopupMenuPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	((GObjectClass *) klass)->dispose = gitg_popup_menu_real_dispose;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_popup_menu_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	g_signal_new ("populate_menu", GITG_TYPE_POPUP_MENU, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_OBJECT__BOXED, gtk_menu_get_type (), 1, gdk_event_get_type ());
#line 393 "gitg-popup-menu.c"
}


static void gitg_popup_menu_instance_init (GitgPopupMenu * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	self->priv = GITG_POPUP_MENU_GET_PRIVATE (self);
#line 400 "gitg-popup-menu.c"
}


static void gitg_popup_menu_finalize (GObject* obj) {
	GitgPopupMenu * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_POPUP_MENU, GitgPopupMenu);
#line 27 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	_g_object_unref0 (self->priv->d_widget);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-popup-menu.vala"
	G_OBJECT_CLASS (gitg_popup_menu_parent_class)->finalize (obj);
#line 412 "gitg-popup-menu.c"
}


GType gitg_popup_menu_get_type (void) {
	static volatile gsize gitg_popup_menu_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_popup_menu_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgPopupMenuClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_popup_menu_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgPopupMenu), 0, (GInstanceInitFunc) gitg_popup_menu_instance_init, NULL };
		GType gitg_popup_menu_type_id;
		gitg_popup_menu_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgPopupMenu", &g_define_type_info, 0);
		g_once_init_leave (&gitg_popup_menu_type_id__volatile, gitg_popup_menu_type_id);
	}
	return gitg_popup_menu_type_id__volatile;
}



