/* 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;
	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 151 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_search_activated ((GitgWindow*) self, action);
#line 494 "gitg-window.c"
}


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


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


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


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


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


static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash) {
#line 161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 161 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (dash != NULL);
#line 163 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 540 "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 547 "gitg-window.c"
}


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


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


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


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


static void gitg_window_clone_repository_clicked (GitgWindow* self) {
	Block65Data* _data65_;
	GitgCloneDialog* _tmp0_ = NULL;
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_ = g_slice_new0 (Block65Data);
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->_ref_count_ = 1;
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->self = g_object_ref (self);
#line 169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_clone_dialog_new ((GtkWindow*) self);
#line 169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_->dlg = _tmp0_;
#line 171 "/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 180 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data65_->dlg);
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block65_data_unref (_data65_);
#line 167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data65_ = NULL;
#line 663 "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 670 "gitg-window.c"
}


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


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


static void __lambda117_ (Block66Data* _data66_, GtkDialog* c, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp8_ = NULL;
#line 203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data66_->self;
#line 203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (c != NULL);
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 717 "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 206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gtk_file_chooser_get_file ((GtkFileChooser*) _data66_->chooser);
#line 206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		file = _tmp1_;
#line 208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = file;
#line 208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == NULL) {
#line 733 "gitg-window.c"
			GFile* _tmp3_ = NULL;
#line 210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp3_ = gtk_file_chooser_get_current_folder_file ((GtkFileChooser*) _data66_->chooser);
#line 210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (file);
#line 210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			file = _tmp3_;
#line 741 "gitg-window.c"
		}
#line 213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_dash_view;
#line 213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = file;
#line 213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = gtk_toggle_button_get_active ((GtkToggleButton*) _data66_->scan_all);
#line 213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_dash_view_add_repository_from_location (_tmp4_, _tmp5_, _tmp7_);
#line 204 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (file);
#line 755 "gitg-window.c"
	}
#line 216 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = c;
#line 216 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp8_);
#line 761 "gitg-window.c"
}


static void ___lambda117__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda117_ (self, _sender, response_id);
#line 768 "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 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_ = g_slice_new0 (Block66Data);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->_ref_count_ = 1;
#line 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->self = g_object_ref (self);
#line 186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _ ("Add Repository");
#line 186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _ ("_Cancel");
#line 186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _ ("_Add");
#line 186 "/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 186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp3_);
#line 186 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->chooser = _tmp3_;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _ ("_Scan for all git repositories from this directory");
#line 192 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp4_);
#line 192 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 192 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_->scan_all = _tmp5_;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_halign ((GtkWidget*) _data66_->scan_all, GTK_ALIGN_END);
#line 195 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _data66_->scan_all, TRUE);
#line 196 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data66_->scan_all);
#line 198 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_file_chooser_set_extra_widget ((GtkFileChooser*) _data66_->chooser, (GtkWidget*) _data66_->scan_all);
#line 200 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_set_modal ((GtkWindow*) _data66_->chooser, TRUE);
#line 201 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _data66_->chooser, (gint) GTK_RESPONSE_OK);
#line 203 "/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 219 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _data66_->chooser);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block66_data_unref (_data66_);
#line 184 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data66_ = NULL;
#line 828 "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 835 "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 223 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 223 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (button != NULL);
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 860 "gitg-window.c"
	}
#line 225 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 227 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = button;
#line 227 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
#line 227 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 870 "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 229 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_entry;
#line 229 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 231 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = searchable;
#line 232 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp11_, TRUE);
#line 233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_search_entry;
#line 233 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp12_, (GtkEntry*) _tmp13_);
#line 908 "gitg-window.c"
	} else {
		GitgExtSearchable* _tmp14_ = NULL;
		GitgExtSearchable* _tmp15_ = NULL;
#line 237 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = searchable;
#line 237 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp14_, FALSE);
#line 238 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 238 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp15_, NULL);
#line 920 "gitg-window.c"
	}
#line 223 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 924 "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 931 "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 243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (entry != NULL);
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 965 "gitg-window.c"
	}
#line 245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = entry;
#line 246 "/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 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 246 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ntext = _tmp6_;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = ntext;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = searchable;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_ext_searchable_get_search_text (_tmp8_);
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = _tmp10_;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strcmp0 (_tmp7_, _tmp11_) != 0;
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp11_);
#line 248 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 995 "gitg-window.c"
		GitgExtSearchable* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 250 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = searchable;
#line 250 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ntext;
#line 250 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_text (_tmp13_, _tmp14_);
#line 1004 "gitg-window.c"
	}
#line 243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (ntext);
#line 243 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1010 "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 1017 "gitg-window.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 368 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 1024 "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 364 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 366 "/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 368 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_settings_get_default ();
#line 368 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 368 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	settings = _tmp1_;
#line 369 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = g_getenv ("GTK_THEME");
#line 369 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 369 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	theme = _tmp3_;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = settings;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp5_, "gtk-application-prefer-dark-theme", &_tmp6_, NULL);
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = TRUE;
#line 1068 "gitg-window.c"
	} else {
		gboolean _tmp8_ = FALSE;
		const gchar* _tmp9_ = NULL;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = theme;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp9_ != NULL) {
#line 1076 "gitg-window.c"
			const gchar* _tmp10_ = NULL;
			gboolean _tmp11_ = FALSE;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp10_ = theme;
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp11_ = g_str_has_suffix (_tmp10_, ":dark");
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = _tmp11_;
#line 1085 "gitg-window.c"
		} else {
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = FALSE;
#line 1089 "gitg-window.c"
		}
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp8_;
#line 1093 "gitg-window.c"
	}
#line 371 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	dark = _tmp4_;
#line 373 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = dark;
#line 373 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 1101 "gitg-window.c"
		GtkStyleContext* _tmp13_ = NULL;
#line 375 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 375 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp13_, "dark");
#line 1107 "gitg-window.c"
	} else {
		GtkStyleContext* _tmp14_ = NULL;
#line 379 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 379 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp14_, "dark");
#line 1114 "gitg-window.c"
	}
#line 364 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (theme);
#line 364 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (settings);
#line 1120 "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 383 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 383 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 385 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ret = FALSE;
#line 387 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (GTK_WIDGET_CLASS (gitg_window_parent_class)->delete_event != NULL) {
#line 1137 "gitg-window.c"
		GdkEventAny* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
#line 389 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = event;
#line 389 "/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 389 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		ret = _tmp1_;
#line 1146 "gitg-window.c"
	}
#line 392 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = ret;
#line 392 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp2_) {
#line 394 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 1154 "gitg-window.c"
	}
#line 397 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = ret;
#line 397 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1160 "gitg-window.c"
}


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


static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 405 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 405 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 407 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_search_button;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 407 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 1189 "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 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = action;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_action_get_state ((GAction*) _tmp3_);
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_variant_get_boolean (_tmp5_);
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp5_);
#line 409 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		state = _tmp7_;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = action;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = state;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_variant_new_boolean (!_tmp9_);
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_variant_ref_sink (_tmp10_);
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_action_set_state (_tmp8_, _tmp11_);
#line 410 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp11_);
#line 1228 "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 414 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 414 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 416 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	state = _tmp4_;
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!state);
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 418 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 1273 "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 452 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 452 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 454 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 454 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 454 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 454 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = hint;
#line 454 "/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 454 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	window = _tmp4_;
#line 455 "/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 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = (GitgExtApplication*) window;
#line 457 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1308 "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 1320 "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 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 462 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = g_strdup ("gitg");
#line 462 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	windowtitle = _tmp0_;
#line 464 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	subtitle = NULL;
#line 466 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 466 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1344 "gitg-window.c"
		GFile* workdir = NULL;
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		gchar* head_name = NULL;
		const gchar* _tmp38_ = NULL;
#line 468 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 468 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_workdir ((GgitRepository*) _tmp2_);
#line 468 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		workdir = _tmp3_;
#line 470 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = workdir;
#line 470 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp4_ != NULL) {
#line 1361 "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 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp5_ = workdir;
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp6_ = g_file_get_parent (_tmp5_);
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp7_ = _tmp6_;
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp8_ = gitg_utils_replace_home_dir_with_tilde (_tmp7_);
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp9_ = _tmp8_;
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp7_);
#line 472 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			parent_path = _tmp9_;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp10_ = self->priv->d_repository;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp11_ = gitg_repository_get_name (_tmp10_);
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp12_ = _tmp11_;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp13_ = _tmp12_;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp14_ = string_to_string (_tmp13_);
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp15_ = parent_path;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp16_ = string_to_string (_tmp15_);
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp17_ = g_strconcat (_tmp14_, " (", _tmp16_, ")", NULL);
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			title = _tmp17_;
#line 474 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp13_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp18_ = self->priv->d_repository;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp19_ = gitg_repository_get_name (_tmp18_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp20_ = _tmp19_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp20_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp22_ = string_to_string (_tmp21_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp23_ = g_strconcat (_tmp22_, " - gitg", NULL);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			windowtitle = _tmp23_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp21_);
#line 470 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (parent_path);
#line 1438 "gitg-window.c"
		} else {
			GitgRepository* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
			gchar* _tmp26_ = NULL;
#line 479 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_repository;
#line 479 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp25_ = gitg_repository_get_name (_tmp24_);
#line 479 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp26_ = _tmp25_;
#line 479 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 479 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			title = _tmp26_;
#line 1453 "gitg-window.c"
		}
#line 482 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		head_name = NULL;
#line 1457 "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 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp27_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp28_ = _tmp27_;
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp29_ = _tmp28_;
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp30_ = gitg_repository_get_head (_tmp29_, &_inner_error_);
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp31_ = _tmp30_;
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp29_);
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			head = _tmp31_;
#line 486 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1487 "gitg-window.c"
				goto __catch109_g_error;
			}
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp32_ = head;
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp33_ = gitg_ref_get_parsed_name (_tmp32_);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp34_ = _tmp33_;
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp35_ = _tmp34_;
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp36_ = gitg_parsed_ref_name_get_shortname (_tmp35_);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp37_ = _tmp36_;
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			head_name = _tmp37_;
#line 487 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp35_);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 1510 "gitg-window.c"
		}
		goto __finally109;
		__catch109_g_error:
		{
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_inner_error_ = NULL;
#line 1519 "gitg-window.c"
		}
		__finally109:
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (workdir);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 484 "/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 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 484 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return;
#line 1540 "gitg-window.c"
		}
#line 491 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp38_ = head_name;
#line 491 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp38_ != NULL) {
#line 1546 "gitg-window.c"
			const gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
#line 493 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp39_ = head_name;
#line 493 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp40_ = g_markup_escape_text (_tmp39_, (gssize) -1);
#line 493 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 493 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			subtitle = _tmp40_;
#line 1557 "gitg-window.c"
		}
#line 466 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (head_name);
#line 466 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (workdir);
#line 1563 "gitg-window.c"
	} else {
		const gchar* _tmp41_ = NULL;
		gchar* _tmp42_ = NULL;
#line 498 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp41_ = _ ("Projects");
#line 498 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp42_ = g_strdup (_tmp41_);
#line 498 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 498 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		title = _tmp42_;
#line 1575 "gitg-window.c"
	}
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp43_ = gitg_platform_support_use_native_window_controls (NULL);
#line 501 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp43_) {
#line 1581 "gitg-window.c"
		GtkHeaderBar* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		const gchar* _tmp46_ = NULL;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp44_ = self->priv->d_header_bar;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp45_ = subtitle;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp44_, _tmp45_);
#line 504 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp46_ = title;
#line 504 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp46_);
#line 1595 "gitg-window.c"
	} else {
		const gchar* _tmp47_ = NULL;
		GtkHeaderBar* _tmp48_ = NULL;
		const gchar* _tmp49_ = NULL;
		GtkHeaderBar* _tmp50_ = NULL;
		const gchar* _tmp51_ = NULL;
#line 508 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = windowtitle;
#line 508 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp47_);
#line 509 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp48_ = self->priv->d_header_bar;
#line 509 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp49_ = title;
#line 509 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp48_, _tmp49_);
#line 510 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp50_ = self->priv->d_header_bar;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = subtitle;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp50_, _tmp51_);
#line 1618 "gitg-window.c"
	}
#line 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (subtitle);
#line 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (title);
#line 460 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (windowtitle);
#line 1626 "gitg-window.c"
}


static void gitg_window_repository_changed (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgUIElements* _tmp27_ = NULL;
	GitgRepository* _tmp28_ = NULL;
	GitgWindowMode _tmp29_ = 0;
#line 514 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 516 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_update_title (self);
#line 517 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 517 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 519 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 519 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1648 "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 521 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_ACTIVITY;
#line 523 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_main_stack;
#line 523 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp2_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
#line 524 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_main_stack;
#line 524 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_stack_activities;
#line 524 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 525 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_activities_switcher;
#line 525 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 526 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_dash_button;
#line 526 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp6_);
#line 527 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = self->priv->d_clone_button;
#line 527 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = self->priv->d_add_button;
#line 528 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp8_);
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_dash_view;
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository;
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = gitg_dash_view_add_repository (_tmp9_, _tmp10_);
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = _tmp11_;
#line 529 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp12_);
#line 531 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_gear_menu;
#line 531 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = self->priv->d_activities_model;
#line 531 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp13_, _tmp14_);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_gear_menu;
#line 532 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp15_);
#line 533 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_gear_menu;
#line 533 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, TRUE);
#line 1716 "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;
		GtkMenuButton* _tmp25_ = NULL;
		GtkMenuButton* _tmp26_ = NULL;
#line 537 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_DASH;
#line 539 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_main_stack;
#line 539 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp17_, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
#line 540 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_main_stack;
#line 540 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_dash_view;
#line 540 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp18_, (GtkWidget*) _tmp19_);
#line 541 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_activities_switcher;
#line 541 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp20_);
#line 542 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_dash_button;
#line 542 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp21_);
#line 543 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_clone_button;
#line 543 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp22_);
#line 544 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_add_button;
#line 544 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp23_);
#line 546 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp24_ = self->priv->d_gear_menu;
#line 546 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp24_, NULL);
#line 547 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp25_ = self->priv->d_gear_menu;
#line 547 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp25_);
#line 548 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp26_ = self->priv->d_gear_menu;
#line 548 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp26_, FALSE);
#line 1768 "gitg-window.c"
	}
#line 551 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = self->priv->d_activities;
#line 551 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_update (_tmp27_);
#line 553 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = self->priv->d_repository;
#line 553 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp28_ != NULL) {
#line 555 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_activate_default_activity (self);
#line 1780 "gitg-window.c"
	}
#line 558 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29_ = self->priv->d_mode;
#line 558 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp29_ == GITG_WINDOW_MODE_DASH) {
#line 560 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_on_current_activity_changed (self);
#line 1788 "gitg-window.c"
	}
}


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


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


static void gitg_window_real_realize (GtkWidget* base) {
	GitgWindow * self;
	const gchar* _tmp0_ = NULL;
#line 564 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 565 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = g_getenv ("GITG_GTK_DEBUG_INTERACTIVE");
#line 565 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 566 "/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 1825 "gitg-window.c"
	}
#line 572 "/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 1829 "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 575 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 575 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 577 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 577 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = event;
#line 577 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_->new_window_state;
#line 577 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_set_int (_tmp0_, "state", (gint) _tmp2_);
#line 578 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = event;
#line 578 "/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 578 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp4_;
#line 578 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1861 "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 581 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 581 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_realized ((GtkWidget*) self);
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_) {
#line 1880 "gitg-window.c"
		GdkWindow* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = gtk_widget_get_window ((GtkWidget*) self);
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = gdk_window_get_state (_tmp2_);
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = !((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED);
#line 1889 "gitg-window.c"
	} else {
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 1893 "gitg-window.c"
	}
#line 583 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1897 "gitg-window.c"
		GSettings* _tmp4_ = NULL;
		GdkEventConfigure* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		GdkEventConfigure* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_state_settings;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = event;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_->width;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = event;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_->height;
#line 585 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_settings_set (_tmp4_, "size", "(ii)", _tmp6_, _tmp8_);
#line 1915 "gitg-window.c"
	}
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = event;
#line 588 "/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 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp10_;
#line 588 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 1925 "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 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, 0);
#line 593 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 593 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = ggit_repository_get_location ((GgitRepository*) _tmp0_);
#line 593 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	l = _tmp1_;
#line 595 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = l;
#line 595 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_file_get_child (_tmp2_, "refs");
#line 595 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	refs = _tmp3_;
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = l;
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = g_file_get_child (_tmp4_, "index");
#line 596 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	index = _tmp5_;
#line 597 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = l;
#line 597 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = g_file_get_child (_tmp6_, "HEAD");
#line 597 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	head = _tmp7_;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = location;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = refs;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_file_equal (_tmp10_, _tmp11_);
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = TRUE;
#line 1986 "gitg-window.c"
	} else {
		GFile* _tmp13_ = NULL;
		GFile* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = location;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = refs;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_file_has_prefix (_tmp13_, _tmp14_);
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp15_;
#line 1999 "gitg-window.c"
	}
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp9_) {
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = TRUE;
#line 2005 "gitg-window.c"
	} else {
		GFile* _tmp16_ = NULL;
		GFile* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = location;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = head;
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = g_file_equal (_tmp16_, _tmp17_);
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp18_;
#line 2018 "gitg-window.c"
	}
#line 599 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = GITG_EXT_EXTERNAL_CHANGE_HINT_REFS;
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (head);
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (index);
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (refs);
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (l);
#line 601 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2034 "gitg-window.c"
	} else {
		GFile* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		gboolean _tmp21_ = FALSE;
#line 603 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = location;
#line 603 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = index;
#line 603 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = g_file_equal (_tmp19_, _tmp20_);
#line 603 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_INDEX;
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 605 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 2059 "gitg-window.c"
		} else {
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 609 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 2073 "gitg-window.c"
		}
	}
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (head);
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (index);
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (refs);
#line 591 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (l);
#line 2084 "gitg-window.c"
}


static gboolean gitg_window_filter_repository_changes (GitgWindow* self, GFile* location) {
	gboolean result = FALSE;
	GFile* _tmp0_ = NULL;
	GitgExtExternalChangeHint _tmp1_ = 0;
#line 614 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 614 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, FALSE);
#line 616 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = location;
#line 616 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_external_change_hint_from_file (self, _tmp0_);
#line 616 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_ != GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 616 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2104 "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 619 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 621 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 621 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 2120 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 623 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 623 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 624 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 624 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 2130 "gitg-window.c"
	}
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 627 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_repository = _tmp3_;
#line 629 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_repository;
#line 629 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 631 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_update_enable_monitoring (self);
#line 2146 "gitg-window.c"
	}
#line 634 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_remote_manager_new (self);
#line 634 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 634 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_remote_manager = _tmp5_;
#line 635 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "repository");
#line 2156 "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 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2165 "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 666 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	hint = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = files;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0__length1 = files_length1;
#line 2180 "gitg-window.c"
	{
		GFile** f_collection = NULL;
		gint f_collection_length1 = 0;
		gint _f_collection_size_ = 0;
		gint f_it = 0;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		f_collection = _tmp0_;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		f_collection_length1 = _tmp0__length1;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (f_it = 0; f_it < _tmp0__length1; f_it = f_it + 1) {
#line 2192 "gitg-window.c"
			GFile* _tmp1_ = NULL;
			GFile* f = NULL;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp1_ = _g_object_ref0 (f_collection[f_it]);
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			f = _tmp1_;
#line 2199 "gitg-window.c"
			{
				GitgExtExternalChangeHint _tmp2_ = 0;
				GFile* _tmp3_ = NULL;
				GitgExtExternalChangeHint _tmp4_ = 0;
#line 670 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp2_ = hint;
#line 670 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp3_ = f;
#line 670 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp4_ = gitg_window_external_change_hint_from_file (self, _tmp3_);
#line 670 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				hint = _tmp2_ | _tmp4_;
#line 668 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (f);
#line 2214 "gitg-window.c"
			}
		}
	}
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = hint;
#line 673 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name ((GitgExtApplication*) self, "repository-changed-externally", _tmp5_);
#line 2222 "gitg-window.c"
}


static void ____lambda92__gitg_recursive_monitor_changed (GitgRecursiveMonitor* _sender, GFile** files, int files_length1, gpointer self) {
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	___lambda92_ ((GitgWindow*) self, files, files_length1);
#line 2229 "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 654 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 656 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 656 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 2244 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 658 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 658 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 659 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 659 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 2254 "gitg-window.c"
	}
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_window_get_enable_monitoring (self);
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2262 "gitg-window.c"
		GitgRepository* _tmp5_ = NULL;
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_repository;
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp5_ != NULL;
#line 2268 "gitg-window.c"
	} else {
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = FALSE;
#line 2272 "gitg-window.c"
	}
#line 662 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 2276 "gitg-window.c"
		GitgRepository* _tmp6_ = NULL;
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GitgRecursiveMonitor* _tmp9_ = NULL;
		GitgRecursiveMonitor* _tmp10_ = NULL;
#line 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_repository;
#line 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = ggit_repository_get_location ((GgitRepository*) _tmp6_);
#line 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 664 "/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 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = _tmp9_;
#line 664 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp8_);
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository_monitor;
#line 665 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_signal_connect_object (_tmp10_, "changed", (GCallback) ____lambda92__gitg_recursive_monitor_changed, self, 0);
#line 2300 "gitg-window.c"
	}
}


static void gitg_window_on_reload_activated (GitgWindow* self) {
	GError * _inner_error_ = NULL;
#line 678 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 2309 "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 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = ggit_repository_get_location ((GgitRepository*) _tmp3_);
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = gitg_repository_new (_tmp5_, NULL, &_inner_error_);
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp5_);
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp7_;
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2341 "gitg-window.c"
			goto __catch110_g_error;
		}
#line 682 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (self, _tmp0_);
#line 683 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_update_title (self);
#line 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2350 "gitg-window.c"
	}
	goto __finally110;
	__catch110_g_error:
	{
#line 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2359 "gitg-window.c"
	}
	__finally110:
#line 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 680 "/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 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 680 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2370 "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 688 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 690 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	repo_config = NULL;
#line 2391 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		GgitConfig* _tmp3_ = NULL;
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp2_;
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2405 "gitg-window.c"
			goto __catch111_g_error;
		}
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp0_;
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 694 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo_config = _tmp3_;
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2418 "gitg-window.c"
	}
	goto __finally111;
	__catch111_g_error:
	{
		GError* e = NULL;
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 698 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 698 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 698 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2434 "gitg-window.c"
	}
	__finally111:
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 692 "/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 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 692 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 2447 "gitg-window.c"
	}
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = repo_config;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = self->priv->d_repository;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_repository_get_name (_tmp5_);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp4_, _tmp8_);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp9_);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp8_);
#line 701 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	author_details = _tmp10_;
#line 702 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = author_details;
#line 702 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 688 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 688 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo_config);
#line 2477 "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 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 707 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "current_activity");
#line 709 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 709 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 709 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	current = _tmp1_;
#line 711 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = current;
#line 711 "/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 711 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp3_;
#line 713 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 713 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_searchable_available_binding = NULL;
#line 715 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = searchable;
#line 715 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 2519 "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 717 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_button;
#line 717 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 718 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 719 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_search_button;
#line 719 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 719 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = gitg_ext_searchable_get_search_visible (_tmp12_);
#line 719 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = _tmp13_;
#line 719 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp11_, _tmp14_);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_search_button;
#line 721 "/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 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _g_object_ref0 (_tmp17_);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 721 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_searchable_available_binding = _tmp18_;
#line 2574 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp19_ = NULL;
		GtkToggleButton* _tmp20_ = NULL;
		GtkToggleButton* _tmp21_ = NULL;
		GtkSearchEntry* _tmp22_ = NULL;
#line 729 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_search_button;
#line 729 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp19_, FALSE);
#line 730 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_search_button;
#line 730 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp20_, FALSE);
#line 731 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_search_button;
#line 731 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp21_, FALSE);
#line 732 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_search_entry;
#line 732 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp22_, "");
#line 2596 "gitg-window.c"
	}
#line 735 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = current;
#line 735 "/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 735 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	selectable = _tmp24_;
#line 736 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_select_button;
#line 736 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = selectable;
#line 736 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp25_, _tmp26_ != NULL);
#line 738 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 738 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode_binding = NULL;
#line 739 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 739 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_available_binding = NULL;
#line 741 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = selectable;
#line 741 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp27_ != NULL) {
#line 2622 "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 743 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp28_ = selectable;
#line 743 "/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 743 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp30_ = _g_object_ref0 (_tmp29_);
#line 743 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 743 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_mode_binding = _tmp30_;
#line 748 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = selectable;
#line 748 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp32_ = self->priv->d_select_button;
#line 748 "/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 748 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp34_ = _g_object_ref0 (_tmp33_);
#line 748 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 748 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_available_binding = _tmp34_;
#line 2652 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp35_ = NULL;
		GtkToggleButton* _tmp36_ = NULL;
#line 756 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp35_ = self->priv->d_select_button;
#line 756 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp35_, FALSE);
#line 757 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp36_ = self->priv->d_select_button;
#line 757 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp36_, FALSE);
#line 2664 "gitg-window.c"
	}
#line 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 705 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (current);
#line 2672 "gitg-window.c"
}


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


static void block67_data_unref (void * _userdata_) {
	Block67Data* _data67_;
	_data67_ = (Block67Data*) _userdata_;
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data67_->_ref_count_)) {
#line 2690 "gitg-window.c"
		GitgWindow* self;
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data67_->self;
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block67Data, _data67_);
#line 2702 "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 776 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data67_->self;
#line 776 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 777 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 777 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 777 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = _data67_->default_activity;
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_ext_activity_is_default_for (_tmp2_, _tmp3_);
#line 779 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2734 "gitg-window.c"
		GitgExtActivity* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 781 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 781 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 781 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 781 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->def = _tmp6_;
#line 2745 "gitg-window.c"
	}
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 784 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2753 "gitg-window.c"
}


static gboolean ___lambda108__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = __lambda108_ (self, element);
#line 776 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2762 "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 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_ = g_slice_new0 (Block67Data);
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->_ref_count_ = 1;
#line 761 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->self = g_object_ref (self);
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = action;
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == NULL) {
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = TRUE;
#line 2787 "gitg-window.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = action;
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "") == 0;
#line 2794 "gitg-window.c"
	}
#line 765 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 2798 "gitg-window.c"
		GSettings* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 767 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_interface_settings;
#line 767 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_settings_get_string (_tmp3_, "default-activity");
#line 767 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 767 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp4_;
#line 2809 "gitg-window.c"
	} else {
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 771 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = action;
#line 771 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 771 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 771 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp6_;
#line 2821 "gitg-window.c"
	}
#line 774 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data67_->def = NULL;
#line 776 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_activities;
#line 776 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_foreach (_tmp7_, ___lambda108__gitg_ui_elements_foreach_ui_element_func, _data67_);
#line 787 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _data67_->def;
#line 787 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_ != NULL) {
#line 2833 "gitg-window.c"
		GitgUIElements* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 789 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_activities;
#line 789 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _data67_->def;
#line 789 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp9_, _tmp10_);
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = TRUE;
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		block67_data_unref (_data67_);
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data67_ = NULL;
#line 790 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2850 "gitg-window.c"
	}
#line 793 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = FALSE;
#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"
}


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 800 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 801 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_activity_is_default_for (_tmp2_, "");
#line 803 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 2885 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 805 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 805 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 805 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (activity);
#line 806 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 2900 "gitg-window.c"
	}
#line 809 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#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 2908 "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 800 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 2917 "gitg-window.c"
}


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


static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 840 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_on_current_activity_changed ((GitgWindow*) self);
#line 2946 "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 814 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 817 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 817 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 817 "/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 817 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	app = _tmp2_;
#line 818 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = app;
#line 818 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_application_get_state_settings (_tmp3_);
#line 818 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 818 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 818 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_state_settings = _tmp5_;
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_ext_message_bus_new ();
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 821 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_message_bus = _tmp6_;
#line 824 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_plugins_engine_get_default ();
#line 824 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	engine = _tmp7_;
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_history_activity_new ((GitgExtApplication*) self);
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_commit_activity_new ((GitgExtApplication*) self);
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = g_new0 (GitgExtActivity*, 2 + 1);
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_[0] = (GitgExtActivity*) _tmp8_;
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_[1] = (GitgExtActivity*) _tmp9_;
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins = _tmp10_;
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins_length1 = 2;
#line 826 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_builtins_size_ = builtins_length1;
#line 831 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = engine;
#line 831 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = peas_extension_set_new ((PeasEngine*) _tmp11_, GITG_EXT_TYPE_ACTIVITY, "application", self, NULL);
#line 831 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	extset = _tmp12_;
#line 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = builtins;
#line 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13__length1 = builtins_length1;
#line 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = extset;
#line 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp15_ = self->priv->d_stack_activities;
#line 836 "/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 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 836 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_activities = _tmp16_;
#line 840 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_activities;
#line 840 "/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 843 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_state_settings;
#line 843 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_settings_get_int (_tmp18_, "state");
#line 843 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	window_state = (GdkWindowState) _tmp19_;
#line 845 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp20_ = window_state;
#line 845 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if ((_tmp20_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED) {
#line 847 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 3067 "gitg-window.c"
	}
#line 853 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_state_settings;
#line 853 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_get (_tmp21_, "size", "(ii)", &width, &height);
#line 854 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_window_resize ((GtkWindow*) self, width, height);
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (extset);
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) g_object_unref), NULL);
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (engine);
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (app);
#line 856 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3087 "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 859 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 861 "/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 861 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 861 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp0_;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = environment;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__length1 = environment_length1;
#line 3107 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = _tmp1_;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _tmp1__length1;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
#line 3119 "gitg-window.c"
			gchar* _tmp2_ = NULL;
			gchar* e = NULL;
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp2_ = g_strdup (e_collection[e_it]);
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			e = _tmp2_;
#line 3126 "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 865 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp3_ = e;
#line 865 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "=", 2);
#line 865 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts = _tmp5_;
#line 865 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts_length1 = _vala_array_length (_tmp4_);
#line 865 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_parts_size_ = parts_length1;
#line 867 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp6_ = parts;
#line 867 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp6__length1 = parts_length1;
#line 867 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (_tmp6__length1 == 1) {
#line 3152 "gitg-window.c"
					GeeHashMap* _tmp7_ = NULL;
					gchar** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					const gchar* _tmp9_ = NULL;
#line 869 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp7_ = self->priv->d_environment;
#line 869 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp8_ = parts;
#line 869 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp8__length1 = parts_length1;
#line 869 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp9_ = _tmp8_[0];
#line 869 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, _tmp9_, "");
#line 3167 "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 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp10_ = self->priv->d_environment;
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp11_ = parts;
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp11__length1 = parts_length1;
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp12_ = _tmp11_[0];
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp13_ = parts;
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp13__length1 = parts_length1;
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp14_ = _tmp13_[1];
#line 873 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, _tmp12_, _tmp14_);
#line 3192 "gitg-window.c"
				}
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 863 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 3198 "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 878 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 882 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_window_new ();
#line 882 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 882 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ret = _tmp0_;
#line 884 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = ret;
#line 884 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3224 "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 886 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = ret;
#line 886 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = app;
#line 886 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_application ((GtkWindow*) _tmp2_, _tmp3_);
#line 887 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = ret;
#line 887 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = repository;
#line 887 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (_tmp4_, _tmp5_);
#line 888 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = ret;
#line 888 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = action;
#line 888 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = g_strdup (_tmp7_);
#line 888 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp6_->priv->d_action);
#line 888 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_->priv->d_action = _tmp8_;
#line 3254 "gitg-window.c"
	}
	{
		GitgWindow* _tmp9_ = NULL;
#line 893 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = ret;
#line 893 "/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 893 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3264 "gitg-window.c"
			goto __catch112_g_error;
		}
	}
	goto __finally112;
	__catch112_g_error:
	{
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3275 "gitg-window.c"
	}
	__finally112:
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (ret);
#line 891 "/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 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 891 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return NULL;
#line 3288 "gitg-window.c"
	}
#line 896 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = ret;
#line 896 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (_tmp10_);
#line 897 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = ret;
#line 897 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3298 "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 901 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 901 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 903 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 903 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 903 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 903 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	v = (GitgExtActivity*) _tmp2_;
#line 905 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = v;
#line 905 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != NULL) {
#line 3330 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 907 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 907 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = v;
#line 907 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 3339 "gitg-window.c"
	}
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_activities;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ui_elements_get_current (_tmp6_);
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = v;
#line 910 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (((GitgExtActivity*) _tmp8_) == _tmp9_) {
#line 912 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = v;
#line 912 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 3355 "gitg-window.c"
	} else {
#line 916 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 916 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (v);
#line 916 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 3363 "gitg-window.c"
	}
#line 901 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (v);
#line 3367 "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 920 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 920 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 922 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 922 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 922 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 922 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = (GitgExtActivity*) _tmp2_;
#line 922 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3391 "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 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (path != NULL);
#line 928 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	repository = NULL;
#line 930 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 930 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3413 "gitg-window.c"
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_location ((GgitRepository*) _tmp2_);
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp3_;
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = path;
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_file_equal (_tmp4_, _tmp5_);
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp6_;
#line 931 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_);
#line 3433 "gitg-window.c"
	} else {
#line 930 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 3437 "gitg-window.c"
	}
#line 930 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 933 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3447 "gitg-window.c"
	}
	{
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GFile* _tmp10_ = NULL;
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = path;
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = ggit_repository_discover (_tmp8_, &_inner_error_);
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp9_;
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3462 "gitg-window.c"
			goto __catch113_g_error;
		}
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp7_;
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = NULL;
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 938 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo = _tmp10_;
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_);
#line 3475 "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 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 942 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = path;
#line 942 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_file_get_basename (_tmp11_);
#line 942 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repo_name = _tmp12_;
#line 944 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = _ ("'%s' is not a Git repository.");
#line 944 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = repo_name;
#line 944 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 944 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		title = _tmp15_;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = title;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = e;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp17_->message;
#line 945 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp16_, _tmp18_, GTK_MESSAGE_WARNING);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (repo_name);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 947 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3529 "gitg-window.c"
	}
	__finally113:
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#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"
		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 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 936 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3544 "gitg-window.c"
	}
	{
		GitgRepository* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = repo;
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp21_ = gitg_repository_new (_tmp20_, NULL, &_inner_error_);
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp21_;
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3559 "gitg-window.c"
			goto __catch114_g_error;
		}
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = _tmp19_;
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp19_ = NULL;
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 952 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		repository = _tmp22_;
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp19_);
#line 3572 "gitg-window.c"
	}
	goto __finally114;
	__catch114_g_error:
	{
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3581 "gitg-window.c"
	}
	__finally114:
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#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"
		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 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 950 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 3596 "gitg-window.c"
	}
#line 956 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = repository;
#line 956 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp23_);
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repository);
#line 925 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo);
#line 3606 "gitg-window.c"
}


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


static void block68_data_unref (void * _userdata_) {
	Block68Data* _data68_;
	_data68_ = (Block68Data*) _userdata_;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data68_->_ref_count_)) {
#line 3624 "gitg-window.c"
		GitgWindow* self;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data68_->self;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->title);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->message);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block68Data, _data68_);
#line 3636 "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 963 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data68_->self;
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data68_->title;
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) -1);
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup_printf ("<b>%s</b>", _tmp2_);
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp2_);
#line 964 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	primary = _tmp4_;
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = _data68_->message;
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_markup_escape_text (_tmp5_, (gssize) -1);
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_strdup_printf ("<small>%s</small>", _tmp7_);
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = _tmp8_;
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp7_);
#line 965 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	secondary = _tmp9_;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_infobar_primary_label;
#line 967 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp10_, primary);
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_infobar_secondary_label;
#line 968 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp11_, secondary);
#line 969 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = self->priv->d_infobar;
#line 969 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data68_->type;
#line 969 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_info_bar_set_message_type (_tmp12_, _tmp13_);
#line 971 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = self->priv->d_infobar;
#line 971 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (secondary);
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 972 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3717 "gitg-window.c"
}


static gboolean ___lambda162__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda162_ (self);
#line 963 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3726 "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 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (title != NULL);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (message != NULL);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_ = g_slice_new0 (Block68Data);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->_ref_count_ = 1;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->self = g_object_ref (self);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = title;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_data68_->title);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->title = _tmp1_;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = message;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_data68_->message);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->message = _tmp3_;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = type;
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_->type = _tmp4_;
#line 963 "/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 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block68_data_unref (_data68_);
#line 959 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data68_ = NULL;
#line 3776 "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 3789 "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 3821 "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 3834 "gitg-window.c"
}


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


static void block69_data_unref (void * _userdata_) {
	Block69Data* _data69_;
	_data69_ = (Block69Data*) _userdata_;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data69_->_ref_count_)) {
#line 3852 "gitg-window.c"
		GitgWindow* self;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data69_->self;
#line 976 "/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 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb = NULL;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb_target = NULL;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_data69_->cb_target_destroy_notify = NULL;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block69Data, _data69_);
#line 3868 "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 978 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3878 "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 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data69_->self;
#line 982 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = response;
#line 982 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data69_->retval = _tmp0_;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data69_->cb;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__target = _data69_->cb_target;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1__target_destroy_notify = _data69_->cb_target_destroy_notify;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data69_->cb_target_destroy_notify = NULL;
#line 984 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
#line 985 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 985 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3909 "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 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 3918 "gitg-window.c"
}


static gboolean gitg_window_real_user_query_async_co (GitgWindowUserQueryAsyncData* _data_) {
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	switch (_data_->_state_) {
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case 0:
#line 3927 "gitg-window.c"
		goto _state_0;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		case 1:
#line 3931 "gitg-window.c"
		goto _state_1;
		default:
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_assert_not_reached ();
#line 3936 "gitg-window.c"
	}
	_state_0:
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = g_slice_new0 (Block69Data);
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_ref_count_ = 1;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->self = g_object_ref (_data_->self);
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_async_data_ = _data_;
#line 978 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb = _gitg_window_real_user_query_async_co_gsource_func;
#line 978 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target = _data_;
#line 978 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target_destroy_notify = NULL;
#line 979 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_->retval = 0;
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = NULL;
#line 981 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = _data_->query;
#line 981 "/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 988 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = NULL;
#line 988 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = _data_->query;
#line 988 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_application_user_query ((GitgExtApplication*) _data_->self, _data_->_tmp1_);
#line 990 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_state_ = 1;
#line 990 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 3971 "gitg-window.c"
	_state_1:
	;
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->result = _data_->_data69_->retval;
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3984 "gitg-window.c"
	} else {
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3988 "gitg-window.c"
	}
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 992 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4002 "gitg-window.c"
	} else {
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4006 "gitg-window.c"
	}
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 976 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 4012 "gitg-window.c"
}


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


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


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


static void ___lambda164__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self) {
#line 1040 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda164_ (self);
#line 4071 "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 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data70_->self;
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 1046 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data70_->dlg;
#line 1046 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, FALSE);
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data70_->query;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = r;
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name (_tmp1_, "response", (GtkResponseType) _tmp2_, &_tmp3_);
#line 1048 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 4097 "gitg-window.c"
		GtkMessageDialog* _tmp4_ = NULL;
		GitgExtUserQuery* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
#line 1050 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _data70_->dlg;
#line 1050 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _data70_->query;
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _data70_->qid;
#line 1051 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 4111 "gitg-window.c"
	}
}


static void ___lambda165__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	__lambda165_ (self, _sender, response_id);
#line 4119 "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 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (query != NULL);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_ = g_slice_new0 (Block70Data);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->_ref_count_ = 1;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->self = g_object_ref (self);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = query;
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data70_->query);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->query = _tmp1_;
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data70_->query;
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_user_query_get_message_type (_tmp2_);
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, _tmp4_, GTK_BUTTONS_NONE, "");
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 997 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->dlg = _tmp5_;
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = _data70_->query;
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ext_user_query_get_title (_tmp6_);
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = g_markup_escape_text (_tmp8_, (gssize) -1);
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_strdup_printf ("<b>%s</b>", _tmp10_);
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = _tmp11_;
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp10_);
#line 1003 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	primary = _tmp12_;
#line 1004 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data70_->dlg;
#line 1004 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = primary;
#line 1004 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_set_markup (_tmp13_, _tmp14_);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp15_ = _data70_->dlg;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp16_ = _data70_->query;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp17_ = gitg_ext_user_query_get_message (_tmp16_);
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 1006 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_format_secondary_text (_tmp15_, "%s", _tmp18_);
#line 1008 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = _data70_->query;
#line 1008 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp20_ = gitg_ext_user_query_get_message_use_markup (_tmp19_);
#line 1008 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = _tmp20_;
#line 1008 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp21_) {
#line 4237 "gitg-window.c"
		GtkMessageDialog* _tmp22_ = NULL;
#line 1010 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = _data70_->dlg;
#line 1010 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp22_, "secondary-use-markup", TRUE, NULL);
#line 4243 "gitg-window.c"
	}
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = _data70_->dlg;
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp24_ = _data70_->query;
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_ext_user_query_get_default_response (_tmp24_);
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = _tmp25_;
#line 1013 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _tmp23_, (gint) _tmp26_);
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = _data70_->query;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = gitg_ext_user_query_get_responses (_tmp27_, &_tmp28__length1);
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29_ = _tmp28_;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp29__length1 = _tmp28__length1;
#line 4263 "gitg-window.c"
	{
		GitgExtUserQueryResponse** response_collection = NULL;
		gint response_collection_length1 = 0;
		gint _response_collection_size_ = 0;
		gint response_it = 0;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		response_collection = _tmp29_;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		response_collection_length1 = _tmp29__length1;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (response_it = 0; response_it < _tmp29__length1; response_it = response_it + 1) {
#line 4275 "gitg-window.c"
			GitgExtUserQueryResponse* _tmp30_ = NULL;
			GitgExtUserQueryResponse* response = NULL;
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp30_ = _g_object_ref0 (response_collection[response_it]);
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			response = _tmp30_;
#line 4282 "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 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp31_ = _data70_->dlg;
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp32_ = response;
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp33_ = _tmp32_->text;
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp34_ = response;
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp35_ = _tmp34_->response_type;
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp36_ = gtk_dialog_add_button ((GtkDialog*) _tmp31_, _tmp33_, (gint) _tmp35_);
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp37_ = _g_object_ref0 (_tmp36_);
#line 1017 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				button = _tmp37_;
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp38_ = response;
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp39_ = _tmp38_->response_type;
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp40_ = _data70_->query;
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp41_ = gitg_ext_user_query_get_default_response (_tmp40_);
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp42_ = _tmp41_;
#line 1019 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (_tmp39_ == _tmp42_) {
#line 4325 "gitg-window.c"
					GtkWidget* _tmp43_ = NULL;
					GtkWidget* _tmp44_ = NULL;
					GitgExtUserQuery* _tmp45_ = NULL;
					gboolean _tmp46_ = FALSE;
					gboolean _tmp47_ = FALSE;
#line 1021 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp43_ = button;
#line 1021 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					gtk_widget_set_can_default (_tmp43_, TRUE);
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp44_ = button;
#line 1022 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					g_object_set (_tmp44_, "has-default", TRUE, NULL);
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp45_ = _data70_->query;
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp46_ = gitg_ext_user_query_get_default_is_destructive (_tmp45_);
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp47_ = _tmp46_;
#line 1024 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					if (_tmp47_) {
#line 4347 "gitg-window.c"
						GtkWidget* _tmp48_ = NULL;
						GtkStyleContext* _tmp49_ = NULL;
#line 1026 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp48_ = button;
#line 1026 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp49_ = gtk_widget_get_style_context (_tmp48_);
#line 1026 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp49_, GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
#line 4356 "gitg-window.c"
					} else {
						GtkWidget* _tmp50_ = NULL;
						GtkStyleContext* _tmp51_ = NULL;
#line 1030 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp50_ = button;
#line 1030 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						_tmp51_ = gtk_widget_get_style_context (_tmp50_);
#line 1030 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp51_, GTK_STYLE_CLASS_SUGGESTED_ACTION);
#line 4366 "gitg-window.c"
					}
				}
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (button);
#line 1015 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (response);
#line 4373 "gitg-window.c"
			}
		}
	}
#line 1035 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = _data70_->dlg;
#line 1035 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp53_ = _g_object_ref0 ((GtkDialog*) _tmp52_);
#line 1035 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 1035 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_dialog = _tmp53_;
#line 1036 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = _data70_->dlg;
#line 1036 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_add_weak_pointer ((GObject*) _tmp54_, &self->priv->d_dialog);
#line 1038 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->qid = (gulong) 0;
#line 1040 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp55_ = _data70_->query;
#line 1040 "/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 1040 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_->qid = _tmp56_;
#line 1045 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp57_ = _data70_->dlg;
#line 1045 "/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 1055 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = _data70_->dlg;
#line 1055 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp58_);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block70_data_unref (_data70_);
#line 995 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data70_ = NULL;
#line 4411 "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 1063 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1065 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	user = NULL;
#line 1066 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	email = NULL;
#line 1067 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	committer = NULL;
#line 4432 "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 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_ext_application_get_environment ((GitgExtApplication*) self);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_repository_get_signature_with_environment (_tmp3_, _tmp6_, "COMMITTER", &_inner_error_);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp8_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4476 "gitg-window.c"
			goto __catch115_g_error;
		}
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp0_;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1071 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		committer = _tmp9_;
#line 1073 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = committer;
#line 1073 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = ggit_signature_get_name (_tmp10_);
#line 1073 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 1073 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1073 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		user = _tmp12_;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp13_ = committer;
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ggit_signature_get_email (_tmp13_);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup (_tmp14_);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1074 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		email = _tmp15_;
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = user;
#line 1076 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp16_, "") == 0) {
#line 1078 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (user);
#line 1078 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			user = NULL;
#line 4515 "gitg-window.c"
		}
#line 1081 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = email;
#line 1081 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp17_, "") == 0) {
#line 1083 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (email);
#line 1083 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			email = NULL;
#line 4525 "gitg-window.c"
		}
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 4529 "gitg-window.c"
	}
	goto __finally115;
	__catch115_g_error:
	{
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 4538 "gitg-window.c"
	}
	__finally115:
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1069 "/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 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1069 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return NULL;
#line 4555 "gitg-window.c"
	}
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = user;
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp19_ == NULL) {
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = TRUE;
#line 4563 "gitg-window.c"
	} else {
		const gchar* _tmp20_ = NULL;
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp20_ = email;
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp20_ == NULL;
#line 4570 "gitg-window.c"
	}
#line 1087 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp18_) {
#line 4574 "gitg-window.c"
		gchar* secmsg = NULL;
		gboolean _tmp21_ = FALSE;
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = user;
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp22_ == NULL) {
#line 4584 "gitg-window.c"
			const gchar* _tmp23_ = NULL;
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp23_ = email;
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp23_ == NULL;
#line 4590 "gitg-window.c"
		} else {
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = FALSE;
#line 4594 "gitg-window.c"
		}
#line 1091 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 4598 "gitg-window.c"
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
#line 1093 "/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 1093 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp25_ = g_strdup (_tmp24_);
#line 1093 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_free0 (secmsg);
#line 1093 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			secmsg = _tmp25_;
#line 4609 "gitg-window.c"
		} else {
			const gchar* _tmp26_ = NULL;
#line 1095 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp26_ = user;
#line 1095 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			if (_tmp26_ == NULL) {
#line 4616 "gitg-window.c"
				const gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
#line 1097 "/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 1097 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp28_ = g_strdup (_tmp27_);
#line 1097 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1097 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				secmsg = _tmp28_;
#line 4627 "gitg-window.c"
			} else {
				const gchar* _tmp29_ = NULL;
				gchar* _tmp30_ = NULL;
#line 1101 "/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 1101 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp30_ = g_strdup (_tmp29_);
#line 1101 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1101 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				secmsg = _tmp30_;
#line 4639 "gitg-window.c"
			}
		}
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = _ ("Missing author details");
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp32_ = secmsg;
#line 1104 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp31_, _tmp32_, GTK_MESSAGE_ERROR);
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (secmsg);
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1105 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4660 "gitg-window.c"
	}
#line 1108 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = 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"
}


void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines) {
	const gchar* _tmp0_ = NULL;
	GitgExtCommandLines* _tmp2_ = NULL;
#line 1141 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = hint;
#line 1143 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 4683 "gitg-window.c"
		const gchar* _tmp1_ = NULL;
#line 1145 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = hint;
#line 1145 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_activate_activity (self, _tmp1_);
#line 4689 "gitg-window.c"
	}
#line 1148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = command_lines;
#line 1148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ != NULL) {
#line 4695 "gitg-window.c"
		GitgExtCommandLines* _tmp3_ = NULL;
#line 1150 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = command_lines;
#line 1150 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_ext_command_lines_apply (_tmp3_, (GitgExtApplication*) self);
#line 4701 "gitg-window.c"
	}
#line 1153 "/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 4705 "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 1156 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1156 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 1158 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!st);
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 1159 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 4749 "gitg-window.c"
}


static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self) {
#line 1220 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1222 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4758 "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 4765 "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 4775 "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 4782 "gitg-window.c"
}


static GitgExtActivity* gitg_window_real_get_current_activity (GitgExtApplication* base) {
	GitgExtActivity* result;
	GitgWindow* self;
	GitgWindowMode _tmp0_ = 0;
#line 423 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 425 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_mode;
#line 425 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 4796 "gitg-window.c"
		GitgUIElements* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GitgExtActivity* _tmp3_ = NULL;
		GitgExtActivity* _tmp4_ = NULL;
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_activities;
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_ui_elements_get_current (_tmp1_);
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 ((GitgExtActivity*) _tmp3_);
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = _tmp4_;
#line 427 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4813 "gitg-window.c"
	} else {
		GitgDashView* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 431 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_dash_view;
#line 431 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 ((GitgExtActivity*) _tmp5_);
#line 431 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = _tmp6_;
#line 431 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 4825 "gitg-window.c"
	}
}


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


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


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


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


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


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


static gboolean gitg_window_real_get_busy (GitgExtApplication* base) {
	gboolean result;
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
#line 1113 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1113 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_busy;
#line 1113 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 1113 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 4945 "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 1114 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 1116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_busy = _tmp0_;
#line 1120 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_dialog;
#line 1120 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 4965 "gitg-window.c"
		GtkDialog* _tmp2_ = NULL;
		GdkWindow* _tmp3_ = NULL;
		GdkWindow* _tmp4_ = NULL;
#line 1122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_dialog;
#line 1122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = gtk_widget_get_window ((GtkWidget*) _tmp2_);
#line 1122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 (_tmp3_);
#line 1122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1122 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		win = _tmp4_;
#line 4979 "gitg-window.c"
	} else {
		GdkWindow* _tmp5_ = NULL;
		GdkWindow* _tmp6_ = NULL;
#line 1126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 1126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		win = _tmp6_;
#line 4991 "gitg-window.c"
	}
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_busy;
#line 1129 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 4997 "gitg-window.c"
		GdkWindow* _tmp8_ = NULL;
		GdkDisplay* _tmp9_ = NULL;
		GdkCursor* _tmp10_ = NULL;
		GdkCursor* _tmp11_ = NULL;
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp8_ = win;
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp9_ = gtk_widget_get_display ((GtkWidget*) self);
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp10_ = gdk_cursor_new_for_display (_tmp9_, GDK_WATCH);
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp8_, _tmp11_);
#line 1131 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp11_);
#line 5014 "gitg-window.c"
	} else {
		GdkWindow* _tmp12_ = NULL;
#line 1136 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp12_ = win;
#line 1136 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp12_, NULL);
#line 5021 "gitg-window.c"
	}
#line 1114 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (win);
#line 1114 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "busy");
#line 5027 "gitg-window.c"
}


GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self) {
	GitgExtSelectionMode result;
	GitgExtSelectionMode _tmp0_ = 0;
#line 1164 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1164 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 1164 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 1164 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5042 "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 1165 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp1_) : NULL;
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 5106 "gitg-window.c"
	}
#line 1167 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	selectable = _tmp2_;
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = selectable;
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp4_ == NULL) {
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = TRUE;
#line 5116 "gitg-window.c"
	} else {
		GitgExtSelectionMode _tmp5_ = 0;
		GitgExtSelectionMode _tmp6_ = 0;
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_selectable_mode;
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp6_ = value;
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp5_ == _tmp6_;
#line 5126 "gitg-window.c"
	}
#line 1169 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 1171 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (selectable);
#line 1171 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return;
#line 5134 "gitg-window.c"
	}
#line 1174 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = value;
#line 1174 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode = _tmp7_;
#line 1175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = selectable;
#line 1175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = value;
#line 1175 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_selectable_set_selectable_mode (_tmp8_, _tmp9_);
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_header_bar;
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 1177 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	ctx = _tmp12_;
#line 1179 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = self->priv->d_selectable_mode;
#line 1179 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp13_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 5158 "gitg-window.c"
		GtkStyleContext* _tmp14_ = NULL;
		GitgExtSelectable* _tmp15_ = NULL;
		GtkWidget* _tmp16_ = NULL;
		GtkWidget* _tmp17_ = NULL;
		GtkWidget* _tmp18_ = NULL;
#line 1181 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp14_ = ctx;
#line 1181 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp14_, "selection-mode");
#line 1183 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = selectable;
#line 1183 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = gitg_ext_selectable_get_action_widget (_tmp15_);
#line 1183 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp17_ = _tmp16_;
#line 1183 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_select_actions);
#line 1183 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self->priv->d_select_actions = _tmp17_;
#line 1185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_select_actions;
#line 1185 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp18_ != NULL) {
#line 5182 "gitg-window.c"
			GtkGrid* _tmp19_ = NULL;
			GtkWidget* _tmp20_ = NULL;
			GtkWidget* _tmp21_ = NULL;
#line 1187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp19_ = self->priv->d_grid_main;
#line 1187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp20_ = self->priv->d_select_actions;
#line 1187 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_grid_attach (_tmp19_, _tmp20_, 0, 3, 1, 1);
#line 1188 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_select_actions;
#line 1188 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_widget_show (_tmp21_);
#line 5196 "gitg-window.c"
		}
	} else {
		GtkStyleContext* _tmp22_ = NULL;
		GtkWidget* _tmp23_ = NULL;
#line 1193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp22_ = ctx;
#line 1193 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp22_, "selection-mode");
#line 1195 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_select_actions;
#line 1195 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp23_ != NULL) {
#line 5209 "gitg-window.c"
			GtkWidget* _tmp24_ = NULL;
#line 1197 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_select_actions;
#line 1197 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gtk_widget_destroy (_tmp24_);
#line 1198 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (self->priv->d_select_actions);
#line 1198 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			self->priv->d_select_actions = NULL;
#line 5219 "gitg-window.c"
		}
	}
#line 1202 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_selectable_mode;
#line 1202 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	issel = _tmp25_ == GITG_EXT_SELECTION_MODE_SELECTION;
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_;
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp27_) : NULL;
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == NULL) {
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp27_);
#line 5236 "gitg-window.c"
	}
#line 1203 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	searchable = _tmp28_;
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp30_ = gitg_platform_support_use_native_window_controls (NULL);
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp30_) {
#line 5244 "gitg-window.c"
		gboolean _tmp31_ = FALSE;
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp31_ = issel;
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = !_tmp31_;
#line 5250 "gitg-window.c"
	} else {
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp29_ = FALSE;
#line 5254 "gitg-window.c"
	}
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp32_ = self->priv->d_header_bar;
#line 1205 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_set_show_close_button (_tmp32_, _tmp29_);
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp34_ = issel;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp34_) {
#line 5264 "gitg-window.c"
		GitgExtSearchable* _tmp35_ = NULL;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp35_ = searchable;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp33_ = _tmp35_ != NULL;
#line 5270 "gitg-window.c"
	} else {
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp33_ = FALSE;
#line 5274 "gitg-window.c"
	}
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp36_ = self->priv->d_search_button;
#line 1206 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp36_, _tmp33_);
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp38_ = issel;
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp38_) {
#line 5284 "gitg-window.c"
		GitgRepository* _tmp39_ = NULL;
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp39_ = self->priv->d_repository;
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp37_ = _tmp39_ != NULL;
#line 5290 "gitg-window.c"
	} else {
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp37_ = FALSE;
#line 5294 "gitg-window.c"
	}
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_gear_menu;
#line 1207 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp40_, _tmp37_);
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_select_button;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp42_ = issel;
#line 1208 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp41_, !_tmp42_);
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp44_ = issel;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp44_) {
#line 5310 "gitg-window.c"
		GitgRepository* _tmp45_ = NULL;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp45_ = self->priv->d_repository;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp43_ = _tmp45_ != NULL;
#line 5316 "gitg-window.c"
	} else {
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp43_ = FALSE;
#line 5320 "gitg-window.c"
	}
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_dash_button;
#line 1209 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp46_, _tmp43_);
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp48_ = issel;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp48_) {
#line 5330 "gitg-window.c"
		GitgRepository* _tmp49_ = NULL;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp49_ = self->priv->d_repository;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = _tmp49_ == NULL;
#line 5336 "gitg-window.c"
	} else {
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp47_ = FALSE;
#line 5340 "gitg-window.c"
	}
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_clone_button;
#line 1210 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp50_, _tmp47_);
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = issel;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp52_) {
#line 5350 "gitg-window.c"
		GitgRepository* _tmp53_ = NULL;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp53_ = self->priv->d_repository;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = _tmp53_ == NULL;
#line 5356 "gitg-window.c"
	} else {
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp51_ = FALSE;
#line 5360 "gitg-window.c"
	}
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_add_button;
#line 1211 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp54_, _tmp51_);
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp56_ = issel;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (!_tmp56_) {
#line 5370 "gitg-window.c"
		GitgRepository* _tmp57_ = NULL;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp57_ = self->priv->d_repository;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp55_ = _tmp57_ != NULL;
#line 5376 "gitg-window.c"
	} else {
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp55_ = FALSE;
#line 5380 "gitg-window.c"
	}
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = self->priv->d_activities_switcher;
#line 1212 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp58_, _tmp55_);
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp59_ = self->priv->d_select_cancel_button;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp60_ = issel;
#line 1213 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp59_, _tmp60_);
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp61_ = self->priv->d_select_button;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp62_ = issel;
#line 1215 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_toggle_button_set_active (_tmp61_, _tmp62_);
#line 1165 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1165 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (ctx);
#line 1165 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 1165 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 5406 "gitg-window.c"
}


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


static GitgExtNotifications* gitg_window_real_get_notifications (GitgExtApplication* base) {
	GitgExtNotifications* result;
	GitgWindow* self;
	GitgNotifications* _tmp0_ = NULL;
	GitgExtNotifications* _tmp1_ = NULL;
#line 1245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_notifications;
#line 1245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtNotifications*) _tmp0_);
#line 1245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 1245 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5444 "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 116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 116 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 118 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 118 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5478 "gitg-window.c"
	}
#line 121 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = i;
#line 121 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == 0) {
#line 5484 "gitg-window.c"
		GitgWindowMode _tmp2_ = 0;
#line 123 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_mode;
#line 123 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 125 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = TRUE;
#line 126 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 5496 "gitg-window.c"
		} else {
#line 130 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			result = FALSE;
#line 130 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			return result;
#line 5502 "gitg-window.c"
		}
	}
#line 134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = self->priv->d_mode;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != GITG_WINDOW_MODE_ACTIVITY) {
#line 136 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 136 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5513 "gitg-window.c"
	}
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_activities;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_ui_elements_get_available_elements (_tmp4_, &_tmp5__length1);
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = _tmp5_;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6__length1 = _tmp5__length1;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems = _tmp6_;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems_length1 = _tmp6__length1;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_elems_size_ = elems_length1;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = i;
#line 140 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	i = _tmp7_ - 1;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = i;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = elems;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9__length1 = elems_length1;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp8_ >= _tmp9__length1) {
#line 144 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 144 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 144 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		return result;
#line 5547 "gitg-window.c"
	}
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_activities;
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = elems;
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11__length1 = elems_length1;
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = i;
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp11_[_tmp12_];
#line 147 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_set_current (_tmp10_, _tmp13_);
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 148 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return result;
#line 5567 "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 5589 "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 5595 "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 5603 "gitg-window.c"
}


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


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


static void block71_data_unref (void * _userdata_) {
	Block71Data* _data71_;
	_data71_ = (Block71Data*) _userdata_;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data71_->_ref_count_)) {
#line 5648 "gitg-window.c"
		GitgWindow* self;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		self = _data71_->self;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data71_->selact);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_slice_free (Block71Data, _data71_);
#line 5658 "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 273 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = _data71_->self;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data71_->selact;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state (_tmp0_);
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 274 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 276 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp5_ = st;
#line 276 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp5_) {
#line 278 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_SELECTION);
#line 5694 "gitg-window.c"
	} else {
#line 282 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 5698 "gitg-window.c"
	}
}


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


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


static void __gitg_window___lambda167__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 335 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda167_ ((GitgWindow*) self, _sender, response_id);
#line 5725 "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* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gpointer _tmp21_ = NULL;
	GtkSearchBar* _tmp22_ = NULL;
	GtkSearchEntry* _tmp23_ = NULL;
	GtkToggleButton* _tmp24_ = NULL;
	GtkSearchBar* _tmp25_ = NULL;
	GtkStackSwitcher* _tmp26_ = NULL;
	GtkStack* _tmp27_ = NULL;
	GeeHashMap* _tmp28_ = NULL;
	gchar** _tmp29_ = NULL;
	gchar** _tmp30_ = NULL;
	gboolean _tmp36_ = FALSE;
	const gchar* _tmp37_ = NULL;
	GtkHeaderBar* _tmp40_ = NULL;
	GtkStackSwitcher* _tmp41_ = NULL;
	GtkHeaderBar* _tmp42_ = NULL;
	GtkToggleButton* _tmp43_ = NULL;
	GtkHeaderBar* _tmp44_ = NULL;
	GtkToggleButton* _tmp45_ = NULL;
	GtkHeaderBar* _tmp46_ = NULL;
	GtkMenuButton* _tmp47_ = NULL;
	GtkHeaderBar* _tmp48_ = NULL;
	GtkMenuButton* _tmp49_ = NULL;
	GtkHeaderBar* _tmp50_ = NULL;
	GtkStackSwitcher* _tmp51_ = NULL;
	GtkHeaderBar* _tmp52_ = NULL;
	GtkToggleButton* _tmp53_ = NULL;
	GtkHeaderBar* _tmp54_ = NULL;
	GtkToggleButton* _tmp55_ = NULL;
	GtkInfoBar* _tmp56_ = NULL;
	GtkBindingSet* bset = NULL;
	GObjectClass* _tmp57_ = NULL;
	GtkBindingSet* _tmp58_ = NULL;
	GtkBindingSet* _tmp65_ = NULL;
	GSettings* _tmp66_ = NULL;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	parent_class = G_OBJECT_CLASS (gitg_window_parent_class);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_ = g_slice_new0 (Block71Data);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->_ref_count_ = 1;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->self = g_object_ref (self);
#line 256 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_platform_support_use_native_window_controls (NULL);
#line 256 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 5799 "gitg-window.c"
		GtkGrid* _tmp1_ = NULL;
		GtkHeaderBar* _tmp2_ = NULL;
#line 258 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_window_set_titlebar ((GtkWindow*) self, NULL);
#line 259 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_grid_top;
#line 259 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_header_bar;
#line 259 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_grid_attach (_tmp1_, (GtkWidget*) _tmp2_, 0, 0, 1, 1);
#line 5810 "gitg-window.c"
	} else {
		GtkHeaderBar* _tmp3_ = NULL;
		GtkHeaderBar* _tmp4_ = NULL;
		GtkStyleContext* _tmp5_ = NULL;
#line 263 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_header_bar;
#line 263 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_show_close_button (_tmp3_, TRUE);
#line 264 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_header_bar;
#line 264 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 264 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp5_, "titlebar");
#line 5825 "gitg-window.c"
	}
#line 267 "/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 269 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_overlay;
#line 269 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_notifications_new (_tmp6_);
#line 269 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 269 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_notifications = _tmp7_;
#line 271 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_action_map_lookup_action ((GActionMap*) self, "select");
#line 271 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 271 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_->selact = _tmp9_;
#line 273 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp10_ = _data71_->selact;
#line 273 "/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 286 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 286 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 286 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_interface_settings = _tmp11_;
#line 290 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp12_ = gtk_settings_get_default ();
#line 290 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp12_, "gtk-shell-shows-app-menu", &_tmp13_, NULL);
#line 290 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp14_ = _tmp13_;
#line 290 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp14_) {
#line 5861 "gitg-window.c"
		gchar* _tmp15_ = NULL;
#line 292 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup ("win-menu");
#line 292 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 292 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		menuname = _tmp15_;
#line 5869 "gitg-window.c"
	} else {
		gchar* _tmp16_ = NULL;
#line 296 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp16_ = g_strdup ("app-win-menu");
#line 296 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 296 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		menuname = _tmp16_;
#line 5878 "gitg-window.c"
	}
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_dash_view;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gitg_ext_ui_element_set_application ((GitgExtUIElement*) _tmp17_, (GitgExtApplication*) self);
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp18_ = menuname;
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_strconcat (_tmp18_, "-views", NULL);
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp20_ = _tmp19_;
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp21_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp20_);
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_activities_model = (GMenuModel*) _tmp21_;
#line 301 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp20_);
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp22_ = self->priv->d_search_bar;
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp23_ = self->priv->d_search_entry;
#line 304 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_search_bar_connect_entry (_tmp22_, (GtkEntry*) _tmp23_);
#line 305 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp24_ = self->priv->d_search_button;
#line 305 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_search_bar;
#line 305 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp24_, "active", (GObject*) _tmp25_, "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 310 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp26_ = self->priv->d_activities_switcher;
#line 310 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp27_ = self->priv->d_stack_activities;
#line 310 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_stack_switcher_set_stack (_tmp26_, _tmp27_);
#line 312 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp28_ = 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 312 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 312 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp28_;
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp30_ = _tmp29_ = g_listenv ();
#line 5924 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = _tmp30_;
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _vala_array_length (_tmp29_);
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _vala_array_length (_tmp29_); e_it = e_it + 1) {
#line 5936 "gitg-window.c"
			gchar* _tmp31_ = NULL;
			gchar* e = NULL;
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp31_ = g_strdup (e_collection[e_it]);
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			e = _tmp31_;
#line 5943 "gitg-window.c"
			{
				GeeHashMap* _tmp32_ = NULL;
				const gchar* _tmp33_ = NULL;
				const gchar* _tmp34_ = NULL;
				const gchar* _tmp35_ = NULL;
#line 316 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp32_ = self->priv->d_environment;
#line 316 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp33_ = e;
#line 316 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp34_ = e;
#line 316 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp35_ = g_getenv (_tmp34_);
#line 316 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _tmp32_, _tmp33_, _tmp35_);
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 5961 "gitg-window.c"
			}
		}
#line 314 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		e_collection = (_vala_array_free (e_collection, e_collection_length1, (GDestroyNotify) g_free), NULL);
#line 5966 "gitg-window.c"
	}
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp37_ = gtk_check_version ((guint) 3, (guint) 13, (guint) 2);
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp37_ != NULL) {
#line 5972 "gitg-window.c"
		GtkTextDirection _tmp38_ = 0;
#line 320 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp38_ = gtk_widget_get_direction ((GtkWidget*) self);
#line 320 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp36_ = _tmp38_ == GTK_TEXT_DIR_RTL;
#line 5978 "gitg-window.c"
	} else {
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp36_ = FALSE;
#line 5982 "gitg-window.c"
	}
#line 319 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	if (_tmp36_) {
#line 5986 "gitg-window.c"
		GtkImage* _tmp39_ = NULL;
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		_tmp39_ = self->priv->dash_image;
#line 322 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp39_, "icon-name", "go-previous-rtl-symbolic", NULL);
#line 5992 "gitg-window.c"
	}
#line 325 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_header_bar;
#line 325 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_activities_switcher;
#line 325 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp40_, (GtkWidget*) _tmp41_);
#line 326 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp42_ = self->priv->d_header_bar;
#line 326 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp43_ = self->priv->d_search_button;
#line 326 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp42_, (GtkWidget*) _tmp43_);
#line 327 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_header_bar;
#line 327 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_select_button;
#line 327 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
#line 328 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_header_bar;
#line 328 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_gear_menu;
#line 328 "/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_gear_menu;
#line 330 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_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_activities_switcher;
#line 331 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp50_, (GtkWidget*) _tmp51_);
#line 332 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp52_ = self->priv->d_header_bar;
#line 332 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp53_ = self->priv->d_select_button;
#line 332 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp52_, (GtkWidget*) _tmp53_);
#line 333 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_header_bar;
#line 333 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp55_ = self->priv->d_search_button;
#line 333 "/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_infobar;
#line 335 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_signal_connect_object (_tmp56_, "response", (GCallback) __gitg_window___lambda167__gtk_info_bar_response, self, 0);
#line 339 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp57_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 339 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp58_ = gtk_binding_set_by_class (_tmp57_);
#line 339 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	bset = _tmp58_;
#line 6052 "gitg-window.c"
	{
		gint i = 0;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
		i = 0;
#line 6057 "gitg-window.c"
		{
			gboolean _tmp59_ = FALSE;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			_tmp59_ = TRUE;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
			while (TRUE) {
#line 6064 "gitg-window.c"
				gint _tmp61_ = 0;
				GtkBindingSet* _tmp62_ = NULL;
				gint _tmp63_ = 0;
				gint _tmp64_ = 0;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (!_tmp59_) {
#line 6071 "gitg-window.c"
					gint _tmp60_ = 0;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					_tmp60_ = i;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					i = _tmp60_ + 1;
#line 6077 "gitg-window.c"
				}
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp59_ = FALSE;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp61_ = i;
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				if (!(_tmp61_ < 10)) {
#line 341 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
					break;
#line 6087 "gitg-window.c"
				}
#line 343 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp62_ = bset;
#line 343 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp63_ = i;
#line 343 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				_tmp64_ = i;
#line 343 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
				gtk_binding_entry_add_signal (_tmp62_, (guint) (GDK_KEY_0 + _tmp63_), GDK_MOD1_MASK, "change-to-activity", (guint) 1, G_TYPE_INT, _tmp64_, NULL);
#line 6097 "gitg-window.c"
			}
		}
	}
#line 352 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp65_ = bset;
#line 352 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	gtk_binding_entry_add_signal (_tmp65_, (guint) GDK_KEY_Escape, 0, "cancel", (guint) 0, NULL);
#line 358 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_tmp66_ = self->priv->d_interface_settings;
#line 358 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	g_settings_bind (_tmp66_, "enable-monitoring", (GObject*) self, "enable-monitoring", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_free0 (menuname);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	block71_data_unref (_data71_);
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_data71_ = NULL;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	return obj;
#line 6117 "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 6229 "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 6272 "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 6281 "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 6292 "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 60 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_main);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_top);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_button);
#line 68 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_cancel_button);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_button);
#line 73 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_clone_button);
#line 75 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_add_button);
#line 77 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->dash_image);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_switcher);
#line 82 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_bar);
#line 84 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_entry);
#line 87 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_main_stack);
#line 90 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_view);
#line 93 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_stack_activities);
#line 96 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar);
#line 98 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_primary_label);
#line 100 "/home/jesse/dev/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_secondary_label);
#line 103 "/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 6376 "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 6455 "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 6461 "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 6495 "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 6501 "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;
}



