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

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - 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 <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>


#define GITG_TYPE_SIDEBAR_HINT (gitg_sidebar_hint_get_type ())

#define GITG_TYPE_SIDEBAR_COLUMN (gitg_sidebar_column_get_type ())

#define GITG_TYPE_SIDEBAR_ITEM (gitg_sidebar_item_get_type ())
#define GITG_SIDEBAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_SIDEBAR_ITEM, GitgSidebarItem))
#define GITG_IS_SIDEBAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_SIDEBAR_ITEM))
#define GITG_SIDEBAR_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_SIDEBAR_ITEM, GitgSidebarItemIface))

typedef struct _GitgSidebarItem GitgSidebarItem;
typedef struct _GitgSidebarItemIface GitgSidebarItemIface;

#define GITG_TYPE_SIDEBAR_STORE (gitg_sidebar_store_get_type ())
#define GITG_SIDEBAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_SIDEBAR_STORE, GitgSidebarStore))
#define GITG_SIDEBAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_SIDEBAR_STORE, GitgSidebarStoreClass))
#define GITG_IS_SIDEBAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_SIDEBAR_STORE))
#define GITG_IS_SIDEBAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_SIDEBAR_STORE))
#define GITG_SIDEBAR_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_SIDEBAR_STORE, GitgSidebarStoreClass))

typedef struct _GitgSidebarStore GitgSidebarStore;
typedef struct _GitgSidebarStoreClass GitgSidebarStoreClass;
typedef struct _GitgSidebarStorePrivate GitgSidebarStorePrivate;
#define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL)))

#define GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT (gitg_sidebar_store_sidebar_text_get_type ())
#define GITG_SIDEBAR_STORE_SIDEBAR_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarText))
#define GITG_SIDEBAR_STORE_SIDEBAR_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarTextClass))
#define GITG_SIDEBAR_STORE_IS_SIDEBAR_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT))
#define GITG_SIDEBAR_STORE_IS_SIDEBAR_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT))
#define GITG_SIDEBAR_STORE_SIDEBAR_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarTextClass))

typedef struct _GitgSidebarStoreSidebarText GitgSidebarStoreSidebarText;
typedef struct _GitgSidebarStoreSidebarTextClass GitgSidebarStoreSidebarTextClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER (gitg_sidebar_store_sidebar_header_get_type ())
#define GITG_SIDEBAR_STORE_SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeader))
#define GITG_SIDEBAR_STORE_SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeaderClass))
#define GITG_SIDEBAR_STORE_IS_SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER))
#define GITG_SIDEBAR_STORE_IS_SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER))
#define GITG_SIDEBAR_STORE_SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeaderClass))

typedef struct _GitgSidebarStoreSidebarHeader GitgSidebarStoreSidebarHeader;
typedef struct _GitgSidebarStoreSidebarHeaderClass GitgSidebarStoreSidebarHeaderClass;
typedef struct _GitgSidebarStoreSidebarTextPrivate GitgSidebarStoreSidebarTextPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GitgSidebarStoreSidebarHeaderPrivate GitgSidebarStoreSidebarHeaderPrivate;

#define GITG_TYPE_SIDEBAR (gitg_sidebar_get_type ())
#define GITG_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_SIDEBAR, GitgSidebar))
#define GITG_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_SIDEBAR, GitgSidebarClass))
#define GITG_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_SIDEBAR))
#define GITG_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_SIDEBAR))
#define GITG_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_SIDEBAR, GitgSidebarClass))

typedef struct _GitgSidebar GitgSidebar;
typedef struct _GitgSidebarClass GitgSidebarClass;
typedef struct _GitgSidebarPrivate GitgSidebarPrivate;
#define __g_list_free__gtk_tree_path_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gtk_tree_path_free0_ (var), NULL)))
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
typedef struct _Block19Data Block19Data;
typedef struct _Block20Data Block20Data;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

typedef enum  {
	GITG_SIDEBAR_HINT_NONE,
	GITG_SIDEBAR_HINT_HEADER,
	GITG_SIDEBAR_HINT_SEPARATOR,
	GITG_SIDEBAR_HINT_DUMMY
} GitgSidebarHint;

typedef enum  {
	GITG_SIDEBAR_COLUMN_HINT,
	GITG_SIDEBAR_COLUMN_SECTION,
	GITG_SIDEBAR_COLUMN_ITEM
} GitgSidebarColumn;

struct _GitgSidebarItemIface {
	GTypeInterface parent_iface;
	void (*activate) (GitgSidebarItem* self, gint numclick);
	gchar* (*get_text) (GitgSidebarItem* self);
	gchar* (*get_icon_name) (GitgSidebarItem* self);
};

struct _GitgSidebarStore {
	GtkTreeStore parent_instance;
	GitgSidebarStorePrivate * priv;
};

struct _GitgSidebarStoreClass {
	GtkTreeStoreClass parent_class;
};

struct _GitgSidebarStorePrivate {
	guint d_sections;
	GSList* d_parents;
	gboolean d_clearing;
};

struct _GitgSidebarStoreSidebarText {
	GObject parent_instance;
	GitgSidebarStoreSidebarTextPrivate * priv;
};

struct _GitgSidebarStoreSidebarTextClass {
	GObjectClass parent_class;
};

struct _GitgSidebarStoreSidebarTextPrivate {
	gchar* d_text;
};

struct _GitgSidebarStoreSidebarHeader {
	GitgSidebarStoreSidebarText parent_instance;
	GitgSidebarStoreSidebarHeaderPrivate * priv;
};

struct _GitgSidebarStoreSidebarHeaderClass {
	GitgSidebarStoreSidebarTextClass parent_class;
};

struct _GitgSidebarStoreSidebarHeaderPrivate {
	guint d_id;
};

struct _GitgSidebar {
	GtkTreeView parent_instance;
	GitgSidebarPrivate * priv;
};

struct _GitgSidebarClass {
	GtkTreeViewClass parent_class;
	gboolean (*select_function) (GitgSidebar* self, GtkTreeSelection* sel, GtkTreeModel* model, GtkTreePath* path, gboolean cursel);
	void (*selection_changed) (GitgSidebar* self, GtkTreeSelection* sel);
};

struct _GitgSidebarPrivate {
	GtkTreeViewColumn* d_column;
	GtkCellRendererPixbuf* d_renderer_icon;
	GtkCellRendererText* d_renderer_header;
	GtkCellRendererText* d_renderer_text;
};

struct _Block19Data {
	int _ref_count_;
	GitgSidebar* self;
	GitgSidebarItem* item;
};

struct _Block20Data {
	int _ref_count_;
	GitgSidebar* self;
	gboolean retval;
	GitgSidebarItem* item;
};


static gpointer gitg_sidebar_store_parent_class = NULL;
static gpointer gitg_sidebar_store_sidebar_text_parent_class = NULL;
static GitgSidebarItemIface* gitg_sidebar_store_sidebar_text_gitg_sidebar_item_parent_iface = NULL;
static gpointer gitg_sidebar_store_sidebar_header_parent_class = NULL;
static gpointer gitg_sidebar_parent_class = NULL;

GType gitg_sidebar_hint_get_type (void) G_GNUC_CONST;
GType gitg_sidebar_column_get_type (void) G_GNUC_CONST;
GType gitg_sidebar_item_get_type (void) G_GNUC_CONST;
void gitg_sidebar_item_activate (GitgSidebarItem* self, gint numclick);
static void gitg_sidebar_item_real_activate (GitgSidebarItem* self, gint numclick);
gchar* gitg_sidebar_item_get_text (GitgSidebarItem* self);
gchar* gitg_sidebar_item_get_icon_name (GitgSidebarItem* self);
GType gitg_sidebar_store_get_type (void) G_GNUC_CONST;
#define GITG_SIDEBAR_STORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_SIDEBAR_STORE, GitgSidebarStorePrivate))
enum  {
	GITG_SIDEBAR_STORE_DUMMY_PROPERTY,
	GITG_SIDEBAR_STORE_CLEARING
};
static void _g_free0_ (gpointer var);
static void _g_slist_free__g_free0_ (GSList* self);
static void gitg_sidebar_store_append_real (GitgSidebarStore* self, GitgSidebarItem* item, guint hint, GtkTreeIter* iter);
GitgSidebarStore* gitg_sidebar_store_append_dummy (GitgSidebarStore* self, const gchar* text);
GitgSidebarStoreSidebarText* gitg_sidebar_store_sidebar_text_new (const gchar* text);
GitgSidebarStoreSidebarText* gitg_sidebar_store_sidebar_text_construct (GType object_type, const gchar* text);
GType gitg_sidebar_store_sidebar_text_get_type (void) G_GNUC_CONST;
GitgSidebarStore* gitg_sidebar_store_append (GitgSidebarStore* self, GitgSidebarItem* item);
GType gitg_sidebar_store_sidebar_header_get_type (void) G_GNUC_CONST;
GitgSidebarStoreSidebarHeader* gitg_sidebar_store_begin_header (GitgSidebarStore* self, const gchar* text, guint id);
GitgSidebarStoreSidebarHeader* gitg_sidebar_store_sidebar_header_new (const gchar* text, guint id);
GitgSidebarStoreSidebarHeader* gitg_sidebar_store_sidebar_header_construct (GType object_type, const gchar* text, guint id);
static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self);
GitgSidebarStore* gitg_sidebar_store_end_header (GitgSidebarStore* self);
guint gitg_sidebar_store_begin_section (GitgSidebarStore* self);
void gitg_sidebar_store_end_section (GitgSidebarStore* self);
void gitg_sidebar_store_clear (GitgSidebarStore* self);
GitgSidebarItem* gitg_sidebar_store_item_for_iter (GitgSidebarStore* self, GtkTreeIter* iter);
void gitg_sidebar_store_activate (GitgSidebarStore* self, GtkTreeIter* iter, gint numclick);
GitgSidebarStore* gitg_sidebar_store_new (void);
GitgSidebarStore* gitg_sidebar_store_construct (GType object_type);
gboolean gitg_sidebar_store_get_clearing (GitgSidebarStore* self);
#define GITG_SIDEBAR_STORE_SIDEBAR_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarTextPrivate))
enum  {
	GITG_SIDEBAR_STORE_SIDEBAR_TEXT_DUMMY_PROPERTY,
	GITG_SIDEBAR_STORE_SIDEBAR_TEXT_TEXT,
	GITG_SIDEBAR_STORE_SIDEBAR_TEXT_ICON_NAME
};
static void gitg_sidebar_store_sidebar_text_finalize (GObject* obj);
static void _vala_gitg_sidebar_store_sidebar_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
#define GITG_SIDEBAR_STORE_SIDEBAR_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeaderPrivate))
enum  {
	GITG_SIDEBAR_STORE_SIDEBAR_HEADER_DUMMY_PROPERTY,
	GITG_SIDEBAR_STORE_SIDEBAR_HEADER_ID
};
guint gitg_sidebar_store_sidebar_header_get_id (GitgSidebarStoreSidebarHeader* self);
static void gitg_sidebar_store_sidebar_header_finalize (GObject* obj);
static void _vala_gitg_sidebar_store_sidebar_header_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void gitg_sidebar_store_finalize (GObject* obj);
static void _vala_gitg_sidebar_store_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
GType gitg_sidebar_get_type (void) G_GNUC_CONST;
#define GITG_SIDEBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_SIDEBAR, GitgSidebarPrivate))
enum  {
	GITG_SIDEBAR_DUMMY_PROPERTY,
	GITG_SIDEBAR_MODEL
};
gboolean gitg_sidebar_select_function (GitgSidebar* self, GtkTreeSelection* sel, GtkTreeModel* model, GtkTreePath* path, gboolean cursel);
static gboolean gitg_sidebar_real_select_function (GitgSidebar* self, GtkTreeSelection* sel, GtkTreeModel* model, GtkTreePath* path, gboolean cursel);
void gitg_sidebar_selection_changed (GitgSidebar* self, GtkTreeSelection* sel);
static void gitg_sidebar_real_selection_changed (GitgSidebar* self, GtkTreeSelection* sel);
GitgSidebarStore* gitg_sidebar_get_model (GitgSidebar* self);
gboolean gitg_sidebar_get_selected_iter (GitgSidebar* self, GtkTreeIter* iter);
static void _gtk_tree_path_free0_ (gpointer var);
static void _g_list_free__gtk_tree_path_free0_ (GList* self);
gpointer gitg_sidebar_get_selected_item (GitgSidebar* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func);
gpointer* gitg_sidebar_get_selected_items (GitgSidebar* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, int* result_length1);
static void _vala_array_add15 (gpointer** array, int* length, int* size, gpointer value);
void gitg_sidebar_select (GitgSidebar* self, GitgSidebarItem* item);
static Block19Data* block19_data_ref (Block19Data* _data19_);
static void block19_data_unref (void * _userdata_);
static gboolean __lambda73_ (Block19Data* _data19_, GtkTreeModel* m, GtkTreePath* path, GtkTreeIter* iter);
static gboolean ___lambda73__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
gboolean gitg_sidebar_is_selected (GitgSidebar* self, GitgSidebarItem* item);
static Block20Data* block20_data_ref (Block20Data* _data20_);
static void block20_data_unref (void * _userdata_);
static gboolean __lambda74_ (Block20Data* _data20_, GtkTreeModel* m, GtkTreePath* path, GtkTreeIter* iter);
static gboolean ___lambda74__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
static void gitg_sidebar_real_row_activated (GtkTreeView* base, GtkTreePath* path, GtkTreeViewColumn* column);
static gboolean gitg_sidebar_real_key_press_event (GtkWidget* base, GdkEventKey* event);
static gboolean gitg_sidebar_do_populate_popup (GitgSidebar* self, GdkEventButton* event);
static gboolean gitg_sidebar_real_button_press_event (GtkWidget* base, GdkEventButton* event);
static gboolean gitg_sidebar_real_popup_menu (GtkWidget* base);
GitgSidebar* gitg_sidebar_new (void);
GitgSidebar* gitg_sidebar_construct (GType object_type);
void gitg_sidebar_set_model (GitgSidebar* self, GitgSidebarStore* value);
static GObject * gitg_sidebar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void _gitg_sidebar___lambda75_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
static void __gitg_sidebar___lambda75__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void _gitg_sidebar___lambda76_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
static void __gitg_sidebar___lambda76__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void _gitg_sidebar___lambda77_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
static void __gitg_sidebar___lambda77__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static gboolean _gitg_sidebar___lambda78_ (GitgSidebar* self, GtkTreeModel* model, GtkTreeIter* iter);
static gboolean __gitg_sidebar___lambda78__gtk_tree_view_row_separator_func (GtkTreeModel* model, GtkTreeIter* iter, gpointer self);
static gboolean _gitg_sidebar_select_function_gtk_tree_selection_func (GtkTreeSelection* selection, GtkTreeModel* model, GtkTreePath* path, gboolean path_currently_selected, gpointer self);
static void _gitg_sidebar_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
static void gitg_sidebar_finalize (GObject* obj);
static void _vala_gitg_sidebar_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_sidebar_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GType gitg_sidebar_hint_get_type (void) {
	static volatile gsize gitg_sidebar_hint_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_hint_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_SIDEBAR_HINT_NONE, "GITG_SIDEBAR_HINT_NONE", "none"}, {GITG_SIDEBAR_HINT_HEADER, "GITG_SIDEBAR_HINT_HEADER", "header"}, {GITG_SIDEBAR_HINT_SEPARATOR, "GITG_SIDEBAR_HINT_SEPARATOR", "separator"}, {GITG_SIDEBAR_HINT_DUMMY, "GITG_SIDEBAR_HINT_DUMMY", "dummy"}, {0, NULL, NULL}};
		GType gitg_sidebar_hint_type_id;
		gitg_sidebar_hint_type_id = g_enum_register_static ("GitgSidebarHint", values);
		g_once_init_leave (&gitg_sidebar_hint_type_id__volatile, gitg_sidebar_hint_type_id);
	}
	return gitg_sidebar_hint_type_id__volatile;
}


GType gitg_sidebar_column_get_type (void) {
	static volatile gsize gitg_sidebar_column_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_column_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_SIDEBAR_COLUMN_HINT, "GITG_SIDEBAR_COLUMN_HINT", "hint"}, {GITG_SIDEBAR_COLUMN_SECTION, "GITG_SIDEBAR_COLUMN_SECTION", "section"}, {GITG_SIDEBAR_COLUMN_ITEM, "GITG_SIDEBAR_COLUMN_ITEM", "item"}, {0, NULL, NULL}};
		GType gitg_sidebar_column_type_id;
		gitg_sidebar_column_type_id = g_enum_register_static ("GitgSidebarColumn", values);
		g_once_init_leave (&gitg_sidebar_column_type_id__volatile, gitg_sidebar_column_type_id);
	}
	return gitg_sidebar_column_type_id__volatile;
}


static void gitg_sidebar_item_real_activate (GitgSidebarItem* self, gint numclick) {
	gint _tmp0_ = 0;
#line 47 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = numclick;
#line 47 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_signal_emit_by_name (self, "activated", _tmp0_);
#line 331 "gitg-sidebar.c"
}


void gitg_sidebar_item_activate (GitgSidebarItem* self, gint numclick) {
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	GITG_SIDEBAR_ITEM_GET_INTERFACE (self)->activate (self, numclick);
#line 340 "gitg-sidebar.c"
}


gchar* gitg_sidebar_item_get_text (GitgSidebarItem* self) {
#line 40 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 40 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return GITG_SIDEBAR_ITEM_GET_INTERFACE (self)->get_text (self);
#line 349 "gitg-sidebar.c"
}


gchar* gitg_sidebar_item_get_icon_name (GitgSidebarItem* self) {
#line 41 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 41 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return GITG_SIDEBAR_ITEM_GET_INTERFACE (self)->get_icon_name (self);
#line 358 "gitg-sidebar.c"
}


static void gitg_sidebar_item_base_init (GitgSidebarItemIface * iface) {
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	static gboolean initialized = FALSE;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (!initialized) {
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		initialized = TRUE;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_object_interface_install_property (iface, g_param_spec_string ("text", "text", "text", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_object_interface_install_property (iface, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_signal_new ("activated", GITG_TYPE_SIDEBAR_ITEM, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		iface->activate = gitg_sidebar_item_real_activate;
#line 377 "gitg-sidebar.c"
	}
}


GType gitg_sidebar_item_get_type (void) {
	static volatile gsize gitg_sidebar_item_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgSidebarItemIface), (GBaseInitFunc) gitg_sidebar_item_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gitg_sidebar_item_type_id;
		gitg_sidebar_item_type_id = g_type_register_static (G_TYPE_INTERFACE, "GitgSidebarItem", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gitg_sidebar_item_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&gitg_sidebar_item_type_id__volatile, gitg_sidebar_item_type_id);
	}
	return gitg_sidebar_item_type_id__volatile;
}


static void _g_free0_ (gpointer var) {
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	(var == NULL) ? NULL : (var = (g_free (var), NULL));
#line 398 "gitg-sidebar.c"
}


static void _g_slist_free__g_free0_ (GSList* self) {
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_slist_foreach (self, (GFunc) _g_free0_, NULL);
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_slist_free (self);
#line 407 "gitg-sidebar.c"
}


static void gitg_sidebar_store_append_real (GitgSidebarStore* self, GitgSidebarItem* item, guint hint, GtkTreeIter* iter) {
	GtkTreeIter _vala_iter = {0};
	GSList* _tmp0_ = NULL;
	GtkTreeIter _tmp5_ = {0};
	GitgSidebarItem* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
	guint _tmp8_ = 0U;
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (item != NULL);
#line 98 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_parents;
#line 98 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp0_ != NULL) {
#line 426 "gitg-sidebar.c"
		GSList* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GtkTreeIter _tmp3_ = {0};
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp1_ = self->priv->d_parents;
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp2_ = _tmp1_->data;
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_tree_store_append (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_store_get_type (), GtkTreeStore), &_tmp3_, (GtkTreeIter*) _tmp2_);
#line 100 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_vala_iter = _tmp3_;
#line 438 "gitg-sidebar.c"
	} else {
		GtkTreeIter _tmp4_ = {0};
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_tree_store_append (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_store_get_type (), GtkTreeStore), &_tmp4_, NULL);
#line 104 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_vala_iter = _tmp4_;
#line 445 "gitg-sidebar.c"
	}
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _vala_iter;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = item;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = hint;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = self->priv->d_sections;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_store_set ((GtkTreeStore*) self, &_tmp5_, GITG_SIDEBAR_COLUMN_ITEM, _tmp6_, GITG_SIDEBAR_COLUMN_HINT, _tmp7_, GITG_SIDEBAR_COLUMN_SECTION, _tmp8_, -1);
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (iter) {
#line 94 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		*iter = _vala_iter;
#line 461 "gitg-sidebar.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self ? g_object_ref (self) : NULL;
#line 469 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_store_append_dummy (GitgSidebarStore* self, const gchar* text) {
	GitgSidebarStore* result = NULL;
	GtkTreeIter iter = {0};
	const gchar* _tmp0_ = NULL;
	GitgSidebarStoreSidebarText* _tmp1_ = NULL;
	GitgSidebarStoreSidebarText* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GitgSidebarStore* _tmp4_ = NULL;
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 113 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = text;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = gitg_sidebar_store_sidebar_text_new (_tmp0_);
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = _tmp1_;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_append_real (self, (GitgSidebarItem*) _tmp2_, (guint) GITG_SIDEBAR_HINT_DUMMY, &_tmp3_);
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp3_;
#line 116 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (_tmp2_);
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = _g_object_ref0 (self);
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp4_;
#line 118 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 503 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_store_append (GitgSidebarStore* self, GitgSidebarItem* item) {
	GitgSidebarStore* result = NULL;
	GtkTreeIter iter = {0};
	GitgSidebarItem* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GitgSidebarStore* _tmp2_ = NULL;
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 121 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (item != NULL, NULL);
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = item;
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_append_real (self, _tmp0_, (guint) GITG_SIDEBAR_HINT_NONE, &_tmp1_);
#line 124 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp1_;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = _g_object_ref0 (self);
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp2_;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 529 "gitg-sidebar.c"
}


static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self) {
	GtkTreeIter* dup;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	dup = g_new0 (GtkTreeIter, 1);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	memcpy (dup, self, sizeof (GtkTreeIter));
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return dup;
#line 541 "gitg-sidebar.c"
}


static gpointer __gtk_tree_iter_dup0 (gpointer self) {
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self ? _gtk_tree_iter_dup (self) : NULL;
#line 548 "gitg-sidebar.c"
}


GitgSidebarStoreSidebarHeader* gitg_sidebar_store_begin_header (GitgSidebarStore* self, const gchar* text, guint id) {
	GitgSidebarStoreSidebarHeader* result = NULL;
	GtkTreeIter iter = {0};
	GitgSidebarStoreSidebarHeader* item = NULL;
	const gchar* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	GitgSidebarStoreSidebarHeader* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GtkTreeIter _tmp4_ = {0};
	GtkTreeIter* _tmp5_ = NULL;
#line 129 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 129 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = text;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = id;
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gitg_sidebar_store_sidebar_header_new (_tmp0_, _tmp1_);
#line 133 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	item = _tmp2_;
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_append_real (self, (GitgSidebarItem*) item, (guint) GITG_SIDEBAR_HINT_HEADER, &_tmp3_);
#line 135 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp3_;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = iter;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = __gtk_tree_iter_dup0 (&_tmp4_);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_parents = g_slist_prepend (self->priv->d_parents, _tmp5_);
#line 138 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = item;
#line 138 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 588 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_store_end_header (GitgSidebarStore* self) {
	GitgSidebarStore* result = NULL;
	GSList* _tmp0_ = NULL;
	GitgSidebarStore* _tmp2_ = NULL;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_parents;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp0_ != NULL) {
#line 602 "gitg-sidebar.c"
		GSList* _tmp1_ = NULL;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp1_ = self->priv->d_parents;
#line 145 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		self->priv->d_parents = g_slist_delete_link (self->priv->d_parents, _tmp1_);
#line 608 "gitg-sidebar.c"
	}
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = _g_object_ref0 (self);
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp2_;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 616 "gitg-sidebar.c"
}


guint gitg_sidebar_store_begin_section (GitgSidebarStore* self) {
	guint result = 0U;
	guint _tmp0_ = 0U;
#line 151 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	__g_slist_free__g_free0_0 (self->priv->d_parents);
#line 153 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_parents = NULL;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_sections;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp0_;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 635 "gitg-sidebar.c"
}


void gitg_sidebar_store_end_section (GitgSidebarStore* self) {
	guint _tmp0_ = 0U;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 159 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_sections;
#line 159 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_sections = _tmp0_ + 1;
#line 647 "gitg-sidebar.c"
}


void gitg_sidebar_store_clear (GitgSidebarStore* self) {
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 169 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_clearing = TRUE;
#line 170 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_store_clear (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_store_get_type (), GtkTreeStore));
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_clearing = FALSE;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_sections = (guint) 0;
#line 662 "gitg-sidebar.c"
}


GitgSidebarItem* gitg_sidebar_store_item_for_iter (GitgSidebarStore* self, GtkTreeIter* iter) {
	GitgSidebarItem* result = NULL;
	GitgSidebarItem* item = NULL;
	GtkTreeIter _tmp0_ = {0};
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (iter != NULL, NULL);
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = *iter;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get ((GtkTreeModel*) self, &_tmp0_, GITG_SIDEBAR_COLUMN_ITEM, &item, -1);
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = item;
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 682 "gitg-sidebar.c"
}


void gitg_sidebar_store_activate (GitgSidebarStore* self, GtkTreeIter* iter, gint numclick) {
	GitgSidebarItem* item = NULL;
	GtkTreeIter _tmp0_ = {0};
	GitgSidebarItem* _tmp1_ = NULL;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (iter != NULL);
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = *iter;
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get ((GtkTreeModel*) self, &_tmp0_, GITG_SIDEBAR_COLUMN_ITEM, &item, -1);
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = item;
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp1_ != NULL) {
#line 702 "gitg-sidebar.c"
		GitgSidebarItem* _tmp2_ = NULL;
		gint _tmp3_ = 0;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp2_ = item;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp3_ = numclick;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gitg_sidebar_item_activate (_tmp2_, _tmp3_);
#line 711 "gitg-sidebar.c"
	}
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (item);
#line 715 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_store_construct (GType object_type) {
	GitgSidebarStore * self = NULL;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebarStore*) g_object_new (object_type, NULL);
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self;
#line 725 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_store_new (void) {
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return gitg_sidebar_store_construct (GITG_TYPE_SIDEBAR_STORE);
#line 732 "gitg-sidebar.c"
}


gboolean gitg_sidebar_store_get_clearing (GitgSidebarStore* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_clearing;
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp0_;
#line 164 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 747 "gitg-sidebar.c"
}


GitgSidebarStoreSidebarText* gitg_sidebar_store_sidebar_text_construct (GType object_type, const gchar* text) {
	GitgSidebarStoreSidebarText * self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebarStoreSidebarText*) g_object_new (object_type, NULL);
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = text;
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (self->priv->d_text);
#line 63 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_text = _tmp1_;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self;
#line 769 "gitg-sidebar.c"
}


GitgSidebarStoreSidebarText* gitg_sidebar_store_sidebar_text_new (const gchar* text) {
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return gitg_sidebar_store_sidebar_text_construct (GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, text);
#line 776 "gitg-sidebar.c"
}


static gchar* gitg_sidebar_store_sidebar_text_real_get_text (GitgSidebarItem* base) {
	gchar* result;
	GitgSidebarStoreSidebarText* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebarStoreSidebarText*) base;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_text;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp1_;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 795 "gitg-sidebar.c"
}


static gchar* gitg_sidebar_store_sidebar_text_real_get_icon_name (GitgSidebarItem* base) {
	gchar* result;
	GitgSidebarStoreSidebarText* self;
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebarStoreSidebarText*) base;
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = NULL;
#line 73 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 808 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_text_class_init (GitgSidebarStoreSidebarTextClass * klass) {
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_sidebar_text_parent_class = g_type_class_peek_parent (klass);
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_type_class_add_private (klass, sizeof (GitgSidebarStoreSidebarTextPrivate));
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_sidebar_store_sidebar_text_get_property;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_sidebar_store_sidebar_text_finalize;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_SIDEBAR_STORE_SIDEBAR_TEXT_TEXT, g_param_spec_string ("text", "text", "text", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_SIDEBAR_STORE_SIDEBAR_TEXT_ICON_NAME, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 825 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_text_gitg_sidebar_item_interface_init (GitgSidebarItemIface * iface) {
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_sidebar_text_gitg_sidebar_item_parent_iface = g_type_interface_peek_parent (iface);
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iface->get_text = gitg_sidebar_store_sidebar_text_real_get_text;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iface->get_icon_name = gitg_sidebar_store_sidebar_text_real_get_icon_name;
#line 836 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_text_instance_init (GitgSidebarStoreSidebarText * self) {
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv = GITG_SIDEBAR_STORE_SIDEBAR_TEXT_GET_PRIVATE (self);
#line 843 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_text_finalize (GObject* obj) {
	GitgSidebarStoreSidebarText * self;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarText);
#line 59 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (self->priv->d_text);
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (gitg_sidebar_store_sidebar_text_parent_class)->finalize (obj);
#line 855 "gitg-sidebar.c"
}


GType gitg_sidebar_store_sidebar_text_get_type (void) {
	static volatile gsize gitg_sidebar_store_sidebar_text_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_store_sidebar_text_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgSidebarStoreSidebarTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_sidebar_store_sidebar_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgSidebarStoreSidebarText), 0, (GInstanceInitFunc) gitg_sidebar_store_sidebar_text_instance_init, NULL };
		static const GInterfaceInfo gitg_sidebar_item_info = { (GInterfaceInitFunc) gitg_sidebar_store_sidebar_text_gitg_sidebar_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_sidebar_store_sidebar_text_type_id;
		gitg_sidebar_store_sidebar_text_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgSidebarStoreSidebarText", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_sidebar_store_sidebar_text_type_id, GITG_TYPE_SIDEBAR_ITEM, &gitg_sidebar_item_info);
		g_once_init_leave (&gitg_sidebar_store_sidebar_text_type_id__volatile, gitg_sidebar_store_sidebar_text_type_id);
	}
	return gitg_sidebar_store_sidebar_text_type_id__volatile;
}


static void _vala_gitg_sidebar_store_sidebar_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgSidebarStoreSidebarText * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, GitgSidebarStoreSidebarText);
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (property_id) {
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_STORE_SIDEBAR_TEXT_TEXT:
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_value_take_string (value, gitg_sidebar_item_get_text ((GitgSidebarItem*) self));
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_STORE_SIDEBAR_TEXT_ICON_NAME:
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_value_take_string (value, gitg_sidebar_item_get_icon_name ((GitgSidebarItem*) self));
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 890 "gitg-sidebar.c"
		default:
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 57 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 896 "gitg-sidebar.c"
	}
}


GitgSidebarStoreSidebarHeader* gitg_sidebar_store_sidebar_header_construct (GType object_type, const gchar* text, guint id) {
	GitgSidebarStoreSidebarHeader * self = NULL;
	const gchar* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 88 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = text;
#line 88 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebarStoreSidebarHeader*) gitg_sidebar_store_sidebar_text_construct (object_type, _tmp0_);
#line 90 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = id;
#line 90 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv->d_id = _tmp1_;
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self;
#line 917 "gitg-sidebar.c"
}


GitgSidebarStoreSidebarHeader* gitg_sidebar_store_sidebar_header_new (const gchar* text, guint id) {
#line 86 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return gitg_sidebar_store_sidebar_header_construct (GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, text, id);
#line 924 "gitg-sidebar.c"
}


guint gitg_sidebar_store_sidebar_header_get_id (GitgSidebarStoreSidebarHeader* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_id;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp0_;
#line 83 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 939 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_header_class_init (GitgSidebarStoreSidebarHeaderClass * klass) {
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_sidebar_header_parent_class = g_type_class_peek_parent (klass);
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_type_class_add_private (klass, sizeof (GitgSidebarStoreSidebarHeaderPrivate));
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_sidebar_store_sidebar_header_get_property;
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_sidebar_store_sidebar_header_finalize;
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_SIDEBAR_STORE_SIDEBAR_HEADER_ID, g_param_spec_uint ("id", "id", "id", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 954 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_header_instance_init (GitgSidebarStoreSidebarHeader * self) {
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv = GITG_SIDEBAR_STORE_SIDEBAR_HEADER_GET_PRIVATE (self);
#line 961 "gitg-sidebar.c"
}


static void gitg_sidebar_store_sidebar_header_finalize (GObject* obj) {
	GitgSidebarStoreSidebarHeader * self;
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeader);
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (gitg_sidebar_store_sidebar_header_parent_class)->finalize (obj);
#line 971 "gitg-sidebar.c"
}


GType gitg_sidebar_store_sidebar_header_get_type (void) {
	static volatile gsize gitg_sidebar_store_sidebar_header_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_store_sidebar_header_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgSidebarStoreSidebarHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_sidebar_store_sidebar_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgSidebarStoreSidebarHeader), 0, (GInstanceInitFunc) gitg_sidebar_store_sidebar_header_instance_init, NULL };
		GType gitg_sidebar_store_sidebar_header_type_id;
		gitg_sidebar_store_sidebar_header_type_id = g_type_register_static (GITG_SIDEBAR_STORE_TYPE_SIDEBAR_TEXT, "GitgSidebarStoreSidebarHeader", &g_define_type_info, 0);
		g_once_init_leave (&gitg_sidebar_store_sidebar_header_type_id__volatile, gitg_sidebar_store_sidebar_header_type_id);
	}
	return gitg_sidebar_store_sidebar_header_type_id__volatile;
}


static void _vala_gitg_sidebar_store_sidebar_header_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgSidebarStoreSidebarHeader * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_SIDEBAR_STORE_TYPE_SIDEBAR_HEADER, GitgSidebarStoreSidebarHeader);
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (property_id) {
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_STORE_SIDEBAR_HEADER_ID:
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_value_set_uint (value, gitg_sidebar_store_sidebar_header_get_id (self));
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 998 "gitg-sidebar.c"
		default:
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 77 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 1004 "gitg-sidebar.c"
	}
}


static void gitg_sidebar_store_class_init (GitgSidebarStoreClass * klass) {
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_store_parent_class = g_type_class_peek_parent (klass);
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_type_class_add_private (klass, sizeof (GitgSidebarStorePrivate));
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_sidebar_store_get_property;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_sidebar_store_finalize;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_SIDEBAR_STORE_CLEARING, g_param_spec_boolean ("clearing", "clearing", "clearing", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1020 "gitg-sidebar.c"
}


static void gitg_sidebar_store_instance_init (GitgSidebarStore * self) {
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv = GITG_SIDEBAR_STORE_GET_PRIVATE (self);
#line 1027 "gitg-sidebar.c"
}


static void gitg_sidebar_store_finalize (GObject* obj) {
	GitgSidebarStore * self;
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_SIDEBAR_STORE, GitgSidebarStore);
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	__g_slist_free__g_free0_0 (self->priv->d_parents);
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (gitg_sidebar_store_parent_class)->finalize (obj);
#line 1039 "gitg-sidebar.c"
}


GType gitg_sidebar_store_get_type (void) {
	static volatile gsize gitg_sidebar_store_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_store_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgSidebarStoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_sidebar_store_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgSidebarStore), 0, (GInstanceInitFunc) gitg_sidebar_store_instance_init, NULL };
		GType gitg_sidebar_store_type_id;
		gitg_sidebar_store_type_id = g_type_register_static (gtk_tree_store_get_type (), "GitgSidebarStore", &g_define_type_info, 0);
		g_once_init_leave (&gitg_sidebar_store_type_id__volatile, gitg_sidebar_store_type_id);
	}
	return gitg_sidebar_store_type_id__volatile;
}


static void _vala_gitg_sidebar_store_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgSidebarStore * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_SIDEBAR_STORE, GitgSidebarStore);
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (property_id) {
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_STORE_CLEARING:
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_value_set_boolean (value, gitg_sidebar_store_get_clearing (self));
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 1066 "gitg-sidebar.c"
		default:
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 51 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 1072 "gitg-sidebar.c"
	}
}


static gboolean gitg_sidebar_real_select_function (GitgSidebar* self, GtkTreeSelection* sel, GtkTreeModel* model, GtkTreePath* path, gboolean cursel) {
	gboolean result = FALSE;
	GtkTreeIter iter = {0};
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreePath* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	guint hint = 0U;
	GtkTreeModel* _tmp3_ = NULL;
	GtkTreeIter _tmp4_ = {0};
	gboolean _tmp5_ = FALSE;
	guint _tmp6_ = 0U;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (sel != NULL, FALSE);
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (model != NULL, FALSE);
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (path != NULL, FALSE);
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = model;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = path;
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get_iter (_tmp0_, &_tmp2_, _tmp1_);
#line 289 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp2_;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = model;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = iter;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get (_tmp3_, &_tmp4_, GITG_SIDEBAR_COLUMN_HINT, &hint, -1);
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = hint;
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp6_ != ((guint) GITG_SIDEBAR_HINT_HEADER)) {
#line 1112 "gitg-sidebar.c"
		guint _tmp7_ = 0U;
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = hint;
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp5_ = _tmp7_ != ((guint) GITG_SIDEBAR_HINT_DUMMY);
#line 1118 "gitg-sidebar.c"
	} else {
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp5_ = FALSE;
#line 1122 "gitg-sidebar.c"
	}
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp5_;
#line 295 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1128 "gitg-sidebar.c"
}


gboolean gitg_sidebar_select_function (GitgSidebar* self, GtkTreeSelection* sel, GtkTreeModel* model, GtkTreePath* path, gboolean cursel) {
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return GITG_SIDEBAR_GET_CLASS (self)->select_function (self, sel, model, path, cursel);
#line 1137 "gitg-sidebar.c"
}


static void gitg_sidebar_real_selection_changed (GitgSidebar* self, GtkTreeSelection* sel) {
	GtkTreeIter iter = {0};
	GitgSidebarStore* _tmp0_ = NULL;
	GitgSidebarStore* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	GtkTreeIter _tmp4_ = {0};
	gboolean _tmp5_ = FALSE;
#line 298 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (sel != NULL);
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gitg_sidebar_get_model (self);
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _tmp0_;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gitg_sidebar_store_get_clearing (_tmp1_);
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = _tmp2_;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp3_) {
#line 304 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return;
#line 1163 "gitg-sidebar.c"
	}
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = gitg_sidebar_get_selected_iter (self, &_tmp4_);
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp4_;
#line 307 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp5_) {
#line 1171 "gitg-sidebar.c"
		GitgSidebarHint hint = 0;
		GitgSidebarStore* _tmp6_ = NULL;
		GitgSidebarStore* _tmp7_ = NULL;
		GtkTreeIter _tmp8_ = {0};
		gboolean _tmp9_ = FALSE;
		GitgSidebarHint _tmp10_ = 0;
#line 310 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp6_ = gitg_sidebar_get_model (self);
#line 310 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = _tmp6_;
#line 310 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp8_ = iter;
#line 310 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp7_, &_tmp8_, GITG_SIDEBAR_COLUMN_HINT, &hint, -1);
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp10_ = hint;
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		if (_tmp10_ != GITG_SIDEBAR_HINT_HEADER) {
#line 1190 "gitg-sidebar.c"
			GitgSidebarHint _tmp11_ = 0;
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp11_ = hint;
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp9_ = _tmp11_ != GITG_SIDEBAR_HINT_DUMMY;
#line 1196 "gitg-sidebar.c"
		} else {
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp9_ = FALSE;
#line 1200 "gitg-sidebar.c"
		}
#line 312 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		if (_tmp9_) {
#line 1204 "gitg-sidebar.c"
			GitgSidebarStore* _tmp12_ = NULL;
			GitgSidebarStore* _tmp13_ = NULL;
			GtkTreeIter _tmp14_ = {0};
#line 314 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp12_ = gitg_sidebar_get_model (self);
#line 314 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp13_ = _tmp12_;
#line 314 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp14_ = iter;
#line 314 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			gitg_sidebar_store_activate (_tmp13_, &_tmp14_, 1);
#line 1216 "gitg-sidebar.c"
		} else {
#line 318 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			g_signal_emit_by_name (self, "deselected");
#line 1220 "gitg-sidebar.c"
		}
	} else {
#line 323 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_signal_emit_by_name (self, "deselected");
#line 1225 "gitg-sidebar.c"
	}
}


void gitg_sidebar_selection_changed (GitgSidebar* self, GtkTreeSelection* sel) {
#line 298 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 298 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	GITG_SIDEBAR_GET_CLASS (self)->selection_changed (self, sel);
#line 1235 "gitg-sidebar.c"
}


static void _gtk_tree_path_free0_ (gpointer var) {
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	(var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL));
#line 1242 "gitg-sidebar.c"
}


static void _g_list_free__gtk_tree_path_free0_ (GList* self) {
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_list_foreach (self, (GFunc) _gtk_tree_path_free0_, NULL);
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_list_free (self);
#line 1251 "gitg-sidebar.c"
}


gboolean gitg_sidebar_get_selected_iter (GitgSidebar* self, GtkTreeIter* iter) {
	GtkTreeIter _vala_iter = {0};
	gboolean result = FALSE;
	GtkTreeSelection* sel = NULL;
	GtkTreeSelection* _tmp0_ = NULL;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeSelection* _tmp2_ = NULL;
	gint _tmp3_ = 0;
#line 327 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 329 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	sel = _tmp1_;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = sel;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = gtk_tree_selection_count_selected_rows (_tmp2_);
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp3_ == 1) {
#line 1277 "gitg-sidebar.c"
		GtkTreeModel* m = NULL;
		GList* rows = NULL;
		GtkTreeSelection* _tmp4_ = NULL;
		GtkTreeModel* _tmp5_ = NULL;
		GList* _tmp6_ = NULL;
		GtkTreeModel* _tmp7_ = NULL;
		GtkTreeModel* _tmp8_ = NULL;
		GList* _tmp9_ = NULL;
		gconstpointer _tmp10_ = NULL;
		GtkTreeIter _tmp11_ = {0};
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp4_ = sel;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp6_ = gtk_tree_selection_get_selected_rows (_tmp4_, &_tmp5_);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (m);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = _g_object_ref0 (_tmp5_);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		m = _tmp7_;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		rows = _tmp6_;
#line 336 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp8_ = m;
#line 336 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp9_ = rows;
#line 336 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp10_ = _tmp9_->data;
#line 336 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_tree_model_get_iter (_tmp8_, &_tmp11_, (GtkTreePath*) _tmp10_);
#line 336 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_vala_iter = _tmp11_;
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = TRUE;
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		__g_list_free__gtk_tree_path_free0_0 (rows);
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (m);
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (sel);
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		if (iter) {
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			*iter = _vala_iter;
#line 1322 "gitg-sidebar.c"
		}
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 1326 "gitg-sidebar.c"
	} else {
#line 342 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		memset (&_vala_iter, 0, sizeof (GtkTreeIter));
#line 1330 "gitg-sidebar.c"
	}
#line 345 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = FALSE;
#line 345 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (sel);
#line 345 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (iter) {
#line 345 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		*iter = _vala_iter;
#line 1340 "gitg-sidebar.c"
	}
#line 345 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1344 "gitg-sidebar.c"
}


gpointer gitg_sidebar_get_selected_item (GitgSidebar* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func) {
	gpointer result = NULL;
	GtkTreeIter iter = {0};
	GtkTreeIter _tmp0_ = {0};
	gboolean _tmp1_ = FALSE;
#line 348 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 352 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = gitg_sidebar_get_selected_iter (self, &_tmp0_);
#line 352 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp0_;
#line 352 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp1_) {
#line 1361 "gitg-sidebar.c"
		GitgSidebarStore* _tmp2_ = NULL;
		GitgSidebarStore* _tmp3_ = NULL;
		GtkTreeIter _tmp4_ = {0};
		GitgSidebarItem* _tmp5_ = NULL;
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp2_ = gitg_sidebar_get_model (self);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp3_ = _tmp2_;
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp4_ = iter;
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp5_ = gitg_sidebar_store_item_for_iter (_tmp3_, &_tmp4_);
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = (gpointer) _tmp5_;
#line 354 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 1378 "gitg-sidebar.c"
	}
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = NULL;
#line 357 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1384 "gitg-sidebar.c"
}


static gpointer _gtk_tree_path_copy0 (gpointer self) {
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self ? gtk_tree_path_copy (self) : NULL;
#line 1391 "gitg-sidebar.c"
}


static void _vala_array_add15 (gpointer** array, int* length, int* size, gpointer value) {
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if ((*length) == (*size)) {
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		*array = g_renew (gpointer, *array, (*size) + 1);
#line 1402 "gitg-sidebar.c"
	}
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	(*array)[(*length)++] = value;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	(*array)[*length] = NULL;
#line 1408 "gitg-sidebar.c"
}


gpointer* gitg_sidebar_get_selected_items (GitgSidebar* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, int* result_length1) {
	gpointer* result = NULL;
	GtkTreeSelection* sel = NULL;
	GtkTreeSelection* _tmp0_ = NULL;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeModel* m = NULL;
	GtkTreeIter iter = {0};
	GList* rows = NULL;
	GtkTreeSelection* _tmp2_ = NULL;
	GtkTreeModel* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
	GtkTreeModel* _tmp5_ = NULL;
	gpointer* ret = NULL;
	gpointer* _tmp6_ = NULL;
	gint ret_length1 = 0;
	gint _ret_size_ = 0;
	GList* _tmp7_ = NULL;
	gpointer* _tmp17_ = NULL;
	gint _tmp17__length1 = 0;
#line 360 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 362 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 362 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 362 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	sel = _tmp1_;
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = sel;
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = gtk_tree_selection_get_selected_rows (_tmp2_, &_tmp3_);
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (m);
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _g_object_ref0 (_tmp3_);
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	m = _tmp5_;
#line 367 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	rows = _tmp4_;
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = g_new0 (gpointer, 0);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	ret = _tmp6_;
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	ret_length1 = 0;
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_ret_size_ = ret_length1;
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = rows;
#line 1461 "gitg-sidebar.c"
	{
		GList* row_collection = NULL;
		GList* row_it = NULL;
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		row_collection = _tmp7_;
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		for (row_it = row_collection; row_it != NULL; row_it = row_it->next) {
#line 1469 "gitg-sidebar.c"
			GtkTreePath* _tmp8_ = NULL;
			GtkTreePath* row = NULL;
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp8_ = _gtk_tree_path_copy0 ((GtkTreePath*) row_it->data);
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			row = _tmp8_;
#line 1476 "gitg-sidebar.c"
			{
				GtkTreeModel* _tmp9_ = NULL;
				GtkTreePath* _tmp10_ = NULL;
				GtkTreeIter _tmp11_ = {0};
				gpointer* _tmp12_ = NULL;
				gint _tmp12__length1 = 0;
				GitgSidebarStore* _tmp13_ = NULL;
				GitgSidebarStore* _tmp14_ = NULL;
				GtkTreeIter _tmp15_ = {0};
				GitgSidebarItem* _tmp16_ = NULL;
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp9_ = m;
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp10_ = row;
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				gtk_tree_model_get_iter (_tmp9_, &_tmp11_, _tmp10_);
#line 372 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				iter = _tmp11_;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp12_ = ret;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp12__length1 = ret_length1;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp13_ = gitg_sidebar_get_model (self);
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp14_ = _tmp13_;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp15_ = iter;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp16_ = gitg_sidebar_store_item_for_iter (_tmp14_, &_tmp15_);
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_vala_array_add15 (&ret, &ret_length1, &_ret_size_, (gpointer) _tmp16_);
#line 370 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_gtk_tree_path_free0 (row);
#line 1511 "gitg-sidebar.c"
			}
		}
	}
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp17_ = ret;
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp17__length1 = ret_length1;
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (result_length1) {
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		*result_length1 = _tmp17__length1;
#line 1523 "gitg-sidebar.c"
	}
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp17_;
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	__g_list_free__gtk_tree_path_free0_0 (rows);
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (m);
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (sel);
#line 376 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1535 "gitg-sidebar.c"
}


static Block19Data* block19_data_ref (Block19Data* _data19_) {
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_atomic_int_inc (&_data19_->_ref_count_);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return _data19_;
#line 1544 "gitg-sidebar.c"
}


static void block19_data_unref (void * _userdata_) {
	Block19Data* _data19_;
	_data19_ = (Block19Data*) _userdata_;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (g_atomic_int_dec_and_test (&_data19_->_ref_count_)) {
#line 1553 "gitg-sidebar.c"
		GitgSidebar* self;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		self = _data19_->self;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (_data19_->item);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (self);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_slice_free (Block19Data, _data19_);
#line 1563 "gitg-sidebar.c"
	}
}


static gboolean __lambda73_ (Block19Data* _data19_, GtkTreeModel* m, GtkTreePath* path, GtkTreeIter* iter) {
	GitgSidebar* self;
	gboolean result = FALSE;
	GitgSidebarStore* _tmp0_ = NULL;
	GitgSidebarStore* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	GitgSidebarItem* _tmp3_ = NULL;
	GitgSidebarItem* _tmp4_ = NULL;
	GitgSidebarItem* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = _data19_->self;
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (m != NULL, FALSE);
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (path != NULL, FALSE);
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gitg_sidebar_get_model (self);
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _tmp0_;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = *iter;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = gitg_sidebar_store_item_for_iter (_tmp1_, &_tmp2_);
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = _tmp3_;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _data19_->item;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = _tmp4_ == _tmp5_;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (_tmp4_);
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp6_) {
#line 1604 "gitg-sidebar.c"
		GtkTreeSelection* _tmp7_ = NULL;
		GtkTreeIter _tmp8_ = {0};
#line 384 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 384 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp8_ = *iter;
#line 384 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_tree_selection_select_iter (_tmp7_, &_tmp8_);
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = TRUE;
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 1617 "gitg-sidebar.c"
	}
#line 388 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = FALSE;
#line 388 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1623 "gitg-sidebar.c"
}


static gboolean ___lambda73__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
	gboolean result;
	result = __lambda73_ (self, model, path, iter);
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1632 "gitg-sidebar.c"
}


void gitg_sidebar_select (GitgSidebar* self, GitgSidebarItem* item) {
	Block19Data* _data19_;
	GitgSidebarItem* _tmp0_ = NULL;
	GitgSidebarItem* _tmp1_ = NULL;
	GitgSidebarStore* _tmp2_ = NULL;
	GitgSidebarStore* _tmp3_ = NULL;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (item != NULL);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data19_ = g_slice_new0 (Block19Data);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data19_->_ref_count_ = 1;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data19_->self = g_object_ref (self);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = item;
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (_data19_->item);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data19_->item = _tmp1_;
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gitg_sidebar_get_model (self);
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = _tmp2_;
#line 381 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_foreach ((GtkTreeModel*) _tmp3_, ___lambda73__gtk_tree_model_foreach_func, _data19_);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	block19_data_unref (_data19_);
#line 379 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data19_ = NULL;
#line 1670 "gitg-sidebar.c"
}


static Block20Data* block20_data_ref (Block20Data* _data20_) {
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_atomic_int_inc (&_data20_->_ref_count_);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return _data20_;
#line 1679 "gitg-sidebar.c"
}


static void block20_data_unref (void * _userdata_) {
	Block20Data* _data20_;
	_data20_ = (Block20Data*) _userdata_;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (g_atomic_int_dec_and_test (&_data20_->_ref_count_)) {
#line 1688 "gitg-sidebar.c"
		GitgSidebar* self;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		self = _data20_->self;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (_data20_->item);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (self);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_slice_free (Block20Data, _data20_);
#line 1698 "gitg-sidebar.c"
	}
}


static gboolean __lambda74_ (Block20Data* _data20_, GtkTreeModel* m, GtkTreePath* path, GtkTreeIter* iter) {
	GitgSidebar* self;
	gboolean result = FALSE;
	GitgSidebarStore* _tmp0_ = NULL;
	GitgSidebarStore* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	GitgSidebarItem* _tmp3_ = NULL;
	GitgSidebarItem* _tmp4_ = NULL;
	GitgSidebarItem* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = _data20_->self;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (m != NULL, FALSE);
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (path != NULL, FALSE);
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gitg_sidebar_get_model (self);
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _tmp0_;
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = *iter;
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = gitg_sidebar_store_item_for_iter (_tmp1_, &_tmp2_);
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = _tmp3_;
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _data20_->item;
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = _tmp4_ == _tmp5_;
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (_tmp4_);
#line 397 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp6_) {
#line 1739 "gitg-sidebar.c"
		GtkTreeSelection* _tmp7_ = NULL;
		GtkTreeIter _tmp8_ = {0};
		gboolean _tmp9_ = FALSE;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp8_ = *iter;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp9_ = gtk_tree_selection_iter_is_selected (_tmp7_, &_tmp8_);
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_data20_->retval = _tmp9_;
#line 400 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = TRUE;
#line 400 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 1755 "gitg-sidebar.c"
	}
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = FALSE;
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1761 "gitg-sidebar.c"
}


static gboolean ___lambda74__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
	gboolean result;
	result = __lambda74_ (self, model, path, iter);
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1770 "gitg-sidebar.c"
}


gboolean gitg_sidebar_is_selected (GitgSidebar* self, GitgSidebarItem* item) {
	gboolean result = FALSE;
	Block20Data* _data20_;
	GitgSidebarItem* _tmp0_ = NULL;
	GitgSidebarItem* _tmp1_ = NULL;
	GitgSidebarStore* _tmp2_ = NULL;
	GitgSidebarStore* _tmp3_ = NULL;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (item != NULL, FALSE);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_ = g_slice_new0 (Block20Data);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_->_ref_count_ = 1;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_->self = g_object_ref (self);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = item;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (_data20_->item);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_->item = _tmp1_;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_->retval = FALSE;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gitg_sidebar_get_model (self);
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = _tmp2_;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_foreach ((GtkTreeModel*) _tmp3_, ___lambda74__gtk_tree_model_foreach_func, _data20_);
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _data20_->retval;
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	block20_data_unref (_data20_);
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_data20_ = NULL;
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 1815 "gitg-sidebar.c"
}


static void gitg_sidebar_real_row_activated (GtkTreeView* base, GtkTreePath* path, GtkTreeViewColumn* column) {
	GitgSidebar * self;
	GitgSidebarStore* _tmp0_ = NULL;
	GitgSidebarStore* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	GtkTreeIter iter = {0};
	GitgSidebarStore* _tmp4_ = NULL;
	GitgSidebarStore* _tmp5_ = NULL;
	GtkTreePath* _tmp6_ = NULL;
	GtkTreeIter _tmp7_ = {0};
	gboolean _tmp8_ = FALSE;
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebar*) base;
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (path != NULL);
#line 409 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (column != NULL);
#line 411 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gitg_sidebar_get_model (self);
#line 411 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _tmp0_;
#line 411 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gitg_sidebar_store_get_clearing (_tmp1_);
#line 411 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = _tmp2_;
#line 411 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp3_) {
#line 413 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return;
#line 1849 "gitg-sidebar.c"
	}
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = gitg_sidebar_get_model (self);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _tmp4_;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = path;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp5_, &_tmp7_, _tmp6_);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	iter = _tmp7_;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp8_) {
#line 1863 "gitg-sidebar.c"
		GitgSidebarStore* _tmp9_ = NULL;
		GitgSidebarStore* _tmp10_ = NULL;
		GtkTreeIter _tmp11_ = {0};
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp9_ = gitg_sidebar_get_model (self);
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp10_ = _tmp9_;
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp11_ = iter;
#line 420 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gitg_sidebar_store_activate (_tmp10_, &_tmp11_, 2);
#line 1875 "gitg-sidebar.c"
	}
}


static gboolean gitg_sidebar_real_key_press_event (GtkWidget* base, GdkEventKey* event) {
	GitgSidebar * self;
	gboolean result = FALSE;
	GdkEventKey* _tmp0_ = NULL;
	GdkModifierType _tmp1_ = 0;
	GdkModifierType _tmp2_ = 0;
	GdkEventKey* _tmp5_ = NULL;
	guint _tmp6_ = 0U;
	GdkEventKey* _tmp25_ = NULL;
	gboolean _tmp26_ = FALSE;
#line 424 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebar*) base;
#line 424 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = event;
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = _tmp0_->state;
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gtk_accelerator_get_default_mod_mask ();
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if ((_tmp1_ & _tmp2_) != 0) {
#line 1902 "gitg-sidebar.c"
		GdkEventKey* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp3_ = event;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp4_ = GTK_WIDGET_CLASS (gitg_sidebar_parent_class)->key_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp3_);
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = _tmp4_;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 1913 "gitg-sidebar.c"
	}
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = event;
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = _tmp5_->keyval;
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (_tmp6_) {
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GDK_KEY_Return:
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GDK_KEY_ISO_Enter:
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GDK_KEY_KP_Enter:
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GDK_KEY_space:
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GDK_KEY_KP_Space:
#line 1931 "gitg-sidebar.c"
		{
			GtkTreePath* path = NULL;
			GtkTreeIter iter = {0};
			GtkTreePath* _tmp7_ = NULL;
			GtkTreeSelection* sel = NULL;
			GtkTreeSelection* _tmp8_ = NULL;
			GtkTreeSelection* _tmp9_ = NULL;
			GtkTreePath* _tmp10_ = NULL;
#line 437 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			path = NULL;
#line 440 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			gtk_tree_view_get_cursor ((GtkTreeView*) self, &_tmp7_, NULL);
#line 440 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_gtk_tree_path_free0 (path);
#line 440 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			path = _tmp7_;
#line 442 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp8_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 442 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp9_ = _g_object_ref0 (_tmp8_);
#line 442 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			sel = _tmp9_;
#line 444 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp10_ = path;
#line 444 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			if (_tmp10_ != NULL) {
#line 1958 "gitg-sidebar.c"
				GitgSidebarStore* _tmp11_ = NULL;
				GitgSidebarStore* _tmp12_ = NULL;
				GtkTreePath* _tmp13_ = NULL;
				GtkTreeIter _tmp14_ = {0};
				gboolean _tmp15_ = FALSE;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp11_ = gitg_sidebar_get_model (self);
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp12_ = _tmp11_;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp13_ = path;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				_tmp15_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp12_, &_tmp14_, _tmp13_);
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				iter = _tmp14_;
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
				if (_tmp15_) {
#line 1976 "gitg-sidebar.c"
					GtkTreeSelection* _tmp16_ = NULL;
					GtkTreeIter _tmp17_ = {0};
					gboolean _tmp18_ = FALSE;
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
					_tmp16_ = sel;
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
					_tmp17_ = iter;
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
					_tmp18_ = gtk_tree_selection_iter_is_selected (_tmp16_, &_tmp17_);
#line 448 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
					if (_tmp18_) {
#line 1988 "gitg-sidebar.c"
						GitgSidebarStore* _tmp19_ = NULL;
						GitgSidebarStore* _tmp20_ = NULL;
						GtkTreeIter _tmp21_ = {0};
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp19_ = gitg_sidebar_get_model (self);
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp20_ = _tmp19_;
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp21_ = iter;
#line 450 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						gitg_sidebar_store_activate (_tmp20_, &_tmp21_, 2);
#line 2000 "gitg-sidebar.c"
					} else {
						GtkTreeSelection* _tmp22_ = NULL;
						GtkTreeSelection* _tmp23_ = NULL;
						GtkTreeIter _tmp24_ = {0};
#line 454 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp22_ = sel;
#line 454 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						gtk_tree_selection_unselect_all (_tmp22_);
#line 455 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp23_ = sel;
#line 455 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						_tmp24_ = iter;
#line 455 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
						gtk_tree_selection_select_iter (_tmp23_, &_tmp24_);
#line 2015 "gitg-sidebar.c"
					}
				}
			}
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			result = TRUE;
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_g_object_unref0 (sel);
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_gtk_tree_path_free0 (path);
#line 460 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			return result;
#line 2027 "gitg-sidebar.c"
		}
		default:
#line 431 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 2032 "gitg-sidebar.c"
	}
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp25_ = event;
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp26_ = GTK_WIDGET_CLASS (gitg_sidebar_parent_class)->key_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp25_);
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp26_;
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2042 "gitg-sidebar.c"
}


static gboolean gitg_sidebar_do_populate_popup (GitgSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkMenu* menu = NULL;
	GtkMenu* _tmp0_ = NULL;
	GtkMenu* _tmp1_ = NULL;
	GtkMenu* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GtkMenu* _tmp6_ = NULL;
	GtkMenu* _tmp7_ = NULL;
	guint button = 0U;
	guint32 t = 0U;
	GdkEventButton* _tmp8_ = NULL;
	GtkMenu* _tmp13_ = NULL;
	guint _tmp14_ = 0U;
	guint32 _tmp15_ = 0U;
#line 472 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = (GtkMenu*) gtk_menu_new ();
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_ref_sink (_tmp0_);
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	menu = _tmp0_;
#line 476 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = menu;
#line 476 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_signal_emit_by_name (self, "populate-popup", _tmp1_);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = menu;
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = gtk_container_get_children ((GtkContainer*) _tmp2_);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = _tmp3_;
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _tmp4_ == NULL;
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_list_free0 (_tmp4_);
#line 478 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp5_) {
#line 480 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = FALSE;
#line 480 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (menu);
#line 480 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 2093 "gitg-sidebar.c"
	}
#line 483 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = menu;
#line 483 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp6_);
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = menu;
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_menu_attach_to_widget (_tmp7_, (GtkWidget*) self, NULL);
#line 486 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	button = (guint) 0;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	t = (guint32) GDK_CURRENT_TIME;
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = event;
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp8_ != NULL) {
#line 2111 "gitg-sidebar.c"
		GdkEventButton* _tmp9_ = NULL;
		guint _tmp10_ = 0U;
		GdkEventButton* _tmp11_ = NULL;
		guint32 _tmp12_ = 0U;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp9_ = event;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp10_ = _tmp9_->button;
#line 491 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		button = _tmp10_;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp11_ = event;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp12_ = _tmp11_->time;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		t = _tmp12_;
#line 2128 "gitg-sidebar.c"
	}
#line 495 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp13_ = menu;
#line 495 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp14_ = button;
#line 495 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp15_ = t;
#line 495 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_menu_popup (_tmp13_, NULL, NULL, NULL, NULL, _tmp14_, _tmp15_);
#line 496 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = TRUE;
#line 496 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (menu);
#line 496 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2144 "gitg-sidebar.c"
}


static gboolean gitg_sidebar_real_button_press_event (GtkWidget* base, GdkEventButton* event) {
	GitgSidebar * self;
	gboolean result = FALSE;
	GdkEvent* ev = NULL;
	GdkEventButton* _tmp0_ = NULL;
	GdkEvent* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebar*) base;
#line 499 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 501 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = event;
#line 501 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	ev = (GdkEvent*) _tmp0_;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = ev;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = gdk_event_triggers_context_menu (_tmp1_);
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp2_) {
#line 2169 "gitg-sidebar.c"
		GtkTreeSelection* _tmp3_ = NULL;
		gint _tmp4_ = 0;
		GdkEventButton* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp3_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp4_ = gtk_tree_selection_count_selected_rows (_tmp3_);
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		if (_tmp4_ <= 1) {
#line 2180 "gitg-sidebar.c"
			GdkEventButton* _tmp5_ = NULL;
#line 507 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			_tmp5_ = event;
#line 507 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
			GTK_WIDGET_CLASS (gitg_sidebar_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp5_);
#line 2186 "gitg-sidebar.c"
		}
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp6_ = event;
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp7_ = gitg_sidebar_do_populate_popup (self, _tmp6_);
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = _tmp7_;
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 2196 "gitg-sidebar.c"
	} else {
		GdkEventButton* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp8_ = event;
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp9_ = GTK_WIDGET_CLASS (gitg_sidebar_parent_class)->button_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_);
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		result = _tmp9_;
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		return result;
#line 2208 "gitg-sidebar.c"
	}
}


static gboolean gitg_sidebar_real_popup_menu (GtkWidget* base) {
	GitgSidebar * self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 518 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebar*) base;
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gitg_sidebar_do_populate_popup (self, NULL);
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp0_;
#line 520 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2225 "gitg-sidebar.c"
}


GitgSidebar* gitg_sidebar_construct (GType object_type) {
	GitgSidebar * self = NULL;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = (GitgSidebar*) g_object_new (object_type, NULL);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return self;
#line 2235 "gitg-sidebar.c"
}


GitgSidebar* gitg_sidebar_new (void) {
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return gitg_sidebar_construct (GITG_TYPE_SIDEBAR);
#line 2242 "gitg-sidebar.c"
}


GitgSidebarStore* gitg_sidebar_get_model (GitgSidebar* self) {
	GitgSidebarStore* result;
	GtkTreeModel* _tmp0_ = NULL;
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = gtk_tree_view_get_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView));
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GITG_TYPE_SIDEBAR_STORE) ? ((GitgSidebarStore*) _tmp0_) : NULL;
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2257 "gitg-sidebar.c"
}


void gitg_sidebar_set_model (GitgSidebar* self, GitgSidebarStore* value) {
	GitgSidebarStore* _tmp0_ = NULL;
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (self != NULL);
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = value;
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (GtkTreeModel*) _tmp0_);
#line 469 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_notify ((GObject *) self, "model");
#line 2271 "gitg-sidebar.c"
}


static void _gitg_sidebar___lambda75_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
	GitgSidebarItem* item = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp2_ = NULL;
	GitgSidebarItem* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	GtkCellRendererPixbuf* r = NULL;
	GtkCellRenderer* _tmp7_ = NULL;
	GtkCellRendererPixbuf* _tmp8_ = NULL;
	GtkCellRendererPixbuf* _tmp9_ = NULL;
	GitgSidebarItem* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (layout != NULL);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (cell != NULL);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (model != NULL);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (iter != NULL);
#line 221 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = model;
#line 221 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = *iter;
#line 221 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, GITG_SIDEBAR_COLUMN_ITEM, &item, -1);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = cell;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = item;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = gitg_sidebar_item_get_icon_name (_tmp3_);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _tmp4_;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = _tmp5_;
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_renderer_set_visible (_tmp2_, _tmp6_ != NULL);
#line 223 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (_tmp6_);
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = cell;
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_pixbuf_get_type (), GtkCellRendererPixbuf));
#line 225 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	r = _tmp8_;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp9_ = r;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp10_ = item;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp11_ = gitg_sidebar_item_get_icon_name (_tmp10_);
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp12_ = _tmp11_;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp13_ = _tmp12_;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_set (_tmp9_, "icon-name", _tmp13_, NULL);
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (_tmp13_);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (r);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (item);
#line 2344 "gitg-sidebar.c"
}


static void __gitg_sidebar___lambda75__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_gitg_sidebar___lambda75_ ((GitgSidebar*) self, cell_layout, cell, tree_model, iter);
#line 2351 "gitg-sidebar.c"
}


static void _gitg_sidebar___lambda76_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
	GitgSidebarHint hint = 0;
	GitgSidebarItem* item = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp2_ = NULL;
	GitgSidebarHint _tmp3_ = 0;
	GtkCellRendererText* r = NULL;
	GtkCellRenderer* _tmp4_ = NULL;
	GtkCellRendererText* _tmp5_ = NULL;
	GtkCellRendererText* _tmp6_ = NULL;
	GitgSidebarItem* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (layout != NULL);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (cell != NULL);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (model != NULL);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (iter != NULL);
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = model;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = *iter;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, GITG_SIDEBAR_COLUMN_HINT, &hint, GITG_SIDEBAR_COLUMN_ITEM, &item, -1);
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = cell;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = hint;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_renderer_set_visible (_tmp2_, _tmp3_ == GITG_SIDEBAR_HINT_HEADER);
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = cell;
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_cell_renderer_text_get_type (), GtkCellRendererText));
#line 237 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	r = _tmp5_;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = r;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = item;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = gitg_sidebar_item_get_text (_tmp7_);
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp9_ = _tmp8_;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp10_ = _tmp9_;
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_set (_tmp6_, "text", _tmp10_, NULL);
#line 238 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (_tmp10_);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (r);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (item);
#line 2414 "gitg-sidebar.c"
}


static void __gitg_sidebar___lambda76__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_gitg_sidebar___lambda76_ ((GitgSidebar*) self, cell_layout, cell, tree_model, iter);
#line 2421 "gitg-sidebar.c"
}


static void _gitg_sidebar___lambda77_ (GitgSidebar* self, GtkCellLayout* layout, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
	GitgSidebarHint hint = 0;
	GitgSidebarItem* item = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp2_ = NULL;
	GitgSidebarHint _tmp3_ = 0;
	GtkCellRendererText* r = NULL;
	GtkCellRenderer* _tmp4_ = NULL;
	GtkCellRendererText* _tmp5_ = NULL;
	GtkCellRendererText* _tmp6_ = NULL;
	GitgSidebarItem* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	GitgSidebarHint _tmp11_ = 0;
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (layout != NULL);
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (cell != NULL);
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (model != NULL);
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_if_fail (iter != NULL);
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = model;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = *iter;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, GITG_SIDEBAR_COLUMN_HINT, &hint, GITG_SIDEBAR_COLUMN_ITEM, &item, -1);
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = cell;
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = hint;
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_renderer_set_visible (_tmp2_, _tmp3_ != GITG_SIDEBAR_HINT_HEADER);
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = cell;
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_cell_renderer_text_get_type (), GtkCellRendererText));
#line 249 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	r = _tmp5_;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = r;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = item;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = gitg_sidebar_item_get_text (_tmp7_);
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp9_ = _tmp8_;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp10_ = _tmp9_;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_set (_tmp6_, "text", _tmp10_, NULL);
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_free0 (_tmp10_);
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp11_ = hint;
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	if (_tmp11_ == GITG_SIDEBAR_HINT_DUMMY) {
#line 2485 "gitg-sidebar.c"
		GtkStyleContext* context = NULL;
		GtkStyleContext* _tmp12_ = NULL;
		GtkStyleContext* _tmp13_ = NULL;
		GtkStyleContext* _tmp14_ = NULL;
		GtkStyleContext* _tmp15_ = NULL;
		GdkRGBA col = {0};
		GtkStyleContext* _tmp16_ = NULL;
		GtkStyleContext* _tmp17_ = NULL;
		GtkStateFlags _tmp18_ = 0;
		GdkRGBA _tmp19_ = {0};
		GtkStyleContext* _tmp20_ = NULL;
		GtkCellRendererText* _tmp21_ = NULL;
		GdkRGBA _tmp22_ = {0};
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp12_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp13_ = _g_object_ref0 (_tmp12_);
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		context = _tmp13_;
#line 256 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp14_ = context;
#line 256 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_style_context_save (_tmp14_);
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp15_ = context;
#line 257 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_style_context_set_state (_tmp15_, GTK_STATE_FLAG_INSENSITIVE);
#line 258 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp16_ = context;
#line 258 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp17_ = context;
#line 258 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp18_ = gtk_style_context_get_state (_tmp17_);
#line 258 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_style_context_get_color (_tmp16_, _tmp18_, &_tmp19_);
#line 258 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		col = _tmp19_;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp20_ = context;
#line 259 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gtk_style_context_restore (_tmp20_);
#line 261 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp21_ = r;
#line 261 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp22_ = col;
#line 261 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_object_set (_tmp21_, "foreground-rgba", &_tmp22_, NULL);
#line 252 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_g_object_unref0 (context);
#line 2535 "gitg-sidebar.c"
	} else {
		GtkCellRendererText* _tmp23_ = NULL;
#line 265 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		_tmp23_ = r;
#line 265 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_object_set (_tmp23_, "foreground-set", FALSE, NULL);
#line 2542 "gitg-sidebar.c"
	}
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (r);
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (item);
#line 2548 "gitg-sidebar.c"
}


static void __gitg_sidebar___lambda77__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_gitg_sidebar___lambda77_ ((GitgSidebar*) self, cell_layout, cell, tree_model, iter);
#line 2555 "gitg-sidebar.c"
}


static gboolean _gitg_sidebar___lambda78_ (GitgSidebar* self, GtkTreeModel* model, GtkTreeIter* iter) {
	gboolean result = FALSE;
	GitgSidebarHint hint = 0;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GitgSidebarHint _tmp2_ = 0;
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (model != NULL, FALSE);
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_return_val_if_fail (iter != NULL, FALSE);
#line 271 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = model;
#line 271 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = *iter;
#line 271 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, GITG_SIDEBAR_COLUMN_HINT, &hint, -1);
#line 273 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = hint;
#line 273 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	result = _tmp2_ == GITG_SIDEBAR_HINT_SEPARATOR;
#line 273 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2581 "gitg-sidebar.c"
}


static gboolean __gitg_sidebar___lambda78__gtk_tree_view_row_separator_func (GtkTreeModel* model, GtkTreeIter* iter, gpointer self) {
	gboolean result;
	result = _gitg_sidebar___lambda78_ ((GitgSidebar*) self, model, iter);
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2590 "gitg-sidebar.c"
}


static gboolean _gitg_sidebar_select_function_gtk_tree_selection_func (GtkTreeSelection* selection, GtkTreeModel* model, GtkTreePath* path, gboolean path_currently_selected, gpointer self) {
	gboolean result;
	result = gitg_sidebar_select_function ((GitgSidebar*) self, selection, model, path, path_currently_selected);
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return result;
#line 2599 "gitg-sidebar.c"
}


static void _gitg_sidebar_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_selection_changed ((GitgSidebar*) self, _sender);
#line 2606 "gitg-sidebar.c"
}


static GObject * gitg_sidebar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgSidebar * self;
	GtkTreeViewColumn* _tmp0_ = NULL;
	GtkCellRendererPixbuf* _tmp1_ = NULL;
	GtkTreeViewColumn* _tmp2_ = NULL;
	GtkCellRendererText* _tmp3_ = NULL;
	GtkTreeViewColumn* _tmp4_ = NULL;
	GtkCellRendererText* _tmp5_ = NULL;
	GtkTreeSelection* sel = NULL;
	GtkTreeSelection* _tmp6_ = NULL;
	GtkTreeSelection* _tmp7_ = NULL;
	GtkTreeSelection* _tmp8_ = NULL;
	GtkTreeSelection* _tmp9_ = NULL;
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	parent_class = G_OBJECT_CLASS (gitg_sidebar_parent_class);
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_SIDEBAR, GitgSidebar);
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp0_ = self->priv->d_column;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp1_ = self->priv->d_renderer_icon;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp0_, (GtkCellRenderer*) _tmp1_, __gitg_sidebar___lambda75__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp2_ = self->priv->d_column;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp3_ = self->priv->d_renderer_header;
#line 229 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp2_, (GtkCellRenderer*) _tmp3_, __gitg_sidebar___lambda76__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp4_ = self->priv->d_column;
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp5_ = self->priv->d_renderer_text;
#line 241 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp4_, (GtkCellRenderer*) _tmp5_, __gitg_sidebar___lambda77__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 269 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_view_set_row_separator_func ((GtkTreeView*) self, __gitg_sidebar___lambda78__gtk_tree_view_row_separator_func, g_object_ref (self), g_object_unref);
#line 276 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp6_ = gtk_tree_view_get_selection ((GtkTreeView*) self);
#line 276 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 276 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	sel = _tmp7_;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp8_ = sel;
#line 278 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_tree_selection_set_select_function (_tmp8_, _gitg_sidebar_select_function_gtk_tree_selection_func, g_object_ref (self), g_object_unref);
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_tmp9_ = sel;
#line 280 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_signal_connect_object (_tmp9_, "changed", (GCallback) _gitg_sidebar_selection_changed_gtk_tree_selection_changed, self, 0);
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (sel);
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	return obj;
#line 2669 "gitg-sidebar.c"
}


static void gitg_sidebar_class_init (GitgSidebarClass * klass) {
	gint GitgSidebar_private_offset;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gitg_sidebar_parent_class = g_type_class_peek_parent (klass);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_type_class_add_private (klass, sizeof (GitgSidebarPrivate));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GitgSidebarClass *) klass)->select_function = (gboolean (*)(GitgSidebar*, GtkTreeSelection*, GtkTreeModel*, GtkTreePath*, gboolean)) gitg_sidebar_real_select_function;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GitgSidebarClass *) klass)->selection_changed = (void (*)(GitgSidebar*, GtkTreeSelection*)) gitg_sidebar_real_selection_changed;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GtkTreeViewClass *) klass)->row_activated = (void (*)(GtkTreeView*, GtkTreePath*, GtkTreeViewColumn*)) gitg_sidebar_real_row_activated;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GtkWidgetClass *) klass)->key_press_event = (gboolean (*)(GtkWidget*, GdkEventKey*)) gitg_sidebar_real_key_press_event;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GtkWidgetClass *) klass)->button_press_event = (gboolean (*)(GtkWidget*, GdkEventButton*)) gitg_sidebar_real_button_press_event;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	((GtkWidgetClass *) klass)->popup_menu = (gboolean (*)(GtkWidget*)) gitg_sidebar_real_popup_menu;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_sidebar_get_property;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_sidebar_set_property;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_sidebar_constructor;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_sidebar_finalize;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_SIDEBAR_MODEL, g_param_spec_object ("model", "model", "model", GITG_TYPE_SIDEBAR_STORE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	GitgSidebar_private_offset = g_type_class_get_instance_private_offset (klass);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-sidebar.ui");
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_signal_new ("deselected", GITG_TYPE_SIDEBAR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	g_signal_new ("populate_popup", GITG_TYPE_SIDEBAR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, gtk_menu_get_type ());
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "column", FALSE, GitgSidebar_private_offset + G_STRUCT_OFFSET (GitgSidebarPrivate, d_column));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "renderer_icon", FALSE, GitgSidebar_private_offset + G_STRUCT_OFFSET (GitgSidebarPrivate, d_renderer_icon));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "renderer_header", FALSE, GitgSidebar_private_offset + G_STRUCT_OFFSET (GitgSidebarPrivate, d_renderer_header));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "renderer_text", FALSE, GitgSidebar_private_offset + G_STRUCT_OFFSET (GitgSidebarPrivate, d_renderer_text));
#line 2717 "gitg-sidebar.c"
}


static void gitg_sidebar_instance_init (GitgSidebar * self) {
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self->priv = GITG_SIDEBAR_GET_PRIVATE (self);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 2726 "gitg-sidebar.c"
}


static void gitg_sidebar_finalize (GObject* obj) {
	GitgSidebar * self;
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_SIDEBAR, GitgSidebar);
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (self->priv->d_column);
#line 205 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (self->priv->d_renderer_icon);
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (self->priv->d_renderer_header);
#line 211 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	_g_object_unref0 (self->priv->d_renderer_text);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	G_OBJECT_CLASS (gitg_sidebar_parent_class)->finalize (obj);
#line 2744 "gitg-sidebar.c"
}


GType gitg_sidebar_get_type (void) {
	static volatile gsize gitg_sidebar_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_sidebar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgSidebarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_sidebar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgSidebar), 0, (GInstanceInitFunc) gitg_sidebar_instance_init, NULL };
		GType gitg_sidebar_type_id;
		gitg_sidebar_type_id = g_type_register_static (gtk_tree_view_get_type (), "GitgSidebar", &g_define_type_info, 0);
		g_once_init_leave (&gitg_sidebar_type_id__volatile, gitg_sidebar_type_id);
	}
	return gitg_sidebar_type_id__volatile;
}


static void _vala_gitg_sidebar_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgSidebar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_SIDEBAR, GitgSidebar);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (property_id) {
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_MODEL:
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		g_value_set_object (value, gitg_sidebar_get_model (self));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 2771 "gitg-sidebar.c"
		default:
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 2777 "gitg-sidebar.c"
	}
}


static void _vala_gitg_sidebar_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgSidebar * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_SIDEBAR, GitgSidebar);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
	switch (property_id) {
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		case GITG_SIDEBAR_MODEL:
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		gitg_sidebar_set_model (self, g_value_get_object (value));
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 2793 "gitg-sidebar.c"
		default:
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 199 "/home/jesse/dev/gitg/libgitg/gitg-sidebar.vala"
		break;
#line 2799 "gitg-sidebar.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



