/* gitg-window.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-window.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include "libgitg-ext/libgitg-ext.h"
#include <gio/gio.h>
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <libgd/gd.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <libpeas/peas.h>


#define GITG_TYPE_WINDOW (gitg_window_get_type ())
#define GITG_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_WINDOW, GitgWindow))
#define GITG_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_WINDOW, GitgWindowClass))
#define GITG_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_WINDOW))
#define GITG_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_WINDOW))
#define GITG_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_WINDOW, GitgWindowClass))

typedef struct _GitgWindow GitgWindow;
typedef struct _GitgWindowClass GitgWindowClass;
typedef struct _GitgWindowPrivate GitgWindowPrivate;

#define GITG_TYPE_UI_ELEMENTS (gitg_ui_elements_get_type ())
#define GITG_UI_ELEMENTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_UI_ELEMENTS, GitgUIElements))
#define GITG_UI_ELEMENTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_UI_ELEMENTS, GitgUIElementsClass))
#define GITG_IS_UI_ELEMENTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_UI_ELEMENTS))
#define GITG_IS_UI_ELEMENTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_UI_ELEMENTS))
#define GITG_UI_ELEMENTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_UI_ELEMENTS, GitgUIElementsClass))

typedef struct _GitgUIElements GitgUIElements;
typedef struct _GitgUIElementsClass GitgUIElementsClass;

#define GITG_TYPE_REMOTE_MANAGER (gitg_remote_manager_get_type ())
#define GITG_REMOTE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REMOTE_MANAGER, GitgRemoteManager))
#define GITG_REMOTE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REMOTE_MANAGER, GitgRemoteManagerClass))
#define GITG_IS_REMOTE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REMOTE_MANAGER))
#define GITG_IS_REMOTE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REMOTE_MANAGER))
#define GITG_REMOTE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REMOTE_MANAGER, GitgRemoteManagerClass))

typedef struct _GitgRemoteManager GitgRemoteManager;
typedef struct _GitgRemoteManagerClass GitgRemoteManagerClass;

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

typedef struct _GitgNotifications GitgNotifications;
typedef struct _GitgNotificationsClass GitgNotificationsClass;

#define GITG_TYPE_DASH_VIEW (gitg_dash_view_get_type ())
#define GITG_DASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DASH_VIEW, GitgDashView))
#define GITG_DASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DASH_VIEW, GitgDashViewClass))
#define GITG_IS_DASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DASH_VIEW))
#define GITG_IS_DASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DASH_VIEW))
#define GITG_DASH_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DASH_VIEW, GitgDashViewClass))

typedef struct _GitgDashView GitgDashView;
typedef struct _GitgDashViewClass GitgDashViewClass;

#define GITG_WINDOW_TYPE_MODE (gitg_window_mode_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block35Data Block35Data;

#define GITG_TYPE_CLONE_DIALOG (gitg_clone_dialog_get_type ())
#define GITG_CLONE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_CLONE_DIALOG, GitgCloneDialog))
#define GITG_CLONE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_CLONE_DIALOG, GitgCloneDialogClass))
#define GITG_IS_CLONE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_CLONE_DIALOG))
#define GITG_IS_CLONE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_CLONE_DIALOG))
#define GITG_CLONE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_CLONE_DIALOG, GitgCloneDialogClass))

typedef struct _GitgCloneDialog GitgCloneDialog;
typedef struct _GitgCloneDialogClass GitgCloneDialogClass;
typedef struct _Block36Data Block36Data;

#define GITG_TYPE_AUTHOR_DETAILS_DIALOG (gitg_author_details_dialog_get_type ())
#define GITG_AUTHOR_DETAILS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialog))
#define GITG_AUTHOR_DETAILS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialogClass))
#define GITG_IS_AUTHOR_DETAILS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG))
#define GITG_IS_AUTHOR_DETAILS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_AUTHOR_DETAILS_DIALOG))
#define GITG_AUTHOR_DETAILS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_AUTHOR_DETAILS_DIALOG, GitgAuthorDetailsDialogClass))

typedef struct _GitgAuthorDetailsDialog GitgAuthorDetailsDialog;
typedef struct _GitgAuthorDetailsDialogClass GitgAuthorDetailsDialogClass;
typedef struct _Block37Data Block37Data;

#define GITG_TYPE_APPLICATION (gitg_application_get_type ())
#define GITG_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_APPLICATION, GitgApplication))
#define GITG_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_APPLICATION, GitgApplicationClass))
#define GITG_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_APPLICATION))
#define GITG_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_APPLICATION))
#define GITG_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_APPLICATION, GitgApplicationClass))

typedef struct _GitgApplication GitgApplication;
typedef struct _GitgApplicationClass GitgApplicationClass;

#define GITG_TYPE_PLUGINS_ENGINE (gitg_plugins_engine_get_type ())
#define GITG_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngine))
#define GITG_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))
#define GITG_IS_PLUGINS_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_IS_PLUGINS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PLUGINS_ENGINE))
#define GITG_PLUGINS_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PLUGINS_ENGINE, GitgPluginsEngineClass))

typedef struct _GitgPluginsEngine GitgPluginsEngine;
typedef struct _GitgPluginsEngineClass GitgPluginsEngineClass;

#define GITG_HISTORY_TYPE_ACTIVITY (gitg_history_activity_get_type ())
#define GITG_HISTORY_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivity))
#define GITG_HISTORY_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivityClass))
#define GITG_HISTORY_IS_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_ACTIVITY))
#define GITG_HISTORY_IS_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_ACTIVITY))
#define GITG_HISTORY_ACTIVITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_ACTIVITY, GitgHistoryActivityClass))

typedef struct _GitgHistoryActivity GitgHistoryActivity;
typedef struct _GitgHistoryActivityClass GitgHistoryActivityClass;

#define GITG_COMMIT_TYPE_ACTIVITY (gitg_commit_activity_get_type ())
#define GITG_COMMIT_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_COMMIT_TYPE_ACTIVITY, GitgCommitActivity))
#define GITG_COMMIT_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_COMMIT_TYPE_ACTIVITY, GitgCommitActivityClass))
#define GITG_COMMIT_IS_ACTIVITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_COMMIT_TYPE_ACTIVITY))
#define GITG_COMMIT_IS_ACTIVITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_COMMIT_TYPE_ACTIVITY))
#define GITG_COMMIT_ACTIVITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_COMMIT_TYPE_ACTIVITY, GitgCommitActivityClass))

typedef struct _GitgCommitActivity GitgCommitActivity;
typedef struct _GitgCommitActivityClass GitgCommitActivityClass;
typedef struct _Block38Data Block38Data;
typedef struct _Block39Data Block39Data;

struct _GitgWindow {
	GtkApplicationWindow parent_instance;
	GitgWindowPrivate * priv;
};

struct _GitgWindowClass {
	GtkApplicationWindowClass parent_class;
	gboolean (*change_to_activity) (GitgWindow* self, gint i);
	void (*cancel) (GitgWindow* self);
};

typedef enum  {
	GITG_WINDOW_MODE_DASH,
	GITG_WINDOW_MODE_ACTIVITY
} GitgWindowMode;

struct _GitgWindowPrivate {
	GSettings* d_state_settings;
	GSettings* d_interface_settings;
	GitgRepository* d_repository;
	GitgExtMessageBus* d_message_bus;
	gchar* d_action;
	GeeHashMap* d_environment;
	gboolean d_busy;
	GtkDialog* d_dialog;
	GtkWidget* d_select_actions;
	GBinding* d_selectable_mode_binding;
	GitgExtSelectionMode d_selectable_mode;
	GitgUIElements* d_activities;
	GitgRemoteManager* d_remote_manager;
	GitgNotifications* d_notifications;
	GtkHeaderBar* d_header_bar;
	GtkToggleButton* d_search_button;
	GtkMenuButton* d_gear_menu;
	GMenuModel* d_dash_model;
	GMenuModel* d_activities_model;
	GtkGrid* d_grid_main;
	GtkToggleButton* d_select_button;
	GtkButton* d_select_cancel_button;
	GtkButton* d_dash_button;
	GtkImage* dash_image;
	GtkStackSwitcher* d_activities_switcher;
	GtkSearchBar* d_search_bar;
	GdTaggedEntry* d_search_entry;
	GtkStack* d_main_stack;
	GtkScrolledWindow* d_dash_scrolled_window;
	GitgDashView* d_dash_view;
	GtkStack* d_stack_activities;
	GtkInfoBar* d_infobar;
	GtkLabel* d_infobar_primary_label;
	GtkLabel* d_infobar_secondary_label;
	GtkOverlay* d_overlay;
	GitgWindowMode d_mode;
};

struct _Block35Data {
	int _ref_count_;
	GitgWindow* self;
	GtkFileChooserDialog* chooser;
};

struct _Block36Data {
	int _ref_count_;
	GitgWindow* self;
	GitgCloneDialog* dlg;
};

struct _Block37Data {
	int _ref_count_;
	GitgWindow* self;
	GitgExtActivity* def;
	GitgExtActivity* deffb;
	gchar* default_activity;
};

typedef gboolean (*GitgUIElementsForeachUIElementFunc) (GitgExtUIElement* element, void* user_data);
struct _Block38Data {
	int _ref_count_;
	GitgWindow* self;
	GtkMessageDialog* dlg;
	gulong qid;
	GitgExtUserQuery* query;
};

struct _Block39Data {
	int _ref_count_;
	GitgWindow* self;
	GAction* selact;
};


static gpointer gitg_window_parent_class = NULL;
static GitgExtApplicationIface* gitg_window_gitg_ext_application_parent_iface = NULL;
static GInitableIface* gitg_window_g_initable_parent_iface = NULL;

GType gitg_window_get_type (void) G_GNUC_CONST;
GType gitg_ui_elements_get_type (void) G_GNUC_CONST;
GType gitg_remote_manager_get_type (void) G_GNUC_CONST;
GType gitg_notifications_get_type (void) G_GNUC_CONST;
GType gitg_dash_view_get_type (void) G_GNUC_CONST;
static GType gitg_window_mode_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_WINDOW, GitgWindowPrivate))
enum  {
	GITG_WINDOW_DUMMY_PROPERTY,
	GITG_WINDOW_CURRENT_ACTIVITY,
	GITG_WINDOW_MESSAGE_BUS,
	GITG_WINDOW_REPOSITORY,
	GITG_WINDOW_ENVIRONMENT,
	GITG_WINDOW_BUSY,
	GITG_WINDOW_SELECTABLE_MODE,
	GITG_WINDOW_REMOTE_LOOKUP,
	GITG_WINDOW_NOTIFICATIONS
};
static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_search_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_gear_menu_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_open_repository (GitgWindow* self);
static void _gitg_window_on_open_repository_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_clone_repository (GitgWindow* self);
static void _gitg_window_on_clone_repository_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_close_activated (GitgWindow* self);
static void _gitg_window_on_close_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_reload_activated (GitgWindow* self);
static void _gitg_window_on_reload_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_global_author_details_activated (GitgWindow* self);
static void _gitg_window_on_global_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_repo_author_details_activated (GitgWindow* self);
static void _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_select_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_select_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash);
static void _gitg_window_dash_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_search_button_toggled (GitgWindow* self, GtkToggleButton* button);
static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
static void gitg_window_search_entry_changed (GitgWindow* self, GtkEditable* entry);
static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
static void gitg_window_dash_view_repository_activated (GitgWindow* self, GitgRepository* r);
static void _gitg_window_dash_view_repository_activated_gitg_repository_list_box_repository_activated (GitgRepositoryListBox* _sender, GitgRepository* repository, gpointer self);
static void gitg_window_dash_view_show_error (GitgWindow* self, const gchar* title, const gchar* message);
static void _gitg_window_dash_view_show_error_gitg_repository_list_box_show_error (GitgRepositoryListBox* _sender, const gchar* primary_message, const gchar* secondary_message, gpointer self);
static GitgExtApplication* gitg_window_real_open_new (GitgExtApplication* base, GgitRepository* repository, const gchar* hint);
GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action);
static void gitg_window_update_title (GitgWindow* self);
static void gitg_window_repository_changed (GitgWindow* self);
void gitg_ui_elements_update (GitgUIElements* self);
static void gitg_window_activate_default_activity (GitgWindow* self);
static void gitg_window_on_current_activity_changed (GitgWindow* self);
static gboolean gitg_window_real_window_state_event (GtkWidget* base, GdkEventWindowState* event);
static gboolean gitg_window_real_configure_event (GtkWidget* base, GdkEventConfigure* event);
static Block35Data* block35_data_ref (Block35Data* _data35_);
static void block35_data_unref (void * _userdata_);
static void __lambda74_ (Block35Data* _data35_, GtkDialog* c, gint id);
static void gitg_window_open_repository (GitgWindow* self, GFile* path);
static void ___lambda74__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
GitgRemoteManager* gitg_remote_manager_new (GitgWindow* window);
GitgRemoteManager* gitg_remote_manager_construct (GType object_type, GitgWindow* window);
GType gitg_clone_dialog_get_type (void) G_GNUC_CONST;
static Block36Data* block36_data_ref (Block36Data* _data36_);
static void block36_data_unref (void * _userdata_);
GitgCloneDialog* gitg_clone_dialog_new (GtkWindow* parent);
GitgCloneDialog* gitg_clone_dialog_construct (GType object_type, GtkWindow* parent);
static void __lambda77_ (Block36Data* _data36_, GtkDialog* d, gint id);
const gchar* gitg_clone_dialog_get_url (GitgCloneDialog* self);
GFile* gitg_clone_dialog_get_location (GitgCloneDialog* self);
gboolean gitg_clone_dialog_get_is_bare (GitgCloneDialog* self);
static void ___lambda77__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
GType gitg_author_details_dialog_get_type (void) G_GNUC_CONST;
GitgAuthorDetailsDialog* gitg_author_details_dialog_new (GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
GitgAuthorDetailsDialog* gitg_author_details_dialog_construct (GType object_type, GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
static Block37Data* block37_data_ref (Block37Data* _data37_);
static void block37_data_unref (void * _userdata_);
void gitg_ui_elements_foreach (GitgUIElements* self, GitgUIElementsForeachUIElementFunc func, void* func_target);
static gboolean __lambda70_ (Block37Data* _data37_, GitgExtUIElement* element);
static gboolean ___lambda70__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
void gitg_ui_elements_set_current (GitgUIElements* self, gconstpointer value);
static gboolean gitg_window_real_init (GInitable* base, GCancellable* cancellable, GError** error);
GType gitg_application_get_type (void) G_GNUC_CONST;
GSettings* gitg_application_get_state_settings (GitgApplication* self);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
GitgHistoryActivity* gitg_history_activity_new (GitgExtApplication* application);
GitgHistoryActivity* gitg_history_activity_construct (GType object_type, GitgExtApplication* application);
GType gitg_history_activity_get_type (void) G_GNUC_CONST;
GitgCommitActivity* gitg_commit_activity_new (GitgExtApplication* application);
GitgCommitActivity* gitg_commit_activity_construct (GType object_type, GitgExtApplication* application);
GType gitg_commit_activity_get_type (void) G_GNUC_CONST;
GitgUIElements* gitg_ui_elements_new_with_builtin (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, gpointer* builtin, int builtin_length1, PeasExtensionSet* extensions, GtkStack* stack);
GitgUIElements* gitg_ui_elements_construct_with_builtin (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, gpointer* builtin, int builtin_length1, PeasExtensionSet* extensions, GtkStack* stack);
static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
void gitg_window_set_environment (GitgWindow* self, gchar** environment, int environment_length1);
GitgWindow* gitg_window_new (void);
GitgWindow* gitg_window_construct (GType object_type);
static GitgExtActivity* gitg_window_real_activity (GitgExtApplication* base, const gchar* id);
gpointer gitg_ui_elements_lookup (GitgUIElements* self, const gchar* id);
gconstpointer gitg_ui_elements_get_current (GitgUIElements* self);
static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type);
static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query);
static Block38Data* block38_data_ref (Block38Data* _data38_);
static void block38_data_unref (void * _userdata_);
static void __lambda113_ (Block38Data* _data38_);
static void ___lambda113__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self);
static void __lambda114_ (Block38Data* _data38_, GtkDialog* w, gint r);
static void ___lambda114__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self);
void gitg_window_set_selectable_mode (GitgWindow* self, GitgExtSelectionMode value);
static void _gitg_window_on_select_cancel_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self);
static gboolean gitg_window_real_change_to_activity (GitgWindow* self, gint i);
gpointer* gitg_ui_elements_get_available_elements (GitgUIElements* self, int* result_length1);
static void g_cclosure_user_marshal_BOOLEAN__INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void gitg_window_real_cancel (GitgWindow* self);
static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static Block39Data* block39_data_ref (Block39Data* _data39_);
static void block39_data_unref (void * _userdata_);
GitgNotifications* gitg_notifications_new (GtkOverlay* overlay);
GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay);
static void _gitg_window___lambda115_ (Block39Data* _data39_);
static void __gitg_window___lambda115__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gpointer gitg_resource_load_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* id, const gchar* object);
static void _gitg_window___lambda116_ (GitgWindow* self, GtkInfoBar* w, gint r);
static void __gitg_window___lambda116__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self);
static void gitg_window_finalize (GObject* obj);
static void _vala_gitg_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_window_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);
static gint _vala_array_length (gpointer array);

static const GActionEntry GITG_WINDOW_win_entries[9] = {{"search", _gitg_window_on_search_activated_gsimple_action_activate_callback, NULL, "false", NULL}, {"gear-menu", _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback, NULL, "false", NULL}, {"open-repository", _gitg_window_on_open_repository_gsimple_action_activate_callback}, {"clone-repository", _gitg_window_on_clone_repository_gsimple_action_activate_callback}, {"close", _gitg_window_on_close_activated_gsimple_action_activate_callback}, {"reload", _gitg_window_on_reload_activated_gsimple_action_activate_callback}, {"author-details-global", _gitg_window_on_global_author_details_activated_gsimple_action_activate_callback}, {"author-details-repo", _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback}, {"select", _gitg_window_on_select_activated_gsimple_action_activate_callback, NULL, "false", NULL}};

static GType gitg_window_mode_get_type (void) {
	static volatile gsize gitg_window_mode_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_window_mode_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_WINDOW_MODE_DASH, "GITG_WINDOW_MODE_DASH", "dash"}, {GITG_WINDOW_MODE_ACTIVITY, "GITG_WINDOW_MODE_ACTIVITY", "activity"}, {0, NULL, NULL}};
		GType gitg_window_mode_type_id;
		gitg_window_mode_type_id = g_enum_register_static ("GitgWindowMode", values);
		g_once_init_leave (&gitg_window_mode_type_id__volatile, gitg_window_mode_type_id);
	}
	return gitg_window_mode_type_id__volatile;
}


static void _gitg_window_on_search_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_search_activated ((GitgWindow*) self, action);
#line 409 "gitg-window.c"
}


static void _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_gear_menu_activated ((GitgWindow*) self, action);
#line 416 "gitg-window.c"
}


static void _gitg_window_on_open_repository_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_open_repository ((GitgWindow*) self);
#line 423 "gitg-window.c"
}


static void _gitg_window_on_clone_repository_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_clone_repository ((GitgWindow*) self);
#line 430 "gitg-window.c"
}


static void _gitg_window_on_close_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_close_activated ((GitgWindow*) self);
#line 437 "gitg-window.c"
}


static void _gitg_window_on_reload_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_reload_activated ((GitgWindow*) self);
#line 444 "gitg-window.c"
}


static void _gitg_window_on_global_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_global_author_details_activated ((GitgWindow*) self);
#line 451 "gitg-window.c"
}


static void _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_repo_author_details_activated ((GitgWindow*) self);
#line 458 "gitg-window.c"
}


static void _gitg_window_on_select_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 141 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_select_activated ((GitgWindow*) self, action);
#line 465 "gitg-window.c"
}


static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash) {
#line 154 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 154 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (dash != NULL);
#line 156 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 476 "gitg-window.c"
}


static void _gitg_window_dash_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_dash_button_clicked ((GitgWindow*) self, _sender);
#line 483 "gitg-window.c"
}


static void gitg_window_search_button_toggled (GitgWindow* self, GtkToggleButton* button) {
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSearchable* _tmp2_ = NULL;
	GtkToggleButton* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (button != NULL);
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 508 "gitg-window.c"
	}
#line 162 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = button;
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
#line 164 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 518 "gitg-window.c"
		GdTaggedEntry* _tmp5_ = NULL;
		GdTaggedEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GitgExtSearchable* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		GdTaggedEntry* _tmp13_ = NULL;
#line 166 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_entry;
#line 166 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 168 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 169 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = searchable;
#line 169 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp11_, TRUE);
#line 170 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 170 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_search_entry;
#line 170 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp12_, (GtkEntry*) _tmp13_);
#line 556 "gitg-window.c"
	} else {
		GitgExtSearchable* _tmp14_ = NULL;
		GitgExtSearchable* _tmp15_ = NULL;
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = searchable;
#line 174 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp14_, FALSE);
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 175 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp15_, NULL);
#line 568 "gitg-window.c"
	}
#line 160 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 572 "gitg-window.c"
}


static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_search_button_toggled ((GitgWindow*) self, _sender);
#line 579 "gitg-window.c"
}


static void gitg_window_search_entry_changed (GitgWindow* self, GtkEditable* entry) {
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSearchable* _tmp2_ = NULL;
	gchar* ntext = NULL;
	GtkEditable* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GitgExtSearchable* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (entry != NULL);
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 613 "gitg-window.c"
	}
#line 182 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = entry;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp3_) : NULL);
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 183 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	ntext = _tmp6_;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = ntext;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = searchable;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_ext_searchable_get_search_text (_tmp8_);
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = _tmp10_;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strcmp0 (_tmp7_, _tmp11_) != 0;
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp11_);
#line 185 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 643 "gitg-window.c"
		GitgExtSearchable* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = searchable;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = ntext;
#line 187 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_text (_tmp13_, _tmp14_);
#line 652 "gitg-window.c"
	}
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (ntext);
#line 180 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 658 "gitg-window.c"
}


static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_search_entry_changed ((GitgWindow*) self, _sender);
#line 665 "gitg-window.c"
}


static void gitg_window_dash_view_repository_activated (GitgWindow* self, GitgRepository* r) {
	GitgRepository* _tmp0_ = NULL;
#line 192 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 192 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (r != NULL);
#line 194 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = r;
#line 194 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp0_);
#line 679 "gitg-window.c"
}


static void _gitg_window_dash_view_repository_activated_gitg_repository_list_box_repository_activated (GitgRepositoryListBox* _sender, GitgRepository* repository, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_dash_view_repository_activated ((GitgWindow*) self, repository);
#line 686 "gitg-window.c"
}


static void gitg_window_dash_view_show_error (GitgWindow* self, const gchar* title, const gchar* message) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 198 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 198 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (title != NULL);
#line 198 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (message != NULL);
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = title;
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = message;
#line 200 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp0_, _tmp1_, GTK_MESSAGE_ERROR);
#line 705 "gitg-window.c"
}


static void _gitg_window_dash_view_show_error_gitg_repository_list_box_show_error (GitgRepositoryListBox* _sender, const gchar* primary_message, const gchar* secondary_message, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_dash_view_show_error ((GitgWindow*) self, primary_message, secondary_message);
#line 712 "gitg-window.c"
}


static void gitg_window_on_close_activated (GitgWindow* self) {
#line 296 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 298 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_close ((GtkWindow*) self);
#line 721 "gitg-window.c"
}


static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 301 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 301 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_search_button;
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 303 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 741 "gitg-window.c"
		gboolean state = FALSE;
		GSimpleAction* _tmp3_ = NULL;
		GVariant* _tmp4_ = NULL;
		GVariant* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp7_ = FALSE;
		GSimpleAction* _tmp8_ = NULL;
		gboolean _tmp9_ = FALSE;
		GVariant* _tmp10_ = NULL;
		GVariant* _tmp11_ = NULL;
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = action;
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_action_get_state ((GAction*) _tmp3_);
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_variant_get_boolean (_tmp5_);
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp5_);
#line 305 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		state = _tmp7_;
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = action;
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = state;
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_variant_new_boolean (!_tmp9_);
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_variant_ref_sink (_tmp10_);
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_simple_action_set_state (_tmp8_, _tmp11_);
#line 306 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp11_);
#line 780 "gitg-window.c"
	}
}


static void gitg_window_on_gear_menu_activated (GitgWindow* self, GSimpleAction* action) {
	gboolean state = FALSE;
	GSimpleAction* _tmp0_ = NULL;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GSimpleAction* _tmp5_ = NULL;
	GVariant* _tmp6_ = NULL;
	GVariant* _tmp7_ = NULL;
#line 310 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 310 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 312 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	state = _tmp4_;
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!state);
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 314 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 825 "gitg-window.c"
}


static GitgExtApplication* gitg_window_real_open_new (GitgExtApplication* base, GgitRepository* repository, const gchar* hint) {
	GitgWindow * self;
	GitgExtApplication* result = NULL;
	GitgWindow* window = NULL;
	GtkApplication* _tmp0_ = NULL;
	GtkApplication* _tmp1_ = NULL;
	GgitRepository* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GitgWindow* _tmp4_ = NULL;
#line 351 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 351 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = hint;
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_window_create_new (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GITG_TYPE_REPOSITORY, GitgRepository), _tmp3_);
#line 353 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	window = _tmp4_;
#line 354 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) window);
#line 356 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = (GitgExtApplication*) window;
#line 356 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 860 "gitg-window.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 873 "gitg-window.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 904 "gitg-window.c"
				goto __catch65_g_regex_error;
			}
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			return NULL;
#line 913 "gitg-window.c"
		}
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 929 "gitg-window.c"
				goto __catch65_g_regex_error;
			}
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
			return NULL;
#line 940 "gitg-window.c"
		}
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return result;
#line 954 "gitg-window.c"
	}
	goto __finally65;
	__catch65_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 968 "gitg-window.c"
	}
	__finally65:
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		return NULL;
#line 979 "gitg-window.c"
	}
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1314 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1315 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	result = self;
#line 1315 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 992 "gitg-window.c"
}


static void gitg_window_update_title (GitgWindow* self) {
	GitgRepository* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 359 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 1005 "gitg-window.c"
		GFile* workdir = NULL;
		GitgRepository* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		gchar* name = NULL;
		GFile* _tmp3_ = NULL;
		GtkHeaderBar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
		gchar* head_name = NULL;
		GtkHeaderBar* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		gchar* _tmp46_ = NULL;
		gchar* _tmp47_ = NULL;
#line 364 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 364 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_workdir ((GgitRepository*) _tmp1_);
#line 364 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		workdir = _tmp2_;
#line 367 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = workdir;
#line 367 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp3_ != NULL) {
#line 1028 "gitg-window.c"
			gchar* parent_path = NULL;
			GFile* _tmp4_ = NULL;
			GFile* _tmp5_ = NULL;
			GFile* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gboolean contains_home_dir = FALSE;
			const gchar* _tmp9_ = NULL;
			const gchar* _tmp10_ = NULL;
			gboolean _tmp11_ = FALSE;
			gboolean _tmp12_ = FALSE;
			GitgRepository* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			const gchar* _tmp20_ = NULL;
			const gchar* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			const gchar* _tmp24_ = NULL;
			const gchar* _tmp25_ = NULL;
			gchar* _tmp26_ = NULL;
			gchar* _tmp27_ = NULL;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp4_ = workdir;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp5_ = g_file_get_parent (_tmp4_);
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp6_ = _tmp5_;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp7_ = g_file_get_path (_tmp6_);
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp8_ = _tmp7_;
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp6_);
#line 369 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			parent_path = _tmp8_;
#line 370 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp9_ = parent_path;
#line 370 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp10_ = g_get_home_dir ();
#line 370 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp11_ = g_str_has_prefix (_tmp9_, _tmp10_);
#line 370 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			contains_home_dir = _tmp11_;
#line 372 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp12_ = contains_home_dir;
#line 372 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			if (_tmp12_) {
#line 1078 "gitg-window.c"
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
#line 374 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp13_ = parent_path;
#line 374 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp14_ = g_get_home_dir ();
#line 374 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp15_ = string_replace (_tmp13_, _tmp14_, "~");
#line 374 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (parent_path);
#line 374 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				parent_path = _tmp15_;
#line 1092 "gitg-window.c"
			}
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp16_ = self->priv->d_repository;
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp17_ = gitg_repository_get_name (_tmp16_);
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp18_ = _tmp17_;
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp19_ = _tmp18_;
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp20_ = string_to_string (_tmp19_);
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = parent_path;
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp22_ = string_to_string (_tmp21_);
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp23_ = g_strconcat (_tmp20_, " (", _tmp22_, ")", NULL);
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			name = _tmp23_;
#line 377 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp19_);
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp24_ = name;
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp25_ = string_to_string (_tmp24_);
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp26_ = g_strconcat (_tmp25_, " - gitg", NULL);
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp27_ = _tmp26_;
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gtk_window_set_title ((GtkWindow*) self, _tmp27_);
#line 379 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp27_);
#line 367 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (parent_path);
#line 1130 "gitg-window.c"
		} else {
			GitgRepository* _tmp28_ = NULL;
			gchar* _tmp29_ = NULL;
			gchar* _tmp30_ = NULL;
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp28_ = self->priv->d_repository;
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp29_ = gitg_repository_get_name (_tmp28_);
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp30_ = _tmp29_;
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 383 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			name = _tmp30_;
#line 1145 "gitg-window.c"
		}
#line 386 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = self->priv->d_header_bar;
#line 386 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp32_ = name;
#line 386 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp31_, _tmp32_);
#line 388 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		head_name = NULL;
#line 1155 "gitg-window.c"
		{
			GitgRef* head = NULL;
			GitgRepository* _tmp33_ = NULL;
			GitgRepository* _tmp34_ = NULL;
			GitgRepository* _tmp35_ = NULL;
			GitgRef* _tmp36_ = NULL;
			GitgRef* _tmp37_ = NULL;
			GitgRef* _tmp38_ = NULL;
			GitgParsedRefName* _tmp39_ = NULL;
			GitgParsedRefName* _tmp40_ = NULL;
			GitgParsedRefName* _tmp41_ = NULL;
			gchar* _tmp42_ = NULL;
			gchar* _tmp43_ = NULL;
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp33_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp34_ = _tmp33_;
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp35_ = _tmp34_;
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp36_ = gitg_repository_get_head (_tmp35_, &_inner_error_);
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp37_ = _tmp36_;
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp35_);
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			head = _tmp37_;
#line 392 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1185 "gitg-window.c"
				goto __catch66_g_error;
			}
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp38_ = head;
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp39_ = gitg_ref_get_parsed_name (_tmp38_);
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp40_ = _tmp39_;
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp41_ = _tmp40_;
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp42_ = gitg_parsed_ref_name_get_shortname (_tmp41_);
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp43_ = _tmp42_;
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			head_name = _tmp43_;
#line 393 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp41_);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 1208 "gitg-window.c"
		}
		goto __finally66;
		__catch66_g_error:
		{
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_inner_error_ = NULL;
#line 1217 "gitg-window.c"
		}
		__finally66:
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (workdir);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 390 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			return;
#line 1234 "gitg-window.c"
		}
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp44_ = self->priv->d_header_bar;
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp45_ = head_name;
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp46_ = g_markup_escape_text (_tmp45_, (gssize) (-1));
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp47_ = _tmp46_;
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp44_, _tmp47_);
#line 397 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp47_);
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (head_name);
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (name);
#line 361 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (workdir);
#line 1254 "gitg-window.c"
	} else {
		GtkHeaderBar* _tmp48_ = NULL;
		const gchar* _tmp49_ = NULL;
		GtkHeaderBar* _tmp50_ = NULL;
#line 401 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, "gitg");
#line 403 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp48_ = self->priv->d_header_bar;
#line 403 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp49_ = _ ("Projects");
#line 403 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp48_, _tmp49_);
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp50_ = self->priv->d_header_bar;
#line 404 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp50_, NULL);
#line 1271 "gitg-window.c"
	}
}


static void gitg_window_repository_changed (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgUIElements* _tmp18_ = NULL;
	GitgRepository* _tmp19_ = NULL;
	GitgWindowMode _tmp20_ = 0;
#line 408 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 410 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_update_title (self);
#line 411 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 411 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 413 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 413 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1294 "gitg-window.c"
		GtkStack* _tmp2_ = NULL;
		GtkStack* _tmp3_ = NULL;
		GtkStack* _tmp4_ = NULL;
		GtkStackSwitcher* _tmp5_ = NULL;
		GtkButton* _tmp6_ = NULL;
		GitgDashView* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GtkMenuButton* _tmp9_ = NULL;
		GMenuModel* _tmp10_ = NULL;
#line 415 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_ACTIVITY;
#line 417 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_main_stack;
#line 417 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp2_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
#line 418 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_main_stack;
#line 418 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_stack_activities;
#line 418 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 419 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_activities_switcher;
#line 419 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 420 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_dash_button;
#line 420 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp6_);
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = self->priv->d_dash_view;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = self->priv->d_repository;
#line 421 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_repository_list_box_add_repository ((GitgRepositoryListBox*) _tmp7_, _tmp8_);
#line 422 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_gear_menu;
#line 422 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_activities_model;
#line 422 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp9_, _tmp10_);
#line 1336 "gitg-window.c"
	} else {
		GtkStack* _tmp11_ = NULL;
		GtkStack* _tmp12_ = NULL;
		GtkScrolledWindow* _tmp13_ = NULL;
		GtkStackSwitcher* _tmp14_ = NULL;
		GtkButton* _tmp15_ = NULL;
		GtkMenuButton* _tmp16_ = NULL;
		GMenuModel* _tmp17_ = NULL;
#line 426 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_DASH;
#line 428 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_main_stack;
#line 428 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp11_, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
#line 429 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = self->priv->d_main_stack;
#line 429 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_dash_scrolled_window;
#line 429 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp12_, (GtkWidget*) _tmp13_);
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = self->priv->d_activities_switcher;
#line 430 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp14_);
#line 431 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_dash_button;
#line 431 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp15_);
#line 432 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_gear_menu;
#line 432 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_dash_model;
#line 432 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp16_, _tmp17_);
#line 1371 "gitg-window.c"
	}
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_activities;
#line 435 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_update (_tmp18_);
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = self->priv->d_repository;
#line 437 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp19_ != NULL) {
#line 439 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_activate_default_activity (self);
#line 1383 "gitg-window.c"
	}
#line 442 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = self->priv->d_mode;
#line 442 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp20_ == GITG_WINDOW_MODE_DASH) {
#line 444 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_on_current_activity_changed (self);
#line 1391 "gitg-window.c"
	}
}


static gboolean gitg_window_real_window_state_event (GtkWidget* base, GdkEventWindowState* event) {
	GitgWindow * self;
	gboolean result = FALSE;
	GSettings* _tmp0_ = NULL;
	GdkEventWindowState* _tmp1_ = NULL;
	GdkWindowState _tmp2_ = 0;
	GdkEventWindowState* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 448 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 450 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 450 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = event;
#line 450 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_->new_window_state;
#line 450 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_settings_set_int (_tmp0_, "state", (gint) _tmp2_);
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = event;
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = GTK_WIDGET_CLASS (gitg_window_parent_class)->window_state_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp3_);
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp4_;
#line 451 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1424 "gitg-window.c"
}


static gboolean gitg_window_real_configure_event (GtkWidget* base, GdkEventConfigure* event) {
	GitgWindow * self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GdkEventConfigure* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
#line 454 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 454 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_realized ((GtkWidget*) self);
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_) {
#line 1443 "gitg-window.c"
		GdkWindow* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gtk_widget_get_window ((GtkWidget*) self);
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = gdk_window_get_state (_tmp2_);
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = !((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED);
#line 1452 "gitg-window.c"
	} else {
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 1456 "gitg-window.c"
	}
#line 456 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1460 "gitg-window.c"
		GSettings* _tmp4_ = NULL;
		GdkEventConfigure* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		GdkEventConfigure* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_state_settings;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = event;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_->width;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = event;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_->height;
#line 458 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_settings_set (_tmp4_, "size", "(ii)", _tmp6_, _tmp8_);
#line 1478 "gitg-window.c"
	}
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = event;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = GTK_WIDGET_CLASS (gitg_window_parent_class)->configure_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp9_);
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp10_;
#line 461 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1488 "gitg-window.c"
}


static Block35Data* block35_data_ref (Block35Data* _data35_) {
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data35_->_ref_count_);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return _data35_;
#line 1497 "gitg-window.c"
}


static void block35_data_unref (void * _userdata_) {
	Block35Data* _data35_;
	_data35_ = (Block35Data*) _userdata_;
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data35_->_ref_count_)) {
#line 1506 "gitg-window.c"
		GitgWindow* self;
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self = _data35_->self;
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data35_->chooser);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block35Data, _data35_);
#line 1516 "gitg-window.c"
	}
}


static void __lambda74_ (Block35Data* _data35_, GtkDialog* c, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp5_ = NULL;
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data35_->self;
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (c != NULL);
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 1533 "gitg-window.c"
		GFile* file = NULL;
		GFile* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		GFile* _tmp4_ = NULL;
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = gtk_file_chooser_get_file ((GtkFileChooser*) _data35_->chooser);
#line 476 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		file = _tmp1_;
#line 478 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = file;
#line 478 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == NULL) {
#line 1546 "gitg-window.c"
			GFile* _tmp3_ = NULL;
#line 480 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp3_ = gtk_file_chooser_get_current_folder_file ((GtkFileChooser*) _data35_->chooser);
#line 480 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (file);
#line 480 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			file = _tmp3_;
#line 1554 "gitg-window.c"
		}
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = file;
#line 483 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_open_repository (self, _tmp4_);
#line 474 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (file);
#line 1562 "gitg-window.c"
	}
#line 486 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = c;
#line 486 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp5_);
#line 1568 "gitg-window.c"
}


static void ___lambda74__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	__lambda74_ (self, _sender, response_id);
#line 1575 "gitg-window.c"
}


static void gitg_window_on_open_repository (GitgWindow* self) {
	Block35Data* _data35_;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkFileChooserDialog* _tmp3_ = NULL;
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data35_ = g_slice_new0 (Block35Data);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data35_->_ref_count_ = 1;
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data35_->self = g_object_ref (self);
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _ ("Open Repository");
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _ ("_Cancel");
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _ ("_Open");
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp0_, (GtkWindow*) self, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, _tmp1_, GTK_RESPONSE_CANCEL, _tmp2_, GTK_RESPONSE_OK, NULL);
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp3_);
#line 466 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data35_->chooser = _tmp3_;
#line 471 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_set_modal ((GtkWindow*) _data35_->chooser, TRUE);
#line 473 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _data35_->chooser, "response", (GCallback) ___lambda74__gtk_dialog_response, block35_data_ref (_data35_), (GClosureNotify) block35_data_unref, 0);
#line 489 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data35_->chooser);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	block35_data_unref (_data35_);
#line 464 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data35_ = NULL;
#line 1615 "gitg-window.c"
}


static void gitg_window_on_reload_activated (GitgWindow* self) {
	GError * _inner_error_ = NULL;
#line 492 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1623 "gitg-window.c"
	{
		GitgRepository* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgRepository* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GitgRemoteManager* _tmp9_ = NULL;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = ggit_repository_get_location ((GgitRepository*) _tmp3_);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = gitg_repository_new (_tmp5_, NULL, &_inner_error_);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp5_);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp7_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1657 "gitg-window.c"
			goto __catch67_g_error;
		}
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp0_;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository);
#line 496 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_repository = _tmp8_;
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_remote_manager_new (self);
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_remote_manager);
#line 499 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_remote_manager = _tmp9_;
#line 501 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_object_notify ((GObject*) self, "repository");
#line 502 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_update_title (self);
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 1680 "gitg-window.c"
	}
	goto __finally67;
	__catch67_g_error:
	{
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 1689 "gitg-window.c"
	}
	__finally67:
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 494 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 1700 "gitg-window.c"
	}
}


static Block36Data* block36_data_ref (Block36Data* _data36_) {
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data36_->_ref_count_);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return _data36_;
#line 1710 "gitg-window.c"
}


static void block36_data_unref (void * _userdata_) {
	Block36Data* _data36_;
	_data36_ = (Block36Data*) _userdata_;
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data36_->_ref_count_)) {
#line 1719 "gitg-window.c"
		GitgWindow* self;
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self = _data36_->self;
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data36_->dlg);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block36Data, _data36_);
#line 1729 "gitg-window.c"
	}
}


static void __lambda77_ (Block36Data* _data36_, GtkDialog* d, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp9_ = NULL;
#line 511 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data36_->self;
#line 511 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (d != NULL);
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 512 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 1746 "gitg-window.c"
		GitgDashView* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		GFile* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_dash_view;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_clone_dialog_get_url (_data36_->dlg);
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_clone_dialog_get_location (_data36_->dlg);
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_clone_dialog_get_is_bare (_data36_->dlg);
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_repository_list_box_clone_repository ((GitgRepositoryListBox*) _tmp1_, _tmp3_, _tmp6_, _tmp8_);
#line 514 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 1775 "gitg-window.c"
	}
#line 517 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = d;
#line 517 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp9_);
#line 1781 "gitg-window.c"
}


static void ___lambda77__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 511 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	__lambda77_ (self, _sender, response_id);
#line 1788 "gitg-window.c"
}


static void gitg_window_on_clone_repository (GitgWindow* self) {
	Block36Data* _data36_;
	GitgCloneDialog* _tmp0_ = NULL;
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data36_ = g_slice_new0 (Block36Data);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data36_->_ref_count_ = 1;
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data36_->self = g_object_ref (self);
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_clone_dialog_new ((GtkWindow*) self);
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 509 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data36_->dlg = _tmp0_;
#line 511 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _data36_->dlg, "response", (GCallback) ___lambda77__gtk_dialog_response, block36_data_ref (_data36_), (GClosureNotify) block36_data_unref, 0);
#line 520 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data36_->dlg);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	block36_data_unref (_data36_);
#line 507 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data36_ = NULL;
#line 1817 "gitg-window.c"
}


static void gitg_window_on_global_author_details_activated (GitgWindow* self) {
	GgitConfig* global_config = NULL;
	GitgAuthorDetailsDialog* author_details = NULL;
	GgitConfig* _tmp3_ = NULL;
	GitgAuthorDetailsDialog* _tmp4_ = NULL;
	GitgAuthorDetailsDialog* _tmp5_ = NULL;
	GError * _inner_error_ = NULL;
#line 523 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 525 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	global_config = NULL;
#line 1832 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GgitConfig* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = ggit_config_new_default (&_inner_error_);
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp1_;
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1843 "gitg-window.c"
			goto __catch68_g_error;
		}
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp0_;
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (global_config);
#line 529 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		global_config = _tmp2_;
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 1856 "gitg-window.c"
	}
	goto __finally68;
	__catch68_g_error:
	{
		GError* e = NULL;
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 533 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 533 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (global_config);
#line 533 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 1872 "gitg-window.c"
	}
	__finally68:
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (global_config);
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 527 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 1885 "gitg-window.c"
	}
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = global_config;
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp3_, NULL);
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp4_);
#line 536 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	author_details = _tmp4_;
#line 537 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = author_details;
#line 537 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp5_);
#line 523 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 523 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (global_config);
#line 1903 "gitg-window.c"
}


static void gitg_window_on_repo_author_details_activated (GitgWindow* self) {
	GgitConfig* repo_config = NULL;
	GitgAuthorDetailsDialog* author_details = NULL;
	GgitConfig* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GitgAuthorDetailsDialog* _tmp9_ = NULL;
	GitgAuthorDetailsDialog* _tmp10_ = NULL;
	GitgAuthorDetailsDialog* _tmp11_ = NULL;
	GError * _inner_error_ = NULL;
#line 540 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 542 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	repo_config = NULL;
#line 1923 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		GgitConfig* _tmp3_ = NULL;
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp2_;
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1937 "gitg-window.c"
			goto __catch69_g_error;
		}
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp0_;
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 546 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		repo_config = _tmp3_;
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 1950 "gitg-window.c"
	}
	goto __finally69;
	__catch69_g_error:
	{
		GError* e = NULL;
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 550 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 550 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 550 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 1966 "gitg-window.c"
	}
	__finally69:
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 544 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 1979 "gitg-window.c"
	}
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = repo_config;
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = self->priv->d_repository;
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_repository_get_name (_tmp5_);
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp4_, _tmp8_);
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp9_);
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp8_);
#line 553 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	author_details = _tmp10_;
#line 554 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = author_details;
#line 554 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 540 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 540 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo_config);
#line 2009 "gitg-window.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 563 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 2016 "gitg-window.c"
}


static void gitg_window_on_current_activity_changed (GitgWindow* self) {
	GitgExtActivity* current = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	GitgExtSearchable* _tmp3_ = NULL;
	GitgExtSearchable* _tmp4_ = NULL;
	GitgExtSelectable* selectable = NULL;
	GitgExtActivity* _tmp18_ = NULL;
	GitgExtSelectable* _tmp19_ = NULL;
	GtkToggleButton* _tmp20_ = NULL;
	GitgExtSelectable* _tmp21_ = NULL;
	GitgExtSelectable* _tmp22_ = NULL;
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 559 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "current_activity");
#line 561 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 561 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 561 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	current = _tmp1_;
#line 563 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = current;
#line 563 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp2_) : NULL);
#line 563 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp3_;
#line 565 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = searchable;
#line 565 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 2054 "gitg-window.c"
		GtkToggleButton* _tmp5_ = NULL;
		GdTaggedEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GtkToggleButton* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		gboolean _tmp14_ = FALSE;
#line 567 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_button;
#line 567 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 568 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 569 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_search_button;
#line 569 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 569 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = gitg_ext_searchable_get_search_visible (_tmp12_);
#line 569 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = _tmp13_;
#line 569 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp11_, _tmp14_);
#line 2093 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp15_ = NULL;
		GtkToggleButton* _tmp16_ = NULL;
		GdTaggedEntry* _tmp17_ = NULL;
#line 573 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_search_button;
#line 573 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp15_, FALSE);
#line 574 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_search_button;
#line 574 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp16_, FALSE);
#line 575 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_search_entry;
#line 575 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp17_, "");
#line 2110 "gitg-window.c"
	}
#line 578 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = current;
#line 578 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp18_) : NULL);
#line 578 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	selectable = _tmp19_;
#line 579 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = self->priv->d_select_button;
#line 579 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = selectable;
#line 579 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp20_, _tmp21_ != NULL);
#line 581 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 581 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode_binding = NULL;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp22_ = selectable;
#line 583 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp22_ != NULL) {
#line 2132 "gitg-window.c"
		GitgExtSelectable* _tmp23_ = NULL;
		GBinding* _tmp24_ = NULL;
		GBinding* _tmp25_ = NULL;
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp23_ = selectable;
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp24_ = g_object_bind_property_with_closures ((GObject*) _tmp23_, "selectable-mode", (GObject*) self, "selectable-mode", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp25_ = _g_object_ref0 (_tmp24_);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 585 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_mode_binding = _tmp25_;
#line 2146 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp26_ = NULL;
#line 592 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp26_ = self->priv->d_select_button;
#line 592 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp26_, FALSE);
#line 2153 "gitg-window.c"
	}
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 557 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (current);
#line 2161 "gitg-window.c"
}


static Block37Data* block37_data_ref (Block37Data* _data37_) {
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data37_->_ref_count_);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return _data37_;
#line 2170 "gitg-window.c"
}


static void block37_data_unref (void * _userdata_) {
	Block37Data* _data37_;
	_data37_ = (Block37Data*) _userdata_;
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data37_->_ref_count_)) {
#line 2179 "gitg-window.c"
		GitgWindow* self;
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self = _data37_->self;
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data37_->default_activity);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data37_->deffb);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data37_->def);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block37Data, _data37_);
#line 2193 "gitg-window.c"
	}
}


static gboolean __lambda70_ (Block37Data* _data37_, GitgExtUIElement* element) {
	GitgWindow* self;
	gboolean result = FALSE;
	GitgExtActivity* activity = NULL;
	GitgExtUIElement* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GitgExtActivity* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
#line 612 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data37_->self;
#line 612 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 613 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 613 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 613 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 615 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 615 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _data37_->default_activity;
#line 615 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_ext_activity_is_default_for (_tmp2_, _tmp3_);
#line 615 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2227 "gitg-window.c"
		GitgExtActivity* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 617 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 617 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 617 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data37_->def);
#line 617 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_data37_->def = _tmp6_;
#line 2238 "gitg-window.c"
	}
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = activity;
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_ext_activity_is_default_for (_tmp7_, "");
#line 620 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 2246 "gitg-window.c"
		GitgExtActivity* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = activity;
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _g_object_ref0 (_tmp9_);
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data37_->deffb);
#line 622 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_data37_->deffb = _tmp10_;
#line 2257 "gitg-window.c"
	}
#line 625 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 625 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 625 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2265 "gitg-window.c"
}


static gboolean ___lambda70__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = __lambda70_ (self, element);
#line 612 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2274 "gitg-window.c"
}


static void gitg_window_activate_default_activity (GitgWindow* self) {
	Block37Data* _data37_;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	GitgUIElements* _tmp7_ = NULL;
	GitgExtActivity* _tmp8_ = NULL;
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_ = g_slice_new0 (Block37Data);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_->_ref_count_ = 1;
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_->self = g_object_ref (self);
#line 598 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_->def = NULL;
#line 599 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_->deffb = NULL;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_action;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == NULL) {
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = TRUE;
#line 2302 "gitg-window.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_action;
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "") == 0;
#line 2309 "gitg-window.c"
	}
#line 603 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 2313 "gitg-window.c"
		GSettings* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 605 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_interface_settings;
#line 605 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_settings_get_string (_tmp3_, "default-activity");
#line 605 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data37_->default_activity);
#line 605 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_data37_->default_activity = _tmp4_;
#line 2324 "gitg-window.c"
	} else {
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_action;
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data37_->default_activity);
#line 609 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_data37_->default_activity = _tmp6_;
#line 2336 "gitg-window.c"
	}
#line 612 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_activities;
#line 612 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_foreach (_tmp7_, ___lambda70__gitg_ui_elements_foreach_ui_element_func, _data37_);
#line 628 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _data37_->def;
#line 628 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_ != NULL) {
#line 2346 "gitg-window.c"
		GitgUIElements* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 630 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_activities;
#line 630 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _data37_->def;
#line 630 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp9_, _tmp10_);
#line 2355 "gitg-window.c"
	} else {
		GitgExtActivity* _tmp11_ = NULL;
#line 632 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = _data37_->deffb;
#line 632 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp11_ != NULL) {
#line 2362 "gitg-window.c"
			GitgUIElements* _tmp12_ = NULL;
			GitgExtActivity* _tmp13_ = NULL;
#line 634 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp12_ = self->priv->d_activities;
#line 634 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp13_ = _data37_->deffb;
#line 634 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gitg_ui_elements_set_current (_tmp12_, _tmp13_);
#line 2371 "gitg-window.c"
		}
	}
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	block37_data_unref (_data37_);
#line 596 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data37_ = NULL;
#line 2378 "gitg-window.c"
}


static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_current_activity_changed ((GitgWindow*) self);
#line 2385 "gitg-window.c"
}


static gboolean gitg_window_real_init (GInitable* base, GCancellable* cancellable, GError** error) {
	GitgWindow * self;
	gboolean result = FALSE;
	GitgApplication* app = NULL;
	GtkApplication* _tmp0_ = NULL;
	GtkApplication* _tmp1_ = NULL;
	GitgApplication* _tmp2_ = NULL;
	GitgApplication* _tmp3_ = NULL;
	GSettings* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	GitgExtMessageBus* _tmp6_ = NULL;
	GitgPluginsEngine* engine = NULL;
	GitgPluginsEngine* _tmp7_ = NULL;
	GitgExtActivity** builtins = NULL;
	GitgHistoryActivity* _tmp8_ = NULL;
	GitgCommitActivity* _tmp9_ = NULL;
	GitgExtActivity** _tmp10_ = NULL;
	gint builtins_length1 = 0;
	gint _builtins_size_ = 0;
	PeasExtensionSet* extset = NULL;
	GitgPluginsEngine* _tmp11_ = NULL;
	PeasExtensionSet* _tmp12_ = NULL;
	GitgExtActivity** _tmp13_ = NULL;
	gint _tmp13__length1 = 0;
	PeasExtensionSet* _tmp14_ = NULL;
	GtkStack* _tmp15_ = NULL;
	GitgUIElements* _tmp16_ = NULL;
	GitgUIElements* _tmp17_ = NULL;
	GdkWindowState window_state = 0;
	GSettings* _tmp18_ = NULL;
	gint _tmp19_ = 0;
	GdkWindowState _tmp20_ = 0;
	gint width = 0;
	gint height = 0;
	GSettings* _tmp21_ = NULL;
#line 638 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_TYPE_APPLICATION) ? ((GitgApplication*) _tmp1_) : NULL);
#line 641 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	app = _tmp2_;
#line 642 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = app;
#line 642 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_application_get_state_settings (_tmp3_);
#line 642 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 642 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 642 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_state_settings = _tmp5_;
#line 645 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_ext_message_bus_new ();
#line 645 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 645 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_message_bus = _tmp6_;
#line 648 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_plugins_engine_get_default ();
#line 648 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	engine = _tmp7_;
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_history_activity_new ((GitgExtApplication*) self);
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_commit_activity_new ((GitgExtApplication*) self);
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = g_new0 (GitgExtActivity*, 2 + 1);
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_[0] = (GitgExtActivity*) _tmp8_;
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_[1] = (GitgExtActivity*) _tmp9_;
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	builtins = _tmp10_;
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	builtins_length1 = 2;
#line 650 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_builtins_size_ = builtins_length1;
#line 655 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = engine;
#line 655 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = peas_extension_set_new ((PeasEngine*) _tmp11_, GITG_EXT_TYPE_ACTIVITY, "application", self, NULL);
#line 655 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	extset = _tmp12_;
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = builtins;
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13__length1 = builtins_length1;
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = extset;
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp15_ = self->priv->d_stack_activities;
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp16_ = gitg_ui_elements_new_with_builtin (GITG_EXT_TYPE_ACTIVITY, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp13_, _tmp13__length1, _tmp14_, _tmp15_);
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 660 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_activities = _tmp16_;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_activities;
#line 664 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_object ((GObject*) _tmp17_, "notify::current", (GCallback) _gitg_window_on_current_activity_changed_g_object_notify, self, 0);
#line 667 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_state_settings;
#line 667 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_settings_get_int (_tmp18_, "state");
#line 667 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	window_state = (GdkWindowState) _tmp19_;
#line 669 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = window_state;
#line 669 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if ((_tmp20_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED) {
#line 671 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 2506 "gitg-window.c"
	}
#line 677 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_state_settings;
#line 677 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_settings_get (_tmp21_, "size", "(ii)", &width, &height);
#line 678 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_resize ((GtkWindow*) self, width, height);
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (extset);
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) g_object_unref), NULL);
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (engine);
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (app);
#line 680 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2526 "gitg-window.c"
}


void gitg_window_set_environment (GitgWindow* self, gchar** environment, int environment_length1) {
	GeeHashMap* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
#line 683 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 685 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 685 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 685 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp0_;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = environment;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1__length1 = environment_length1;
#line 2546 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e_collection = _tmp1_;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _tmp1__length1;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
#line 2558 "gitg-window.c"
			gchar* _tmp2_ = NULL;
			gchar* e = NULL;
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp2_ = g_strdup (e_collection[e_it]);
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			e = _tmp2_;
#line 2565 "gitg-window.c"
			{
				gchar** parts = NULL;
				const gchar* _tmp3_ = NULL;
				gchar** _tmp4_ = NULL;
				gchar** _tmp5_ = NULL;
				gint parts_length1 = 0;
				gint _parts_size_ = 0;
				gchar** _tmp6_ = NULL;
				gint _tmp6__length1 = 0;
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp3_ = e;
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "=", 2);
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				parts = _tmp5_;
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				parts_length1 = _vala_array_length (_tmp4_);
#line 689 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_parts_size_ = parts_length1;
#line 691 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp6_ = parts;
#line 691 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp6__length1 = parts_length1;
#line 691 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				if (_tmp6__length1 == 1) {
#line 2591 "gitg-window.c"
					GeeHashMap* _tmp7_ = NULL;
					gchar** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					const gchar* _tmp9_ = NULL;
#line 693 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp7_ = self->priv->d_environment;
#line 693 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp8_ = parts;
#line 693 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp8__length1 = parts_length1;
#line 693 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp9_ = _tmp8_[0];
#line 693 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, _tmp9_, "");
#line 2606 "gitg-window.c"
				} else {
					GeeHashMap* _tmp10_ = NULL;
					gchar** _tmp11_ = NULL;
					gint _tmp11__length1 = 0;
					const gchar* _tmp12_ = NULL;
					gchar** _tmp13_ = NULL;
					gint _tmp13__length1 = 0;
					const gchar* _tmp14_ = NULL;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp10_ = self->priv->d_environment;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp11_ = parts;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp11__length1 = parts_length1;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp12_ = _tmp11_[0];
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp13_ = parts;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp13__length1 = parts_length1;
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp14_ = _tmp13_[1];
#line 697 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, _tmp12_, _tmp14_);
#line 2631 "gitg-window.c"
				}
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 687 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 2637 "gitg-window.c"
			}
		}
	}
}


GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action) {
	GitgWindow* result = NULL;
	GitgWindow* ret = NULL;
	GitgWindow* _tmp0_ = NULL;
	GitgWindow* _tmp1_ = NULL;
	GitgWindow* _tmp14_ = NULL;
	GError * _inner_error_ = NULL;
#line 702 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 706 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_window_new ();
#line 706 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 706 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	ret = _tmp0_;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = ret;
#line 708 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 2663 "gitg-window.c"
		GitgWindow* _tmp2_ = NULL;
		GtkApplication* _tmp3_ = NULL;
		GitgWindow* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgWindow* _tmp7_ = NULL;
		GitgWindow* _tmp8_ = NULL;
		GitgRemoteManager* _tmp9_ = NULL;
		GitgWindow* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
#line 710 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = ret;
#line 710 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = app;
#line 710 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_application ((GtkWindow*) _tmp2_, _tmp3_);
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = ret;
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = repository;
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_->priv->d_repository);
#line 711 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_->priv->d_repository = _tmp6_;
#line 712 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = ret;
#line 712 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = ret;
#line 712 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_remote_manager_new (_tmp8_);
#line 712 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_->priv->d_remote_manager);
#line 712 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_->priv->d_remote_manager = _tmp9_;
#line 713 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = ret;
#line 713 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = action;
#line 713 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 713 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_->priv->d_action);
#line 713 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_->priv->d_action = _tmp12_;
#line 2711 "gitg-window.c"
	}
	{
		GitgWindow* _tmp13_ = NULL;
#line 718 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = ret;
#line 718 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_initable_init (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, G_TYPE_INITABLE, GInitable), NULL, &_inner_error_);
#line 718 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2721 "gitg-window.c"
			goto __catch70_g_error;
		}
	}
	goto __finally70;
	__catch70_g_error:
	{
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2732 "gitg-window.c"
	}
	__finally70:
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (ret);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 716 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return NULL;
#line 2745 "gitg-window.c"
	}
#line 721 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = ret;
#line 721 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (_tmp14_);
#line 722 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = ret;
#line 722 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2755 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_activity (GitgExtApplication* base, const gchar* id) {
	GitgWindow * self;
	GitgExtActivity* result = NULL;
	GitgExtActivity* v = NULL;
	GitgUIElements* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gpointer _tmp2_ = NULL;
	GitgExtActivity* _tmp3_ = NULL;
	GitgUIElements* _tmp6_ = NULL;
	gconstpointer _tmp7_ = NULL;
	GitgExtActivity* _tmp8_ = NULL;
	GitgExtActivity* _tmp9_ = NULL;
#line 726 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 726 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 728 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 728 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 728 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 728 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	v = (GitgExtActivity*) _tmp2_;
#line 730 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = v;
#line 730 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != NULL) {
#line 2787 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 732 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 732 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = v;
#line 732 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 2796 "gitg-window.c"
	}
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_activities;
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ui_elements_get_current (_tmp6_);
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = v;
#line 735 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (((GitgExtActivity*) _tmp8_) == _tmp9_) {
#line 737 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = v;
#line 737 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 2812 "gitg-window.c"
	} else {
#line 741 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 741 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (v);
#line 741 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 2820 "gitg-window.c"
	}
#line 726 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (v);
#line 2824 "gitg-window.c"
}


static void gitg_window_open_repository (GitgWindow* self, GFile* path) {
	GFile* repo = NULL;
	GitgRepository* repository = NULL;
	gboolean _tmp0_ = FALSE;
	GitgRepository* _tmp1_ = NULL;
	GitgRepository* _tmp23_ = NULL;
	GError * _inner_error_ = NULL;
#line 745 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 745 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (path != NULL);
#line 748 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	repository = NULL;
#line 750 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 750 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 2845 "gitg-window.c"
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_location ((GgitRepository*) _tmp2_);
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp3_;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = path;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_file_equal (_tmp4_, _tmp5_);
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp6_;
#line 751 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_);
#line 2865 "gitg-window.c"
	} else {
#line 750 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 2869 "gitg-window.c"
	}
#line 750 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 753 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 753 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 753 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2879 "gitg-window.c"
	}
	{
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GFile* _tmp10_ = NULL;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = path;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = ggit_repository_discover (_tmp8_, &_inner_error_);
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp9_;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2894 "gitg-window.c"
			goto __catch71_g_error;
		}
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp7_;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = NULL;
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 758 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		repo = _tmp10_;
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_);
#line 2907 "gitg-window.c"
	}
	goto __finally71;
	__catch71_g_error:
	{
		GError* e = NULL;
		gchar* repo_name = NULL;
		GFile* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* title = NULL;
		const gchar* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 762 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = path;
#line 762 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_file_get_basename (_tmp11_);
#line 762 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		repo_name = _tmp12_;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = _ ("'%s' is not a Git repository.");
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = repo_name;
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 764 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		title = _tmp15_;
#line 765 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = title;
#line 765 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = e;
#line 765 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp17_->message;
#line 765 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp16_, _tmp18_, GTK_MESSAGE_WARNING);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (repo_name);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 767 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2961 "gitg-window.c"
	}
	__finally71:
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 756 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2976 "gitg-window.c"
	}
	{
		GitgRepository* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = repo;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp21_ = gitg_repository_new (_tmp20_, NULL, &_inner_error_);
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp21_;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2991 "gitg-window.c"
			goto __catch72_g_error;
		}
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = _tmp19_;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = NULL;
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 772 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		repository = _tmp22_;
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp19_);
#line 3004 "gitg-window.c"
	}
	goto __finally72;
	__catch72_g_error:
	{
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3013 "gitg-window.c"
	}
	__finally72:
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 770 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3028 "gitg-window.c"
	}
#line 776 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = repository;
#line 776 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp23_);
#line 745 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repository);
#line 745 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo);
#line 3038 "gitg-window.c"
}


static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type) {
	GitgWindow * self;
	gchar* primary = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* secondary = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	GtkLabel* _tmp10_ = NULL;
	GtkLabel* _tmp11_ = NULL;
	GtkInfoBar* _tmp12_ = NULL;
	GtkMessageType _tmp13_ = 0;
	GtkInfoBar* _tmp14_ = NULL;
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (title != NULL);
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (message != NULL);
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = title;
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) (-1));
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup_printf ("<b>%s</b>", _tmp2_);
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp2_);
#line 783 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	primary = _tmp4_;
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = message;
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_markup_escape_text (_tmp5_, (gssize) (-1));
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_strdup_printf ("<small>%s</small>", _tmp7_);
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = _tmp8_;
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp7_);
#line 784 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	secondary = _tmp9_;
#line 786 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_infobar_primary_label;
#line 786 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp10_, primary);
#line 787 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_infobar_secondary_label;
#line 787 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp11_, secondary);
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = self->priv->d_infobar;
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = type;
#line 788 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_info_bar_set_message_type (_tmp12_, _tmp13_);
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = self->priv->d_infobar;
#line 790 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (secondary);
#line 779 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 3117 "gitg-window.c"
}


static Block38Data* block38_data_ref (Block38Data* _data38_) {
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data38_->_ref_count_);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return _data38_;
#line 3126 "gitg-window.c"
}


static void block38_data_unref (void * _userdata_) {
	Block38Data* _data38_;
	_data38_ = (Block38Data*) _userdata_;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data38_->_ref_count_)) {
#line 3135 "gitg-window.c"
		GitgWindow* self;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self = _data38_->self;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data38_->dlg);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data38_->query);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block38Data, _data38_);
#line 3147 "gitg-window.c"
	}
}


static void __lambda113_ (Block38Data* _data38_) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data38_->self;
#line 819 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data38_->dlg;
#line 819 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 820 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data38_->query;
#line 820 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data38_->qid;
#line 820 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 3169 "gitg-window.c"
}


static void ___lambda113__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self) {
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	__lambda113_ (self);
#line 3176 "gitg-window.c"
}


static void __lambda114_ (Block38Data* _data38_, GtkDialog* w, gint r) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 823 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data38_->self;
#line 823 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 824 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data38_->dlg;
#line 824 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, FALSE);
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data38_->query;
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = r;
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name (_tmp1_, "response", (GtkResponseType) _tmp2_, &_tmp3_);
#line 826 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 3202 "gitg-window.c"
		GtkMessageDialog* _tmp4_ = NULL;
		GitgExtUserQuery* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
#line 828 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _data38_->dlg;
#line 828 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 829 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _data38_->query;
#line 829 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _data38_->qid;
#line 829 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 3216 "gitg-window.c"
	}
}


static void ___lambda114__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 823 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	__lambda114_ (self, _sender, response_id);
#line 3224 "gitg-window.c"
}


static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query) {
	GitgWindow * self;
	Block38Data* _data38_;
	GitgExtUserQuery* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	GitgExtUserQuery* _tmp2_ = NULL;
	GtkMessageType _tmp3_ = 0;
	GtkMessageType _tmp4_ = 0;
	GtkMessageDialog* _tmp5_ = NULL;
	gchar* primary = NULL;
	GitgExtUserQuery* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GtkMessageDialog* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	GtkMessageDialog* _tmp15_ = NULL;
	GitgExtUserQuery* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	GitgExtUserQuery* _tmp19_ = NULL;
	GitgExtUserQueryResponse** _tmp20_ = NULL;
	gint _tmp20__length1 = 0;
	GitgExtUserQueryResponse** _tmp21_ = NULL;
	gint _tmp21__length1 = 0;
	GtkMessageDialog* _tmp28_ = NULL;
	GitgExtUserQuery* _tmp29_ = NULL;
	GtkResponseType _tmp30_ = 0;
	GtkResponseType _tmp31_ = 0;
	GtkMessageDialog* _tmp32_ = NULL;
	GtkDialog* _tmp33_ = NULL;
	GtkMessageDialog* _tmp34_ = NULL;
	GitgExtUserQuery* _tmp35_ = NULL;
	gulong _tmp36_ = 0UL;
	GtkMessageDialog* _tmp37_ = NULL;
	GtkMessageDialog* _tmp38_ = NULL;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (query != NULL);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_ = g_slice_new0 (Block38Data);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->_ref_count_ = 1;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->self = g_object_ref (self);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = query;
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data38_->query);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->query = _tmp1_;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data38_->query;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_user_query_get_message_type (_tmp2_);
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, _tmp4_, GTK_BUTTONS_NONE, "");
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 795 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->dlg = _tmp5_;
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = _data38_->query;
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ext_user_query_get_title (_tmp6_);
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = g_markup_escape_text (_tmp8_, (gssize) (-1));
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_strdup_printf ("<b>%s</b>", _tmp10_);
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = _tmp11_;
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp10_);
#line 801 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	primary = _tmp12_;
#line 802 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data38_->dlg;
#line 802 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = primary;
#line 802 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_set_markup (_tmp13_, _tmp14_);
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp15_ = _data38_->dlg;
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp16_ = _data38_->query;
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = gitg_ext_user_query_get_message (_tmp16_);
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 804 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_format_secondary_text (_tmp15_, "%s", _tmp18_);
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = _data38_->query;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = gitg_ext_user_query_get_responses (_tmp19_, &_tmp20__length1);
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = _tmp20_;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp21__length1 = _tmp20__length1;
#line 3339 "gitg-window.c"
	{
		GitgExtUserQueryResponse** response_collection = NULL;
		gint response_collection_length1 = 0;
		gint _response_collection_size_ = 0;
		gint response_it = 0;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		response_collection = _tmp21_;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		response_collection_length1 = _tmp21__length1;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		for (response_it = 0; response_it < _tmp21__length1; response_it = response_it + 1) {
#line 3351 "gitg-window.c"
			GitgExtUserQueryResponse* _tmp22_ = NULL;
			GitgExtUserQueryResponse* response = NULL;
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp22_ = _g_object_ref0 (response_collection[response_it]);
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			response = _tmp22_;
#line 3358 "gitg-window.c"
			{
				GtkMessageDialog* _tmp23_ = NULL;
				GitgExtUserQueryResponse* _tmp24_ = NULL;
				const gchar* _tmp25_ = NULL;
				GitgExtUserQueryResponse* _tmp26_ = NULL;
				GtkResponseType _tmp27_ = 0;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp23_ = _data38_->dlg;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp24_ = response;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp25_ = _tmp24_->text;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp26_ = response;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp27_ = _tmp26_->response_type;
#line 808 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				gtk_dialog_add_button ((GtkDialog*) _tmp23_, _tmp25_, (gint) _tmp27_);
#line 806 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (response);
#line 3379 "gitg-window.c"
			}
		}
	}
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = _data38_->dlg;
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp29_ = _data38_->query;
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp30_ = gitg_ext_user_query_get_default_response (_tmp29_);
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp31_ = _tmp30_;
#line 811 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _tmp28_, (gint) _tmp31_);
#line 813 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp32_ = _data38_->dlg;
#line 813 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp33_ = _g_object_ref0 ((GtkDialog*) _tmp32_);
#line 813 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 813 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_dialog = _tmp33_;
#line 814 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp34_ = _data38_->dlg;
#line 814 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_add_weak_pointer ((GObject*) _tmp34_, &self->priv->d_dialog);
#line 816 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->qid = (gulong) 0;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp35_ = _data38_->query;
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp36_ = g_signal_connect_data (_tmp35_, "quit", (GCallback) ___lambda113__gitg_ext_user_query_quit, block38_data_ref (_data38_), (GClosureNotify) block38_data_unref, 0);
#line 818 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_->qid = _tmp36_;
#line 823 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp37_ = _data38_->dlg;
#line 823 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _tmp37_, "response", (GCallback) ___lambda114__gtk_dialog_response, block38_data_ref (_data38_), (GClosureNotify) block38_data_unref, 0);
#line 833 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp38_ = _data38_->dlg;
#line 833 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp38_);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	block38_data_unref (_data38_);
#line 793 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data38_ = NULL;
#line 3427 "gitg-window.c"
}


static void gitg_window_on_select_activated (GitgWindow* self, GSimpleAction* action) {
	gboolean st = FALSE;
	GSimpleAction* _tmp0_ = NULL;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GSimpleAction* _tmp5_ = NULL;
	GVariant* _tmp6_ = NULL;
	GVariant* _tmp7_ = NULL;
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 871 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 873 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!st);
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 874 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 3471 "gitg-window.c"
}


static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self) {
#line 933 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 935 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 3480 "gitg-window.c"
}


static void _gitg_window_on_select_cancel_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_select_cancel_button_clicked ((GitgWindow*) self);
#line 3487 "gitg-window.c"
}


GitgWindow* gitg_window_construct (GType object_type) {
	GitgWindow * self = NULL;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) g_object_new (object_type, NULL);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return self;
#line 3497 "gitg-window.c"
}


GitgWindow* gitg_window_new (void) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return gitg_window_construct (GITG_TYPE_WINDOW);
#line 3504 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_get_current_activity (GitgExtApplication* base) {
	GitgExtActivity* result;
	GitgWindow* self;
	GitgWindowMode _tmp0_ = 0;
#line 319 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 321 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_mode;
#line 321 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 3518 "gitg-window.c"
		GitgUIElements* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GitgExtActivity* _tmp3_ = NULL;
		GitgExtActivity* _tmp4_ = NULL;
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_activities;
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_ui_elements_get_current (_tmp1_);
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 ((GitgExtActivity*) _tmp3_);
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = _tmp4_;
#line 323 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 3535 "gitg-window.c"
	} else {
		GitgDashView* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 327 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_dash_view;
#line 327 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 ((GitgExtActivity*) _tmp5_);
#line 327 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = _tmp6_;
#line 327 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 3547 "gitg-window.c"
	}
}


static GitgExtMessageBus* gitg_window_real_get_message_bus (GitgExtApplication* base) {
	GitgExtMessageBus* result;
	GitgWindow* self;
	GitgExtMessageBus* _tmp0_ = NULL;
	GitgExtMessageBus* _tmp1_ = NULL;
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_message_bus;
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 334 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3567 "gitg-window.c"
}


static GitgRepository* gitg_window_real_get_repository (GitgExtApplication* base) {
	GitgRepository* result;
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 340 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3586 "gitg-window.c"
}


static void gitg_window_real_set_repository (GitgExtApplication* base, GitgRepository* value) {
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgRemoteManager* _tmp2_ = NULL;
#line 341 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 343 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 343 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 343 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 343 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_repository = _tmp1_;
#line 344 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_remote_manager_new (self);
#line 344 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 344 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_remote_manager = _tmp2_;
#line 346 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "repository");
#line 347 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (self);
#line 3615 "gitg-window.c"
}


static GeeMap* gitg_window_real_get_environment (GitgExtApplication* base) {
	GeeMap* result;
	GitgWindow* self;
	GeeHashMap* _tmp0_ = NULL;
	GeeMap* _tmp1_ = NULL;
#line 838 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 838 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_environment;
#line 838 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GeeMap*) _tmp0_);
#line 838 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 838 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3634 "gitg-window.c"
}


static gboolean gitg_window_real_get_busy (GitgExtApplication* base) {
	gboolean result;
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_busy;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 843 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3650 "gitg-window.c"
}


static void gitg_window_real_set_busy (GitgExtApplication* base, gboolean value) {
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
	GdkWindow* win = NULL;
	GtkDialog* _tmp1_ = NULL;
	gboolean _tmp7_ = FALSE;
#line 844 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 846 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 846 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_busy = _tmp0_;
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_dialog;
#line 850 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3670 "gitg-window.c"
		GtkDialog* _tmp2_ = NULL;
		GdkWindow* _tmp3_ = NULL;
		GdkWindow* _tmp4_ = NULL;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_dialog;
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = gtk_widget_get_window ((GtkWidget*) _tmp2_);
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 (_tmp3_);
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 852 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		win = _tmp4_;
#line 3684 "gitg-window.c"
	} else {
		GdkWindow* _tmp5_ = NULL;
		GdkWindow* _tmp6_ = NULL;
#line 856 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_window ((GtkWidget*) self);
#line 856 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 856 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 856 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		win = _tmp6_;
#line 3696 "gitg-window.c"
	}
#line 859 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_busy;
#line 859 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 3702 "gitg-window.c"
		GdkWindow* _tmp8_ = NULL;
		GdkDisplay* _tmp9_ = NULL;
		GdkCursor* _tmp10_ = NULL;
		GdkCursor* _tmp11_ = NULL;
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = win;
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = gtk_widget_get_display ((GtkWidget*) self);
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = gdk_cursor_new_for_display (_tmp9_, GDK_WATCH);
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp8_, _tmp11_);
#line 861 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp11_);
#line 3719 "gitg-window.c"
	} else {
		GdkWindow* _tmp12_ = NULL;
#line 866 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = win;
#line 866 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp12_, NULL);
#line 3726 "gitg-window.c"
	}
#line 844 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (win);
#line 844 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "busy");
#line 3732 "gitg-window.c"
}


GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self) {
	GitgExtSelectionMode result;
	GitgExtSelectionMode _tmp0_ = 0;
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 879 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3747 "gitg-window.c"
}


void gitg_window_set_selectable_mode (GitgWindow* self, GitgExtSelectionMode value) {
	GitgExtSelectable* selectable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSelectable* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GitgExtSelectable* _tmp4_ = NULL;
	GitgExtSelectionMode _tmp7_ = 0;
	GitgExtSelectable* _tmp8_ = NULL;
	GitgExtSelectionMode _tmp9_ = 0;
	GtkStyleContext* ctx = NULL;
	GtkHeaderBar* _tmp10_ = NULL;
	GtkStyleContext* _tmp11_ = NULL;
	GtkStyleContext* _tmp12_ = NULL;
	GitgExtSelectionMode _tmp13_ = 0;
	gboolean issel = FALSE;
	GitgExtSelectionMode _tmp25_ = 0;
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp26_ = NULL;
	GitgExtActivity* _tmp27_ = NULL;
	GitgExtSearchable* _tmp28_ = NULL;
	GtkHeaderBar* _tmp29_ = NULL;
	gboolean _tmp30_ = FALSE;
	gboolean _tmp31_ = FALSE;
	gboolean _tmp32_ = FALSE;
	GtkToggleButton* _tmp34_ = NULL;
	GtkMenuButton* _tmp35_ = NULL;
	gboolean _tmp36_ = FALSE;
	GtkToggleButton* _tmp37_ = NULL;
	gboolean _tmp38_ = FALSE;
	GtkButton* _tmp39_ = NULL;
	gboolean _tmp40_ = FALSE;
	gboolean _tmp41_ = FALSE;
	gboolean _tmp42_ = FALSE;
	GtkStackSwitcher* _tmp44_ = NULL;
	GtkButton* _tmp45_ = NULL;
	gboolean _tmp46_ = FALSE;
	GtkToggleButton* _tmp47_ = NULL;
	gboolean _tmp48_ = FALSE;
#line 880 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp1_) : NULL;
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 3802 "gitg-window.c"
	}
#line 882 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	selectable = _tmp2_;
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = selectable;
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_ == NULL) {
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = TRUE;
#line 3812 "gitg-window.c"
	} else {
		GitgExtSelectionMode _tmp5_ = 0;
		GitgExtSelectionMode _tmp6_ = 0;
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_selectable_mode;
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = value;
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp5_ == _tmp6_;
#line 3822 "gitg-window.c"
	}
#line 884 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 886 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (selectable);
#line 886 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3830 "gitg-window.c"
	}
#line 889 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = value;
#line 889 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode = _tmp7_;
#line 890 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = selectable;
#line 890 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = value;
#line 890 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_selectable_set_selectable_mode (_tmp8_, _tmp9_);
#line 892 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_header_bar;
#line 892 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 892 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 892 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	ctx = _tmp12_;
#line 894 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = self->priv->d_selectable_mode;
#line 894 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp13_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 3854 "gitg-window.c"
		GtkStyleContext* _tmp14_ = NULL;
		GitgExtSelectable* _tmp15_ = NULL;
		GtkWidget* _tmp16_ = NULL;
		GtkWidget* _tmp17_ = NULL;
		GtkWidget* _tmp18_ = NULL;
#line 896 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = ctx;
#line 896 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp14_, "selection-mode");
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = selectable;
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = gitg_ext_selectable_get_action_widget (_tmp15_);
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = _tmp16_;
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_select_actions);
#line 898 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_select_actions = _tmp17_;
#line 900 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_select_actions;
#line 900 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp18_ != NULL) {
#line 3878 "gitg-window.c"
			GtkGrid* _tmp19_ = NULL;
			GtkWidget* _tmp20_ = NULL;
			GtkWidget* _tmp21_ = NULL;
#line 902 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp19_ = self->priv->d_grid_main;
#line 902 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp20_ = self->priv->d_select_actions;
#line 902 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gtk_grid_attach (_tmp19_, _tmp20_, 0, 3, 1, 1);
#line 903 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_select_actions;
#line 903 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gtk_widget_show (_tmp21_);
#line 3892 "gitg-window.c"
		}
	} else {
		GtkStyleContext* _tmp22_ = NULL;
		GtkWidget* _tmp23_ = NULL;
#line 908 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = ctx;
#line 908 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp22_, "selection-mode");
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_select_actions;
#line 910 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp23_ != NULL) {
#line 3905 "gitg-window.c"
			GtkWidget* _tmp24_ = NULL;
#line 912 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_select_actions;
#line 912 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gtk_widget_destroy (_tmp24_);
#line 913 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (self->priv->d_select_actions);
#line 913 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			self->priv->d_select_actions = NULL;
#line 3915 "gitg-window.c"
		}
	}
#line 917 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_selectable_mode;
#line 917 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	issel = _tmp25_ == GITG_EXT_SELECTION_MODE_SELECTION;
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_;
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp27_) : NULL;
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == NULL) {
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp27_);
#line 3932 "gitg-window.c"
	}
#line 918 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp28_;
#line 920 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp29_ = self->priv->d_header_bar;
#line 920 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp30_ = issel;
#line 920 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_set_show_close_button (_tmp29_, !_tmp30_);
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp32_ = issel;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp32_) {
#line 3946 "gitg-window.c"
		GitgExtSearchable* _tmp33_ = NULL;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp33_ = searchable;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = _tmp33_ != NULL;
#line 3952 "gitg-window.c"
	} else {
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = FALSE;
#line 3956 "gitg-window.c"
	}
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp34_ = self->priv->d_search_button;
#line 921 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp34_, _tmp31_);
#line 922 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp35_ = self->priv->d_gear_menu;
#line 922 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp36_ = issel;
#line 922 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp35_, !_tmp36_);
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp37_ = self->priv->d_select_button;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp38_ = issel;
#line 923 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp37_, !_tmp38_);
#line 924 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp39_ = self->priv->d_dash_button;
#line 924 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp40_ = issel;
#line 924 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp39_, !_tmp40_);
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp42_ = issel;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp42_) {
#line 3984 "gitg-window.c"
		GitgRepository* _tmp43_ = NULL;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp43_ = self->priv->d_repository;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp41_ = _tmp43_ != NULL;
#line 3990 "gitg-window.c"
	} else {
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp41_ = FALSE;
#line 3994 "gitg-window.c"
	}
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_activities_switcher;
#line 925 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp44_, _tmp41_);
#line 926 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_select_cancel_button;
#line 926 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp46_ = issel;
#line 926 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp45_, _tmp46_);
#line 928 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_select_button;
#line 928 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp48_ = issel;
#line 928 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_toggle_button_set_active (_tmp47_, _tmp48_);
#line 880 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 880 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (ctx);
#line 880 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 880 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 4020 "gitg-window.c"
}


static GitgExtRemoteLookup* gitg_window_real_get_remote_lookup (GitgExtApplication* base) {
	GitgExtRemoteLookup* result;
	GitgWindow* self;
	GitgRemoteManager* _tmp0_ = NULL;
	GitgExtRemoteLookup* _tmp1_ = NULL;
#line 953 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 953 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_remote_manager;
#line 953 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtRemoteLookup*) _tmp0_);
#line 953 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 953 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4039 "gitg-window.c"
}


static GitgExtNotifications* gitg_window_real_get_notifications (GitgExtApplication* base) {
	GitgExtNotifications* result;
	GitgWindow* self;
	GitgNotifications* _tmp0_ = NULL;
	GitgExtNotifications* _tmp1_ = NULL;
#line 958 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 958 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_notifications;
#line 958 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtNotifications*) _tmp0_);
#line 958 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 958 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4058 "gitg-window.c"
}


static gboolean gitg_window_real_change_to_activity (GitgWindow* self, gint i) {
	gboolean result = FALSE;
	GitgExtSelectionMode _tmp0_ = 0;
	gint _tmp1_ = 0;
	GitgWindowMode _tmp3_ = 0;
	GitgExtActivity** elems = NULL;
	GitgUIElements* _tmp4_ = NULL;
	gpointer* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	GitgExtActivity** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	gint elems_length1 = 0;
	gint _elems_size_ = 0;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	GitgExtActivity** _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
	GitgUIElements* _tmp10_ = NULL;
	GitgExtActivity** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gint _tmp12_ = 0;
	GitgExtActivity* _tmp13_ = NULL;
#line 106 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 106 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 108 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4092 "gitg-window.c"
	}
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = i;
#line 111 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == 0) {
#line 4098 "gitg-window.c"
		GitgWindowMode _tmp2_ = 0;
#line 113 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_mode;
#line 113 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 115 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			result = TRUE;
#line 116 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 4110 "gitg-window.c"
		} else {
#line 120 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			result = FALSE;
#line 120 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 4116 "gitg-window.c"
		}
	}
#line 124 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = self->priv->d_mode;
#line 124 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != GITG_WINDOW_MODE_ACTIVITY) {
#line 126 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 126 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4127 "gitg-window.c"
	}
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_activities;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_ui_elements_get_available_elements (_tmp4_, &_tmp5__length1);
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = _tmp5_;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6__length1 = _tmp5__length1;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	elems = _tmp6_;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	elems_length1 = _tmp6__length1;
#line 129 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_elems_size_ = elems_length1;
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = i;
#line 130 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	i = _tmp7_ - 1;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = i;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = elems;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp9__length1 = elems_length1;
#line 132 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_ >= _tmp9__length1) {
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 134 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4161 "gitg-window.c"
	}
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_activities;
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = elems;
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11__length1 = elems_length1;
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = i;
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp11_[_tmp12_];
#line 137 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_set_current (_tmp10_, _tmp13_);
#line 138 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 138 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 138 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4181 "gitg-window.c"
}


static void g_cclosure_user_marshal_BOOLEAN__INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
	typedef gboolean (*GMarshalFunc_BOOLEAN__INT) (gpointer data1, gint arg_1, gpointer data2);
	register GMarshalFunc_BOOLEAN__INT callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	gboolean v_return;
	cc = (GCClosure *) closure;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (return_value != NULL);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (n_param_values == 2);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		data1 = closure->data;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		data2 = param_values->data[0].v_pointer;
#line 4203 "gitg-window.c"
	} else {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		data1 = param_values->data[0].v_pointer;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		data2 = closure->data;
#line 4209 "gitg-window.c"
	}
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	v_return = callback (data1, g_value_get_int (param_values + 1), data2);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_value_set_boolean (return_value, v_return);
#line 4217 "gitg-window.c"
}


static void gitg_window_real_cancel (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 941 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 941 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 941 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 941 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 4233 "gitg-window.c"
		GtkInfoBar* _tmp3_ = NULL;
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_infobar;
#line 943 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp3_);
#line 4239 "gitg-window.c"
	} else {
#line 947 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4243 "gitg-window.c"
	}
}


static Block39Data* block39_data_ref (Block39Data* _data39_) {
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data39_->_ref_count_);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return _data39_;
#line 4253 "gitg-window.c"
}


static void block39_data_unref (void * _userdata_) {
	Block39Data* _data39_;
	_data39_ = (Block39Data*) _userdata_;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data39_->_ref_count_)) {
#line 4262 "gitg-window.c"
		GitgWindow* self;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		self = _data39_->self;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data39_->selact);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block39Data, _data39_);
#line 4272 "gitg-window.c"
	}
}


static void _gitg_window___lambda115_ (Block39Data* _data39_) {
	GitgWindow* self;
	gboolean st = FALSE;
	GAction* _tmp0_ = NULL;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 211 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = _data39_->self;
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data39_->selact;
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state (_tmp0_);
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 212 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 214 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = st;
#line 214 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp5_) {
#line 216 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_SELECTION);
#line 4308 "gitg-window.c"
	} else {
#line 220 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4312 "gitg-window.c"
	}
}


static void __gitg_window___lambda115__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 211 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda115_ (self);
#line 4320 "gitg-window.c"
}


static void _gitg_window___lambda116_ (GitgWindow* self, GtkInfoBar* w, gint r) {
	GtkInfoBar* _tmp0_ = NULL;
#line 272 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 273 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 4332 "gitg-window.c"
}


static void __gitg_window___lambda116__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 272 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda116_ ((GitgWindow*) self, _sender, response_id);
#line 4339 "gitg-window.c"
}


static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgWindow * self;
	Block39Data* _data39_;
	GtkOverlay* _tmp0_ = NULL;
	GitgNotifications* _tmp1_ = NULL;
	GAction* _tmp2_ = NULL;
	GAction* _tmp3_ = NULL;
	GAction* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	gchar* menuname = NULL;
	GtkSettings* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gpointer _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	gpointer _tmp18_ = NULL;
	GtkSearchBar* _tmp19_ = NULL;
	GdTaggedEntry* _tmp20_ = NULL;
	GtkToggleButton* _tmp21_ = NULL;
	GtkSearchBar* _tmp22_ = NULL;
	GtkStackSwitcher* _tmp23_ = NULL;
	GtkStack* _tmp24_ = NULL;
	GeeHashMap* _tmp25_ = NULL;
	gchar** _tmp26_ = NULL;
	gchar** _tmp27_ = NULL;
	gboolean _tmp33_ = FALSE;
	const gchar* _tmp34_ = NULL;
	GtkHeaderBar* _tmp37_ = NULL;
	GtkStackSwitcher* _tmp38_ = NULL;
	GtkHeaderBar* _tmp39_ = NULL;
	GtkToggleButton* _tmp40_ = NULL;
	GtkHeaderBar* _tmp41_ = NULL;
	GtkToggleButton* _tmp42_ = NULL;
	GtkHeaderBar* _tmp43_ = NULL;
	GtkMenuButton* _tmp44_ = NULL;
	GtkHeaderBar* _tmp45_ = NULL;
	GtkMenuButton* _tmp46_ = NULL;
	GtkHeaderBar* _tmp47_ = NULL;
	GtkToggleButton* _tmp48_ = NULL;
	GtkHeaderBar* _tmp49_ = NULL;
	GtkToggleButton* _tmp50_ = NULL;
	GtkHeaderBar* _tmp51_ = NULL;
	GtkStackSwitcher* _tmp52_ = NULL;
	GtkInfoBar* _tmp53_ = NULL;
	GtkBindingSet* bset = NULL;
	GObjectClass* _tmp54_ = NULL;
	GtkBindingSet* _tmp55_ = NULL;
	GtkBindingSet* _tmp62_ = NULL;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	parent_class = G_OBJECT_CLASS (gitg_window_parent_class);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data39_ = g_slice_new0 (Block39Data);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data39_->_ref_count_ = 1;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data39_->self = g_object_ref (self);
#line 205 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_action_map_add_action_entries ((GActionMap*) self, GITG_WINDOW_win_entries, G_N_ELEMENTS (GITG_WINDOW_win_entries), self);
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_overlay;
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_notifications_new (_tmp0_);
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 207 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_notifications = _tmp1_;
#line 209 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = g_action_map_lookup_action ((GActionMap*) self, "select");
#line 209 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 209 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data39_->selact = _tmp3_;
#line 211 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _data39_->selact;
#line 211 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GObject*) _tmp4_, "notify::state", (GCallback) __gitg_window___lambda115__g_object_notify, block39_data_ref (_data39_), (GClosureNotify) block39_data_unref, 0);
#line 224 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 224 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 224 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_interface_settings = _tmp5_;
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = gtk_settings_get_default ();
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp6_, "gtk-shell-shows-app-menu", &_tmp7_, NULL);
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 228 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 4444 "gitg-window.c"
		gchar* _tmp9_ = NULL;
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = g_strdup ("win-menu");
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 230 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		menuname = _tmp9_;
#line 4452 "gitg-window.c"
	} else {
		gchar* _tmp10_ = NULL;
#line 234 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_strdup ("app-win-menu");
#line 234 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 234 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		menuname = _tmp10_;
#line 4461 "gitg-window.c"
	}
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = menuname;
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strconcat (_tmp11_, "-dash", NULL);
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp12_;
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = gitg_resource_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp13_);
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_dash_model = (GMenuModel*) _tmp14_;
#line 237 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp13_);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp15_ = menuname;
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp16_ = g_strconcat (_tmp15_, "-views", NULL);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = _tmp16_;
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = gitg_resource_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp17_);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_activities_model = (GMenuModel*) _tmp18_;
#line 238 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp17_);
#line 241 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = self->priv->d_search_bar;
#line 241 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = self->priv->d_search_entry;
#line 241 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_search_bar_connect_entry (_tmp19_, (GtkEntry*) _tmp20_);
#line 242 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_search_button;
#line 242 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp22_ = self->priv->d_search_bar;
#line 242 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp21_, "active", (GObject*) _tmp22_, "search-mode-enabled", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 247 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = self->priv->d_activities_switcher;
#line 247 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp24_ = self->priv->d_stack_activities;
#line 247 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_stack_switcher_set_stack (_tmp23_, _tmp24_);
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 249 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp25_;
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_ = g_listenv ();
#line 4517 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e_collection = _tmp27_;
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _vala_array_length (_tmp26_);
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _vala_array_length (_tmp26_); e_it = e_it + 1) {
#line 4529 "gitg-window.c"
			gchar* _tmp28_ = NULL;
			gchar* e = NULL;
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp28_ = g_strdup (e_collection[e_it]);
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			e = _tmp28_;
#line 4536 "gitg-window.c"
			{
				GeeHashMap* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
				const gchar* _tmp31_ = NULL;
				const gchar* _tmp32_ = NULL;
#line 253 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp29_ = self->priv->d_environment;
#line 253 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp30_ = e;
#line 253 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp31_ = e;
#line 253 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp32_ = g_getenv (_tmp31_);
#line 253 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _tmp29_, _tmp30_, _tmp32_);
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 4554 "gitg-window.c"
			}
		}
#line 251 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		e_collection = (_vala_array_free (e_collection, e_collection_length1, (GDestroyNotify) g_free), NULL);
#line 4559 "gitg-window.c"
	}
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp34_ = gtk_check_version ((guint) 3, (guint) 13, (guint) 2);
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp34_ != NULL) {
#line 4565 "gitg-window.c"
		GtkTextDirection _tmp35_ = 0;
#line 257 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp35_ = gtk_widget_get_direction ((GtkWidget*) self);
#line 257 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp33_ = _tmp35_ == GTK_TEXT_DIR_RTL;
#line 4571 "gitg-window.c"
	} else {
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp33_ = FALSE;
#line 4575 "gitg-window.c"
	}
#line 256 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp33_) {
#line 4579 "gitg-window.c"
		GtkImage* _tmp36_ = NULL;
#line 259 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		_tmp36_ = self->priv->dash_image;
#line 259 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp36_, "icon-name", "go-previous-rtl-symbolic", NULL);
#line 4585 "gitg-window.c"
	}
#line 262 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp37_ = self->priv->d_header_bar;
#line 262 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp38_ = self->priv->d_activities_switcher;
#line 262 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp37_, (GtkWidget*) _tmp38_);
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp39_ = self->priv->d_header_bar;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_search_button;
#line 263 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp39_, (GtkWidget*) _tmp40_);
#line 264 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_header_bar;
#line 264 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp42_ = self->priv->d_select_button;
#line 264 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp41_, (GtkWidget*) _tmp42_);
#line 265 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp43_ = self->priv->d_header_bar;
#line 265 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_gear_menu;
#line 265 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp43_, (GtkWidget*) _tmp44_);
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_header_bar;
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_gear_menu;
#line 267 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp45_, (GtkWidget*) _tmp46_);
#line 268 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_header_bar;
#line 268 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp48_ = self->priv->d_select_button;
#line 268 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp47_, (GtkWidget*) _tmp48_);
#line 269 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp49_ = self->priv->d_header_bar;
#line 269 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_search_button;
#line 269 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp49_, (GtkWidget*) _tmp50_);
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp51_ = self->priv->d_header_bar;
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp52_ = self->priv->d_activities_switcher;
#line 270 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp51_, (GtkWidget*) _tmp52_);
#line 272 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp53_ = self->priv->d_infobar;
#line 272 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_object (_tmp53_, "response", (GCallback) __gitg_window___lambda116__gtk_info_bar_response, self, 0);
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp54_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp55_ = gtk_binding_set_by_class (_tmp54_);
#line 276 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	bset = _tmp55_;
#line 4645 "gitg-window.c"
	{
		gint i = 0;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		i = 0;
#line 4650 "gitg-window.c"
		{
			gboolean _tmp56_ = FALSE;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			_tmp56_ = TRUE;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
			while (TRUE) {
#line 4657 "gitg-window.c"
				gint _tmp58_ = 0;
				GtkBindingSet* _tmp59_ = NULL;
				gint _tmp60_ = 0;
				gint _tmp61_ = 0;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				if (!_tmp56_) {
#line 4664 "gitg-window.c"
					gint _tmp57_ = 0;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					_tmp57_ = i;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					i = _tmp57_ + 1;
#line 4670 "gitg-window.c"
				}
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp56_ = FALSE;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp58_ = i;
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				if (!(_tmp58_ < 10)) {
#line 278 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
					break;
#line 4680 "gitg-window.c"
				}
#line 280 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp59_ = bset;
#line 280 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp60_ = i;
#line 280 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				_tmp61_ = i;
#line 280 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
				gtk_binding_entry_add_signal (_tmp59_, (guint) (GDK_KEY_0 + _tmp60_), GDK_MOD1_MASK, "change-to-activity", (guint) 1, G_TYPE_INT, _tmp61_, NULL);
#line 4690 "gitg-window.c"
			}
		}
	}
#line 289 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_tmp62_ = bset;
#line 289 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_binding_entry_add_signal (_tmp62_, (guint) GDK_KEY_Escape, 0, "cancel", (guint) 0, NULL);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (menuname);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	block39_data_unref (_data39_);
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_data39_ = NULL;
#line 203 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	return obj;
#line 4706 "gitg-window.c"
}


static void gitg_window_class_init (GitgWindowClass * klass) {
	gint GitgWindow_private_offset;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_type_class_add_private (klass, sizeof (GitgWindowPrivate));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->window_state_event = gitg_window_real_window_state_event;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->configure_event = gitg_window_real_configure_event;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->change_to_activity = gitg_window_real_change_to_activity;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->cancel = gitg_window_real_cancel;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_window_get_property;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_window_set_property;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_window_constructor;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_window_finalize;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_CURRENT_ACTIVITY, g_param_spec_object ("current-activity", "current-activity", "current-activity", GITG_EXT_TYPE_ACTIVITY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_MESSAGE_BUS, g_param_spec_object ("message-bus", "message-bus", "message-bus", GITG_EXT_TYPE_MESSAGE_BUS, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_REPOSITORY, g_param_spec_object ("repository", "repository", "repository", GITG_TYPE_REPOSITORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_ENVIRONMENT, g_param_spec_object ("environment", "environment", "environment", GEE_TYPE_MAP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_BUSY, g_param_spec_boolean ("busy", "busy", "busy", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_SELECTABLE_MODE, g_param_spec_enum ("selectable-mode", "selectable-mode", "selectable-mode", GITG_EXT_TYPE_SELECTION_MODE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_REMOTE_LOOKUP, g_param_spec_object ("remote-lookup", "remote-lookup", "remote-lookup", GITG_EXT_TYPE_REMOTE_LOOKUP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_NOTIFICATIONS, g_param_spec_object ("notifications", "notifications", "notifications", GITG_EXT_TYPE_NOTIFICATIONS, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	GitgWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-window.ui");
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_new ("change_to_activity", GITG_TYPE_WINDOW, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GitgWindowClass, change_to_activity), NULL, NULL, g_cclosure_user_marshal_BOOLEAN__INT, G_TYPE_BOOLEAN, 1, G_TYPE_INT);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_signal_new ("cancel", GITG_TYPE_WINDOW, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GitgWindowClass, cancel), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_header_bar", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_header_bar));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_search_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_search_button));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_gear_menu", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_gear_menu));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_grid_main", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_grid_main));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_select_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_select_button));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_select_cancel_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_select_cancel_button));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_dash_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_dash_button));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dash_image", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, dash_image));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_activities_switcher", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_activities_switcher));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_search_bar", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_search_bar));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_search_entry", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_search_entry));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_main_stack", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_main_stack));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_dash_scrolled_window", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_dash_scrolled_window));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_dash_view", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_dash_view));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_stack_activities", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_stack_activities));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_infobar", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_infobar));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_infobar_primary_label", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_infobar_primary_label));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_infobar_secondary_label", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_infobar_secondary_label));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_overlay", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_overlay));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "dash_button_clicked", G_CALLBACK(_gitg_window_dash_button_clicked_gtk_button_clicked));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "search_button_toggled", G_CALLBACK(_gitg_window_search_button_toggled_gtk_toggle_button_toggled));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "search_entry_changed", G_CALLBACK(_gitg_window_search_entry_changed_gtk_editable_changed));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "dash_view_repository_activated", G_CALLBACK(_gitg_window_dash_view_repository_activated_gitg_repository_list_box_repository_activated));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "dash_view_show_error", G_CALLBACK(_gitg_window_dash_view_show_error_gitg_repository_list_box_show_error));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_select_cancel_button_clicked", G_CALLBACK(_gitg_window_on_select_cancel_button_clicked_gtk_button_clicked));
#line 4806 "gitg-window.c"
}


static void gitg_window_gitg_ext_application_interface_init (GitgExtApplicationIface * iface) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_gitg_ext_application_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->open_new = (GitgExtApplication* (*)(GitgExtApplication*, GgitRepository*, const gchar*)) gitg_window_real_open_new;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->activity = (GitgExtActivity* (*)(GitgExtApplication*, const gchar*)) gitg_window_real_activity;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->show_infobar = (void (*)(GitgExtApplication*, const gchar*, const gchar*, GtkMessageType)) gitg_window_real_show_infobar;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->user_query = (void (*)(GitgExtApplication*, GitgExtUserQuery*)) gitg_window_real_user_query;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_current_activity = gitg_window_real_get_current_activity;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_message_bus = gitg_window_real_get_message_bus;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_repository = gitg_window_real_get_repository;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->set_repository = gitg_window_real_set_repository;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_environment = gitg_window_real_get_environment;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_busy = gitg_window_real_get_busy;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->set_busy = gitg_window_real_set_busy;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_remote_lookup = gitg_window_real_get_remote_lookup;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->get_notifications = gitg_window_real_get_notifications;
#line 4839 "gitg-window.c"
}


static void gitg_window_g_initable_interface_init (GInitableIface * iface) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_g_initable_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	iface->init = (gboolean (*)(GInitable*, GCancellable*, GError**)) gitg_window_real_init;
#line 4848 "gitg-window.c"
}


static void gitg_window_instance_init (GitgWindow * self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self->priv = GITG_WINDOW_GET_PRIVATE (self);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	g_type_ensure (GITG_TYPE_DASH_VIEW);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 4859 "gitg-window.c"
}


static void gitg_window_finalize (GObject* obj) {
	GitgWindow * self;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 26 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 27 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 28 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 29 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (self->priv->d_action);
#line 31 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 33 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_actions);
#line 36 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 41 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 42 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 46 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_header_bar);
#line 48 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_button);
#line 50 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_gear_menu);
#line 51 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 52 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 55 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_main);
#line 58 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_button);
#line 60 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_cancel_button);
#line 63 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_button);
#line 65 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->dash_image);
#line 67 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_switcher);
#line 70 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_bar);
#line 72 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_entry);
#line 75 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_main_stack);
#line 78 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_scrolled_window);
#line 80 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_view);
#line 83 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_stack_activities);
#line 86 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar);
#line 88 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_primary_label);
#line 90 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_secondary_label);
#line 93 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (gitg_window_parent_class)->finalize (obj);
#line 4935 "gitg-window.c"
}


GType gitg_window_get_type (void) {
	static volatile gsize gitg_window_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_window_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgWindow), 0, (GInstanceInitFunc) gitg_window_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_application_info = { (GInterfaceInitFunc) gitg_window_gitg_ext_application_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo g_initable_info = { (GInterfaceInitFunc) gitg_window_g_initable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_window_type_id;
		gitg_window_type_id = g_type_register_static (gtk_application_window_get_type (), "GitgWindow", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_window_type_id, GITG_EXT_TYPE_APPLICATION, &gitg_ext_application_info);
		g_type_add_interface_static (gitg_window_type_id, G_TYPE_INITABLE, &g_initable_info);
		g_once_init_leave (&gitg_window_type_id__volatile, gitg_window_type_id);
	}
	return gitg_window_type_id__volatile;
}


static void _vala_gitg_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_WINDOW, GitgWindow);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_CURRENT_ACTIVITY:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_current_activity ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_MESSAGE_BUS:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_message_bus ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_repository ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_ENVIRONMENT:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_environment ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_set_boolean (value, gitg_ext_application_get_busy ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_set_enum (value, gitg_window_get_selectable_mode (self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REMOTE_LOOKUP:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_remote_lookup ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_NOTIFICATIONS:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_notifications ((GitgExtApplication*) self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 5008 "gitg-window.c"
		default:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 5014 "gitg-window.c"
	}
}


static void _vala_gitg_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_WINDOW, GitgWindow);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, g_value_get_object (value));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_busy ((GitgExtApplication*) self, g_value_get_boolean (value));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, g_value_get_enum (value));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 5042 "gitg-window.c"
		default:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/gitg-window.vala"
		break;
#line 5048 "gitg-window.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);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



