/* gitg-window.c generated by valac 0.32.1, 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 <config.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <libgit2-glib/ggit.h>
#include <libgitg/gitg-platform-support.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_RECURSIVE_MONITOR (gitg_recursive_monitor_get_type ())
#define GITG_RECURSIVE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitor))
#define GITG_RECURSIVE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitorClass))
#define GITG_IS_RECURSIVE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_RECURSIVE_MONITOR))
#define GITG_IS_RECURSIVE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_RECURSIVE_MONITOR))
#define GITG_RECURSIVE_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitorClass))

typedef struct _GitgRecursiveMonitor GitgRecursiveMonitor;
typedef struct _GitgRecursiveMonitorClass GitgRecursiveMonitorClass;

#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 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 _Block65Data Block65Data;
typedef struct _Block66Data Block66Data;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#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 _Block67Data Block67Data;

#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 _Block68Data Block68Data;
typedef struct _Block69Data Block69Data;
typedef struct _GitgWindowUserQueryAsyncData GitgWindowUserQueryAsyncData;
typedef struct _Block70Data Block70Data;
typedef struct _Block71Data Block71Data;

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;
	GitgRecursiveMonitor* d_repository_monitor;
	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;
	GBinding* d_selectable_available_binding;
	GBinding* d_searchable_available_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_activities_model;
	GMenuModel* d_dash_model;
	GtkGrid* d_grid_main;
	GtkGrid* d_grid_top;
	GtkToggleButton* d_select_button;
	GtkButton* d_select_cancel_button;
	GtkButton* d_dash_button;
	GtkButton* d_clone_button;
	GtkButton* d_add_button;
	GtkImage* dash_image;
	GtkStackSwitcher* d_activities_switcher;
	GtkSearchBar* d_search_bar;
	GtkSearchEntry* d_search_entry;
	GtkStack* d_main_stack;
	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;
	gboolean d_enable_monitoring;
};

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

struct _Block66Data {
	int _ref_count_;
	GitgWindow* self;
	GtkFileChooserDialog* chooser;
	GtkCheckButton* scan_all;
};

typedef gboolean (*GitgRecursiveMonitorFilterFunc) (GFile* file, void* user_data);
struct _Block67Data {
	int _ref_count_;
	GitgWindow* self;
	gchar* default_activity;
	GitgExtActivity* def;
};

typedef gboolean (*GitgUIElementsForeachUIElementFunc) (GitgExtUIElement* element, void* user_data);
struct _Block68Data {
	int _ref_count_;
	GitgWindow* self;
	gchar* title;
	gchar* message;
	GtkMessageType type;
};

struct _Block69Data {
	int _ref_count_;
	GitgWindow* self;
	GSourceFunc cb;
	gpointer cb_target;
	GDestroyNotify cb_target_destroy_notify;
	GtkResponseType retval;
	gpointer _async_data_;
};

struct _GitgWindowUserQueryAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgWindow* self;
	GitgExtUserQuery* query;
	GtkResponseType result;
	Block69Data* _data69_;
	GitgExtUserQuery* _tmp0_;
	GitgExtUserQuery* _tmp1_;
};

struct _Block70Data {
	int _ref_count_;
	GitgWindow* self;
	GtkMessageDialog* dlg;
	gulong qid;
	GitgExtUserQuery* query;
};

struct _Block71Data {
	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_recursive_monitor_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_ENABLE_MONITORING,
	GITG_WINDOW_ENVIRONMENT,
	GITG_WINDOW_BUSY,
	GITG_WINDOW_SELECTABLE_MODE,
	GITG_WINDOW_REMOTE_LOOKUP,
	GITG_WINDOW_NOTIFICATIONS
};
#define GITG_WINDOW_version VERSION
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_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_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_clone_repository_clicked (GitgWindow* self);
GType gitg_clone_dialog_get_type (void) G_GNUC_CONST;
static Block65Data* block65_data_ref (Block65Data* _data65_);
static void block65_data_unref (void * _userdata_);
GitgCloneDialog* gitg_clone_dialog_new (GtkWindow* parent);
GitgCloneDialog* gitg_clone_dialog_construct (GType object_type, GtkWindow* parent);
static void __lambda116_ (Block65Data* _data65_, GtkDialog* d, gint id);
void gitg_dash_view_clone_repository (GitgDashView* self, const gchar* url, GFile* location, gboolean is_bare);
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 ___lambda116__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void _gitg_window_clone_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_add_repository_clicked (GitgWindow* self);
static Block66Data* block66_data_ref (Block66Data* _data66_);
static void block66_data_unref (void * _userdata_);
static void __lambda117_ (Block66Data* _data66_, GtkDialog* c, gint id);
void gitg_dash_view_add_repository_from_location (GitgDashView* self, GFile* location, gboolean scan_all);
static void ___lambda117__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void _gitg_window_add_repository_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_real_style_updated (GtkWidget* base);
static gboolean gitg_window_real_delete_event (GtkWidget* base, GdkEventAny* event);
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);
GitgRepositoryListBoxRow* gitg_dash_view_add_repository (GitgDashView* self, GitgRepository* repository);
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 void gitg_window_real_realize (GtkWidget* base);
static gboolean ___lambda118_ (GitgWindow* self);
static gboolean ____lambda118__gsource_func (gpointer 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 GitgExtExternalChangeHint gitg_window_external_change_hint_from_file (GitgWindow* self, GFile* location);
static gboolean gitg_window_filter_repository_changes (GitgWindow* self, GFile* location);
static void gitg_window_set_repository_internal (GitgWindow* self, GitgRepository* repository);
void gitg_recursive_monitor_cancel (GitgRecursiveMonitor* self);
static void gitg_window_update_enable_monitoring (GitgWindow* self);
GitgRemoteManager* gitg_remote_manager_new (GitgWindow* window);
GitgRemoteManager* gitg_remote_manager_construct (GType object_type, GitgWindow* window);
gboolean gitg_window_get_enable_monitoring (GitgWindow* self);
static gboolean _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func (GFile* file, gpointer self);
GitgRecursiveMonitor* gitg_recursive_monitor_new (GFile* location, GitgRecursiveMonitorFilterFunc filter_func, void* filter_func_target, GDestroyNotify filter_func_target_destroy_notify);
GitgRecursiveMonitor* gitg_recursive_monitor_construct (GType object_type, GFile* location, GitgRecursiveMonitorFilterFunc filter_func, void* filter_func_target, GDestroyNotify filter_func_target_destroy_notify);
static void ___lambda92_ (GitgWindow* self, GFile** files, int files_length1);
static void ____lambda92__gitg_recursive_monitor_changed (GitgRecursiveMonitor* _sender, GFile** files, int files_length1, 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 gboolean gitg_window_activate_activity (GitgWindow* self, const gchar* action);
static Block67Data* block67_data_ref (Block67Data* _data67_);
static void block67_data_unref (void * _userdata_);
void gitg_ui_elements_foreach (GitgUIElements* self, GitgUIElementsForeachUIElementFunc func, void* func_target);
static gboolean __lambda108_ (Block67Data* _data67_, GitgExtUIElement* element);
static gboolean ___lambda108__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
void gitg_ui_elements_set_current (GitgUIElements* self, gconstpointer value);
static gboolean ___lambda109_ (GitgWindow* self, GitgExtUIElement* element);
static gboolean ____lambda109__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
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_set_activity_by_id (GitgExtApplication* base, const gchar* id);
gpointer gitg_ui_elements_lookup (GitgUIElements* self, const gchar* id);
gconstpointer gitg_ui_elements_get_current (GitgUIElements* self);
static GitgExtActivity* gitg_window_real_get_activity_by_id (GitgExtApplication* base, const gchar* id);
static void gitg_window_real_open_repository (GitgExtApplication* base, GFile* path);
static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type);
static Block68Data* block68_data_ref (Block68Data* _data68_);
static void block68_data_unref (void * _userdata_);
static gboolean __lambda162_ (Block68Data* _data68_);
static gboolean ___lambda162__gsource_func (gpointer self);
static void gitg_window_real_user_query_async_data_free (gpointer _data);
static void gitg_window_real_user_query_async (GitgExtApplication* base, GitgExtUserQuery* query, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gitg_window_real_user_query_async_co (GitgWindowUserQueryAsyncData* _data_);
static Block69Data* block69_data_ref (Block69Data* _data69_);
static void block69_data_unref (void * _userdata_);
static gboolean _gitg_window_real_user_query_async_co_gsource_func (gpointer self);
static gboolean __lambda163_ (Block69Data* _data69_, GtkResponseType response);
static gboolean ___lambda163__gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self);
static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query);
static Block70Data* block70_data_ref (Block70Data* _data70_);
static void block70_data_unref (void * _userdata_);
static void __lambda164_ (Block70Data* _data70_);
static void ___lambda164__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self);
static void __lambda165_ (Block70Data* _data70_, GtkDialog* w, gint r);
static void ___lambda165__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static GgitSignature* gitg_window_real_get_verified_committer (GitgExtApplication* base);
void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines);
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);
void gitg_window_set_enable_monitoring (GitgWindow* self, gboolean value);
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 Block71Data* block71_data_ref (Block71Data* _data71_);
static void block71_data_unref (void * _userdata_);
GitgNotifications* gitg_notifications_new (GtkOverlay* overlay);
GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay);
static void _gitg_window___lambda166_ (Block71Data* _data71_);
static void __gitg_window___lambda166__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gpointer gitg_builder_load_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* id, const gchar* object);
static void _gitg_window___lambda167_ (GitgWindow* self, GtkInfoBar* w, gint r);
static void __gitg_window___lambda167__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[6] = {{"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}, {"close", _gitg_window_on_close_activated_gsimple_action_activate_callback}, {"reload", _gitg_window_on_reload_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 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_search_activated ((GitgWindow*) self, action);
#line 495 "gitg-window.c"
}


static void _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_gear_menu_activated ((GitgWindow*) self, action);
#line 502 "gitg-window.c"
}


static void _gitg_window_on_close_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_close_activated ((GitgWindow*) self);
#line 509 "gitg-window.c"
}


static void _gitg_window_on_reload_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_reload_activated ((GitgWindow*) self);
#line 516 "gitg-window.c"
}


static void _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_repo_author_details_activated ((GitgWindow*) self);
#line 523 "gitg-window.c"
}


static void _gitg_window_on_select_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_select_activated ((GitgWindow*) self, action);
#line 530 "gitg-window.c"
}


static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash) {
#line 162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (dash != NULL);
#line 164 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 541 "gitg-window.c"
}


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


static Block65Data* block65_data_ref (Block65Data* _data65_) {
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data65_->_ref_count_);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data65_;
#line 557 "gitg-window.c"
}


static void block65_data_unref (void * _userdata_) {
	Block65Data* _data65_;
	_data65_ = (Block65Data*) _userdata_;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data65_->_ref_count_)) {
#line 566 "gitg-window.c"
		GitgWindow* self;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data65_->self;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data65_->dlg);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block65Data, _data65_);
#line 576 "gitg-window.c"
	}
}


static void __lambda116_ (Block65Data* _data65_, GtkDialog* d, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp9_ = NULL;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data65_->self;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (d != NULL);
#line 173 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 173 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 593 "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 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_dash_view;
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_clone_dialog_get_url (_data65_->dlg);
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_clone_dialog_get_location (_data65_->dlg);
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_clone_dialog_get_is_bare (_data65_->dlg);
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_dash_view_clone_repository (_tmp1_, _tmp3_, _tmp6_, _tmp8_);
#line 175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 622 "gitg-window.c"
	}
#line 178 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = d;
#line 178 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp9_);
#line 628 "gitg-window.c"
}


static void ___lambda116__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda116_ (self, _sender, response_id);
#line 635 "gitg-window.c"
}


static void gitg_window_clone_repository_clicked (GitgWindow* self) {
	Block65Data* _data65_;
	GitgCloneDialog* _tmp0_ = NULL;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_ = g_slice_new0 (Block65Data);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->_ref_count_ = 1;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->self = g_object_ref (self);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_clone_dialog_new ((GtkWindow*) self);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->dlg = _tmp0_;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _data65_->dlg, "response", (GCallback) ___lambda116__gtk_dialog_response, block65_data_ref (_data65_), (GClosureNotify) block65_data_unref, 0);
#line 181 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data65_->dlg);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block65_data_unref (_data65_);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_ = NULL;
#line 664 "gitg-window.c"
}


static void _gitg_window_clone_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_clone_repository_clicked ((GitgWindow*) self);
#line 671 "gitg-window.c"
}


static Block66Data* block66_data_ref (Block66Data* _data66_) {
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data66_->_ref_count_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data66_;
#line 680 "gitg-window.c"
}


static void block66_data_unref (void * _userdata_) {
	Block66Data* _data66_;
	_data66_ = (Block66Data*) _userdata_;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data66_->_ref_count_)) {
#line 689 "gitg-window.c"
		GitgWindow* self;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data66_->self;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data66_->scan_all);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data66_->chooser);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block66Data, _data66_);
#line 701 "gitg-window.c"
	}
}


static void __lambda117_ (Block66Data* _data66_, GtkDialog* c, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp8_ = NULL;
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data66_->self;
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (c != NULL);
#line 205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 718 "gitg-window.c"
		GFile* file = NULL;
		GFile* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		GitgDashView* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp7_ = FALSE;
#line 207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gtk_file_chooser_get_file ((GtkFileChooser*) _data66_->chooser);
#line 207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		file = _tmp1_;
#line 209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = file;
#line 209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == NULL) {
#line 734 "gitg-window.c"
			GFile* _tmp3_ = NULL;
#line 211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp3_ = gtk_file_chooser_get_current_folder_file ((GtkFileChooser*) _data66_->chooser);
#line 211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (file);
#line 211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			file = _tmp3_;
#line 742 "gitg-window.c"
		}
#line 214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_dash_view;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = file;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _data66_->scan_all);
#line 214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_dash_view_add_repository_from_location (_tmp4_, _tmp5_, _tmp7_);
#line 205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (file);
#line 756 "gitg-window.c"
	}
#line 217 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = c;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp8_);
#line 762 "gitg-window.c"
}


static void ___lambda117__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda117_ (self, _sender, response_id);
#line 769 "gitg-window.c"
}


static void gitg_window_add_repository_clicked (GitgWindow* self) {
	Block66Data* _data66_;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkFileChooserDialog* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	GtkCheckButton* _tmp5_ = NULL;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_ = g_slice_new0 (Block66Data);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->_ref_count_ = 1;
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->self = g_object_ref (self);
#line 187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _ ("Add Repository");
#line 187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _ ("_Cancel");
#line 187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _ ("_Add");
#line 187 "/home/jesse/dev/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 187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp3_);
#line 187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->chooser = _tmp3_;
#line 193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _ ("_Scan for all git repositories from this directory");
#line 193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp4_);
#line 193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->scan_all = _tmp5_;
#line 195 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_halign ((GtkWidget*) _data66_->scan_all, GTK_ALIGN_END);
#line 196 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _data66_->scan_all, TRUE);
#line 197 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data66_->scan_all);
#line 199 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_file_chooser_set_extra_widget ((GtkFileChooser*) _data66_->chooser, (GtkWidget*) _data66_->scan_all);
#line 201 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_set_modal ((GtkWindow*) _data66_->chooser, TRUE);
#line 202 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _data66_->chooser, (gint) GTK_RESPONSE_OK);
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _data66_->chooser, "response", (GCallback) ___lambda117__gtk_dialog_response, block66_data_ref (_data66_), (GClosureNotify) block66_data_unref, 0);
#line 220 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data66_->chooser);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block66_data_unref (_data66_);
#line 185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_ = NULL;
#line 829 "gitg-window.c"
}


static void _gitg_window_add_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_add_repository_clicked ((GitgWindow*) self);
#line 836 "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 224 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 224 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (button != NULL);
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 861 "gitg-window.c"
	}
#line 226 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 228 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = button;
#line 228 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
#line 228 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 871 "gitg-window.c"
		GtkSearchEntry* _tmp5_ = NULL;
		GtkSearchEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GitgExtSearchable* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		GtkSearchEntry* _tmp13_ = NULL;
#line 230 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_entry;
#line 230 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = searchable;
#line 233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp11_, TRUE);
#line 234 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 234 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_search_entry;
#line 234 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp12_, (GtkEntry*) _tmp13_);
#line 909 "gitg-window.c"
	} else {
		GitgExtSearchable* _tmp14_ = NULL;
		GitgExtSearchable* _tmp15_ = NULL;
#line 238 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = searchable;
#line 238 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp14_, FALSE);
#line 239 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 239 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp15_, NULL);
#line 921 "gitg-window.c"
	}
#line 224 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 925 "gitg-window.c"
}


static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_search_button_toggled ((GitgWindow*) self, _sender);
#line 932 "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 244 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 244 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (entry != NULL);
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 966 "gitg-window.c"
	}
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 247 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = entry;
#line 247 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp3_) : NULL);
#line 247 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 247 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 247 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ntext = _tmp6_;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = ntext;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = searchable;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_ext_searchable_get_search_text (_tmp8_);
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = _tmp10_;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strcmp0 (_tmp7_, _tmp11_) != 0;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp11_);
#line 249 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 996 "gitg-window.c"
		GitgExtSearchable* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 251 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = searchable;
#line 251 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ntext;
#line 251 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_text (_tmp13_, _tmp14_);
#line 1005 "gitg-window.c"
	}
#line 244 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (ntext);
#line 244 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1011 "gitg-window.c"
}


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


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


static void gitg_window_real_style_updated (GtkWidget* base) {
	GitgWindow * self;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp0_ = NULL;
	GtkSettings* _tmp1_ = NULL;
	gchar* theme = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	GtkSettings* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	gboolean dark = FALSE;
	gboolean _tmp12_ = FALSE;
#line 367 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 369 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	GTK_WIDGET_CLASS (gitg_window_parent_class)->style_updated ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_settings_get_default ();
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	settings = _tmp1_;
#line 372 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = g_getenv ("GTK_THEME");
#line 372 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 372 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	theme = _tmp3_;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = settings;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp5_, "gtk-application-prefer-dark-theme", &_tmp6_, NULL);
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = TRUE;
#line 1069 "gitg-window.c"
	} else {
		gboolean _tmp8_ = FALSE;
		const gchar* _tmp9_ = NULL;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = theme;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp9_ != NULL) {
#line 1077 "gitg-window.c"
			const gchar* _tmp10_ = NULL;
			gboolean _tmp11_ = FALSE;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp10_ = theme;
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp11_ = g_str_has_suffix (_tmp10_, ":dark");
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = _tmp11_;
#line 1086 "gitg-window.c"
		} else {
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = FALSE;
#line 1090 "gitg-window.c"
		}
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp8_;
#line 1094 "gitg-window.c"
	}
#line 374 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	dark = _tmp4_;
#line 376 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = dark;
#line 376 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 1102 "gitg-window.c"
		GtkStyleContext* _tmp13_ = NULL;
#line 378 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 378 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp13_, "dark");
#line 1108 "gitg-window.c"
	} else {
		GtkStyleContext* _tmp14_ = NULL;
#line 382 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 382 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp14_, "dark");
#line 1115 "gitg-window.c"
	}
#line 367 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (theme);
#line 367 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (settings);
#line 1121 "gitg-window.c"
}


static gboolean gitg_window_real_delete_event (GtkWidget* base, GdkEventAny* event) {
	GitgWindow * self;
	gboolean result = FALSE;
	gboolean ret = FALSE;
	gboolean _tmp2_ = FALSE;
#line 386 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 386 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 388 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ret = FALSE;
#line 390 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (GTK_WIDGET_CLASS (gitg_window_parent_class)->delete_event != NULL) {
#line 1138 "gitg-window.c"
		GdkEventAny* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
#line 392 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = event;
#line 392 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = GTK_WIDGET_CLASS (gitg_window_parent_class)->delete_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp0_);
#line 392 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		ret = _tmp1_;
#line 1147 "gitg-window.c"
	}
#line 395 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = ret;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp2_) {
#line 397 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 1155 "gitg-window.c"
	}
#line 400 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = ret;
#line 400 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1161 "gitg-window.c"
}


static void gitg_window_on_close_activated (GitgWindow* self) {
#line 403 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 405 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_close ((GtkWindow*) self);
#line 1170 "gitg-window.c"
}


static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 408 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 408 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_search_button;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 1190 "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 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = action;
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_action_get_state ((GAction*) _tmp3_);
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_variant_get_boolean (_tmp5_);
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp5_);
#line 412 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		state = _tmp7_;
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = action;
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = state;
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_variant_new_boolean (!_tmp9_);
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_variant_ref_sink (_tmp10_);
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_action_set_state (_tmp8_, _tmp11_);
#line 413 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp11_);
#line 1229 "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 417 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 417 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 419 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	state = _tmp4_;
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!state);
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 421 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 1274 "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 455 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 455 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = hint;
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_window_create_new (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GITG_TYPE_REPOSITORY, GitgRepository), _tmp3_);
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	window = _tmp4_;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = (GitgExtApplication*) window;
#line 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1309 "gitg-window.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	return result;
#line 1321 "gitg-window.c"
}


static void gitg_window_update_title (GitgWindow* self) {
	gchar* windowtitle = NULL;
	gchar* _tmp0_ = NULL;
	gchar* title = NULL;
	gchar* subtitle = NULL;
	GitgRepository* _tmp1_ = NULL;
	gboolean _tmp43_ = FALSE;
	GError * _inner_error_ = NULL;
#line 463 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 465 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = g_strdup ("gitg");
#line 465 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	windowtitle = _tmp0_;
#line 467 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	subtitle = NULL;
#line 469 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 469 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1345 "gitg-window.c"
		GFile* workdir = NULL;
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		gchar* head_name = NULL;
		const gchar* _tmp38_ = NULL;
#line 471 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 471 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_workdir ((GgitRepository*) _tmp2_);
#line 471 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		workdir = _tmp3_;
#line 473 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = workdir;
#line 473 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp4_ != NULL) {
#line 1362 "gitg-window.c"
			gchar* parent_path = NULL;
			GFile* _tmp5_ = NULL;
			GFile* _tmp6_ = NULL;
			GFile* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
			GitgRepository* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			GitgRepository* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp5_ = workdir;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp6_ = g_file_get_parent (_tmp5_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp7_ = _tmp6_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = gitg_utils_replace_home_dir_with_tilde (_tmp7_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp9_ = _tmp8_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp7_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			parent_path = _tmp9_;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp10_ = self->priv->d_repository;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp11_ = gitg_repository_get_name (_tmp10_);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp12_ = _tmp11_;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp13_ = _tmp12_;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp14_ = string_to_string (_tmp13_);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp15_ = parent_path;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp16_ = string_to_string (_tmp15_);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp17_ = g_strconcat (_tmp14_, " (", _tmp16_, ")", NULL);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			title = _tmp17_;
#line 477 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp13_);
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp18_ = self->priv->d_repository;
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp19_ = gitg_repository_get_name (_tmp18_);
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp20_ = _tmp19_;
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp20_;
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp22_ = string_to_string (_tmp21_);
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp23_ = g_strconcat (_tmp22_, " - gitg", NULL);
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			windowtitle = _tmp23_;
#line 478 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp21_);
#line 473 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (parent_path);
#line 1439 "gitg-window.c"
		} else {
			GitgRepository* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
			gchar* _tmp26_ = NULL;
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_repository;
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp25_ = gitg_repository_get_name (_tmp24_);
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp26_ = _tmp25_;
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			title = _tmp26_;
#line 1454 "gitg-window.c"
		}
#line 485 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		head_name = NULL;
#line 1458 "gitg-window.c"
		{
			GitgRef* head = NULL;
			GitgRepository* _tmp27_ = NULL;
			GitgRepository* _tmp28_ = NULL;
			GitgRepository* _tmp29_ = NULL;
			GitgRef* _tmp30_ = NULL;
			GitgRef* _tmp31_ = NULL;
			GitgRef* _tmp32_ = NULL;
			GitgParsedRefName* _tmp33_ = NULL;
			GitgParsedRefName* _tmp34_ = NULL;
			GitgParsedRefName* _tmp35_ = NULL;
			gchar* _tmp36_ = NULL;
			gchar* _tmp37_ = NULL;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp27_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp28_ = _tmp27_;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp29_ = _tmp28_;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp30_ = gitg_repository_get_head (_tmp29_, &_inner_error_);
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp31_ = _tmp30_;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp29_);
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			head = _tmp31_;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1488 "gitg-window.c"
				goto __catch109_g_error;
			}
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp32_ = head;
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp33_ = gitg_ref_get_parsed_name (_tmp32_);
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp34_ = _tmp33_;
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp35_ = _tmp34_;
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp36_ = gitg_parsed_ref_name_get_shortname (_tmp35_);
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp37_ = _tmp36_;
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			head_name = _tmp37_;
#line 490 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp35_);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 1511 "gitg-window.c"
		}
		goto __finally109;
		__catch109_g_error:
		{
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_inner_error_ = NULL;
#line 1520 "gitg-window.c"
		}
		__finally109:
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (workdir);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 487 "/home/jesse/dev/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 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return;
#line 1541 "gitg-window.c"
		}
#line 494 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp38_ = head_name;
#line 494 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp38_ != NULL) {
#line 1547 "gitg-window.c"
			const gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
#line 496 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp39_ = head_name;
#line 496 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp40_ = g_markup_escape_text (_tmp39_, (gssize) -1);
#line 496 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 496 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			subtitle = _tmp40_;
#line 1558 "gitg-window.c"
		}
#line 469 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (head_name);
#line 469 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (workdir);
#line 1564 "gitg-window.c"
	} else {
		const gchar* _tmp41_ = NULL;
		gchar* _tmp42_ = NULL;
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp41_ = _ ("Projects");
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp42_ = g_strdup (_tmp41_);
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		title = _tmp42_;
#line 1576 "gitg-window.c"
	}
#line 504 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp43_ = gitg_platform_support_use_native_window_controls (NULL);
#line 504 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp43_) {
#line 1582 "gitg-window.c"
		GtkHeaderBar* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		const gchar* _tmp46_ = NULL;
#line 506 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp44_ = self->priv->d_header_bar;
#line 506 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp45_ = subtitle;
#line 506 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp44_, _tmp45_);
#line 507 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp46_ = title;
#line 507 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp46_);
#line 1596 "gitg-window.c"
	} else {
		const gchar* _tmp47_ = NULL;
		GtkHeaderBar* _tmp48_ = NULL;
		const gchar* _tmp49_ = NULL;
		GtkHeaderBar* _tmp50_ = NULL;
		const gchar* _tmp51_ = NULL;
#line 511 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = windowtitle;
#line 511 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp47_);
#line 512 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp48_ = self->priv->d_header_bar;
#line 512 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp49_ = title;
#line 512 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp48_, _tmp49_);
#line 513 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp50_ = self->priv->d_header_bar;
#line 513 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = subtitle;
#line 513 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp50_, _tmp51_);
#line 1619 "gitg-window.c"
	}
#line 463 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (subtitle);
#line 463 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (title);
#line 463 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (windowtitle);
#line 1627 "gitg-window.c"
}


static void gitg_window_repository_changed (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgUIElements* _tmp30_ = NULL;
	GitgRepository* _tmp31_ = NULL;
	GitgWindowMode _tmp32_ = 0;
#line 517 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 519 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_update_title (self);
#line 520 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 520 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 522 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 522 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1649 "gitg-window.c"
		GtkStack* _tmp2_ = NULL;
		GtkStack* _tmp3_ = NULL;
		GtkStack* _tmp4_ = NULL;
		GtkStackSwitcher* _tmp5_ = NULL;
		GtkButton* _tmp6_ = NULL;
		GtkButton* _tmp7_ = NULL;
		GtkButton* _tmp8_ = NULL;
		GitgDashView* _tmp9_ = NULL;
		GitgRepository* _tmp10_ = NULL;
		GitgRepositoryListBoxRow* _tmp11_ = NULL;
		GitgRepositoryListBoxRow* _tmp12_ = NULL;
		GtkMenuButton* _tmp13_ = NULL;
		GMenuModel* _tmp14_ = NULL;
		GtkMenuButton* _tmp15_ = NULL;
		GtkMenuButton* _tmp16_ = NULL;
#line 524 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_ACTIVITY;
#line 526 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_main_stack;
#line 526 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp2_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
#line 527 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_main_stack;
#line 527 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_stack_activities;
#line 527 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_activities_switcher;
#line 528 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_dash_button;
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp6_);
#line 530 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = self->priv->d_clone_button;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 531 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = self->priv->d_add_button;
#line 531 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp8_);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_dash_view;
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository;
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = gitg_dash_view_add_repository (_tmp9_, _tmp10_);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = _tmp11_;
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp12_);
#line 534 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_gear_menu;
#line 534 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = self->priv->d_activities_model;
#line 534 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp13_, _tmp14_);
#line 535 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_gear_menu;
#line 535 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp15_);
#line 536 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_gear_menu;
#line 536 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, TRUE);
#line 1717 "gitg-window.c"
	} else {
		GtkStack* _tmp17_ = NULL;
		GtkStack* _tmp18_ = NULL;
		GitgDashView* _tmp19_ = NULL;
		GtkStackSwitcher* _tmp20_ = NULL;
		GtkButton* _tmp21_ = NULL;
		GtkButton* _tmp22_ = NULL;
		GtkButton* _tmp23_ = NULL;
		GtkMenuButton* _tmp24_ = NULL;
		GMenuModel* _tmp25_ = NULL;
		GtkMenuButton* _tmp26_ = NULL;
		GMenuModel* _tmp27_ = NULL;
		GtkMenuButton* _tmp28_ = NULL;
		GMenuModel* _tmp29_ = NULL;
#line 540 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_DASH;
#line 542 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_main_stack;
#line 542 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp17_, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
#line 543 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_main_stack;
#line 543 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_dash_view;
#line 543 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp18_, (GtkWidget*) _tmp19_);
#line 544 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_activities_switcher;
#line 544 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp20_);
#line 545 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_dash_button;
#line 545 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp21_);
#line 546 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_clone_button;
#line 546 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp22_);
#line 547 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_add_button;
#line 547 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp23_);
#line 549 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp24_ = self->priv->d_gear_menu;
#line 549 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp25_ = self->priv->d_dash_model;
#line 549 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp24_, _tmp25_);
#line 550 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp26_ = self->priv->d_gear_menu;
#line 550 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp27_ = self->priv->d_dash_model;
#line 550 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp26_, _tmp27_ != NULL);
#line 551 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp28_ = self->priv->d_gear_menu;
#line 551 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = self->priv->d_dash_model;
#line 551 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp28_, _tmp29_ != NULL);
#line 1778 "gitg-window.c"
	}
#line 554 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp30_ = self->priv->d_activities;
#line 554 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_update (_tmp30_);
#line 556 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp31_ = self->priv->d_repository;
#line 556 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp31_ != NULL) {
#line 558 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_activate_default_activity (self);
#line 1790 "gitg-window.c"
	}
#line 561 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp32_ = self->priv->d_mode;
#line 561 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp32_ == GITG_WINDOW_MODE_DASH) {
#line 563 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_on_current_activity_changed (self);
#line 1798 "gitg-window.c"
	}
}


static gboolean ___lambda118_ (GitgWindow* self) {
	gboolean result = FALSE;
#line 570 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_set_interactive_debugging (TRUE);
#line 571 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 571 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1811 "gitg-window.c"
}


static gboolean ____lambda118__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda118_ ((GitgWindow*) self);
#line 569 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1820 "gitg-window.c"
}


static void gitg_window_real_realize (GtkWidget* base) {
	GitgWindow * self;
	const gchar* _tmp0_ = NULL;
#line 567 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 568 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = g_getenv ("GITG_GTK_DEBUG_INTERACTIVE");
#line 568 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 569 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 1, ____lambda118__gsource_func, g_object_ref (self), g_object_unref);
#line 1835 "gitg-window.c"
	}
#line 575 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	GTK_WIDGET_CLASS (gitg_window_parent_class)->realize ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 1839 "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 578 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 578 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 580 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 580 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = event;
#line 580 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_->new_window_state;
#line 580 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_set_int (_tmp0_, "state", (gint) _tmp2_);
#line 581 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = event;
#line 581 "/home/jesse/dev/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 581 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp4_;
#line 581 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1871 "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 584 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 584 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_realized ((GtkWidget*) self);
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_) {
#line 1890 "gitg-window.c"
		GdkWindow* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = gtk_widget_get_window ((GtkWidget*) self);
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = gdk_window_get_state (_tmp2_);
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = !((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED);
#line 1899 "gitg-window.c"
	} else {
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 1903 "gitg-window.c"
	}
#line 586 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1907 "gitg-window.c"
		GSettings* _tmp4_ = NULL;
		GdkEventConfigure* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		GdkEventConfigure* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_state_settings;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = event;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_->width;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = event;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_->height;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_settings_set (_tmp4_, "size", "(ii)", _tmp6_, _tmp8_);
#line 1925 "gitg-window.c"
	}
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = event;
#line 591 "/home/jesse/dev/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 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp10_;
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1935 "gitg-window.c"
}


static GitgExtExternalChangeHint gitg_window_external_change_hint_from_file (GitgWindow* self, GFile* location) {
	GitgExtExternalChangeHint result = 0;
	GFile* l = NULL;
	GitgRepository* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* refs = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* index = NULL;
	GFile* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
	GFile* head = NULL;
	GFile* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
	GFile* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, 0);
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = ggit_repository_get_location ((GgitRepository*) _tmp0_);
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	l = _tmp1_;
#line 598 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = l;
#line 598 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_file_get_child (_tmp2_, "refs");
#line 598 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	refs = _tmp3_;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = l;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = g_file_get_child (_tmp4_, "index");
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	index = _tmp5_;
#line 600 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = l;
#line 600 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = g_file_get_child (_tmp6_, "HEAD");
#line 600 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	head = _tmp7_;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = location;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = refs;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_file_equal (_tmp10_, _tmp11_);
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = TRUE;
#line 1996 "gitg-window.c"
	} else {
		GFile* _tmp13_ = NULL;
		GFile* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = location;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = refs;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_file_has_prefix (_tmp13_, _tmp14_);
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp15_;
#line 2009 "gitg-window.c"
	}
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp9_) {
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = TRUE;
#line 2015 "gitg-window.c"
	} else {
		GFile* _tmp16_ = NULL;
		GFile* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = location;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = head;
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = g_file_equal (_tmp16_, _tmp17_);
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp18_;
#line 2028 "gitg-window.c"
	}
#line 602 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = GITG_EXT_EXTERNAL_CHANGE_HINT_REFS;
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (head);
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (index);
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (refs);
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (l);
#line 604 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2044 "gitg-window.c"
	} else {
		GFile* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		gboolean _tmp21_ = FALSE;
#line 606 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = location;
#line 606 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = index;
#line 606 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = g_file_equal (_tmp19_, _tmp20_);
#line 606 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_INDEX;
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 608 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 2069 "gitg-window.c"
		} else {
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 612 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 2083 "gitg-window.c"
		}
	}
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (head);
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (index);
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (refs);
#line 594 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (l);
#line 2094 "gitg-window.c"
}


static gboolean gitg_window_filter_repository_changes (GitgWindow* self, GFile* location) {
	gboolean result = FALSE;
	GFile* _tmp0_ = NULL;
	GitgExtExternalChangeHint _tmp1_ = 0;
#line 617 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 617 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, FALSE);
#line 619 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = location;
#line 619 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_external_change_hint_from_file (self, _tmp0_);
#line 619 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_ != GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 619 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2114 "gitg-window.c"
}


static void gitg_window_set_repository_internal (GitgWindow* self, GitgRepository* repository) {
	GitgRecursiveMonitor* _tmp0_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRemoteManager* _tmp5_ = NULL;
#line 622 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 624 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 624 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 2130 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 626 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 626 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 2140 "gitg-window.c"
	}
#line 630 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 630 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 630 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 630 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_repository = _tmp3_;
#line 632 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_repository;
#line 632 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 634 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_update_enable_monitoring (self);
#line 2156 "gitg-window.c"
	}
#line 637 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_remote_manager_new (self);
#line 637 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 637 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_remote_manager = _tmp5_;
#line 638 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "repository");
#line 2166 "gitg-window.c"
}


static gboolean _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func (GFile* file, gpointer self) {
	gboolean result;
	result = gitg_window_filter_repository_changes ((GitgWindow*) self, file);
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2175 "gitg-window.c"
}


static void ___lambda92_ (GitgWindow* self, GFile** files, int files_length1) {
	GitgExtExternalChangeHint hint = 0;
	GFile** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgExtExternalChangeHint _tmp5_ = 0;
#line 669 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	hint = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = files;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0__length1 = files_length1;
#line 2190 "gitg-window.c"
	{
		GFile** f_collection = NULL;
		gint f_collection_length1 = 0;
		gint _f_collection_size_ = 0;
		gint f_it = 0;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		f_collection = _tmp0_;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		f_collection_length1 = _tmp0__length1;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (f_it = 0; f_it < _tmp0__length1; f_it = f_it + 1) {
#line 2202 "gitg-window.c"
			GFile* _tmp1_ = NULL;
			GFile* f = NULL;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp1_ = _g_object_ref0 (f_collection[f_it]);
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			f = _tmp1_;
#line 2209 "gitg-window.c"
			{
				GitgExtExternalChangeHint _tmp2_ = 0;
				GFile* _tmp3_ = NULL;
				GitgExtExternalChangeHint _tmp4_ = 0;
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp2_ = hint;
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp3_ = f;
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp4_ = gitg_window_external_change_hint_from_file (self, _tmp3_);
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				hint = _tmp2_ | _tmp4_;
#line 671 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (f);
#line 2224 "gitg-window.c"
			}
		}
	}
#line 676 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = hint;
#line 676 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name ((GitgExtApplication*) self, "repository-changed-externally", _tmp5_);
#line 2232 "gitg-window.c"
}


static void ____lambda92__gitg_recursive_monitor_changed (GitgRecursiveMonitor* _sender, GFile** files, int files_length1, gpointer self) {
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	___lambda92_ ((GitgWindow*) self, files, files_length1);
#line 2239 "gitg-window.c"
}


static void gitg_window_update_enable_monitoring (GitgWindow* self) {
	GitgRecursiveMonitor* _tmp0_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
#line 657 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 659 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 659 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 2254 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 661 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 661 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 2264 "gitg-window.c"
	}
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_window_get_enable_monitoring (self);
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2272 "gitg-window.c"
		GitgRepository* _tmp5_ = NULL;
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_repository;
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp5_ != NULL;
#line 2278 "gitg-window.c"
	} else {
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = FALSE;
#line 2282 "gitg-window.c"
	}
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 2286 "gitg-window.c"
		GitgRepository* _tmp6_ = NULL;
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GitgRecursiveMonitor* _tmp9_ = NULL;
		GitgRecursiveMonitor* _tmp10_ = NULL;
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_repository;
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = ggit_repository_get_location ((GgitRepository*) _tmp6_);
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_recursive_monitor_new (_tmp8_, _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func, g_object_ref (self), g_object_unref);
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = _tmp9_;
#line 667 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp8_);
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository_monitor;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_signal_connect_object (_tmp10_, "changed", (GCallback) ____lambda92__gitg_recursive_monitor_changed, self, 0);
#line 2310 "gitg-window.c"
	}
}


static void gitg_window_on_reload_activated (GitgWindow* self) {
	GError * _inner_error_ = NULL;
#line 681 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 2319 "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;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = ggit_repository_get_location ((GgitRepository*) _tmp3_);
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = gitg_repository_new (_tmp5_, NULL, &_inner_error_);
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp5_);
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp7_;
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2351 "gitg-window.c"
			goto __catch110_g_error;
		}
#line 685 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (self, _tmp0_);
#line 686 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_update_title (self);
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2360 "gitg-window.c"
	}
	goto __finally110;
	__catch110_g_error:
	{
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2369 "gitg-window.c"
	}
	__finally110:
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 683 "/home/jesse/dev/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 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2380 "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 691 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 693 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	repo_config = NULL;
#line 2401 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		GgitConfig* _tmp3_ = NULL;
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp2_;
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2415 "gitg-window.c"
			goto __catch111_g_error;
		}
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp0_;
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 697 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo_config = _tmp3_;
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2428 "gitg-window.c"
	}
	goto __finally111;
	__catch111_g_error:
	{
		GError* e = NULL;
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2444 "gitg-window.c"
	}
	__finally111:
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 695 "/home/jesse/dev/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 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 695 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2457 "gitg-window.c"
	}
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = repo_config;
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = self->priv->d_repository;
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_repository_get_name (_tmp5_);
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp4_, _tmp8_);
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp9_);
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp8_);
#line 704 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	author_details = _tmp10_;
#line 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = author_details;
#line 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 691 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 691 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo_config);
#line 2487 "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* _tmp23_ = NULL;
	GitgExtSelectable* _tmp24_ = NULL;
	GtkToggleButton* _tmp25_ = NULL;
	GitgExtSelectable* _tmp26_ = NULL;
	GitgExtSelectable* _tmp27_ = NULL;
#line 708 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 710 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "current_activity");
#line 712 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 712 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 712 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	current = _tmp1_;
#line 714 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = current;
#line 714 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp2_) : NULL);
#line 714 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp3_;
#line 716 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 716 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_searchable_available_binding = NULL;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = searchable;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 2529 "gitg-window.c"
		GtkToggleButton* _tmp5_ = NULL;
		GtkSearchEntry* _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;
		GitgExtSearchable* _tmp15_ = NULL;
		GtkToggleButton* _tmp16_ = NULL;
		GBinding* _tmp17_ = NULL;
		GBinding* _tmp18_ = NULL;
#line 720 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_button;
#line 720 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 722 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_search_button;
#line 722 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 722 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = gitg_ext_searchable_get_search_visible (_tmp12_);
#line 722 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = _tmp13_;
#line 722 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp11_, _tmp14_);
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_search_button;
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = g_object_bind_property_with_closures ((GObject*) _tmp15_, "search-available", (GObject*) _tmp16_, "sensitive", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _g_object_ref0 (_tmp17_);
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 724 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_searchable_available_binding = _tmp18_;
#line 2584 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp19_ = NULL;
		GtkToggleButton* _tmp20_ = NULL;
		GtkToggleButton* _tmp21_ = NULL;
		GtkSearchEntry* _tmp22_ = NULL;
#line 732 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_search_button;
#line 732 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp19_, FALSE);
#line 733 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_search_button;
#line 733 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp20_, FALSE);
#line 734 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_search_button;
#line 734 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp21_, FALSE);
#line 735 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_search_entry;
#line 735 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp22_, "");
#line 2606 "gitg-window.c"
	}
#line 738 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = current;
#line 738 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp23_) : NULL);
#line 738 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	selectable = _tmp24_;
#line 739 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_select_button;
#line 739 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = selectable;
#line 739 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp25_, _tmp26_ != NULL);
#line 741 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 741 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode_binding = NULL;
#line 742 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 742 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_available_binding = NULL;
#line 744 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = selectable;
#line 744 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp27_ != NULL) {
#line 2632 "gitg-window.c"
		GitgExtSelectable* _tmp28_ = NULL;
		GBinding* _tmp29_ = NULL;
		GBinding* _tmp30_ = NULL;
		GitgExtSelectable* _tmp31_ = NULL;
		GtkToggleButton* _tmp32_ = NULL;
		GBinding* _tmp33_ = NULL;
		GBinding* _tmp34_ = NULL;
#line 746 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp28_ = selectable;
#line 746 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = g_object_bind_property_with_closures ((GObject*) _tmp28_, "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 746 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp30_ = _g_object_ref0 (_tmp29_);
#line 746 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 746 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_mode_binding = _tmp30_;
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = selectable;
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp32_ = self->priv->d_select_button;
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp33_ = g_object_bind_property_with_closures ((GObject*) _tmp31_, "selectable-available", (GObject*) _tmp32_, "sensitive", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp34_ = _g_object_ref0 (_tmp33_);
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 751 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_available_binding = _tmp34_;
#line 2662 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp35_ = NULL;
		GtkToggleButton* _tmp36_ = NULL;
#line 759 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp35_ = self->priv->d_select_button;
#line 759 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp35_, FALSE);
#line 760 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp36_ = self->priv->d_select_button;
#line 760 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp36_, FALSE);
#line 2674 "gitg-window.c"
	}
#line 708 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 708 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 708 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (current);
#line 2682 "gitg-window.c"
}


static Block67Data* block67_data_ref (Block67Data* _data67_) {
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data67_->_ref_count_);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data67_;
#line 2691 "gitg-window.c"
}


static void block67_data_unref (void * _userdata_) {
	Block67Data* _data67_;
	_data67_ = (Block67Data*) _userdata_;
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data67_->_ref_count_)) {
#line 2700 "gitg-window.c"
		GitgWindow* self;
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data67_->self;
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block67Data, _data67_);
#line 2712 "gitg-window.c"
	}
}


static gboolean __lambda108_ (Block67Data* _data67_, 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;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data67_->self;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 780 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 780 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 780 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 782 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 782 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = _data67_->default_activity;
#line 782 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_ext_activity_is_default_for (_tmp2_, _tmp3_);
#line 782 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2744 "gitg-window.c"
		GitgExtActivity* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->def = _tmp6_;
#line 2755 "gitg-window.c"
	}
#line 787 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 787 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 787 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2763 "gitg-window.c"
}


static gboolean ___lambda108__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = __lambda108_ (self, element);
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2772 "gitg-window.c"
}


static gboolean gitg_window_activate_activity (GitgWindow* self, const gchar* action) {
	gboolean result = FALSE;
	Block67Data* _data67_;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	GitgUIElements* _tmp7_ = NULL;
	GitgExtActivity* _tmp8_ = NULL;
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_ = g_slice_new0 (Block67Data);
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->_ref_count_ = 1;
#line 764 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->self = g_object_ref (self);
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = action;
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == NULL) {
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = TRUE;
#line 2797 "gitg-window.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = action;
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "") == 0;
#line 2804 "gitg-window.c"
	}
#line 768 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 2808 "gitg-window.c"
		GSettings* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 770 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_interface_settings;
#line 770 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_settings_get_string (_tmp3_, "default-activity");
#line 770 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 770 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp4_;
#line 2819 "gitg-window.c"
	} else {
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 774 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = action;
#line 774 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 774 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 774 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp6_;
#line 2831 "gitg-window.c"
	}
#line 777 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->def = NULL;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_activities;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_foreach (_tmp7_, ___lambda108__gitg_ui_elements_foreach_ui_element_func, _data67_);
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _data67_->def;
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_ != NULL) {
#line 2843 "gitg-window.c"
		GitgUIElements* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 792 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_activities;
#line 792 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _data67_->def;
#line 792 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp9_, _tmp10_);
#line 793 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = TRUE;
#line 793 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		block67_data_unref (_data67_);
#line 793 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_ = NULL;
#line 793 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2860 "gitg-window.c"
	}
#line 796 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 796 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block67_data_unref (_data67_);
#line 796 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_ = NULL;
#line 796 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2870 "gitg-window.c"
}


static gboolean ___lambda109_ (GitgWindow* self, GitgExtUIElement* element) {
	gboolean result = FALSE;
	GitgExtActivity* activity = NULL;
	GitgExtUIElement* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 804 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 804 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 804 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_activity_is_default_for (_tmp2_, "");
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 2895 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 808 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 808 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 808 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 809 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 809 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (activity);
#line 809 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2910 "gitg-window.c"
	}
#line 812 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 812 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 812 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2918 "gitg-window.c"
}


static gboolean ____lambda109__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = ___lambda109_ ((GitgWindow*) self, element);
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2927 "gitg-window.c"
}


static void gitg_window_activate_default_activity (GitgWindow* self) {
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 799 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_action;
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_activate_activity (self, _tmp0_);
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp1_) {
#line 2942 "gitg-window.c"
		GitgUIElements* _tmp2_ = NULL;
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_activities;
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_foreach (_tmp2_, ____lambda109__gitg_ui_elements_foreach_ui_element_func, self);
#line 2948 "gitg-window.c"
	}
}


static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 843 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_current_activity_changed ((GitgWindow*) self);
#line 2956 "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 817 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 820 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 820 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 820 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_TYPE_APPLICATION) ? ((GitgApplication*) _tmp1_) : NULL);
#line 820 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	app = _tmp2_;
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = app;
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_application_get_state_settings (_tmp3_);
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_state_settings = _tmp5_;
#line 824 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_ext_message_bus_new ();
#line 824 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 824 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_message_bus = _tmp6_;
#line 827 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_plugins_engine_get_default ();
#line 827 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	engine = _tmp7_;
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_history_activity_new ((GitgExtApplication*) self);
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_commit_activity_new ((GitgExtApplication*) self);
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = g_new0 (GitgExtActivity*, 2 + 1);
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_[0] = (GitgExtActivity*) _tmp8_;
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_[1] = (GitgExtActivity*) _tmp9_;
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins = _tmp10_;
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins_length1 = 2;
#line 829 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_builtins_size_ = builtins_length1;
#line 834 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = engine;
#line 834 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = peas_extension_set_new ((PeasEngine*) _tmp11_, GITG_EXT_TYPE_ACTIVITY, "application", self, NULL);
#line 834 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	extset = _tmp12_;
#line 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = builtins;
#line 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13__length1 = builtins_length1;
#line 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = extset;
#line 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp15_ = self->priv->d_stack_activities;
#line 839 "/home/jesse/dev/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 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 839 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_activities = _tmp16_;
#line 843 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_activities;
#line 843 "/home/jesse/dev/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 846 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_state_settings;
#line 846 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_settings_get_int (_tmp18_, "state");
#line 846 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	window_state = (GdkWindowState) _tmp19_;
#line 848 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp20_ = window_state;
#line 848 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if ((_tmp20_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED) {
#line 850 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 3077 "gitg-window.c"
	}
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_state_settings;
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_get (_tmp21_, "size", "(ii)", &width, &height);
#line 857 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_resize ((GtkWindow*) self, width, height);
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (extset);
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) g_object_unref), NULL);
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (engine);
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (app);
#line 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3097 "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 862 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 864 "/home/jesse/dev/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 864 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 864 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp0_;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = environment;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__length1 = environment_length1;
#line 3117 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = _tmp1_;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _tmp1__length1;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
#line 3129 "gitg-window.c"
			gchar* _tmp2_ = NULL;
			gchar* e = NULL;
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp2_ = g_strdup (e_collection[e_it]);
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			e = _tmp2_;
#line 3136 "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 868 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp3_ = e;
#line 868 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "=", 2);
#line 868 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts = _tmp5_;
#line 868 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts_length1 = _vala_array_length (_tmp4_);
#line 868 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_parts_size_ = parts_length1;
#line 870 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp6_ = parts;
#line 870 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp6__length1 = parts_length1;
#line 870 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (_tmp6__length1 == 1) {
#line 3162 "gitg-window.c"
					GeeHashMap* _tmp7_ = NULL;
					gchar** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					const gchar* _tmp9_ = NULL;
#line 872 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp7_ = self->priv->d_environment;
#line 872 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp8_ = parts;
#line 872 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp8__length1 = parts_length1;
#line 872 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp9_ = _tmp8_[0];
#line 872 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, _tmp9_, "");
#line 3177 "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 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp10_ = self->priv->d_environment;
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp11_ = parts;
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp11__length1 = parts_length1;
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp12_ = _tmp11_[0];
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp13_ = parts;
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp13__length1 = parts_length1;
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp14_ = _tmp13_[1];
#line 876 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, _tmp12_, _tmp14_);
#line 3202 "gitg-window.c"
				}
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 866 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 3208 "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* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 881 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 885 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_window_new ();
#line 885 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 885 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ret = _tmp0_;
#line 887 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = ret;
#line 887 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3234 "gitg-window.c"
		GitgWindow* _tmp2_ = NULL;
		GtkApplication* _tmp3_ = NULL;
		GitgWindow* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgWindow* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
#line 889 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = ret;
#line 889 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = app;
#line 889 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_application ((GtkWindow*) _tmp2_, _tmp3_);
#line 890 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = ret;
#line 890 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = repository;
#line 890 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (_tmp4_, _tmp5_);
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = ret;
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = action;
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = g_strdup (_tmp7_);
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp6_->priv->d_action);
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_->priv->d_action = _tmp8_;
#line 3264 "gitg-window.c"
	}
	{
		GitgWindow* _tmp9_ = NULL;
#line 896 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = ret;
#line 896 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_initable_init (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_INITABLE, GInitable), NULL, &_inner_error_);
#line 896 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3274 "gitg-window.c"
			goto __catch112_g_error;
		}
	}
	goto __finally112;
	__catch112_g_error:
	{
#line 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3285 "gitg-window.c"
	}
	__finally112:
#line 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (ret);
#line 894 "/home/jesse/dev/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 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 894 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return NULL;
#line 3298 "gitg-window.c"
	}
#line 899 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = ret;
#line 899 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (_tmp10_);
#line 900 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = ret;
#line 900 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3308 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_set_activity_by_id (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 904 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 904 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 906 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 906 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 906 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 906 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	v = (GitgExtActivity*) _tmp2_;
#line 908 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = v;
#line 908 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != NULL) {
#line 3340 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = v;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 3349 "gitg-window.c"
	}
#line 913 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_activities;
#line 913 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ui_elements_get_current (_tmp6_);
#line 913 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 913 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = v;
#line 913 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (((GitgExtActivity*) _tmp8_) == _tmp9_) {
#line 915 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = v;
#line 915 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 3365 "gitg-window.c"
	} else {
#line 919 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 919 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (v);
#line 919 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 3373 "gitg-window.c"
	}
#line 904 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (v);
#line 3377 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_get_activity_by_id (GitgExtApplication* base, const gchar* id) {
	GitgWindow * self;
	GitgExtActivity* result = NULL;
	GitgUIElements* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gpointer _tmp2_ = NULL;
#line 923 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 923 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = (GitgExtActivity*) _tmp2_;
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3401 "gitg-window.c"
}


static void gitg_window_real_open_repository (GitgExtApplication* base, GFile* path) {
	GitgWindow * self;
	GFile* repo = NULL;
	GitgRepository* repository = NULL;
	gboolean _tmp0_ = FALSE;
	GitgRepository* _tmp1_ = NULL;
	GitgRepository* _tmp23_ = NULL;
	GError * _inner_error_ = NULL;
#line 928 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 928 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (path != NULL);
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	repository = NULL;
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3423 "gitg-window.c"
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_location ((GgitRepository*) _tmp2_);
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp3_;
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = path;
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_file_equal (_tmp4_, _tmp5_);
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp6_;
#line 934 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_);
#line 3443 "gitg-window.c"
	} else {
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 3447 "gitg-window.c"
	}
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3457 "gitg-window.c"
	}
	{
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GFile* _tmp10_ = NULL;
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = path;
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = ggit_repository_discover (_tmp8_, &_inner_error_);
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp9_;
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3472 "gitg-window.c"
			goto __catch113_g_error;
		}
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp7_;
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = NULL;
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 941 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo = _tmp10_;
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_);
#line 3485 "gitg-window.c"
	}
	goto __finally113;
	__catch113_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 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = path;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_file_get_basename (_tmp11_);
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo_name = _tmp12_;
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = _ ("'%s' is not a Git repository.");
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = repo_name;
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		title = _tmp15_;
#line 948 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = title;
#line 948 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = e;
#line 948 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp17_->message;
#line 948 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp16_, _tmp18_, GTK_MESSAGE_WARNING);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (repo_name);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3539 "gitg-window.c"
	}
	__finally113:
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 939 "/home/jesse/dev/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 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 939 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3554 "gitg-window.c"
	}
	{
		GitgRepository* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = repo;
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = gitg_repository_new (_tmp20_, NULL, &_inner_error_);
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp21_;
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3569 "gitg-window.c"
			goto __catch114_g_error;
		}
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = _tmp19_;
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = NULL;
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 955 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repository = _tmp22_;
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp19_);
#line 3582 "gitg-window.c"
	}
	goto __finally114;
	__catch114_g_error:
	{
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3591 "gitg-window.c"
	}
	__finally114:
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 953 "/home/jesse/dev/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 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 953 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3606 "gitg-window.c"
	}
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = repository;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp23_);
#line 928 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repository);
#line 928 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo);
#line 3616 "gitg-window.c"
}


static Block68Data* block68_data_ref (Block68Data* _data68_) {
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data68_->_ref_count_);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data68_;
#line 3625 "gitg-window.c"
}


static void block68_data_unref (void * _userdata_) {
	Block68Data* _data68_;
	_data68_ = (Block68Data*) _userdata_;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data68_->_ref_count_)) {
#line 3634 "gitg-window.c"
		GitgWindow* self;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data68_->self;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->title);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->message);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block68Data, _data68_);
#line 3646 "gitg-window.c"
	}
}


static gboolean __lambda162_ (Block68Data* _data68_) {
	GitgWindow* self;
	gboolean result = FALSE;
	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 966 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data68_->self;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data68_->title;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) -1);
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup_printf ("<b>%s</b>", _tmp2_);
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp2_);
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	primary = _tmp4_;
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _data68_->message;
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_markup_escape_text (_tmp5_, (gssize) -1);
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_strdup_printf ("<small>%s</small>", _tmp7_);
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = _tmp8_;
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp7_);
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	secondary = _tmp9_;
#line 970 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_infobar_primary_label;
#line 970 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp10_, primary);
#line 971 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_infobar_secondary_label;
#line 971 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp11_, secondary);
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = self->priv->d_infobar;
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data68_->type;
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_info_bar_set_message_type (_tmp12_, _tmp13_);
#line 974 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = self->priv->d_infobar;
#line 974 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 975 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 975 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (secondary);
#line 975 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 975 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3727 "gitg-window.c"
}


static gboolean ___lambda162__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda162_ (self);
#line 966 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3736 "gitg-window.c"
}


static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type) {
	GitgWindow * self;
	Block68Data* _data68_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkMessageType _tmp4_ = 0;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (title != NULL);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (message != NULL);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_ = g_slice_new0 (Block68Data);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->_ref_count_ = 1;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->self = g_object_ref (self);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = title;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_data68_->title);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->title = _tmp1_;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = message;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_data68_->message);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->message = _tmp3_;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = type;
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->type = _tmp4_;
#line 966 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda162__gsource_func, block68_data_ref (_data68_), block68_data_unref);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block68_data_unref (_data68_);
#line 962 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_ = NULL;
#line 3786 "gitg-window.c"
}


static void gitg_window_real_user_query_async_data_free (gpointer _data) {
	GitgWindowUserQueryAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data_->query);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_slice_free (GitgWindowUserQueryAsyncData, _data_);
#line 3799 "gitg-window.c"
}


static void gitg_window_real_user_query_async (GitgExtApplication* base, GitgExtUserQuery* query, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgWindow * self;
	GitgWindowUserQueryAsyncData* _data_;
	GitgWindow* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	GitgExtUserQuery* _tmp2_ = NULL;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_ = g_slice_new0 (GitgWindowUserQueryAsyncData);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_window_real_user_query_async);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_window_real_user_query_async_data_free);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->self = _tmp0_;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = query;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data_->query);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->query = _tmp2_;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_real_user_query_async_co (_data_);
#line 3831 "gitg-window.c"
}


static GtkResponseType gitg_window_real_user_query_finish (GitgExtApplication* base, GAsyncResult* _res_) {
	GtkResponseType result;
	GitgWindowUserQueryAsyncData* _data_;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _data_->result;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3844 "gitg-window.c"
}


static Block69Data* block69_data_ref (Block69Data* _data69_) {
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data69_->_ref_count_);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data69_;
#line 3853 "gitg-window.c"
}


static void block69_data_unref (void * _userdata_) {
	Block69Data* _data69_;
	_data69_ = (Block69Data*) _userdata_;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data69_->_ref_count_)) {
#line 3862 "gitg-window.c"
		GitgWindow* self;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data69_->self;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		(_data69_->cb_target_destroy_notify == NULL) ? NULL : (_data69_->cb_target_destroy_notify (_data69_->cb_target), NULL);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb = NULL;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb_target = NULL;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb_target_destroy_notify = NULL;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block69Data, _data69_);
#line 3878 "gitg-window.c"
	}
}


static gboolean _gitg_window_real_user_query_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gitg_window_real_user_query_async_co (self);
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3888 "gitg-window.c"
}


static gboolean __lambda163_ (Block69Data* _data69_, GtkResponseType response) {
	GitgWindow* self;
	gboolean result = FALSE;
	GtkResponseType _tmp0_ = 0;
	GSourceFunc _tmp1_ = NULL;
	void* _tmp1__target = NULL;
	GDestroyNotify _tmp1__target_destroy_notify = NULL;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data69_->self;
#line 985 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = response;
#line 985 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data69_->retval = _tmp0_;
#line 987 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data69_->cb;
#line 987 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__target = _data69_->cb_target;
#line 987 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__target_destroy_notify = _data69_->cb_target_destroy_notify;
#line 987 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data69_->cb_target_destroy_notify = NULL;
#line 987 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
#line 988 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 988 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3919 "gitg-window.c"
}


static gboolean ___lambda163__gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self) {
	gboolean result;
	result = __lambda163_ (self, response_type);
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3928 "gitg-window.c"
}


static gboolean gitg_window_real_user_query_async_co (GitgWindowUserQueryAsyncData* _data_) {
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	switch (_data_->_state_) {
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case 0:
#line 3937 "gitg-window.c"
		goto _state_0;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case 1:
#line 3941 "gitg-window.c"
		goto _state_1;
		default:
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_assert_not_reached ();
#line 3946 "gitg-window.c"
	}
	_state_0:
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = g_slice_new0 (Block69Data);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_ref_count_ = 1;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->self = g_object_ref (_data_->self);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_async_data_ = _data_;
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb = _gitg_window_real_user_query_async_co_gsource_func;
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target = _data_;
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target_destroy_notify = NULL;
#line 982 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->retval = 0;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = NULL;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = _data_->query;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_data (_data_->_tmp0_, "response", (GCallback) ___lambda163__gitg_ext_user_query_response, block69_data_ref (_data_->_data69_), (GClosureNotify) block69_data_unref, 0);
#line 991 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = NULL;
#line 991 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = _data_->query;
#line 991 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_user_query ((GitgExtApplication*) _data_->self, _data_->_tmp1_);
#line 993 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_state_ = 1;
#line 993 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 3981 "gitg-window.c"
	_state_1:
	;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->result = _data_->_data69_->retval;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3994 "gitg-window.c"
	} else {
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3998 "gitg-window.c"
	}
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4012 "gitg-window.c"
	} else {
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4016 "gitg-window.c"
	}
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 4022 "gitg-window.c"
}


static Block70Data* block70_data_ref (Block70Data* _data70_) {
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data70_->_ref_count_);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data70_;
#line 4031 "gitg-window.c"
}


static void block70_data_unref (void * _userdata_) {
	Block70Data* _data70_;
	_data70_ = (Block70Data*) _userdata_;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data70_->_ref_count_)) {
#line 4040 "gitg-window.c"
		GitgWindow* self;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data70_->self;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data70_->dlg);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data70_->query);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block70Data, _data70_);
#line 4052 "gitg-window.c"
	}
}


static void __lambda164_ (Block70Data* _data70_) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
#line 1043 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data70_->self;
#line 1044 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data70_->dlg;
#line 1044 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data70_->query;
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data70_->qid;
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 4074 "gitg-window.c"
}


static void ___lambda164__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self) {
#line 1043 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda164_ (self);
#line 4081 "gitg-window.c"
}


static void __lambda165_ (Block70Data* _data70_, GtkDialog* w, gint r) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data70_->self;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 1049 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data70_->dlg;
#line 1049 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, FALSE);
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data70_->query;
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = r;
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name (_tmp1_, "response", (GtkResponseType) _tmp2_, &_tmp3_);
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 4107 "gitg-window.c"
		GtkMessageDialog* _tmp4_ = NULL;
		GitgExtUserQuery* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
#line 1053 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _data70_->dlg;
#line 1053 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 1054 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _data70_->query;
#line 1054 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _data70_->qid;
#line 1054 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 4121 "gitg-window.c"
	}
}


static void ___lambda165__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda165_ (self, _sender, response_id);
#line 4129 "gitg-window.c"
}


static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query) {
	GitgWindow * self;
	Block70Data* _data70_;
	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;
	gboolean _tmp20_ = FALSE;
	gboolean _tmp21_ = FALSE;
	GtkMessageDialog* _tmp23_ = NULL;
	GitgExtUserQuery* _tmp24_ = NULL;
	GtkResponseType _tmp25_ = 0;
	GtkResponseType _tmp26_ = 0;
	GitgExtUserQuery* _tmp27_ = NULL;
	GitgExtUserQueryResponse** _tmp28_ = NULL;
	gint _tmp28__length1 = 0;
	GitgExtUserQueryResponse** _tmp29_ = NULL;
	gint _tmp29__length1 = 0;
	GtkMessageDialog* _tmp52_ = NULL;
	GtkDialog* _tmp53_ = NULL;
	GtkMessageDialog* _tmp54_ = NULL;
	GitgExtUserQuery* _tmp55_ = NULL;
	gulong _tmp56_ = 0UL;
	GtkMessageDialog* _tmp57_ = NULL;
	GtkMessageDialog* _tmp58_ = NULL;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (query != NULL);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_ = g_slice_new0 (Block70Data);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->_ref_count_ = 1;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->self = g_object_ref (self);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = query;
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data70_->query);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->query = _tmp1_;
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data70_->query;
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_user_query_get_message_type (_tmp2_);
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, _tmp4_, GTK_BUTTONS_NONE, "");
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 1000 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->dlg = _tmp5_;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = _data70_->query;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ext_user_query_get_title (_tmp6_);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = g_markup_escape_text (_tmp8_, (gssize) -1);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_strdup_printf ("<b>%s</b>", _tmp10_);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = _tmp11_;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp10_);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	primary = _tmp12_;
#line 1007 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data70_->dlg;
#line 1007 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = primary;
#line 1007 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_set_markup (_tmp13_, _tmp14_);
#line 1009 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp15_ = _data70_->dlg;
#line 1009 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp16_ = _data70_->query;
#line 1009 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp17_ = gitg_ext_user_query_get_message (_tmp16_);
#line 1009 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 1009 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_format_secondary_text (_tmp15_, "%s", _tmp18_);
#line 1011 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = _data70_->query;
#line 1011 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp20_ = gitg_ext_user_query_get_message_use_markup (_tmp19_);
#line 1011 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = _tmp20_;
#line 1011 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp21_) {
#line 4247 "gitg-window.c"
		GtkMessageDialog* _tmp22_ = NULL;
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = _data70_->dlg;
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp22_, "secondary-use-markup", TRUE, NULL);
#line 4253 "gitg-window.c"
	}
#line 1016 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = _data70_->dlg;
#line 1016 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp24_ = _data70_->query;
#line 1016 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_ext_user_query_get_default_response (_tmp24_);
#line 1016 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = _tmp25_;
#line 1016 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _tmp23_, (gint) _tmp26_);
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = _data70_->query;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = gitg_ext_user_query_get_responses (_tmp27_, &_tmp28__length1);
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29_ = _tmp28_;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29__length1 = _tmp28__length1;
#line 4273 "gitg-window.c"
	{
		GitgExtUserQueryResponse** response_collection = NULL;
		gint response_collection_length1 = 0;
		gint _response_collection_size_ = 0;
		gint response_it = 0;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		response_collection = _tmp29_;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		response_collection_length1 = _tmp29__length1;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (response_it = 0; response_it < _tmp29__length1; response_it = response_it + 1) {
#line 4285 "gitg-window.c"
			GitgExtUserQueryResponse* _tmp30_ = NULL;
			GitgExtUserQueryResponse* response = NULL;
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp30_ = _g_object_ref0 (response_collection[response_it]);
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			response = _tmp30_;
#line 4292 "gitg-window.c"
			{
				GtkWidget* button = NULL;
				GtkMessageDialog* _tmp31_ = NULL;
				GitgExtUserQueryResponse* _tmp32_ = NULL;
				const gchar* _tmp33_ = NULL;
				GitgExtUserQueryResponse* _tmp34_ = NULL;
				GtkResponseType _tmp35_ = 0;
				GtkWidget* _tmp36_ = NULL;
				GtkWidget* _tmp37_ = NULL;
				GitgExtUserQueryResponse* _tmp38_ = NULL;
				GtkResponseType _tmp39_ = 0;
				GitgExtUserQuery* _tmp40_ = NULL;
				GtkResponseType _tmp41_ = 0;
				GtkResponseType _tmp42_ = 0;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp31_ = _data70_->dlg;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp32_ = response;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp33_ = _tmp32_->text;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp34_ = response;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp35_ = _tmp34_->response_type;
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp36_ = gtk_dialog_add_button ((GtkDialog*) _tmp31_, _tmp33_, (gint) _tmp35_);
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp37_ = _g_object_ref0 (_tmp36_);
#line 1020 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				button = _tmp37_;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp38_ = response;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp39_ = _tmp38_->response_type;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp40_ = _data70_->query;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp41_ = gitg_ext_user_query_get_default_response (_tmp40_);
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp42_ = _tmp41_;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (_tmp39_ == _tmp42_) {
#line 4335 "gitg-window.c"
					GtkWidget* _tmp43_ = NULL;
					GtkWidget* _tmp44_ = NULL;
					GitgExtUserQuery* _tmp45_ = NULL;
					gboolean _tmp46_ = FALSE;
					gboolean _tmp47_ = FALSE;
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp43_ = button;
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gtk_widget_set_can_default (_tmp43_, TRUE);
#line 1025 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp44_ = button;
#line 1025 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					g_object_set (_tmp44_, "has-default", TRUE, NULL);
#line 1027 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp45_ = _data70_->query;
#line 1027 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp46_ = gitg_ext_user_query_get_default_is_destructive (_tmp45_);
#line 1027 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp47_ = _tmp46_;
#line 1027 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					if (_tmp47_) {
#line 4357 "gitg-window.c"
						GtkWidget* _tmp48_ = NULL;
						GtkStyleContext* _tmp49_ = NULL;
#line 1029 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp48_ = button;
#line 1029 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp49_ = gtk_widget_get_style_context (_tmp48_);
#line 1029 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp49_, GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
#line 4366 "gitg-window.c"
					} else {
						GtkWidget* _tmp50_ = NULL;
						GtkStyleContext* _tmp51_ = NULL;
#line 1033 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp50_ = button;
#line 1033 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp51_ = gtk_widget_get_style_context (_tmp50_);
#line 1033 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp51_, GTK_STYLE_CLASS_SUGGESTED_ACTION);
#line 4376 "gitg-window.c"
					}
				}
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (button);
#line 1018 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (response);
#line 4383 "gitg-window.c"
			}
		}
	}
#line 1038 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = _data70_->dlg;
#line 1038 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp53_ = _g_object_ref0 ((GtkDialog*) _tmp52_);
#line 1038 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 1038 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_dialog = _tmp53_;
#line 1039 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = _data70_->dlg;
#line 1039 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_add_weak_pointer ((GObject*) _tmp54_, &self->priv->d_dialog);
#line 1041 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->qid = (gulong) 0;
#line 1043 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp55_ = _data70_->query;
#line 1043 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp56_ = g_signal_connect_data (_tmp55_, "quit", (GCallback) ___lambda164__gitg_ext_user_query_quit, block70_data_ref (_data70_), (GClosureNotify) block70_data_unref, 0);
#line 1043 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->qid = _tmp56_;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp57_ = _data70_->dlg;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _tmp57_, "response", (GCallback) ___lambda165__gtk_dialog_response, block70_data_ref (_data70_), (GClosureNotify) block70_data_unref, 0);
#line 1058 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = _data70_->dlg;
#line 1058 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp58_);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block70_data_unref (_data70_);
#line 998 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_ = NULL;
#line 4421 "gitg-window.c"
}


static GgitSignature* gitg_window_real_get_verified_committer (GitgExtApplication* base) {
	GitgWindow * self;
	GgitSignature* result = NULL;
	gchar* user = NULL;
	gchar* email = NULL;
	GgitSignature* committer = NULL;
	gboolean _tmp18_ = FALSE;
	const gchar* _tmp19_ = NULL;
	GError * _inner_error_ = NULL;
#line 1066 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1068 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	user = NULL;
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	email = NULL;
#line 1070 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	committer = NULL;
#line 4442 "gitg-window.c"
	{
		GgitSignature* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GeeMap* _tmp4_ = NULL;
		GeeMap* _tmp5_ = NULL;
		GeeMap* _tmp6_ = NULL;
		GgitSignature* _tmp7_ = NULL;
		GgitSignature* _tmp8_ = NULL;
		GgitSignature* _tmp9_ = NULL;
		GgitSignature* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GgitSignature* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_ext_application_get_environment ((GitgExtApplication*) self);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_repository_get_signature_with_environment (_tmp3_, _tmp6_, "COMMITTER", &_inner_error_);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp8_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4486 "gitg-window.c"
			goto __catch115_g_error;
		}
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp0_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		committer = _tmp9_;
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = committer;
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = ggit_signature_get_name (_tmp10_);
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		user = _tmp12_;
#line 1077 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = committer;
#line 1077 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ggit_signature_get_email (_tmp13_);
#line 1077 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup (_tmp14_);
#line 1077 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1077 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		email = _tmp15_;
#line 1079 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = user;
#line 1079 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp16_, "") == 0) {
#line 1081 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (user);
#line 1081 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			user = NULL;
#line 4525 "gitg-window.c"
		}
#line 1084 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = email;
#line 1084 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp17_, "") == 0) {
#line 1086 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (email);
#line 1086 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			email = NULL;
#line 4535 "gitg-window.c"
		}
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 4539 "gitg-window.c"
	}
	goto __finally115;
	__catch115_g_error:
	{
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 4548 "gitg-window.c"
	}
	__finally115:
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1072 "/home/jesse/dev/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 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1072 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return NULL;
#line 4565 "gitg-window.c"
	}
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = user;
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp19_ == NULL) {
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = TRUE;
#line 4573 "gitg-window.c"
	} else {
		const gchar* _tmp20_ = NULL;
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = email;
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp20_ == NULL;
#line 4580 "gitg-window.c"
	}
#line 1090 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp18_) {
#line 4584 "gitg-window.c"
		gchar* secmsg = NULL;
		gboolean _tmp21_ = FALSE;
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = user;
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp22_ == NULL) {
#line 4594 "gitg-window.c"
			const gchar* _tmp23_ = NULL;
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp23_ = email;
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp23_ == NULL;
#line 4600 "gitg-window.c"
		} else {
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = FALSE;
#line 4604 "gitg-window.c"
		}
#line 1094 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 4608 "gitg-window.c"
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
#line 1096 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp24_ = _ ("Your user name and email are not configured yet. Please go to the user" \
" configuration and provide your name and email.");
#line 1096 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp25_ = g_strdup (_tmp24_);
#line 1096 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (secmsg);
#line 1096 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			secmsg = _tmp25_;
#line 4619 "gitg-window.c"
		} else {
			const gchar* _tmp26_ = NULL;
#line 1098 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp26_ = user;
#line 1098 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			if (_tmp26_ == NULL) {
#line 4626 "gitg-window.c"
				const gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
#line 1100 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp27_ = _ ("Your user name is not configured yet. Please go to the user configurat" \
"ion and provide your name.");
#line 1100 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp28_ = g_strdup (_tmp27_);
#line 1100 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1100 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				secmsg = _tmp28_;
#line 4637 "gitg-window.c"
			} else {
				const gchar* _tmp29_ = NULL;
				gchar* _tmp30_ = NULL;
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp29_ = _ ("Your email is not configured yet. Please go to the user configuration " \
"and provide your email.");
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp30_ = g_strdup (_tmp29_);
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				secmsg = _tmp30_;
#line 4649 "gitg-window.c"
			}
		}
#line 1107 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = _ ("Missing author details");
#line 1107 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp32_ = secmsg;
#line 1107 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp31_, _tmp32_, GTK_MESSAGE_ERROR);
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (secmsg);
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4670 "gitg-window.c"
	}
#line 1111 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = committer;
#line 1111 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (email);
#line 1111 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (user);
#line 1111 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4680 "gitg-window.c"
}


void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines) {
	const gchar* _tmp0_ = NULL;
	GitgExtCommandLines* _tmp2_ = NULL;
#line 1144 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1146 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = hint;
#line 1146 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 4693 "gitg-window.c"
		const gchar* _tmp1_ = NULL;
#line 1148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = hint;
#line 1148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_activate_activity (self, _tmp1_);
#line 4699 "gitg-window.c"
	}
#line 1151 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = command_lines;
#line 1151 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ != NULL) {
#line 4705 "gitg-window.c"
		GitgExtCommandLines* _tmp3_ = NULL;
#line 1153 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = command_lines;
#line 1153 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_command_lines_apply (_tmp3_, (GitgExtApplication*) self);
#line 4711 "gitg-window.c"
	}
#line 1156 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 4715 "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 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 1161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!st);
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 1162 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 4759 "gitg-window.c"
}


static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self) {
#line 1223 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4768 "gitg-window.c"
}


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


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


GitgWindow* gitg_window_new (void) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return gitg_window_construct (GITG_TYPE_WINDOW);
#line 4792 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_get_current_activity (GitgExtApplication* base) {
	GitgExtActivity* result;
	GitgWindow* self;
	GitgWindowMode _tmp0_ = 0;
#line 426 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 428 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_mode;
#line 428 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 4806 "gitg-window.c"
		GitgUIElements* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GitgExtActivity* _tmp3_ = NULL;
		GitgExtActivity* _tmp4_ = NULL;
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_activities;
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_ui_elements_get_current (_tmp1_);
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 ((GitgExtActivity*) _tmp3_);
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = _tmp4_;
#line 430 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4823 "gitg-window.c"
	} else {
		GitgDashView* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 434 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_dash_view;
#line 434 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 ((GitgExtActivity*) _tmp5_);
#line 434 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = _tmp6_;
#line 434 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4835 "gitg-window.c"
	}
}


static GitgExtMessageBus* gitg_window_real_get_message_bus (GitgExtApplication* base) {
	GitgExtMessageBus* result;
	GitgWindow* self;
	GitgExtMessageBus* _tmp0_ = NULL;
	GitgExtMessageBus* _tmp1_ = NULL;
#line 441 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 441 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_message_bus;
#line 441 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 441 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 441 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4855 "gitg-window.c"
}


static GitgRepository* gitg_window_real_get_repository (GitgExtApplication* base) {
	GitgRepository* result;
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
#line 447 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 447 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 447 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 447 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 447 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4874 "gitg-window.c"
}


static void gitg_window_real_set_repository (GitgExtApplication* base, GitgRepository* value) {
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
#line 448 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 450 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 450 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_set_repository_internal (self, _tmp0_);
#line 451 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (self);
#line 4889 "gitg-window.c"
}


gboolean gitg_window_get_enable_monitoring (GitgWindow* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 645 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 647 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_enable_monitoring;
#line 647 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 647 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4904 "gitg-window.c"
}


void gitg_window_set_enable_monitoring (GitgWindow* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 650 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 652 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 652 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_enable_monitoring = _tmp0_;
#line 653 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_update_enable_monitoring (self);
#line 650 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "enable-monitoring");
#line 4920 "gitg-window.c"
}


static GeeMap* gitg_window_real_get_environment (GitgExtApplication* base) {
	GeeMap* result;
	GitgWindow* self;
	GeeHashMap* _tmp0_ = NULL;
	GeeMap* _tmp1_ = NULL;
#line 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_environment;
#line 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GeeMap*) _tmp0_);
#line 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4939 "gitg-window.c"
}


static gboolean gitg_window_real_get_busy (GitgExtApplication* base) {
	gboolean result;
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_busy;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4955 "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 1117 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1119 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 1119 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_busy = _tmp0_;
#line 1123 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_dialog;
#line 1123 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 4975 "gitg-window.c"
		GtkDialog* _tmp2_ = NULL;
		GdkWindow* _tmp3_ = NULL;
		GdkWindow* _tmp4_ = NULL;
#line 1125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_dialog;
#line 1125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = gtk_widget_get_window ((GtkWidget*) _tmp2_);
#line 1125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 (_tmp3_);
#line 1125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		win = _tmp4_;
#line 4989 "gitg-window.c"
	} else {
		GdkWindow* _tmp5_ = NULL;
		GdkWindow* _tmp6_ = NULL;
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		win = _tmp6_;
#line 5001 "gitg-window.c"
	}
#line 1132 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_busy;
#line 1132 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 5007 "gitg-window.c"
		GdkWindow* _tmp8_ = NULL;
		GdkDisplay* _tmp9_ = NULL;
		GdkCursor* _tmp10_ = NULL;
		GdkCursor* _tmp11_ = NULL;
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = win;
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = gtk_widget_get_display ((GtkWidget*) self);
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = gdk_cursor_new_for_display (_tmp9_, GDK_WATCH);
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp8_, _tmp11_);
#line 1134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp11_);
#line 5024 "gitg-window.c"
	} else {
		GdkWindow* _tmp12_ = NULL;
#line 1139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = win;
#line 1139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp12_, NULL);
#line 5031 "gitg-window.c"
	}
#line 1117 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (win);
#line 1117 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "busy");
#line 5037 "gitg-window.c"
}


GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self) {
	GitgExtSelectionMode result;
	GitgExtSelectionMode _tmp0_ = 0;
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5052 "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;
	gboolean _tmp29_ = FALSE;
	gboolean _tmp30_ = FALSE;
	GtkHeaderBar* _tmp32_ = NULL;
	gboolean _tmp33_ = FALSE;
	gboolean _tmp34_ = FALSE;
	GtkToggleButton* _tmp36_ = NULL;
	gboolean _tmp37_ = FALSE;
	gboolean _tmp38_ = FALSE;
	GtkMenuButton* _tmp40_ = NULL;
	GtkToggleButton* _tmp41_ = NULL;
	gboolean _tmp42_ = FALSE;
	gboolean _tmp43_ = FALSE;
	gboolean _tmp44_ = FALSE;
	GtkButton* _tmp46_ = NULL;
	gboolean _tmp47_ = FALSE;
	gboolean _tmp48_ = FALSE;
	GtkButton* _tmp50_ = NULL;
	gboolean _tmp51_ = FALSE;
	gboolean _tmp52_ = FALSE;
	GtkButton* _tmp54_ = NULL;
	gboolean _tmp55_ = FALSE;
	gboolean _tmp56_ = FALSE;
	GtkStackSwitcher* _tmp58_ = NULL;
	GtkButton* _tmp59_ = NULL;
	gboolean _tmp60_ = FALSE;
	GtkToggleButton* _tmp61_ = NULL;
	gboolean _tmp62_ = FALSE;
#line 1168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp1_) : NULL;
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 5116 "gitg-window.c"
	}
#line 1170 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	selectable = _tmp2_;
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = selectable;
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ == NULL) {
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = TRUE;
#line 5126 "gitg-window.c"
	} else {
		GitgExtSelectionMode _tmp5_ = 0;
		GitgExtSelectionMode _tmp6_ = 0;
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_selectable_mode;
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = value;
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp5_ == _tmp6_;
#line 5136 "gitg-window.c"
	}
#line 1172 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 1174 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (selectable);
#line 1174 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 5144 "gitg-window.c"
	}
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = value;
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode = _tmp7_;
#line 1178 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = selectable;
#line 1178 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = value;
#line 1178 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_selectable_set_selectable_mode (_tmp8_, _tmp9_);
#line 1180 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_header_bar;
#line 1180 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 1180 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 1180 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ctx = _tmp12_;
#line 1182 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = self->priv->d_selectable_mode;
#line 1182 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp13_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 5168 "gitg-window.c"
		GtkStyleContext* _tmp14_ = NULL;
		GitgExtSelectable* _tmp15_ = NULL;
		GtkWidget* _tmp16_ = NULL;
		GtkWidget* _tmp17_ = NULL;
		GtkWidget* _tmp18_ = NULL;
#line 1184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ctx;
#line 1184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp14_, "selection-mode");
#line 1186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = selectable;
#line 1186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = gitg_ext_selectable_get_action_widget (_tmp15_);
#line 1186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = _tmp16_;
#line 1186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_select_actions);
#line 1186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_select_actions = _tmp17_;
#line 1188 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_select_actions;
#line 1188 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp18_ != NULL) {
#line 5192 "gitg-window.c"
			GtkGrid* _tmp19_ = NULL;
			GtkWidget* _tmp20_ = NULL;
			GtkWidget* _tmp21_ = NULL;
#line 1190 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp19_ = self->priv->d_grid_main;
#line 1190 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp20_ = self->priv->d_select_actions;
#line 1190 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_grid_attach (_tmp19_, _tmp20_, 0, 3, 1, 1);
#line 1191 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_select_actions;
#line 1191 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_widget_show (_tmp21_);
#line 5206 "gitg-window.c"
		}
	} else {
		GtkStyleContext* _tmp22_ = NULL;
		GtkWidget* _tmp23_ = NULL;
#line 1196 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = ctx;
#line 1196 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp22_, "selection-mode");
#line 1198 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_select_actions;
#line 1198 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp23_ != NULL) {
#line 5219 "gitg-window.c"
			GtkWidget* _tmp24_ = NULL;
#line 1200 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_select_actions;
#line 1200 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_widget_destroy (_tmp24_);
#line 1201 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (self->priv->d_select_actions);
#line 1201 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			self->priv->d_select_actions = NULL;
#line 5229 "gitg-window.c"
		}
	}
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_selectable_mode;
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	issel = _tmp25_ == GITG_EXT_SELECTION_MODE_SELECTION;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp27_) : NULL;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == NULL) {
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp27_);
#line 5246 "gitg-window.c"
	}
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp28_;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp30_ = gitg_platform_support_use_native_window_controls (NULL);
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp30_) {
#line 5254 "gitg-window.c"
		gboolean _tmp31_ = FALSE;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = issel;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = !_tmp31_;
#line 5260 "gitg-window.c"
	} else {
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = FALSE;
#line 5264 "gitg-window.c"
	}
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp32_ = self->priv->d_header_bar;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_set_show_close_button (_tmp32_, _tmp29_);
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp34_ = issel;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp34_) {
#line 5274 "gitg-window.c"
		GitgExtSearchable* _tmp35_ = NULL;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp35_ = searchable;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp33_ = _tmp35_ != NULL;
#line 5280 "gitg-window.c"
	} else {
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp33_ = FALSE;
#line 5284 "gitg-window.c"
	}
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp36_ = self->priv->d_search_button;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp36_, _tmp33_);
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp38_ = issel;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp38_) {
#line 5294 "gitg-window.c"
		GitgRepository* _tmp39_ = NULL;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp39_ = self->priv->d_repository;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp37_ = _tmp39_ != NULL;
#line 5300 "gitg-window.c"
	} else {
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp37_ = FALSE;
#line 5304 "gitg-window.c"
	}
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_gear_menu;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp40_, _tmp37_);
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_select_button;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp42_ = issel;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp41_, !_tmp42_);
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp44_ = issel;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp44_) {
#line 5320 "gitg-window.c"
		GitgRepository* _tmp45_ = NULL;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp45_ = self->priv->d_repository;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp43_ = _tmp45_ != NULL;
#line 5326 "gitg-window.c"
	} else {
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp43_ = FALSE;
#line 5330 "gitg-window.c"
	}
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_dash_button;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp46_, _tmp43_);
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp48_ = issel;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp48_) {
#line 5340 "gitg-window.c"
		GitgRepository* _tmp49_ = NULL;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp49_ = self->priv->d_repository;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = _tmp49_ == NULL;
#line 5346 "gitg-window.c"
	} else {
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = FALSE;
#line 5350 "gitg-window.c"
	}
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_clone_button;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp50_, _tmp47_);
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = issel;
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp52_) {
#line 5360 "gitg-window.c"
		GitgRepository* _tmp53_ = NULL;
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp53_ = self->priv->d_repository;
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = _tmp53_ == NULL;
#line 5366 "gitg-window.c"
	} else {
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = FALSE;
#line 5370 "gitg-window.c"
	}
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_add_button;
#line 1214 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp54_, _tmp51_);
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp56_ = issel;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp56_) {
#line 5380 "gitg-window.c"
		GitgRepository* _tmp57_ = NULL;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp57_ = self->priv->d_repository;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp55_ = _tmp57_ != NULL;
#line 5386 "gitg-window.c"
	} else {
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp55_ = FALSE;
#line 5390 "gitg-window.c"
	}
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = self->priv->d_activities_switcher;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp58_, _tmp55_);
#line 1216 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp59_ = self->priv->d_select_cancel_button;
#line 1216 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp60_ = issel;
#line 1216 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp59_, _tmp60_);
#line 1218 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp61_ = self->priv->d_select_button;
#line 1218 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp62_ = issel;
#line 1218 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_toggle_button_set_active (_tmp61_, _tmp62_);
#line 1168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (ctx);
#line 1168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 1168 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 5416 "gitg-window.c"
}


static GitgExtRemoteLookup* gitg_window_real_get_remote_lookup (GitgExtApplication* base) {
	GitgExtRemoteLookup* result;
	GitgWindow* self;
	GitgRemoteManager* _tmp0_ = NULL;
	GitgExtRemoteLookup* _tmp1_ = NULL;
#line 1243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_remote_manager;
#line 1243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtRemoteLookup*) _tmp0_);
#line 1243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 1243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5435 "gitg-window.c"
}


static GitgExtNotifications* gitg_window_real_get_notifications (GitgExtApplication* base) {
	GitgExtNotifications* result;
	GitgWindow* self;
	GitgNotifications* _tmp0_ = NULL;
	GitgExtNotifications* _tmp1_ = NULL;
#line 1248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_notifications;
#line 1248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtNotifications*) _tmp0_);
#line 1248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 1248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5454 "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 117 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 119 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 119 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5488 "gitg-window.c"
	}
#line 122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = i;
#line 122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == 0) {
#line 5494 "gitg-window.c"
		GitgWindowMode _tmp2_ = 0;
#line 124 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_mode;
#line 124 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 127 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = TRUE;
#line 127 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 5506 "gitg-window.c"
		} else {
#line 131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = FALSE;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 5512 "gitg-window.c"
		}
	}
#line 135 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = self->priv->d_mode;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != GITG_WINDOW_MODE_ACTIVITY) {
#line 137 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 137 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5523 "gitg-window.c"
	}
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_activities;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_ui_elements_get_available_elements (_tmp4_, &_tmp5__length1);
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = _tmp5_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6__length1 = _tmp5__length1;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems = _tmp6_;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems_length1 = _tmp6__length1;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_elems_size_ = elems_length1;
#line 141 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = i;
#line 141 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	i = _tmp7_ - 1;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = i;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = elems;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9__length1 = elems_length1;
#line 143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_ >= _tmp9__length1) {
#line 145 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 145 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 145 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5557 "gitg-window.c"
	}
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_activities;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = elems;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11__length1 = elems_length1;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = i;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp11_[_tmp12_];
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_set_current (_tmp10_, _tmp13_);
#line 149 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 149 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 149 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5577 "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/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (return_value != NULL);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (n_param_values == 2);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		data1 = closure->data;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		data2 = param_values->data[0].v_pointer;
#line 5599 "gitg-window.c"
	} else {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		data1 = param_values->data[0].v_pointer;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		data2 = closure->data;
#line 5605 "gitg-window.c"
	}
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	v_return = callback (data1, g_value_get_int (param_values + 1), data2);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_value_set_boolean (return_value, v_return);
#line 5613 "gitg-window.c"
}


static void gitg_window_real_cancel (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 1231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 1231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 1231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 1231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 5629 "gitg-window.c"
		GtkInfoBar* _tmp3_ = NULL;
#line 1233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_infobar;
#line 1233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp3_);
#line 5635 "gitg-window.c"
	} else {
#line 1237 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 5639 "gitg-window.c"
	}
}


static Block71Data* block71_data_ref (Block71Data* _data71_) {
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data71_->_ref_count_);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return _data71_;
#line 5649 "gitg-window.c"
}


static void block71_data_unref (void * _userdata_) {
	Block71Data* _data71_;
	_data71_ = (Block71Data*) _userdata_;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data71_->_ref_count_)) {
#line 5658 "gitg-window.c"
		GitgWindow* self;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data71_->self;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data71_->selact);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block71Data, _data71_);
#line 5668 "gitg-window.c"
	}
}


static void _gitg_window___lambda166_ (Block71Data* _data71_) {
	GitgWindow* self;
	gboolean st = FALSE;
	GAction* _tmp0_ = NULL;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data71_->self;
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data71_->selact;
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state (_tmp0_);
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 275 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 277 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = st;
#line 277 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp5_) {
#line 279 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_SELECTION);
#line 5704 "gitg-window.c"
	} else {
#line 283 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 5708 "gitg-window.c"
	}
}


static void __gitg_window___lambda166__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda166_ (self);
#line 5716 "gitg-window.c"
}


static void _gitg_window___lambda167_ (GitgWindow* self, GtkInfoBar* w, gint r) {
	GtkInfoBar* _tmp0_ = NULL;
#line 338 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 339 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 339 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 5728 "gitg-window.c"
}


static void __gitg_window___lambda167__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 338 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda167_ ((GitgWindow*) self, _sender, response_id);
#line 5735 "gitg-window.c"
}


static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgWindow * self;
	Block71Data* _data71_;
	gboolean _tmp0_ = FALSE;
	GtkOverlay* _tmp6_ = NULL;
	GitgNotifications* _tmp7_ = NULL;
	GAction* _tmp8_ = NULL;
	GAction* _tmp9_ = NULL;
	GAction* _tmp10_ = NULL;
	GSettings* _tmp11_ = NULL;
	gchar* menuname = NULL;
	GtkSettings* _tmp12_ = NULL;
	gboolean _tmp13_ = FALSE;
	gboolean _tmp14_ = FALSE;
	GitgDashView* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	gpointer _tmp25_ = NULL;
	GtkSearchBar* _tmp26_ = NULL;
	GtkSearchEntry* _tmp27_ = NULL;
	GtkToggleButton* _tmp28_ = NULL;
	GtkSearchBar* _tmp29_ = NULL;
	GtkStackSwitcher* _tmp30_ = NULL;
	GtkStack* _tmp31_ = NULL;
	GeeHashMap* _tmp32_ = NULL;
	gchar** _tmp33_ = NULL;
	gchar** _tmp34_ = NULL;
	gboolean _tmp40_ = FALSE;
	const gchar* _tmp41_ = NULL;
	GtkHeaderBar* _tmp44_ = NULL;
	GtkStackSwitcher* _tmp45_ = NULL;
	GtkHeaderBar* _tmp46_ = NULL;
	GtkToggleButton* _tmp47_ = NULL;
	GtkHeaderBar* _tmp48_ = NULL;
	GtkToggleButton* _tmp49_ = NULL;
	GtkHeaderBar* _tmp50_ = NULL;
	GtkMenuButton* _tmp51_ = NULL;
	GtkHeaderBar* _tmp52_ = NULL;
	GtkMenuButton* _tmp53_ = NULL;
	GtkHeaderBar* _tmp54_ = NULL;
	GtkStackSwitcher* _tmp55_ = NULL;
	GtkHeaderBar* _tmp56_ = NULL;
	GtkToggleButton* _tmp57_ = NULL;
	GtkHeaderBar* _tmp58_ = NULL;
	GtkToggleButton* _tmp59_ = NULL;
	GtkInfoBar* _tmp60_ = NULL;
	GtkBindingSet* bset = NULL;
	GObjectClass* _tmp61_ = NULL;
	GtkBindingSet* _tmp62_ = NULL;
	GtkBindingSet* _tmp69_ = NULL;
	GSettings* _tmp70_ = NULL;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	parent_class = G_OBJECT_CLASS (gitg_window_parent_class);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_ = g_slice_new0 (Block71Data);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->_ref_count_ = 1;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->self = g_object_ref (self);
#line 257 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_platform_support_use_native_window_controls (NULL);
#line 257 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 5809 "gitg-window.c"
		GtkGrid* _tmp1_ = NULL;
		GtkHeaderBar* _tmp2_ = NULL;
#line 259 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_titlebar ((GtkWindow*) self, NULL);
#line 260 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_grid_top;
#line 260 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_header_bar;
#line 260 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_grid_attach (_tmp1_, (GtkWidget*) _tmp2_, 0, 0, 1, 1);
#line 5820 "gitg-window.c"
	} else {
		GtkHeaderBar* _tmp3_ = NULL;
		GtkHeaderBar* _tmp4_ = NULL;
		GtkStyleContext* _tmp5_ = NULL;
#line 264 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_header_bar;
#line 264 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_show_close_button (_tmp3_, TRUE);
#line 265 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_header_bar;
#line 265 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 265 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp5_, "titlebar");
#line 5835 "gitg-window.c"
	}
#line 268 "/home/jesse/dev/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 270 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_overlay;
#line 270 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_notifications_new (_tmp6_);
#line 270 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 270 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_notifications = _tmp7_;
#line 272 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_action_map_lookup_action ((GActionMap*) self, "select");
#line 272 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 272 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->selact = _tmp9_;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _data71_->selact;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GObject*) _tmp10_, "notify::state", (GCallback) __gitg_window___lambda166__g_object_notify, block71_data_ref (_data71_), (GClosureNotify) block71_data_unref, 0);
#line 287 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 287 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 287 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_interface_settings = _tmp11_;
#line 291 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = gtk_settings_get_default ();
#line 291 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp12_, "gtk-shell-shows-app-menu", &_tmp13_, NULL);
#line 291 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = _tmp13_;
#line 291 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp14_) {
#line 5871 "gitg-window.c"
		gchar* _tmp15_ = NULL;
#line 293 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup ("win-menu");
#line 293 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 293 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		menuname = _tmp15_;
#line 294 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_dash_model);
#line 294 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_dash_model = NULL;
#line 5883 "gitg-window.c"
	} else {
		gchar* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gpointer _tmp20_ = NULL;
#line 298 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = g_strdup ("app-win-menu");
#line 298 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 298 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		menuname = _tmp16_;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = menuname;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = g_strconcat (_tmp17_, "-dash", NULL);
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp18_;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp19_);
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_dash_model);
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_dash_model = (GMenuModel*) _tmp20_;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp19_);
#line 5910 "gitg-window.c"
	}
#line 302 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_dash_view;
#line 302 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_ui_element_set_application ((GitgExtUIElement*) _tmp21_, (GitgExtApplication*) self);
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp22_ = menuname;
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = g_strconcat (_tmp22_, "-views", NULL);
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp24_ = _tmp23_;
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp24_);
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_activities_model = (GMenuModel*) _tmp25_;
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp24_);
#line 307 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = self->priv->d_search_bar;
#line 307 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = self->priv->d_search_entry;
#line 307 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_search_bar_connect_entry (_tmp26_, (GtkEntry*) _tmp27_);
#line 308 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = self->priv->d_search_button;
#line 308 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29_ = self->priv->d_search_bar;
#line 308 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp28_, "active", (GObject*) _tmp29_, "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 313 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp30_ = self->priv->d_activities_switcher;
#line 313 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp31_ = self->priv->d_stack_activities;
#line 313 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_stack_switcher_set_stack (_tmp30_, _tmp31_);
#line 315 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp32_ = 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 315 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 315 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp32_;
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp34_ = _tmp33_ = g_listenv ();
#line 5956 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = _tmp34_;
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _vala_array_length (_tmp33_);
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _vala_array_length (_tmp33_); e_it = e_it + 1) {
#line 5968 "gitg-window.c"
			gchar* _tmp35_ = NULL;
			gchar* e = NULL;
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp35_ = g_strdup (e_collection[e_it]);
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			e = _tmp35_;
#line 5975 "gitg-window.c"
			{
				GeeHashMap* _tmp36_ = NULL;
				const gchar* _tmp37_ = NULL;
				const gchar* _tmp38_ = NULL;
				const gchar* _tmp39_ = NULL;
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp36_ = self->priv->d_environment;
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp37_ = e;
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp38_ = e;
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp39_ = g_getenv (_tmp38_);
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _tmp36_, _tmp37_, _tmp39_);
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 5993 "gitg-window.c"
			}
		}
#line 317 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = (_vala_array_free (e_collection, e_collection_length1, (GDestroyNotify) g_free), NULL);
#line 5998 "gitg-window.c"
	}
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp41_ = gtk_check_version ((guint) 3, (guint) 13, (guint) 2);
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp41_ != NULL) {
#line 6004 "gitg-window.c"
		GtkTextDirection _tmp42_ = 0;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp42_ = gtk_widget_get_direction ((GtkWidget*) self);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp40_ = _tmp42_ == GTK_TEXT_DIR_RTL;
#line 6010 "gitg-window.c"
	} else {
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp40_ = FALSE;
#line 6014 "gitg-window.c"
	}
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp40_) {
#line 6018 "gitg-window.c"
		GtkImage* _tmp43_ = NULL;
#line 325 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp43_ = self->priv->dash_image;
#line 325 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp43_, "icon-name", "go-previous-rtl-symbolic", NULL);
#line 6024 "gitg-window.c"
	}
#line 328 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_header_bar;
#line 328 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_activities_switcher;
#line 328 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_header_bar;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_search_button;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp46_, (GtkWidget*) _tmp47_);
#line 330 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp48_ = self->priv->d_header_bar;
#line 330 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp49_ = self->priv->d_select_button;
#line 330 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp48_, (GtkWidget*) _tmp49_);
#line 331 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_header_bar;
#line 331 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp51_ = self->priv->d_gear_menu;
#line 331 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp50_, (GtkWidget*) _tmp51_);
#line 333 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = self->priv->d_header_bar;
#line 333 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp53_ = self->priv->d_gear_menu;
#line 333 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp52_, (GtkWidget*) _tmp53_);
#line 334 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_header_bar;
#line 334 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp55_ = self->priv->d_activities_switcher;
#line 334 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp54_, (GtkWidget*) _tmp55_);
#line 335 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp56_ = self->priv->d_header_bar;
#line 335 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp57_ = self->priv->d_select_button;
#line 335 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp56_, (GtkWidget*) _tmp57_);
#line 336 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = self->priv->d_header_bar;
#line 336 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp59_ = self->priv->d_search_button;
#line 336 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp58_, (GtkWidget*) _tmp59_);
#line 338 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp60_ = self->priv->d_infobar;
#line 338 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_object (_tmp60_, "response", (GCallback) __gitg_window___lambda167__gtk_info_bar_response, self, 0);
#line 342 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp61_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 342 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp62_ = gtk_binding_set_by_class (_tmp61_);
#line 342 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	bset = _tmp62_;
#line 6084 "gitg-window.c"
	{
		gint i = 0;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		i = 0;
#line 6089 "gitg-window.c"
		{
			gboolean _tmp63_ = FALSE;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp63_ = TRUE;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			while (TRUE) {
#line 6096 "gitg-window.c"
				gint _tmp65_ = 0;
				GtkBindingSet* _tmp66_ = NULL;
				gint _tmp67_ = 0;
				gint _tmp68_ = 0;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (!_tmp63_) {
#line 6103 "gitg-window.c"
					gint _tmp64_ = 0;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp64_ = i;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					i = _tmp64_ + 1;
#line 6109 "gitg-window.c"
				}
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp63_ = FALSE;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp65_ = i;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (!(_tmp65_ < 10)) {
#line 344 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					break;
#line 6119 "gitg-window.c"
				}
#line 346 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp66_ = bset;
#line 346 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp67_ = i;
#line 346 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp68_ = i;
#line 346 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				gtk_binding_entry_add_signal (_tmp66_, (guint) (GDK_KEY_0 + _tmp67_), GDK_MOD1_MASK, "change-to-activity", (guint) 1, G_TYPE_INT, _tmp68_, NULL);
#line 6129 "gitg-window.c"
			}
		}
	}
#line 355 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp69_ = bset;
#line 355 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_binding_entry_add_signal (_tmp69_, (guint) GDK_KEY_Escape, 0, "cancel", (guint) 0, NULL);
#line 361 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp70_ = self->priv->d_interface_settings;
#line 361 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_bind (_tmp70_, "enable-monitoring", (GObject*) self, "enable-monitoring", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (menuname);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block71_data_unref (_data71_);
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_ = NULL;
#line 255 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return obj;
#line 6149 "gitg-window.c"
}


static void gitg_window_class_init (GitgWindowClass * klass) {
	gint GitgWindow_private_offset;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_type_class_add_private (klass, sizeof (GitgWindowPrivate));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->style_updated = gitg_window_real_style_updated;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->delete_event = gitg_window_real_delete_event;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->realize = gitg_window_real_realize;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->window_state_event = gitg_window_real_window_state_event;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->configure_event = gitg_window_real_configure_event;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->change_to_activity = gitg_window_real_change_to_activity;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->cancel = gitg_window_real_cancel;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_window_get_property;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_window_set_property;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_window_constructor;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_window_finalize;
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_WINDOW_ENABLE_MONITORING, g_param_spec_boolean ("enable-monitoring", "enable-monitoring", "enable-monitoring", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/gitg-window.vala"
	GitgWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_grid_top", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_grid_top));
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_clone_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_clone_button));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "d_add_button", FALSE, GitgWindow_private_offset + G_STRUCT_OFFSET (GitgWindowPrivate, d_add_button));
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/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/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "clone_repository_clicked", G_CALLBACK(_gitg_window_clone_repository_clicked_gtk_button_clicked));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "add_repository_clicked", G_CALLBACK(_gitg_window_add_repository_clicked_gtk_button_clicked));
#line 24 "/home/jesse/dev/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/jesse/dev/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/jesse/dev/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 6261 "gitg-window.c"
}


static void gitg_window_gitg_ext_application_interface_init (GitgExtApplicationIface * iface) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_gitg_ext_application_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->open_new = (GitgExtApplication* (*)(GitgExtApplication*, GgitRepository*, const gchar*)) gitg_window_real_open_new;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->set_activity_by_id = (GitgExtActivity* (*)(GitgExtApplication*, const gchar*)) gitg_window_real_set_activity_by_id;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_activity_by_id = (GitgExtActivity* (*)(GitgExtApplication*, const gchar*)) gitg_window_real_get_activity_by_id;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->open_repository = (void (*)(GitgExtApplication*, GFile*)) gitg_window_real_open_repository;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->show_infobar = (void (*)(GitgExtApplication*, const gchar*, const gchar*, GtkMessageType)) gitg_window_real_show_infobar;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->user_query_async = (GtkResponseType (*)(GitgExtApplication*, GitgExtUserQuery*)) gitg_window_real_user_query_async;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->user_query_finish = gitg_window_real_user_query_finish;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->user_query = (void (*)(GitgExtApplication*, GitgExtUserQuery*)) gitg_window_real_user_query;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_verified_committer = (GgitSignature* (*)(GitgExtApplication*)) gitg_window_real_get_verified_committer;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_current_activity = gitg_window_real_get_current_activity;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_message_bus = gitg_window_real_get_message_bus;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_repository = gitg_window_real_get_repository;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->set_repository = gitg_window_real_set_repository;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_environment = gitg_window_real_get_environment;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_busy = gitg_window_real_get_busy;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->set_busy = gitg_window_real_set_busy;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_remote_lookup = gitg_window_real_get_remote_lookup;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	iface->get_notifications = gitg_window_real_get_notifications;
#line 6304 "gitg-window.c"
}


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


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


static void gitg_window_finalize (GObject* obj) {
	GitgWindow * self;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 31 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository_monitor);
#line 33 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 34 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (self->priv->d_action);
#line 35 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 37 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 38 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_actions);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 41 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 42 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 45 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 47 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 52 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_header_bar);
#line 54 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_button);
#line 56 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_gear_menu);
#line 57 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 58 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_main);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_top);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_button);
#line 69 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_cancel_button);
#line 72 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_button);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_clone_button);
#line 76 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_add_button);
#line 78 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->dash_image);
#line 80 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_switcher);
#line 83 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_bar);
#line 85 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_entry);
#line 88 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_main_stack);
#line 91 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_view);
#line 94 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_stack_activities);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar);
#line 99 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_primary_label);
#line 101 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_secondary_label);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (gitg_window_parent_class)->finalize (obj);
#line 6410 "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/jesse/dev/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_CURRENT_ACTIVITY:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_current_activity ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_MESSAGE_BUS:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_message_bus ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_repository ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_ENABLE_MONITORING:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_set_boolean (value, gitg_window_get_enable_monitoring (self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_ENVIRONMENT:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_environment ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_set_boolean (value, gitg_ext_application_get_busy ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_set_enum (value, gitg_window_get_selectable_mode (self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REMOTE_LOOKUP:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_remote_lookup ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_NOTIFICATIONS:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_notifications ((GitgExtApplication*) self));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 6489 "gitg-window.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 6495 "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/jesse/dev/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, g_value_get_object (value));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_ENABLE_MONITORING:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_enable_monitoring (self, g_value_get_boolean (value));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_busy ((GitgExtApplication*) self, g_value_get_boolean (value));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, g_value_get_enum (value));
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 6529 "gitg-window.c"
		default:
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		break;
#line 6535 "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;
}



