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

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

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


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

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

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

typedef struct _GitgUIElements GitgUIElements;
typedef struct _GitgUIElementsClass GitgUIElementsClass;

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

typedef struct _GitgRemoteManager GitgRemoteManager;
typedef struct _GitgRemoteManagerClass GitgRemoteManagerClass;

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

typedef struct _GitgNotifications GitgNotifications;
typedef struct _GitgNotificationsClass GitgNotificationsClass;

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

typedef struct _GitgDashView GitgDashView;
typedef struct _GitgDashViewClass GitgDashViewClass;

#define GITG_WINDOW_TYPE_MODE (gitg_window_mode_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

#define 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;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block45Data Block45Data;

#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 _Block46Data Block46Data;
typedef struct _Block47Data Block47Data;

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

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

typedef enum  {
	GITG_WINDOW_MODE_DASH,
	GITG_WINDOW_MODE_ACTIVITY
} GitgWindowMode;

struct _GitgWindowPrivate {
	GSettings* d_state_settings;
	GSettings* d_interface_settings;
	GitgRepository* d_repository;
	GitgExtMessageBus* d_message_bus;
	gchar* d_action;
	GeeHashMap* d_environment;
	gboolean d_busy;
	GtkDialog* d_dialog;
	GtkWidget* d_select_actions;
	GBinding* d_selectable_mode_binding;
	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_dash_model;
	GMenuModel* d_activities_model;
	GtkGrid* d_grid_main;
	GtkToggleButton* d_select_button;
	GtkButton* d_select_cancel_button;
	GtkButton* d_dash_button;
	GtkImage* dash_image;
	GtkStackSwitcher* d_activities_switcher;
	GtkSearchBar* d_search_bar;
	GdTaggedEntry* d_search_entry;
	GtkStack* d_main_stack;
	GitgDashView* d_dash_view;
	GtkStack* d_stack_activities;
	GtkInfoBar* d_infobar;
	GtkLabel* d_infobar_primary_label;
	GtkLabel* d_infobar_secondary_label;
	GtkOverlay* d_overlay;
	GitgWindowMode d_mode;
};

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

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

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


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

GType gitg_window_get_type (void) G_GNUC_CONST;
GType gitg_ui_elements_get_type (void) G_GNUC_CONST;
GType gitg_remote_manager_get_type (void) G_GNUC_CONST;
GType gitg_notifications_get_type (void) G_GNUC_CONST;
GType gitg_dash_view_get_type (void) G_GNUC_CONST;
static GType gitg_window_mode_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_WINDOW, GitgWindowPrivate))
enum  {
	GITG_WINDOW_DUMMY_PROPERTY,
	GITG_WINDOW_CURRENT_ACTIVITY,
	GITG_WINDOW_MESSAGE_BUS,
	GITG_WINDOW_REPOSITORY,
	GITG_WINDOW_ENVIRONMENT,
	GITG_WINDOW_BUSY,
	GITG_WINDOW_SELECTABLE_MODE,
	GITG_WINDOW_REMOTE_LOOKUP,
	GITG_WINDOW_NOTIFICATIONS
};
static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_search_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_gear_menu_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_close_activated (GitgWindow* self);
static void _gitg_window_on_close_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_reload_activated (GitgWindow* self);
static void _gitg_window_on_reload_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_global_author_details_activated (GitgWindow* self);
static void _gitg_window_on_global_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_repo_author_details_activated (GitgWindow* self);
static void _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_select_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_select_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash);
static void _gitg_window_dash_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_search_button_toggled (GitgWindow* self, GtkToggleButton* button);
static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
static void gitg_window_search_entry_changed (GitgWindow* self, GtkEditable* entry);
static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
static 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);
gchar* gitg_utils_replace_home_dir_with_tilde (GFile* file);
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 gboolean gitg_window_real_window_state_event (GtkWidget* base, GdkEventWindowState* event);
static gboolean gitg_window_real_configure_event (GtkWidget* base, GdkEventConfigure* event);
GitgRemoteManager* gitg_remote_manager_new (GitgWindow* window);
GitgRemoteManager* gitg_remote_manager_construct (GType object_type, GitgWindow* window);
GType gitg_author_details_dialog_get_type (void) G_GNUC_CONST;
GitgAuthorDetailsDialog* gitg_author_details_dialog_show_global (GitgWindow* window);
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 Block45Data* block45_data_ref (Block45Data* _data45_);
static void block45_data_unref (void * _userdata_);
void gitg_ui_elements_foreach (GitgUIElements* self, GitgUIElementsForeachUIElementFunc func, void* func_target);
static gboolean __lambda91_ (Block45Data* _data45_, GitgExtUIElement* element);
static gboolean ___lambda91__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
void gitg_ui_elements_set_current (GitgUIElements* self, gconstpointer value);
static gboolean ___lambda92_ (GitgWindow* self, GitgExtUIElement* element);
static gboolean ____lambda92__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 void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query);
static Block46Data* block46_data_ref (Block46Data* _data46_);
static void block46_data_unref (void * _userdata_);
static void __lambda124_ (Block46Data* _data46_);
static void ___lambda124__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self);
static void __lambda125_ (Block46Data* _data46_, GtkDialog* w, gint r);
static void ___lambda125__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
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);
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 Block47Data* block47_data_ref (Block47Data* _data47_);
static void block47_data_unref (void * _userdata_);
GitgNotifications* gitg_notifications_new (GtkOverlay* overlay);
GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay);
static void _gitg_window___lambda126_ (Block47Data* _data47_);
static void __gitg_window___lambda126__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gpointer gitg_resource_load_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* id, const gchar* object);
static void _gitg_window___lambda127_ (GitgWindow* self, GtkInfoBar* w, gint r);
static void __gitg_window___lambda127__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[7] = {{"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-global", _gitg_window_on_global_author_details_activated_gsimple_action_activate_callback}, {"author-details-repo", _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback}, {"select", _gitg_window_on_select_activated_gsimple_action_activate_callback, NULL, "false", NULL}};

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


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


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


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


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


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


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


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


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


static void _gitg_window_dash_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_dash_button_clicked ((GitgWindow*) self, _sender);
#line 431 "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 158 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 158 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (button != NULL);
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 456 "gitg-window.c"
	}
#line 160 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 162 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = button;
#line 162 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
#line 162 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 466 "gitg-window.c"
		GdTaggedEntry* _tmp5_ = NULL;
		GdTaggedEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GitgExtSearchable* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		GdTaggedEntry* _tmp13_ = NULL;
#line 164 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_entry;
#line 164 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 166 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 167 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = searchable;
#line 167 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp11_, TRUE);
#line 168 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 168 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_search_entry;
#line 168 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp12_, (GtkEntry*) _tmp13_);
#line 504 "gitg-window.c"
	} else {
		GitgExtSearchable* _tmp14_ = NULL;
		GitgExtSearchable* _tmp15_ = NULL;
#line 172 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = searchable;
#line 172 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp14_, FALSE);
#line 173 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 173 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp15_, NULL);
#line 516 "gitg-window.c"
	}
#line 158 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 520 "gitg-window.c"
}


static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_search_button_toggled ((GitgWindow*) self, _sender);
#line 527 "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 178 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 178 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (entry != NULL);
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 561 "gitg-window.c"
	}
#line 180 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 181 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = entry;
#line 181 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp3_) : NULL);
#line 181 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 181 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 181 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	ntext = _tmp6_;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = ntext;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = searchable;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_ext_searchable_get_search_text (_tmp8_);
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = _tmp10_;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strcmp0 (_tmp7_, _tmp11_) != 0;
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp11_);
#line 183 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 591 "gitg-window.c"
		GitgExtSearchable* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 185 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = searchable;
#line 185 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = ntext;
#line 185 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_text (_tmp13_, _tmp14_);
#line 600 "gitg-window.c"
	}
#line 178 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (ntext);
#line 178 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 606 "gitg-window.c"
}


static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_search_entry_changed ((GitgWindow*) self, _sender);
#line 613 "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 284 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 284 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 286 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	ret = FALSE;
#line 288 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (GTK_WIDGET_CLASS (gitg_window_parent_class)->delete_event != NULL) {
#line 630 "gitg-window.c"
		GdkEventAny* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
#line 290 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = event;
#line 290 "/home/jesse/devel/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 290 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		ret = _tmp1_;
#line 639 "gitg-window.c"
	}
#line 293 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = ret;
#line 293 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (!_tmp2_) {
#line 295 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 647 "gitg-window.c"
	}
#line 298 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = ret;
#line 298 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 653 "gitg-window.c"
}


static void gitg_window_on_close_activated (GitgWindow* self) {
#line 301 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 303 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_window_close ((GtkWindow*) self);
#line 662 "gitg-window.c"
}


static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 306 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 306 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 308 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_search_button;
#line 308 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 308 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 308 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 682 "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 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = action;
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_action_get_state ((GAction*) _tmp3_);
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_variant_get_boolean (_tmp5_);
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp5_);
#line 310 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		state = _tmp7_;
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = action;
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = state;
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_variant_new_boolean (!_tmp9_);
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_variant_ref_sink (_tmp10_);
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_simple_action_set_state (_tmp8_, _tmp11_);
#line 311 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp11_);
#line 721 "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 315 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 315 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 317 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	state = _tmp4_;
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!state);
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 319 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 766 "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 356 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 356 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = hint;
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_window_create_new (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GITG_TYPE_REPOSITORY, GitgRepository), _tmp3_);
#line 358 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	window = _tmp4_;
#line 359 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 361 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = (GitgExtApplication*) window;
#line 361 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 801 "gitg-window.c"
}


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


static void gitg_window_update_title (GitgWindow* self) {
	GitgRepository* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 364 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 366 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 366 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 826 "gitg-window.c"
		GFile* workdir = NULL;
		GitgRepository* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		gchar* name = NULL;
		GFile* _tmp3_ = NULL;
		GtkHeaderBar* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		gchar* head_name = NULL;
		const gchar* _tmp37_ = NULL;
#line 369 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 369 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_workdir ((GgitRepository*) _tmp1_);
#line 369 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		workdir = _tmp2_;
#line 372 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = workdir;
#line 372 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (_tmp3_ != NULL) {
#line 846 "gitg-window.c"
			gchar* parent_path = NULL;
			GFile* _tmp4_ = NULL;
			GFile* _tmp5_ = NULL;
			GFile* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			GitgRepository* _tmp9_ = NULL;
			gchar* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
			const gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp4_ = workdir;
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp5_ = g_file_get_parent (_tmp4_);
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp6_ = _tmp5_;
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp7_ = gitg_utils_replace_home_dir_with_tilde (_tmp6_);
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp8_ = _tmp7_;
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp6_);
#line 374 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			parent_path = _tmp8_;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp9_ = self->priv->d_repository;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp10_ = gitg_repository_get_name (_tmp9_);
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp11_ = _tmp10_;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp12_ = _tmp11_;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp13_ = string_to_string (_tmp12_);
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp14_ = parent_path;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp15_ = string_to_string (_tmp14_);
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp16_ = g_strconcat (_tmp13_, " (", _tmp15_, ")", NULL);
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			name = _tmp16_;
#line 376 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp12_);
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp17_ = name;
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp18_ = string_to_string (_tmp17_);
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp19_ = g_strconcat (_tmp18_, " - gitg", NULL);
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp20_ = _tmp19_;
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_window_set_title ((GtkWindow*) self, _tmp20_);
#line 377 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp20_);
#line 372 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (parent_path);
#line 915 "gitg-window.c"
		} else {
			GitgRepository* _tmp21_ = NULL;
			gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
#line 381 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_repository;
#line 381 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp22_ = gitg_repository_get_name (_tmp21_);
#line 381 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp23_ = _tmp22_;
#line 381 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 381 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			name = _tmp23_;
#line 930 "gitg-window.c"
		}
#line 384 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp24_ = self->priv->d_header_bar;
#line 384 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp25_ = name;
#line 384 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp24_, _tmp25_);
#line 386 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		head_name = NULL;
#line 940 "gitg-window.c"
		{
			GitgRef* head = NULL;
			GitgRepository* _tmp26_ = NULL;
			GitgRepository* _tmp27_ = NULL;
			GitgRepository* _tmp28_ = NULL;
			GitgRef* _tmp29_ = NULL;
			GitgRef* _tmp30_ = NULL;
			GitgRef* _tmp31_ = NULL;
			GitgParsedRefName* _tmp32_ = NULL;
			GitgParsedRefName* _tmp33_ = NULL;
			GitgParsedRefName* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
			gchar* _tmp36_ = NULL;
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp26_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp27_ = _tmp26_;
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp28_ = _tmp27_;
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp29_ = gitg_repository_get_head (_tmp28_, &_inner_error_);
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp30_ = _tmp29_;
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp28_);
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			head = _tmp30_;
#line 390 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 970 "gitg-window.c"
				goto __catch70_g_error;
			}
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp31_ = head;
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp32_ = gitg_ref_get_parsed_name (_tmp31_);
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp33_ = _tmp32_;
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp34_ = _tmp33_;
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp35_ = gitg_parsed_ref_name_get_shortname (_tmp34_);
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp36_ = _tmp35_;
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			head_name = _tmp36_;
#line 391 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp34_);
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 993 "gitg-window.c"
		}
		goto __finally70;
		__catch70_g_error:
		{
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_inner_error_ = NULL;
#line 1002 "gitg-window.c"
		}
		__finally70:
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (name);
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (workdir);
#line 388 "/home/jesse/devel/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 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 388 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			return;
#line 1019 "gitg-window.c"
		}
#line 395 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp37_ = head_name;
#line 395 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (_tmp37_ != NULL) {
#line 1025 "gitg-window.c"
			GtkHeaderBar* _tmp38_ = NULL;
			const gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
			gchar* _tmp41_ = NULL;
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp38_ = self->priv->d_header_bar;
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp39_ = head_name;
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp40_ = g_markup_escape_text (_tmp39_, (gssize) (-1));
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp41_ = _tmp40_;
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_header_bar_set_subtitle (_tmp38_, _tmp41_);
#line 397 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp41_);
#line 1042 "gitg-window.c"
		} else {
			GtkHeaderBar* _tmp42_ = NULL;
#line 401 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp42_ = self->priv->d_header_bar;
#line 401 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_header_bar_set_subtitle (_tmp42_, NULL);
#line 1049 "gitg-window.c"
		}
#line 366 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (head_name);
#line 366 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (name);
#line 366 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (workdir);
#line 1057 "gitg-window.c"
	} else {
		GtkHeaderBar* _tmp43_ = NULL;
		const gchar* _tmp44_ = NULL;
		GtkHeaderBar* _tmp45_ = NULL;
#line 406 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, "gitg");
#line 408 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp43_ = self->priv->d_header_bar;
#line 408 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp44_ = _ ("Projects");
#line 408 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp43_, _tmp44_);
#line 409 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp45_ = self->priv->d_header_bar;
#line 409 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp45_, NULL);
#line 1074 "gitg-window.c"
	}
}


static void gitg_window_repository_changed (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgUIElements* _tmp20_ = NULL;
	GitgRepository* _tmp21_ = NULL;
	GitgWindowMode _tmp22_ = 0;
#line 413 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 415 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_update_title (self);
#line 416 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 416 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 418 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 418 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1097 "gitg-window.c"
		GtkStack* _tmp2_ = NULL;
		GtkStack* _tmp3_ = NULL;
		GtkStack* _tmp4_ = NULL;
		GtkStackSwitcher* _tmp5_ = NULL;
		GtkButton* _tmp6_ = NULL;
		GitgDashView* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GitgRepositoryListBoxRow* _tmp9_ = NULL;
		GitgRepositoryListBoxRow* _tmp10_ = NULL;
		GtkMenuButton* _tmp11_ = NULL;
		GMenuModel* _tmp12_ = NULL;
#line 420 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_ACTIVITY;
#line 422 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_main_stack;
#line 422 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp2_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
#line 423 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_main_stack;
#line 423 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_stack_activities;
#line 423 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 424 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_activities_switcher;
#line 424 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 425 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_dash_button;
#line 425 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp6_);
#line 426 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = self->priv->d_dash_view;
#line 426 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = self->priv->d_repository;
#line 426 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_dash_view_add_repository (_tmp7_, _tmp8_);
#line 426 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 426 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp10_);
#line 427 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_gear_menu;
#line 427 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = self->priv->d_activities_model;
#line 427 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp11_, _tmp12_);
#line 1145 "gitg-window.c"
	} else {
		GtkStack* _tmp13_ = NULL;
		GtkStack* _tmp14_ = NULL;
		GitgDashView* _tmp15_ = NULL;
		GtkStackSwitcher* _tmp16_ = NULL;
		GtkButton* _tmp17_ = NULL;
		GtkMenuButton* _tmp18_ = NULL;
		GMenuModel* _tmp19_ = NULL;
#line 431 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_DASH;
#line 433 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_main_stack;
#line 433 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp13_, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
#line 434 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = self->priv->d_main_stack;
#line 434 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_dash_view;
#line 434 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp14_, (GtkWidget*) _tmp15_);
#line 435 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_activities_switcher;
#line 435 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp16_);
#line 436 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_dash_button;
#line 436 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp17_);
#line 437 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_gear_menu;
#line 437 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_dash_model;
#line 437 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp18_, _tmp19_);
#line 1180 "gitg-window.c"
	}
#line 440 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp20_ = self->priv->d_activities;
#line 440 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_update (_tmp20_);
#line 442 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_repository;
#line 442 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp21_ != NULL) {
#line 444 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_activate_default_activity (self);
#line 1192 "gitg-window.c"
	}
#line 447 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp22_ = self->priv->d_mode;
#line 447 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp22_ == GITG_WINDOW_MODE_DASH) {
#line 449 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_on_current_activity_changed (self);
#line 1200 "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 453 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 453 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 455 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 455 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = event;
#line 455 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_->new_window_state;
#line 455 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_settings_set_int (_tmp0_, "state", (gint) _tmp2_);
#line 456 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = event;
#line 456 "/home/jesse/devel/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 456 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = _tmp4_;
#line 456 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1233 "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 459 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 459 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_realized ((GtkWidget*) self);
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_) {
#line 1252 "gitg-window.c"
		GdkWindow* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = gtk_widget_get_window ((GtkWidget*) self);
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = gdk_window_get_state (_tmp2_);
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = !((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED);
#line 1261 "gitg-window.c"
	} else {
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 1265 "gitg-window.c"
	}
#line 461 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1269 "gitg-window.c"
		GSettings* _tmp4_ = NULL;
		GdkEventConfigure* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		GdkEventConfigure* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_state_settings;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = event;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_->width;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = event;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_->height;
#line 463 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_settings_set (_tmp4_, "size", "(ii)", _tmp6_, _tmp8_);
#line 1287 "gitg-window.c"
	}
#line 466 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = event;
#line 466 "/home/jesse/devel/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 466 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = _tmp10_;
#line 466 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1297 "gitg-window.c"
}


static void gitg_window_on_reload_activated (GitgWindow* self) {
	GError * _inner_error_ = NULL;
#line 469 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1305 "gitg-window.c"
	{
		GitgRepository* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgRepository* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
		GitgRemoteManager* _tmp9_ = NULL;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = ggit_repository_get_location ((GgitRepository*) _tmp3_);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = gitg_repository_new (_tmp5_, NULL, &_inner_error_);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp5_);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp7_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1339 "gitg-window.c"
			goto __catch71_g_error;
		}
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp0_;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository);
#line 473 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_repository = _tmp8_;
#line 476 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_remote_manager_new (self);
#line 476 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_remote_manager);
#line 476 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_remote_manager = _tmp9_;
#line 478 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_object_notify ((GObject*) self, "repository");
#line 479 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_update_title (self);
#line 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 1362 "gitg-window.c"
	}
	goto __finally71;
	__catch71_g_error:
	{
#line 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 1371 "gitg-window.c"
	}
	__finally71:
#line 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 471 "/home/jesse/devel/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 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 471 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 1382 "gitg-window.c"
	}
}


static void gitg_window_on_global_author_details_activated (GitgWindow* self) {
	GitgAuthorDetailsDialog* _tmp0_ = NULL;
	GitgAuthorDetailsDialog* _tmp1_ = NULL;
#line 484 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 486 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_author_details_dialog_show_global (self);
#line 486 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 486 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_tmp1_);
#line 1398 "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 489 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 491 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	repo_config = NULL;
#line 1418 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		GgitConfig* _tmp3_ = NULL;
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp2_;
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1432 "gitg-window.c"
			goto __catch72_g_error;
		}
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp0_;
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 495 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		repo_config = _tmp3_;
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 1445 "gitg-window.c"
	}
	goto __finally72;
	__catch72_g_error:
	{
		GError* e = NULL;
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 499 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 499 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 499 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 1461 "gitg-window.c"
	}
	__finally72:
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 493 "/home/jesse/devel/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 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 493 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 1474 "gitg-window.c"
	}
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = repo_config;
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = self->priv->d_repository;
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_repository_get_name (_tmp5_);
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp4_, _tmp8_);
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp9_);
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp8_);
#line 502 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	author_details = _tmp10_;
#line 503 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = author_details;
#line 503 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 489 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 489 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo_config);
#line 1504 "gitg-window.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 512 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 1511 "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 506 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 508 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "current_activity");
#line 510 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 510 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 510 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	current = _tmp1_;
#line 512 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = current;
#line 512 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp2_) : NULL);
#line 512 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	searchable = _tmp3_;
#line 514 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 514 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_searchable_available_binding = NULL;
#line 516 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = searchable;
#line 516 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 1553 "gitg-window.c"
		GtkToggleButton* _tmp5_ = NULL;
		GdTaggedEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GtkToggleButton* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		gboolean _tmp14_ = FALSE;
		GitgExtSearchable* _tmp15_ = NULL;
		GtkToggleButton* _tmp16_ = NULL;
		GBinding* _tmp17_ = NULL;
		GBinding* _tmp18_ = NULL;
#line 518 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_button;
#line 518 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 519 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 520 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_search_button;
#line 520 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 520 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = gitg_ext_searchable_get_search_visible (_tmp12_);
#line 520 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = _tmp13_;
#line 520 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp11_, _tmp14_);
#line 522 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 522 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_search_button;
#line 522 "/home/jesse/devel/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 522 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp18_ = _g_object_ref0 (_tmp17_);
#line 522 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 522 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_searchable_available_binding = _tmp18_;
#line 1608 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp19_ = NULL;
		GtkToggleButton* _tmp20_ = NULL;
		GtkToggleButton* _tmp21_ = NULL;
		GdTaggedEntry* _tmp22_ = NULL;
#line 530 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_search_button;
#line 530 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp19_, FALSE);
#line 531 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_search_button;
#line 531 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp20_, FALSE);
#line 532 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_search_button;
#line 532 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp21_, FALSE);
#line 533 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_search_entry;
#line 533 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp22_, "");
#line 1630 "gitg-window.c"
	}
#line 536 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp23_ = current;
#line 536 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp23_) : NULL);
#line 536 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	selectable = _tmp24_;
#line 537 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_select_button;
#line 537 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp26_ = selectable;
#line 537 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp25_, _tmp26_ != NULL);
#line 539 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 539 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode_binding = NULL;
#line 540 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 540 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_available_binding = NULL;
#line 542 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp27_ = selectable;
#line 542 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp27_ != NULL) {
#line 1656 "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 544 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp28_ = selectable;
#line 544 "/home/jesse/devel/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 544 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp30_ = _g_object_ref0 (_tmp29_);
#line 544 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 544 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_mode_binding = _tmp30_;
#line 549 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp31_ = selectable;
#line 549 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp32_ = self->priv->d_select_button;
#line 549 "/home/jesse/devel/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 549 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp34_ = _g_object_ref0 (_tmp33_);
#line 549 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 549 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_available_binding = _tmp34_;
#line 1686 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp35_ = NULL;
		GtkToggleButton* _tmp36_ = NULL;
#line 557 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp35_ = self->priv->d_select_button;
#line 557 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp35_, FALSE);
#line 558 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp36_ = self->priv->d_select_button;
#line 558 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp36_, FALSE);
#line 1698 "gitg-window.c"
	}
#line 506 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 506 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 506 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (current);
#line 1706 "gitg-window.c"
}


static Block45Data* block45_data_ref (Block45Data* _data45_) {
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data45_->_ref_count_);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return _data45_;
#line 1715 "gitg-window.c"
}


static void block45_data_unref (void * _userdata_) {
	Block45Data* _data45_;
	_data45_ = (Block45Data*) _userdata_;
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data45_->_ref_count_)) {
#line 1724 "gitg-window.c"
		GitgWindow* self;
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self = _data45_->self;
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data45_->def);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_data45_->default_activity);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_slice_free (Block45Data, _data45_);
#line 1736 "gitg-window.c"
	}
}


static gboolean __lambda91_ (Block45Data* _data45_, 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 577 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = _data45_->self;
#line 577 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 578 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 578 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 578 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 580 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 580 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = _data45_->default_activity;
#line 580 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_ext_activity_is_default_for (_tmp2_, _tmp3_);
#line 580 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 1768 "gitg-window.c"
		GitgExtActivity* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 582 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 582 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 582 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data45_->def);
#line 582 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_data45_->def = _tmp6_;
#line 1779 "gitg-window.c"
	}
#line 585 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 585 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 585 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1787 "gitg-window.c"
}


static gboolean ___lambda91__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = __lambda91_ (self, element);
#line 577 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1796 "gitg-window.c"
}


static gboolean gitg_window_activate_activity (GitgWindow* self, const gchar* action) {
	gboolean result = FALSE;
	Block45Data* _data45_;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	GitgUIElements* _tmp7_ = NULL;
	GitgExtActivity* _tmp8_ = NULL;
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data45_ = g_slice_new0 (Block45Data);
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data45_->_ref_count_ = 1;
#line 562 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data45_->self = g_object_ref (self);
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = action;
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == NULL) {
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = TRUE;
#line 1821 "gitg-window.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = action;
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "") == 0;
#line 1828 "gitg-window.c"
	}
#line 566 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1832 "gitg-window.c"
		GSettings* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 568 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_interface_settings;
#line 568 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_settings_get_string (_tmp3_, "default-activity");
#line 568 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_data45_->default_activity);
#line 568 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_data45_->default_activity = _tmp4_;
#line 1843 "gitg-window.c"
	} else {
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 572 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = action;
#line 572 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 572 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_data45_->default_activity);
#line 572 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_data45_->default_activity = _tmp6_;
#line 1855 "gitg-window.c"
	}
#line 575 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data45_->def = NULL;
#line 577 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_activities;
#line 577 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_foreach (_tmp7_, ___lambda91__gitg_ui_elements_foreach_ui_element_func, _data45_);
#line 588 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = _data45_->def;
#line 588 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp8_ != NULL) {
#line 1867 "gitg-window.c"
		GitgUIElements* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 590 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_activities;
#line 590 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = _data45_->def;
#line 590 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp9_, _tmp10_);
#line 591 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = TRUE;
#line 591 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		block45_data_unref (_data45_);
#line 591 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_data45_ = NULL;
#line 591 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 1884 "gitg-window.c"
	}
#line 594 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 594 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	block45_data_unref (_data45_);
#line 594 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data45_ = NULL;
#line 594 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1894 "gitg-window.c"
}


static gboolean ___lambda92_ (GitgWindow* self, GitgExtUIElement* element) {
	gboolean result = FALSE;
	GitgExtActivity* activity = NULL;
	GitgExtUIElement* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 601 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 602 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 602 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 602 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 604 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 604 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_activity_is_default_for (_tmp2_, "");
#line 604 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 1919 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 606 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 606 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 606 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 607 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 607 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (activity);
#line 607 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 1934 "gitg-window.c"
	}
#line 610 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 610 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 610 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1942 "gitg-window.c"
}


static gboolean ____lambda92__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = ___lambda92_ ((GitgWindow*) self, element);
#line 601 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 1951 "gitg-window.c"
}


static void gitg_window_activate_default_activity (GitgWindow* self) {
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 597 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 599 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_action;
#line 599 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_activate_activity (self, _tmp0_);
#line 599 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (!_tmp1_) {
#line 1966 "gitg-window.c"
		GitgUIElements* _tmp2_ = NULL;
#line 601 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_activities;
#line 601 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_foreach (_tmp2_, ____lambda92__gitg_ui_elements_foreach_ui_element_func, self);
#line 1972 "gitg-window.c"
	}
}


static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 641 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_on_current_activity_changed ((GitgWindow*) self);
#line 1980 "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 615 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 618 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 618 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 618 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_TYPE_APPLICATION) ? ((GitgApplication*) _tmp1_) : NULL);
#line 618 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	app = _tmp2_;
#line 619 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = app;
#line 619 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_application_get_state_settings (_tmp3_);
#line 619 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 619 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 619 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_state_settings = _tmp5_;
#line 622 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_ext_message_bus_new ();
#line 622 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 622 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_message_bus = _tmp6_;
#line 625 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_plugins_engine_get_default ();
#line 625 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	engine = _tmp7_;
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_history_activity_new ((GitgExtApplication*) self);
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_commit_activity_new ((GitgExtApplication*) self);
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = g_new0 (GitgExtActivity*, 2 + 1);
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_[0] = (GitgExtActivity*) _tmp8_;
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_[1] = (GitgExtActivity*) _tmp9_;
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	builtins = _tmp10_;
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	builtins_length1 = 2;
#line 627 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_builtins_size_ = builtins_length1;
#line 632 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = engine;
#line 632 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = peas_extension_set_new ((PeasEngine*) _tmp11_, GITG_EXT_TYPE_ACTIVITY, "application", self, NULL);
#line 632 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	extset = _tmp12_;
#line 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = builtins;
#line 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13__length1 = builtins_length1;
#line 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp14_ = extset;
#line 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp15_ = self->priv->d_stack_activities;
#line 637 "/home/jesse/devel/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 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 637 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_activities = _tmp16_;
#line 641 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_activities;
#line 641 "/home/jesse/devel/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 644 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_state_settings;
#line 644 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_settings_get_int (_tmp18_, "state");
#line 644 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	window_state = (GdkWindowState) _tmp19_;
#line 646 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp20_ = window_state;
#line 646 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if ((_tmp20_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED) {
#line 648 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 2101 "gitg-window.c"
	}
#line 654 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_state_settings;
#line 654 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_settings_get (_tmp21_, "size", "(ii)", &width, &height);
#line 655 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_window_resize ((GtkWindow*) self, width, height);
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (extset);
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) g_object_unref), NULL);
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (engine);
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (app);
#line 657 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 2121 "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 660 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 662 "/home/jesse/devel/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 662 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 662 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp0_;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = environment;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1__length1 = environment_length1;
#line 2141 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e_collection = _tmp1_;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _tmp1__length1;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
#line 2153 "gitg-window.c"
			gchar* _tmp2_ = NULL;
			gchar* e = NULL;
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp2_ = g_strdup (e_collection[e_it]);
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			e = _tmp2_;
#line 2160 "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 666 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp3_ = e;
#line 666 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "=", 2);
#line 666 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				parts = _tmp5_;
#line 666 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				parts_length1 = _vala_array_length (_tmp4_);
#line 666 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_parts_size_ = parts_length1;
#line 668 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp6_ = parts;
#line 668 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp6__length1 = parts_length1;
#line 668 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				if (_tmp6__length1 == 1) {
#line 2186 "gitg-window.c"
					GeeHashMap* _tmp7_ = NULL;
					gchar** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					const gchar* _tmp9_ = NULL;
#line 670 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp7_ = self->priv->d_environment;
#line 670 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp8_ = parts;
#line 670 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp8__length1 = parts_length1;
#line 670 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp9_ = _tmp8_[0];
#line 670 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, _tmp9_, "");
#line 2201 "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 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp10_ = self->priv->d_environment;
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp11_ = parts;
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp11__length1 = parts_length1;
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp12_ = _tmp11_[0];
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp13_ = parts;
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp13__length1 = parts_length1;
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp14_ = _tmp13_[1];
#line 674 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, _tmp12_, _tmp14_);
#line 2226 "gitg-window.c"
				}
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 664 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 2232 "gitg-window.c"
			}
		}
	}
}


GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action) {
	GitgWindow* result = NULL;
	GitgWindow* ret = NULL;
	GitgWindow* _tmp0_ = NULL;
	GitgWindow* _tmp1_ = NULL;
	GitgWindow* _tmp14_ = NULL;
	GError * _inner_error_ = NULL;
#line 679 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 683 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_window_new ();
#line 683 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 683 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	ret = _tmp0_;
#line 685 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = ret;
#line 685 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 2258 "gitg-window.c"
		GitgWindow* _tmp2_ = NULL;
		GtkApplication* _tmp3_ = NULL;
		GitgWindow* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgWindow* _tmp7_ = NULL;
		GitgWindow* _tmp8_ = NULL;
		GitgRemoteManager* _tmp9_ = NULL;
		GitgWindow* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
#line 687 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = ret;
#line 687 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = app;
#line 687 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_window_set_application ((GtkWindow*) _tmp2_, _tmp3_);
#line 688 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = ret;
#line 688 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = repository;
#line 688 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 688 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_->priv->d_repository);
#line 688 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_->priv->d_repository = _tmp6_;
#line 689 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = ret;
#line 689 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = ret;
#line 689 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_remote_manager_new (_tmp8_);
#line 689 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_->priv->d_remote_manager);
#line 689 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_->priv->d_remote_manager = _tmp9_;
#line 690 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = ret;
#line 690 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = action;
#line 690 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 690 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_->priv->d_action);
#line 690 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_->priv->d_action = _tmp12_;
#line 2306 "gitg-window.c"
	}
	{
		GitgWindow* _tmp13_ = NULL;
#line 695 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = ret;
#line 695 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_initable_init (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, G_TYPE_INITABLE, GInitable), NULL, &_inner_error_);
#line 695 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2316 "gitg-window.c"
			goto __catch73_g_error;
		}
	}
	goto __finally73;
	__catch73_g_error:
	{
#line 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2327 "gitg-window.c"
	}
	__finally73:
#line 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (ret);
#line 693 "/home/jesse/devel/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 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 693 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return NULL;
#line 2340 "gitg-window.c"
	}
#line 698 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp14_ = ret;
#line 698 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (_tmp14_);
#line 699 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = ret;
#line 699 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 2350 "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 703 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 703 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 705 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 705 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 705 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 705 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	v = (GitgExtActivity*) _tmp2_;
#line 707 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = v;
#line 707 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != NULL) {
#line 2382 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 709 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 709 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = v;
#line 709 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 2391 "gitg-window.c"
	}
#line 712 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_activities;
#line 712 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ui_elements_get_current (_tmp6_);
#line 712 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 712 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = v;
#line 712 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (((GitgExtActivity*) _tmp8_) == _tmp9_) {
#line 714 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = v;
#line 714 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 2407 "gitg-window.c"
	} else {
#line 718 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 718 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (v);
#line 718 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 2415 "gitg-window.c"
	}
#line 703 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (v);
#line 2419 "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 722 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 722 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 724 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 724 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 724 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 724 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = (GitgExtActivity*) _tmp2_;
#line 724 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 2443 "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 727 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 727 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (path != NULL);
#line 730 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	repository = NULL;
#line 732 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 732 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 2465 "gitg-window.c"
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_location ((GgitRepository*) _tmp2_);
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp3_;
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = path;
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_file_equal (_tmp4_, _tmp5_);
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp6_;
#line 733 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_);
#line 2485 "gitg-window.c"
	} else {
#line 732 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 2489 "gitg-window.c"
	}
#line 732 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 735 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 735 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 735 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 2499 "gitg-window.c"
	}
	{
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GFile* _tmp10_ = NULL;
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = path;
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = ggit_repository_discover (_tmp8_, &_inner_error_);
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp9_;
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2514 "gitg-window.c"
			goto __catch74_g_error;
		}
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp7_;
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp7_ = NULL;
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 740 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		repo = _tmp10_;
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_);
#line 2527 "gitg-window.c"
	}
	goto __finally74;
	__catch74_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 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 744 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = path;
#line 744 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_file_get_basename (_tmp11_);
#line 744 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		repo_name = _tmp12_;
#line 746 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp13_ = _ ("'%s' is not a Git repository.");
#line 746 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = repo_name;
#line 746 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 746 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		title = _tmp15_;
#line 747 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp16_ = title;
#line 747 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp17_ = e;
#line 747 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp17_->message;
#line 747 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp16_, _tmp18_, GTK_MESSAGE_WARNING);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (repo_name);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 749 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 2581 "gitg-window.c"
	}
	__finally74:
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 738 "/home/jesse/devel/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 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 738 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 2596 "gitg-window.c"
	}
	{
		GitgRepository* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp20_ = repo;
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp21_ = gitg_repository_new (_tmp20_, NULL, &_inner_error_);
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp21_;
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2611 "gitg-window.c"
			goto __catch75_g_error;
		}
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp22_ = _tmp19_;
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp19_ = NULL;
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 754 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		repository = _tmp22_;
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp19_);
#line 2624 "gitg-window.c"
	}
	goto __finally75;
	__catch75_g_error:
	{
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2633 "gitg-window.c"
	}
	__finally75:
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 752 "/home/jesse/devel/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 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 752 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 2648 "gitg-window.c"
	}
#line 758 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp23_ = repository;
#line 758 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp23_);
#line 727 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repository);
#line 727 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo);
#line 2658 "gitg-window.c"
}


static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type) {
	GitgWindow * self;
	gchar* primary = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* secondary = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	GtkLabel* _tmp10_ = NULL;
	GtkLabel* _tmp11_ = NULL;
	GtkInfoBar* _tmp12_ = NULL;
	GtkMessageType _tmp13_ = 0;
	GtkInfoBar* _tmp14_ = NULL;
#line 761 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 761 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (title != NULL);
#line 761 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (message != NULL);
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = title;
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) (-1));
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup_printf ("<b>%s</b>", _tmp2_);
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp2_);
#line 765 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	primary = _tmp4_;
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = message;
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_markup_escape_text (_tmp5_, (gssize) (-1));
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_strdup_printf ("<small>%s</small>", _tmp7_);
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = _tmp8_;
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp7_);
#line 766 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	secondary = _tmp9_;
#line 768 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_infobar_primary_label;
#line 768 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp10_, primary);
#line 769 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_infobar_secondary_label;
#line 769 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp11_, secondary);
#line 770 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = self->priv->d_infobar;
#line 770 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = type;
#line 770 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_info_bar_set_message_type (_tmp12_, _tmp13_);
#line 772 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp14_ = self->priv->d_infobar;
#line 772 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 761 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (secondary);
#line 761 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 2737 "gitg-window.c"
}


static Block46Data* block46_data_ref (Block46Data* _data46_) {
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data46_->_ref_count_);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return _data46_;
#line 2746 "gitg-window.c"
}


static void block46_data_unref (void * _userdata_) {
	Block46Data* _data46_;
	_data46_ = (Block46Data*) _userdata_;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data46_->_ref_count_)) {
#line 2755 "gitg-window.c"
		GitgWindow* self;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self = _data46_->self;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data46_->dlg);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data46_->query);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_slice_free (Block46Data, _data46_);
#line 2767 "gitg-window.c"
	}
}


static void __lambda124_ (Block46Data* _data46_) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
#line 820 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = _data46_->self;
#line 821 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data46_->dlg;
#line 821 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 822 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data46_->query;
#line 822 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data46_->qid;
#line 822 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 2789 "gitg-window.c"
}


static void ___lambda124__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self) {
#line 820 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	__lambda124_ (self);
#line 2796 "gitg-window.c"
}


static void __lambda125_ (Block46Data* _data46_, GtkDialog* w, gint r) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 825 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = _data46_->self;
#line 825 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 826 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data46_->dlg;
#line 826 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, FALSE);
#line 828 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data46_->query;
#line 828 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = r;
#line 828 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name (_tmp1_, "response", (GtkResponseType) _tmp2_, &_tmp3_);
#line 828 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 2822 "gitg-window.c"
		GtkMessageDialog* _tmp4_ = NULL;
		GitgExtUserQuery* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
#line 830 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = _data46_->dlg;
#line 830 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 831 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = _data46_->query;
#line 831 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _data46_->qid;
#line 831 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 2836 "gitg-window.c"
	}
}


static void ___lambda125__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 825 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	__lambda125_ (self, _sender, response_id);
#line 2844 "gitg-window.c"
}


static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query) {
	GitgWindow * self;
	Block46Data* _data46_;
	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 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (query != NULL);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_ = g_slice_new0 (Block46Data);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->_ref_count_ = 1;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->self = g_object_ref (self);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = query;
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data46_->query);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->query = _tmp1_;
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data46_->query;
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_user_query_get_message_type (_tmp2_);
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, _tmp4_, GTK_BUTTONS_NONE, "");
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 777 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->dlg = _tmp5_;
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = _data46_->query;
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ext_user_query_get_title (_tmp6_);
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = g_markup_escape_text (_tmp8_, (gssize) (-1));
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_strdup_printf ("<b>%s</b>", _tmp10_);
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = _tmp11_;
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp10_);
#line 783 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	primary = _tmp12_;
#line 784 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data46_->dlg;
#line 784 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp14_ = primary;
#line 784 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_set_markup (_tmp13_, _tmp14_);
#line 786 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp15_ = _data46_->dlg;
#line 786 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp16_ = _data46_->query;
#line 786 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp17_ = gitg_ext_user_query_get_message (_tmp16_);
#line 786 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 786 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_format_secondary_text (_tmp15_, "%s", _tmp18_);
#line 788 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp19_ = _data46_->query;
#line 788 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp20_ = gitg_ext_user_query_get_message_use_markup (_tmp19_);
#line 788 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp21_ = _tmp20_;
#line 788 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp21_) {
#line 2962 "gitg-window.c"
		GtkMessageDialog* _tmp22_ = NULL;
#line 790 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp22_ = _data46_->dlg;
#line 790 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp22_, "secondary-use-markup", TRUE, NULL);
#line 2968 "gitg-window.c"
	}
#line 793 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp23_ = _data46_->dlg;
#line 793 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp24_ = _data46_->query;
#line 793 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_ext_user_query_get_default_response (_tmp24_);
#line 793 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp26_ = _tmp25_;
#line 793 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _tmp23_, (gint) _tmp26_);
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp27_ = _data46_->query;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp28_ = gitg_ext_user_query_get_responses (_tmp27_, &_tmp28__length1);
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp29_ = _tmp28_;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp29__length1 = _tmp28__length1;
#line 2988 "gitg-window.c"
	{
		GitgExtUserQueryResponse** response_collection = NULL;
		gint response_collection_length1 = 0;
		gint _response_collection_size_ = 0;
		gint response_it = 0;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		response_collection = _tmp29_;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		response_collection_length1 = _tmp29__length1;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		for (response_it = 0; response_it < _tmp29__length1; response_it = response_it + 1) {
#line 3000 "gitg-window.c"
			GitgExtUserQueryResponse* _tmp30_ = NULL;
			GitgExtUserQueryResponse* response = NULL;
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp30_ = _g_object_ref0 (response_collection[response_it]);
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			response = _tmp30_;
#line 3007 "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 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp31_ = _data46_->dlg;
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp32_ = response;
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp33_ = _tmp32_->text;
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp34_ = response;
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp35_ = _tmp34_->response_type;
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp36_ = gtk_dialog_add_button ((GtkDialog*) _tmp31_, _tmp33_, (gint) _tmp35_);
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp37_ = _g_object_ref0 (_tmp36_);
#line 797 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				button = _tmp37_;
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp38_ = response;
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp39_ = _tmp38_->response_type;
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp40_ = _data46_->query;
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp41_ = gitg_ext_user_query_get_default_response (_tmp40_);
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp42_ = _tmp41_;
#line 799 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				if (_tmp39_ == _tmp42_) {
#line 3050 "gitg-window.c"
					GtkWidget* _tmp43_ = NULL;
					GtkWidget* _tmp44_ = NULL;
					GitgExtUserQuery* _tmp45_ = NULL;
					gboolean _tmp46_ = FALSE;
					gboolean _tmp47_ = FALSE;
#line 801 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp43_ = button;
#line 801 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					gtk_widget_set_can_default (_tmp43_, TRUE);
#line 802 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp44_ = button;
#line 802 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					g_object_set (_tmp44_, "has-default", TRUE, NULL);
#line 804 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp45_ = _data46_->query;
#line 804 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp46_ = gitg_ext_user_query_get_default_is_destructive (_tmp45_);
#line 804 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp47_ = _tmp46_;
#line 804 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					if (_tmp47_) {
#line 3072 "gitg-window.c"
						GtkWidget* _tmp48_ = NULL;
						GtkStyleContext* _tmp49_ = NULL;
#line 806 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						_tmp48_ = button;
#line 806 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						_tmp49_ = gtk_widget_get_style_context (_tmp48_);
#line 806 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp49_, GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
#line 3081 "gitg-window.c"
					} else {
						GtkWidget* _tmp50_ = NULL;
						GtkStyleContext* _tmp51_ = NULL;
#line 810 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						_tmp50_ = button;
#line 810 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						_tmp51_ = gtk_widget_get_style_context (_tmp50_);
#line 810 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp51_, GTK_STYLE_CLASS_SUGGESTED_ACTION);
#line 3091 "gitg-window.c"
					}
				}
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (button);
#line 795 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (response);
#line 3098 "gitg-window.c"
			}
		}
	}
#line 815 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp52_ = _data46_->dlg;
#line 815 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp53_ = _g_object_ref0 ((GtkDialog*) _tmp52_);
#line 815 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 815 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_dialog = _tmp53_;
#line 816 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp54_ = _data46_->dlg;
#line 816 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_add_weak_pointer ((GObject*) _tmp54_, &self->priv->d_dialog);
#line 818 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->qid = (gulong) 0;
#line 820 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp55_ = _data46_->query;
#line 820 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp56_ = g_signal_connect_data (_tmp55_, "quit", (GCallback) ___lambda124__gitg_ext_user_query_quit, block46_data_ref (_data46_), (GClosureNotify) block46_data_unref, 0);
#line 820 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_->qid = _tmp56_;
#line 825 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp57_ = _data46_->dlg;
#line 825 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _tmp57_, "response", (GCallback) ___lambda125__gtk_dialog_response, block46_data_ref (_data46_), (GClosureNotify) block46_data_unref, 0);
#line 835 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp58_ = _data46_->dlg;
#line 835 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp58_);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	block46_data_unref (_data46_);
#line 775 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data46_ = NULL;
#line 3136 "gitg-window.c"
}


void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines) {
	const gchar* _tmp0_ = NULL;
	GitgExtCommandLines* _tmp2_ = NULL;
#line 873 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 875 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = hint;
#line 875 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 3149 "gitg-window.c"
		const gchar* _tmp1_ = NULL;
#line 877 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp1_ = hint;
#line 877 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_activate_activity (self, _tmp1_);
#line 3155 "gitg-window.c"
	}
#line 880 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = command_lines;
#line 880 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_ != NULL) {
#line 3161 "gitg-window.c"
		GitgExtCommandLines* _tmp3_ = NULL;
#line 882 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = command_lines;
#line 882 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_command_lines_apply (_tmp3_, (GitgExtApplication*) self);
#line 3167 "gitg-window.c"
	}
#line 885 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 3171 "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 888 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 888 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 890 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!st);
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 891 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 3215 "gitg-window.c"
}


static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self) {
#line 950 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 952 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 3224 "gitg-window.c"
}


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


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


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


static GitgExtActivity* gitg_window_real_get_current_activity (GitgExtApplication* base) {
	GitgExtActivity* result;
	GitgWindow* self;
	GitgWindowMode _tmp0_ = 0;
#line 324 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 326 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_mode;
#line 326 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 3262 "gitg-window.c"
		GitgUIElements* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GitgExtActivity* _tmp3_ = NULL;
		GitgExtActivity* _tmp4_ = NULL;
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_activities;
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_ui_elements_get_current (_tmp1_);
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 ((GitgExtActivity*) _tmp3_);
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = _tmp4_;
#line 328 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 3279 "gitg-window.c"
	} else {
		GitgDashView* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 332 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_dash_view;
#line 332 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 ((GitgExtActivity*) _tmp5_);
#line 332 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = _tmp6_;
#line 332 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 3291 "gitg-window.c"
	}
}


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


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


static void gitg_window_real_set_repository (GitgExtApplication* base, GitgRepository* value) {
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgRemoteManager* _tmp2_ = NULL;
#line 346 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 348 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 348 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 348 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 348 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_repository = _tmp1_;
#line 349 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_remote_manager_new (self);
#line 349 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 349 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_remote_manager = _tmp2_;
#line 351 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "repository");
#line 352 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (self);
#line 3359 "gitg-window.c"
}


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


static gboolean gitg_window_real_get_busy (GitgExtApplication* base) {
	gboolean result;
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
#line 845 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 845 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_busy;
#line 845 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 845 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 3394 "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 846 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 848 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 848 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_busy = _tmp0_;
#line 852 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_dialog;
#line 852 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3414 "gitg-window.c"
		GtkDialog* _tmp2_ = NULL;
		GdkWindow* _tmp3_ = NULL;
		GdkWindow* _tmp4_ = NULL;
#line 854 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_dialog;
#line 854 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = gtk_widget_get_window ((GtkWidget*) _tmp2_);
#line 854 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 (_tmp3_);
#line 854 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 854 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		win = _tmp4_;
#line 3428 "gitg-window.c"
	} else {
		GdkWindow* _tmp5_ = NULL;
		GdkWindow* _tmp6_ = NULL;
#line 858 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_window ((GtkWidget*) self);
#line 858 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 858 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 858 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		win = _tmp6_;
#line 3440 "gitg-window.c"
	}
#line 861 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_busy;
#line 861 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 3446 "gitg-window.c"
		GdkWindow* _tmp8_ = NULL;
		GdkDisplay* _tmp9_ = NULL;
		GdkCursor* _tmp10_ = NULL;
		GdkCursor* _tmp11_ = NULL;
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp8_ = win;
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = gtk_widget_get_display ((GtkWidget*) self);
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = gdk_cursor_new_for_display (_tmp9_, GDK_WATCH);
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp8_, _tmp11_);
#line 863 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp11_);
#line 3463 "gitg-window.c"
	} else {
		GdkWindow* _tmp12_ = NULL;
#line 868 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp12_ = win;
#line 868 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp12_, NULL);
#line 3470 "gitg-window.c"
	}
#line 846 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (win);
#line 846 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "busy");
#line 3476 "gitg-window.c"
}


GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self) {
	GitgExtSelectionMode result;
	GitgExtSelectionMode _tmp0_ = 0;
#line 896 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 896 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 896 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 896 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 3491 "gitg-window.c"
}


void gitg_window_set_selectable_mode (GitgWindow* self, GitgExtSelectionMode value) {
	GitgExtSelectable* selectable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSelectable* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GitgExtSelectable* _tmp4_ = NULL;
	GitgExtSelectionMode _tmp7_ = 0;
	GitgExtSelectable* _tmp8_ = NULL;
	GitgExtSelectionMode _tmp9_ = 0;
	GtkStyleContext* ctx = NULL;
	GtkHeaderBar* _tmp10_ = NULL;
	GtkStyleContext* _tmp11_ = NULL;
	GtkStyleContext* _tmp12_ = NULL;
	GitgExtSelectionMode _tmp13_ = 0;
	gboolean issel = FALSE;
	GitgExtSelectionMode _tmp25_ = 0;
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp26_ = NULL;
	GitgExtActivity* _tmp27_ = NULL;
	GitgExtSearchable* _tmp28_ = NULL;
	GtkHeaderBar* _tmp29_ = NULL;
	gboolean _tmp30_ = FALSE;
	gboolean _tmp31_ = FALSE;
	gboolean _tmp32_ = FALSE;
	GtkToggleButton* _tmp34_ = NULL;
	GtkMenuButton* _tmp35_ = NULL;
	gboolean _tmp36_ = FALSE;
	GtkToggleButton* _tmp37_ = NULL;
	gboolean _tmp38_ = FALSE;
	gboolean _tmp39_ = FALSE;
	gboolean _tmp40_ = FALSE;
	GtkButton* _tmp42_ = NULL;
	gboolean _tmp43_ = FALSE;
	gboolean _tmp44_ = FALSE;
	GtkStackSwitcher* _tmp46_ = NULL;
	GtkButton* _tmp47_ = NULL;
	gboolean _tmp48_ = FALSE;
	GtkToggleButton* _tmp49_ = NULL;
	gboolean _tmp50_ = FALSE;
#line 897 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp1_) : NULL;
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 3547 "gitg-window.c"
	}
#line 899 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	selectable = _tmp2_;
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = selectable;
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp4_ == NULL) {
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = TRUE;
#line 3557 "gitg-window.c"
	} else {
		GitgExtSelectionMode _tmp5_ = 0;
		GitgExtSelectionMode _tmp6_ = 0;
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_selectable_mode;
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp6_ = value;
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp5_ == _tmp6_;
#line 3567 "gitg-window.c"
	}
#line 901 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 903 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (selectable);
#line 903 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return;
#line 3575 "gitg-window.c"
	}
#line 906 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = value;
#line 906 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode = _tmp7_;
#line 907 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = selectable;
#line 907 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = value;
#line 907 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ext_selectable_set_selectable_mode (_tmp8_, _tmp9_);
#line 909 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_header_bar;
#line 909 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 909 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 909 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	ctx = _tmp12_;
#line 911 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = self->priv->d_selectable_mode;
#line 911 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp13_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 3599 "gitg-window.c"
		GtkStyleContext* _tmp14_ = NULL;
		GitgExtSelectable* _tmp15_ = NULL;
		GtkWidget* _tmp16_ = NULL;
		GtkWidget* _tmp17_ = NULL;
		GtkWidget* _tmp18_ = NULL;
#line 913 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp14_ = ctx;
#line 913 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp14_, "selection-mode");
#line 915 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp15_ = selectable;
#line 915 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp16_ = gitg_ext_selectable_get_action_widget (_tmp15_);
#line 915 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp17_ = _tmp16_;
#line 915 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_select_actions);
#line 915 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self->priv->d_select_actions = _tmp17_;
#line 917 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_select_actions;
#line 917 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (_tmp18_ != NULL) {
#line 3623 "gitg-window.c"
			GtkGrid* _tmp19_ = NULL;
			GtkWidget* _tmp20_ = NULL;
			GtkWidget* _tmp21_ = NULL;
#line 919 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp19_ = self->priv->d_grid_main;
#line 919 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp20_ = self->priv->d_select_actions;
#line 919 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_grid_attach (_tmp19_, _tmp20_, 0, 3, 1, 1);
#line 920 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_select_actions;
#line 920 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_widget_show (_tmp21_);
#line 3637 "gitg-window.c"
		}
	} else {
		GtkStyleContext* _tmp22_ = NULL;
		GtkWidget* _tmp23_ = NULL;
#line 925 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp22_ = ctx;
#line 925 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp22_, "selection-mode");
#line 927 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_select_actions;
#line 927 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (_tmp23_ != NULL) {
#line 3650 "gitg-window.c"
			GtkWidget* _tmp24_ = NULL;
#line 929 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_select_actions;
#line 929 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gtk_widget_destroy (_tmp24_);
#line 930 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (self->priv->d_select_actions);
#line 930 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			self->priv->d_select_actions = NULL;
#line 3660 "gitg-window.c"
		}
	}
#line 934 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_selectable_mode;
#line 934 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	issel = _tmp25_ == GITG_EXT_SELECTION_MODE_SELECTION;
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp26_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_;
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp27_) : NULL;
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == NULL) {
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp27_);
#line 3677 "gitg-window.c"
	}
#line 935 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	searchable = _tmp28_;
#line 937 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp29_ = self->priv->d_header_bar;
#line 937 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp30_ = issel;
#line 937 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_header_bar_set_show_close_button (_tmp29_, !_tmp30_);
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp32_ = issel;
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (!_tmp32_) {
#line 3691 "gitg-window.c"
		GitgExtSearchable* _tmp33_ = NULL;
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp33_ = searchable;
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp31_ = _tmp33_ != NULL;
#line 3697 "gitg-window.c"
	} else {
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp31_ = FALSE;
#line 3701 "gitg-window.c"
	}
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp34_ = self->priv->d_search_button;
#line 938 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp34_, _tmp31_);
#line 939 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp35_ = self->priv->d_gear_menu;
#line 939 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp36_ = issel;
#line 939 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp35_, !_tmp36_);
#line 940 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp37_ = self->priv->d_select_button;
#line 940 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp38_ = issel;
#line 940 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp37_, !_tmp38_);
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp40_ = issel;
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (!_tmp40_) {
#line 3723 "gitg-window.c"
		GitgRepository* _tmp41_ = NULL;
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp41_ = self->priv->d_repository;
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp39_ = _tmp41_ != NULL;
#line 3729 "gitg-window.c"
	} else {
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp39_ = FALSE;
#line 3733 "gitg-window.c"
	}
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp42_ = self->priv->d_dash_button;
#line 941 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp42_, _tmp39_);
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp44_ = issel;
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (!_tmp44_) {
#line 3743 "gitg-window.c"
		GitgRepository* _tmp45_ = NULL;
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp45_ = self->priv->d_repository;
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp43_ = _tmp45_ != NULL;
#line 3749 "gitg-window.c"
	} else {
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp43_ = FALSE;
#line 3753 "gitg-window.c"
	}
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_activities_switcher;
#line 942 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp46_, _tmp43_);
#line 943 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_select_cancel_button;
#line 943 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp48_ = issel;
#line 943 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp47_, _tmp48_);
#line 945 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp49_ = self->priv->d_select_button;
#line 945 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp50_ = issel;
#line 945 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_toggle_button_set_active (_tmp49_, _tmp50_);
#line 897 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 897 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (ctx);
#line 897 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 897 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 3779 "gitg-window.c"
}


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


static GitgExtNotifications* gitg_window_real_get_notifications (GitgExtApplication* base) {
	GitgExtNotifications* result;
	GitgWindow* self;
	GitgNotifications* _tmp0_ = NULL;
	GitgExtNotifications* _tmp1_ = NULL;
#line 975 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 975 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_notifications;
#line 975 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 ((GitgExtNotifications*) _tmp0_);
#line 975 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = _tmp1_;
#line 975 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 3817 "gitg-window.c"
}


static gboolean gitg_window_real_change_to_activity (GitgWindow* self, gint i) {
	gboolean result = FALSE;
	GitgExtSelectionMode _tmp0_ = 0;
	gint _tmp1_ = 0;
	GitgWindowMode _tmp3_ = 0;
	GitgExtActivity** elems = NULL;
	GitgUIElements* _tmp4_ = NULL;
	gpointer* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	GitgExtActivity** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	gint elems_length1 = 0;
	gint _elems_size_ = 0;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	GitgExtActivity** _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
	GitgUIElements* _tmp10_ = NULL;
	GitgExtActivity** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gint _tmp12_ = 0;
	GitgExtActivity* _tmp13_ = NULL;
#line 106 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 106 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 108 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 108 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 3851 "gitg-window.c"
	}
#line 111 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = i;
#line 111 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == 0) {
#line 3857 "gitg-window.c"
		GitgWindowMode _tmp2_ = 0;
#line 113 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_mode;
#line 113 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 115 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 116 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			result = TRUE;
#line 116 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			return result;
#line 3869 "gitg-window.c"
		} else {
#line 120 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			result = FALSE;
#line 120 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			return result;
#line 3875 "gitg-window.c"
		}
	}
#line 124 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = self->priv->d_mode;
#line 124 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != GITG_WINDOW_MODE_ACTIVITY) {
#line 126 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 126 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 3886 "gitg-window.c"
	}
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_activities;
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_ui_elements_get_available_elements (_tmp4_, &_tmp5__length1);
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = _tmp5_;
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6__length1 = _tmp5__length1;
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	elems = _tmp6_;
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	elems_length1 = _tmp6__length1;
#line 129 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_elems_size_ = elems_length1;
#line 130 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp7_ = i;
#line 130 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	i = _tmp7_ - 1;
#line 132 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = i;
#line 132 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9_ = elems;
#line 132 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp9__length1 = elems_length1;
#line 132 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp8_ >= _tmp9__length1) {
#line 134 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 134 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 134 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		return result;
#line 3920 "gitg-window.c"
	}
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_activities;
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = elems;
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11__length1 = elems_length1;
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = i;
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp11_[_tmp12_];
#line 137 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_set_current (_tmp10_, _tmp13_);
#line 138 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 138 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 138 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return result;
#line 3940 "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/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (return_value != NULL);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (n_param_values == 2);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		data1 = closure->data;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		data2 = param_values->data[0].v_pointer;
#line 3962 "gitg-window.c"
	} else {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		data1 = param_values->data[0].v_pointer;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		data2 = closure->data;
#line 3968 "gitg-window.c"
	}
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	v_return = callback (data1, g_value_get_int (param_values + 1), data2);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_value_set_boolean (return_value, v_return);
#line 3976 "gitg-window.c"
}


static void gitg_window_real_cancel (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 958 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 958 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 958 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 958 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 3992 "gitg-window.c"
		GtkInfoBar* _tmp3_ = NULL;
#line 960 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_infobar;
#line 960 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp3_);
#line 3998 "gitg-window.c"
	} else {
#line 964 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4002 "gitg-window.c"
	}
}


static Block47Data* block47_data_ref (Block47Data* _data47_) {
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data47_->_ref_count_);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return _data47_;
#line 4012 "gitg-window.c"
}


static void block47_data_unref (void * _userdata_) {
	Block47Data* _data47_;
	_data47_ = (Block47Data*) _userdata_;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data47_->_ref_count_)) {
#line 4021 "gitg-window.c"
		GitgWindow* self;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		self = _data47_->self;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data47_->selact);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_slice_free (Block47Data, _data47_);
#line 4031 "gitg-window.c"
	}
}


static void _gitg_window___lambda126_ (Block47Data* _data47_) {
	GitgWindow* self;
	gboolean st = FALSE;
	GAction* _tmp0_ = NULL;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 197 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = _data47_->self;
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data47_->selact;
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state (_tmp0_);
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 198 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 200 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = st;
#line 200 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp5_) {
#line 202 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_SELECTION);
#line 4067 "gitg-window.c"
	} else {
#line 206 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4071 "gitg-window.c"
	}
}


static void __gitg_window___lambda126__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 197 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda126_ (self);
#line 4079 "gitg-window.c"
}


static void _gitg_window___lambda127_ (GitgWindow* self, GtkInfoBar* w, gint r) {
	GtkInfoBar* _tmp0_ = NULL;
#line 260 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 261 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 261 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 4091 "gitg-window.c"
}


static void __gitg_window___lambda127__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 260 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda127_ ((GitgWindow*) self, _sender, response_id);
#line 4098 "gitg-window.c"
}


static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgWindow * self;
	Block47Data* _data47_;
	GtkOverlay* _tmp0_ = NULL;
	GitgNotifications* _tmp1_ = NULL;
	GAction* _tmp2_ = NULL;
	GAction* _tmp3_ = NULL;
	GAction* _tmp4_ = NULL;
	GSettings* _tmp5_ = NULL;
	gchar* menuname = NULL;
	GtkSettings* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	GitgDashView* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gpointer _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gpointer _tmp19_ = NULL;
	GtkSearchBar* _tmp20_ = NULL;
	GdTaggedEntry* _tmp21_ = NULL;
	GtkToggleButton* _tmp22_ = NULL;
	GtkSearchBar* _tmp23_ = NULL;
	GtkStackSwitcher* _tmp24_ = NULL;
	GtkStack* _tmp25_ = NULL;
	GeeHashMap* _tmp26_ = NULL;
	gchar** _tmp27_ = NULL;
	gchar** _tmp28_ = NULL;
	gboolean _tmp34_ = FALSE;
	const gchar* _tmp35_ = NULL;
	GtkHeaderBar* _tmp38_ = NULL;
	GtkStackSwitcher* _tmp39_ = NULL;
	GtkHeaderBar* _tmp40_ = NULL;
	GtkToggleButton* _tmp41_ = NULL;
	GtkHeaderBar* _tmp42_ = NULL;
	GtkToggleButton* _tmp43_ = NULL;
	GtkHeaderBar* _tmp44_ = NULL;
	GtkMenuButton* _tmp45_ = NULL;
	GtkHeaderBar* _tmp46_ = NULL;
	GtkMenuButton* _tmp47_ = NULL;
	GtkHeaderBar* _tmp48_ = NULL;
	GtkStackSwitcher* _tmp49_ = NULL;
	GtkHeaderBar* _tmp50_ = NULL;
	GtkToggleButton* _tmp51_ = NULL;
	GtkHeaderBar* _tmp52_ = NULL;
	GtkToggleButton* _tmp53_ = NULL;
	GtkInfoBar* _tmp54_ = NULL;
	GtkBindingSet* bset = NULL;
	GObjectClass* _tmp55_ = NULL;
	GtkBindingSet* _tmp56_ = NULL;
	GtkBindingSet* _tmp63_ = NULL;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	parent_class = G_OBJECT_CLASS (gitg_window_parent_class);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data47_ = g_slice_new0 (Block47Data);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data47_->_ref_count_ = 1;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data47_->self = g_object_ref (self);
#line 191 "/home/jesse/devel/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 193 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_overlay;
#line 193 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_notifications_new (_tmp0_);
#line 193 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 193 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_notifications = _tmp1_;
#line 195 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp2_ = g_action_map_lookup_action ((GActionMap*) self, "select");
#line 195 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 195 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data47_->selact = _tmp3_;
#line 197 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp4_ = _data47_->selact;
#line 197 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GObject*) _tmp4_, "notify::state", (GCallback) __gitg_window___lambda126__g_object_notify, block47_data_ref (_data47_), (GClosureNotify) block47_data_unref, 0);
#line 210 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp5_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 210 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 210 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_interface_settings = _tmp5_;
#line 214 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp6_ = gtk_settings_get_default ();
#line 214 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp6_, "gtk-shell-shows-app-menu", &_tmp7_, NULL);
#line 214 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 214 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 4204 "gitg-window.c"
		gchar* _tmp9_ = NULL;
#line 216 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp9_ = g_strdup ("win-menu");
#line 216 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 216 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		menuname = _tmp9_;
#line 4212 "gitg-window.c"
	} else {
		gchar* _tmp10_ = NULL;
#line 220 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_strdup ("app-win-menu");
#line 220 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 220 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		menuname = _tmp10_;
#line 4221 "gitg-window.c"
	}
#line 223 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_dash_view;
#line 223 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_ext_ui_element_set_application ((GitgExtUIElement*) _tmp11_, (GitgExtApplication*) self);
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp12_ = menuname;
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp13_ = g_strconcat (_tmp12_, "-dash", NULL);
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp14_ = _tmp13_;
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp15_ = gitg_resource_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp14_);
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_dash_model = (GMenuModel*) _tmp15_;
#line 225 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp14_);
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp16_ = menuname;
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp17_ = g_strconcat (_tmp16_, "-views", NULL);
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp19_ = gitg_resource_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp18_);
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_activities_model = (GMenuModel*) _tmp19_;
#line 226 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp18_);
#line 229 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp20_ = self->priv->d_search_bar;
#line 229 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_search_entry;
#line 229 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_search_bar_connect_entry (_tmp20_, (GtkEntry*) _tmp21_);
#line 230 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp22_ = self->priv->d_search_button;
#line 230 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp23_ = self->priv->d_search_bar;
#line 230 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp22_, "active", (GObject*) _tmp23_, "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 235 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp24_ = self->priv->d_activities_switcher;
#line 235 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_stack_activities;
#line 235 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_stack_switcher_set_stack (_tmp24_, _tmp25_);
#line 237 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp26_ = 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 237 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 237 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp26_;
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp28_ = _tmp27_ = g_listenv ();
#line 4281 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e_collection = _tmp28_;
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _vala_array_length (_tmp27_);
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _vala_array_length (_tmp27_); e_it = e_it + 1) {
#line 4293 "gitg-window.c"
			gchar* _tmp29_ = NULL;
			gchar* e = NULL;
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp29_ = g_strdup (e_collection[e_it]);
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			e = _tmp29_;
#line 4300 "gitg-window.c"
			{
				GeeHashMap* _tmp30_ = NULL;
				const gchar* _tmp31_ = NULL;
				const gchar* _tmp32_ = NULL;
				const gchar* _tmp33_ = NULL;
#line 241 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp30_ = self->priv->d_environment;
#line 241 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp31_ = e;
#line 241 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp32_ = e;
#line 241 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp33_ = g_getenv (_tmp32_);
#line 241 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _tmp30_, _tmp31_, _tmp33_);
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 4318 "gitg-window.c"
			}
		}
#line 239 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		e_collection = (_vala_array_free (e_collection, e_collection_length1, (GDestroyNotify) g_free), NULL);
#line 4323 "gitg-window.c"
	}
#line 244 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp35_ = gtk_check_version ((guint) 3, (guint) 13, (guint) 2);
#line 244 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp35_ != NULL) {
#line 4329 "gitg-window.c"
		GtkTextDirection _tmp36_ = 0;
#line 245 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp36_ = gtk_widget_get_direction ((GtkWidget*) self);
#line 245 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp34_ = _tmp36_ == GTK_TEXT_DIR_RTL;
#line 4335 "gitg-window.c"
	} else {
#line 244 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp34_ = FALSE;
#line 4339 "gitg-window.c"
	}
#line 244 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	if (_tmp34_) {
#line 4343 "gitg-window.c"
		GtkImage* _tmp37_ = NULL;
#line 247 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		_tmp37_ = self->priv->dash_image;
#line 247 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp37_, "icon-name", "go-previous-rtl-symbolic", NULL);
#line 4349 "gitg-window.c"
	}
#line 250 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp38_ = self->priv->d_header_bar;
#line 250 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp39_ = self->priv->d_activities_switcher;
#line 250 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp38_, (GtkWidget*) _tmp39_);
#line 251 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_header_bar;
#line 251 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_search_button;
#line 251 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp40_, (GtkWidget*) _tmp41_);
#line 252 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp42_ = self->priv->d_header_bar;
#line 252 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp43_ = self->priv->d_select_button;
#line 252 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp42_, (GtkWidget*) _tmp43_);
#line 253 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_header_bar;
#line 253 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_gear_menu;
#line 253 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
#line 255 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_header_bar;
#line 255 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_gear_menu;
#line 255 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp46_, (GtkWidget*) _tmp47_);
#line 256 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp48_ = self->priv->d_header_bar;
#line 256 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp49_ = self->priv->d_activities_switcher;
#line 256 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp48_, (GtkWidget*) _tmp49_);
#line 257 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_header_bar;
#line 257 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp51_ = self->priv->d_select_button;
#line 257 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp50_, (GtkWidget*) _tmp51_);
#line 258 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp52_ = self->priv->d_header_bar;
#line 258 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp53_ = self->priv->d_search_button;
#line 258 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp52_, (GtkWidget*) _tmp53_);
#line 260 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_infobar;
#line 260 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_signal_connect_object (_tmp54_, "response", (GCallback) __gitg_window___lambda127__gtk_info_bar_response, self, 0);
#line 264 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp55_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 264 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp56_ = gtk_binding_set_by_class (_tmp55_);
#line 264 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	bset = _tmp56_;
#line 4409 "gitg-window.c"
	{
		gint i = 0;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		i = 0;
#line 4414 "gitg-window.c"
		{
			gboolean _tmp57_ = FALSE;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			_tmp57_ = TRUE;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
			while (TRUE) {
#line 4421 "gitg-window.c"
				gint _tmp59_ = 0;
				GtkBindingSet* _tmp60_ = NULL;
				gint _tmp61_ = 0;
				gint _tmp62_ = 0;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				if (!_tmp57_) {
#line 4428 "gitg-window.c"
					gint _tmp58_ = 0;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					_tmp58_ = i;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					i = _tmp58_ + 1;
#line 4434 "gitg-window.c"
				}
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp57_ = FALSE;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp59_ = i;
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				if (!(_tmp59_ < 10)) {
#line 266 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
					break;
#line 4444 "gitg-window.c"
				}
#line 268 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp60_ = bset;
#line 268 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp61_ = i;
#line 268 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				_tmp62_ = i;
#line 268 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
				gtk_binding_entry_add_signal (_tmp60_, (guint) (GDK_KEY_0 + _tmp61_), GDK_MOD1_MASK, "change-to-activity", (guint) 1, G_TYPE_INT, _tmp62_, NULL);
#line 4454 "gitg-window.c"
			}
		}
	}
#line 277 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_tmp63_ = bset;
#line 277 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gtk_binding_entry_add_signal (_tmp63_, (guint) GDK_KEY_Escape, 0, "cancel", (guint) 0, NULL);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (menuname);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	block47_data_unref (_data47_);
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_data47_ = NULL;
#line 189 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	return obj;
#line 4470 "gitg-window.c"
}


static void gitg_window_class_init (GitgWindowClass * klass) {
	gint GitgWindow_private_offset;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	g_type_class_add_private (klass, sizeof (GitgWindowPrivate));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->delete_event = gitg_window_real_delete_event;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->window_state_event = gitg_window_real_window_state_event;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	((GtkWidgetClass *) klass)->configure_event = gitg_window_real_configure_event;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->change_to_activity = gitg_window_real_change_to_activity;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	((GitgWindowClass *) klass)->cancel = gitg_window_real_cancel;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_window_get_property;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_window_set_property;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_window_constructor;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_window_finalize;
#line 24 "/home/jesse/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/gitg/gitg/gitg-window.vala"
	GitgWindow_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/jesse/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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/devel/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 4566 "gitg-window.c"
}


static void gitg_window_gitg_ext_application_interface_init (GitgExtApplicationIface * iface) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	gitg_window_gitg_ext_application_parent_iface = g_type_interface_peek_parent (iface);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->open_new = (GitgExtApplication* (*)(GitgExtApplication*, GgitRepository*, const gchar*)) gitg_window_real_open_new;
#line 24 "/home/jesse/devel/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/devel/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/devel/gitg/gitg/gitg-window.vala"
	iface->open_repository = (void (*)(GitgExtApplication*, GFile*)) gitg_window_real_open_repository;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->show_infobar = (void (*)(GitgExtApplication*, const gchar*, const gchar*, GtkMessageType)) gitg_window_real_show_infobar;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->user_query = (void (*)(GitgExtApplication*, GitgExtUserQuery*)) gitg_window_real_user_query;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_current_activity = gitg_window_real_get_current_activity;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_message_bus = gitg_window_real_get_message_bus;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_repository = gitg_window_real_get_repository;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->set_repository = gitg_window_real_set_repository;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_environment = gitg_window_real_get_environment;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_busy = gitg_window_real_get_busy;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->set_busy = gitg_window_real_set_busy;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_remote_lookup = gitg_window_real_get_remote_lookup;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	iface->get_notifications = gitg_window_real_get_notifications;
#line 4603 "gitg-window.c"
}


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


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


static void gitg_window_finalize (GObject* obj) {
	GitgWindow * self;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 26 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 27 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 28 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 29 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 30 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_free0 (self->priv->d_action);
#line 31 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 33 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 34 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_actions);
#line 36 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 37 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 38 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 41 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 43 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 44 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 48 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_header_bar);
#line 50 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_button);
#line 52 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_gear_menu);
#line 53 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 54 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 57 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_grid_main);
#line 60 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_button);
#line 62 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_select_cancel_button);
#line 65 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_button);
#line 67 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->dash_image);
#line 69 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_switcher);
#line 72 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_bar);
#line 74 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_search_entry);
#line 77 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_main_stack);
#line 80 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_view);
#line 83 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_stack_activities);
#line 86 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar);
#line 88 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_primary_label);
#line 90 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_infobar_secondary_label);
#line 93 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_overlay);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
	G_OBJECT_CLASS (gitg_window_parent_class)->finalize (obj);
#line 4701 "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/devel/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_CURRENT_ACTIVITY:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_current_activity ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_MESSAGE_BUS:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_message_bus ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_repository ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_ENVIRONMENT:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_environment ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_set_boolean (value, gitg_ext_application_get_busy ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_set_enum (value, gitg_window_get_selectable_mode (self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REMOTE_LOOKUP:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_remote_lookup ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_NOTIFICATIONS:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		g_value_take_object (value, gitg_ext_application_get_notifications ((GitgExtApplication*) self));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 4774 "gitg-window.c"
		default:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 4780 "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/devel/gitg/gitg/gitg-window.vala"
	switch (property_id) {
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_REPOSITORY:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, g_value_get_object (value));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_BUSY:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_busy ((GitgExtApplication*) self, g_value_get_boolean (value));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		case GITG_WINDOW_SELECTABLE_MODE:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, g_value_get_enum (value));
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 4808 "gitg-window.c"
		default:
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/jesse/devel/gitg/gitg/gitg-window.vala"
		break;
#line 4814 "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;
}



