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

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

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


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

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

#define GITG_TYPE_RECURSIVE_MONITOR (gitg_recursive_monitor_get_type ())
#define GITG_RECURSIVE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitor))
#define GITG_RECURSIVE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitorClass))
#define GITG_IS_RECURSIVE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_RECURSIVE_MONITOR))
#define GITG_IS_RECURSIVE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_RECURSIVE_MONITOR))
#define GITG_RECURSIVE_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_RECURSIVE_MONITOR, GitgRecursiveMonitorClass))

typedef struct _GitgRecursiveMonitor GitgRecursiveMonitor;
typedef struct _GitgRecursiveMonitorClass GitgRecursiveMonitorClass;

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

typedef struct _GitgUIElements GitgUIElements;
typedef struct _GitgUIElementsClass GitgUIElementsClass;

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

typedef struct _GitgRemoteManager GitgRemoteManager;
typedef struct _GitgRemoteManagerClass GitgRemoteManagerClass;

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

typedef struct _GitgNotifications GitgNotifications;
typedef struct _GitgNotificationsClass GitgNotificationsClass;

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

typedef struct _GitgDashView GitgDashView;
typedef struct _GitgDashViewClass GitgDashViewClass;

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

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

typedef struct _GitgCloneDialog GitgCloneDialog;
typedef struct _GitgCloneDialogClass GitgCloneDialogClass;
typedef struct _Block65Data Block65Data;
typedef struct _Block66Data Block66Data;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

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

typedef struct _GitgAuthorDetailsDialog GitgAuthorDetailsDialog;
typedef struct _GitgAuthorDetailsDialogClass GitgAuthorDetailsDialogClass;
typedef struct _Block67Data Block67Data;

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

typedef struct _GitgApplication GitgApplication;
typedef struct _GitgApplicationClass GitgApplicationClass;

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

typedef struct _GitgPluginsEngine GitgPluginsEngine;
typedef struct _GitgPluginsEngineClass GitgPluginsEngineClass;

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

typedef struct _GitgHistoryActivity GitgHistoryActivity;
typedef struct _GitgHistoryActivityClass GitgHistoryActivityClass;

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

typedef struct _GitgCommitActivity GitgCommitActivity;
typedef struct _GitgCommitActivityClass GitgCommitActivityClass;
typedef struct _Block68Data Block68Data;
typedef struct _Block69Data Block69Data;
typedef struct _GitgWindowUserQueryAsyncData GitgWindowUserQueryAsyncData;
typedef struct _Block70Data Block70Data;
typedef struct _Block71Data Block71Data;

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

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

typedef enum  {
	GITG_WINDOW_MODE_DASH,
	GITG_WINDOW_MODE_ACTIVITY
} GitgWindowMode;

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

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

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

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

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

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

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

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

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


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

GType gitg_window_get_type (void) G_GNUC_CONST;
GType gitg_recursive_monitor_get_type (void) G_GNUC_CONST;
GType gitg_ui_elements_get_type (void) G_GNUC_CONST;
GType gitg_remote_manager_get_type (void) G_GNUC_CONST;
GType gitg_notifications_get_type (void) G_GNUC_CONST;
GType gitg_dash_view_get_type (void) G_GNUC_CONST;
static GType gitg_window_mode_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_WINDOW, GitgWindowPrivate))
enum  {
	GITG_WINDOW_DUMMY_PROPERTY,
	GITG_WINDOW_CURRENT_ACTIVITY,
	GITG_WINDOW_MESSAGE_BUS,
	GITG_WINDOW_REPOSITORY,
	GITG_WINDOW_ENABLE_MONITORING,
	GITG_WINDOW_ENVIRONMENT,
	GITG_WINDOW_BUSY,
	GITG_WINDOW_SELECTABLE_MODE,
	GITG_WINDOW_REMOTE_LOOKUP,
	GITG_WINDOW_NOTIFICATIONS
};
#define GITG_WINDOW_version VERSION
static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_search_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_gear_menu_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_close_activated (GitgWindow* self);
static void _gitg_window_on_close_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_reload_activated (GitgWindow* self);
static void _gitg_window_on_reload_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_repo_author_details_activated (GitgWindow* self);
static void _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_on_select_activated (GitgWindow* self, GSimpleAction* action);
static void _gitg_window_on_select_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_window_dash_button_clicked (GitgWindow* self, GtkButton* dash);
static void _gitg_window_dash_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_clone_repository_clicked (GitgWindow* self);
GType gitg_clone_dialog_get_type (void) G_GNUC_CONST;
static Block65Data* block65_data_ref (Block65Data* _data65_);
static void block65_data_unref (void * _userdata_);
GitgCloneDialog* gitg_clone_dialog_new (GtkWindow* parent);
GitgCloneDialog* gitg_clone_dialog_construct (GType object_type, GtkWindow* parent);
static void __lambda116_ (Block65Data* _data65_, GtkDialog* d, gint id);
void gitg_dash_view_clone_repository (GitgDashView* self, const gchar* url, GFile* location, gboolean is_bare);
const gchar* gitg_clone_dialog_get_url (GitgCloneDialog* self);
GFile* gitg_clone_dialog_get_location (GitgCloneDialog* self);
gboolean gitg_clone_dialog_get_is_bare (GitgCloneDialog* self);
static void ___lambda116__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void _gitg_window_clone_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_add_repository_clicked (GitgWindow* self);
static Block66Data* block66_data_ref (Block66Data* _data66_);
static void block66_data_unref (void * _userdata_);
static void __lambda117_ (Block66Data* _data66_, GtkDialog* c, gint id);
void gitg_dash_view_add_repository_from_location (GitgDashView* self, GFile* location, gboolean scan_all);
static void ___lambda117__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void _gitg_window_add_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void gitg_window_search_button_toggled (GitgWindow* self, GtkToggleButton* button);
static void _gitg_window_search_button_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
static void gitg_window_search_entry_changed (GitgWindow* self, GtkEditable* entry);
static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self);
static gboolean gitg_window_real_delete_event (GtkWidget* base, GdkEventAny* event);
static GitgExtApplication* gitg_window_real_open_new (GitgExtApplication* base, GgitRepository* repository, const gchar* hint);
GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action);
static void gitg_window_update_title (GitgWindow* self);
static void gitg_window_repository_changed (GitgWindow* self);
GitgRepositoryListBoxRow* gitg_dash_view_add_repository (GitgDashView* self, GitgRepository* repository);
void gitg_ui_elements_update (GitgUIElements* self);
static void gitg_window_activate_default_activity (GitgWindow* self);
static void gitg_window_on_current_activity_changed (GitgWindow* self);
static gboolean gitg_window_real_window_state_event (GtkWidget* base, GdkEventWindowState* event);
static gboolean gitg_window_real_configure_event (GtkWidget* base, GdkEventConfigure* event);
static GitgExtExternalChangeHint gitg_window_external_change_hint_from_file (GitgWindow* self, GFile* location);
static gboolean gitg_window_filter_repository_changes (GitgWindow* self, GFile* location);
static void gitg_window_set_repository_internal (GitgWindow* self, GitgRepository* repository);
void gitg_recursive_monitor_cancel (GitgRecursiveMonitor* self);
static void gitg_window_update_enable_monitoring (GitgWindow* self);
GitgRemoteManager* gitg_remote_manager_new (GitgWindow* window);
GitgRemoteManager* gitg_remote_manager_construct (GType object_type, GitgWindow* window);
gboolean gitg_window_get_enable_monitoring (GitgWindow* self);
static gboolean _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func (GFile* file, gpointer self);
GitgRecursiveMonitor* gitg_recursive_monitor_new (GFile* location, GitgRecursiveMonitorFilterFunc filter_func, void* filter_func_target, GDestroyNotify filter_func_target_destroy_notify);
GitgRecursiveMonitor* gitg_recursive_monitor_construct (GType object_type, GFile* location, GitgRecursiveMonitorFilterFunc filter_func, void* filter_func_target, GDestroyNotify filter_func_target_destroy_notify);
static void ___lambda92_ (GitgWindow* self, GFile** files, int files_length1);
static void ____lambda92__gitg_recursive_monitor_changed (GitgRecursiveMonitor* _sender, GFile** files, int files_length1, gpointer self);
GType gitg_author_details_dialog_get_type (void) G_GNUC_CONST;
GitgAuthorDetailsDialog* gitg_author_details_dialog_new (GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
GitgAuthorDetailsDialog* gitg_author_details_dialog_construct (GType object_type, GtkWindow* parent, GgitConfig* config, const gchar* repository_name);
static gboolean gitg_window_activate_activity (GitgWindow* self, const gchar* action);
static Block67Data* block67_data_ref (Block67Data* _data67_);
static void block67_data_unref (void * _userdata_);
void gitg_ui_elements_foreach (GitgUIElements* self, GitgUIElementsForeachUIElementFunc func, void* func_target);
static gboolean __lambda108_ (Block67Data* _data67_, GitgExtUIElement* element);
static gboolean ___lambda108__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
void gitg_ui_elements_set_current (GitgUIElements* self, gconstpointer value);
static gboolean ___lambda109_ (GitgWindow* self, GitgExtUIElement* element);
static gboolean ____lambda109__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self);
static gboolean gitg_window_real_init (GInitable* base, GCancellable* cancellable, GError** error);
GType gitg_application_get_type (void) G_GNUC_CONST;
GSettings* gitg_application_get_state_settings (GitgApplication* self);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
GitgHistoryActivity* gitg_history_activity_new (GitgExtApplication* application);
GitgHistoryActivity* gitg_history_activity_construct (GType object_type, GitgExtApplication* application);
GType gitg_history_activity_get_type (void) G_GNUC_CONST;
GitgCommitActivity* gitg_commit_activity_new (GitgExtApplication* application);
GitgCommitActivity* gitg_commit_activity_construct (GType object_type, GitgExtApplication* application);
GType gitg_commit_activity_get_type (void) G_GNUC_CONST;
GitgUIElements* gitg_ui_elements_new_with_builtin (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, gpointer* builtin, int builtin_length1, PeasExtensionSet* extensions, GtkStack* stack);
GitgUIElements* gitg_ui_elements_construct_with_builtin (GType object_type, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, gpointer* builtin, int builtin_length1, PeasExtensionSet* extensions, GtkStack* stack);
static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
void gitg_window_set_environment (GitgWindow* self, gchar** environment, int environment_length1);
GitgWindow* gitg_window_new (void);
GitgWindow* gitg_window_construct (GType object_type);
static GitgExtActivity* gitg_window_real_set_activity_by_id (GitgExtApplication* base, const gchar* id);
gpointer gitg_ui_elements_lookup (GitgUIElements* self, const gchar* id);
gconstpointer gitg_ui_elements_get_current (GitgUIElements* self);
static GitgExtActivity* gitg_window_real_get_activity_by_id (GitgExtApplication* base, const gchar* id);
static void gitg_window_real_open_repository (GitgExtApplication* base, GFile* path);
static void gitg_window_real_show_infobar (GitgExtApplication* base, const gchar* title, const gchar* message, GtkMessageType type);
static Block68Data* block68_data_ref (Block68Data* _data68_);
static void block68_data_unref (void * _userdata_);
static gboolean __lambda160_ (Block68Data* _data68_);
static gboolean ___lambda160__gsource_func (gpointer self);
static void gitg_window_real_user_query_async_data_free (gpointer _data);
static void gitg_window_real_user_query_async (GitgExtApplication* base, GitgExtUserQuery* query, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gitg_window_real_user_query_async_co (GitgWindowUserQueryAsyncData* _data_);
static Block69Data* block69_data_ref (Block69Data* _data69_);
static void block69_data_unref (void * _userdata_);
static gboolean _gitg_window_real_user_query_async_co_gsource_func (gpointer self);
static gboolean __lambda161_ (Block69Data* _data69_, GtkResponseType response);
static gboolean ___lambda161__gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self);
static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query);
static Block70Data* block70_data_ref (Block70Data* _data70_);
static void block70_data_unref (void * _userdata_);
static void __lambda162_ (Block70Data* _data70_);
static void ___lambda162__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self);
static void __lambda163_ (Block70Data* _data70_, GtkDialog* w, gint r);
static void ___lambda163__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static GgitSignature* gitg_window_real_get_verified_committer (GitgExtApplication* base);
void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines);
static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self);
void gitg_window_set_selectable_mode (GitgWindow* self, GitgExtSelectionMode value);
static void _gitg_window_on_select_cancel_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
void gitg_window_set_enable_monitoring (GitgWindow* self, gboolean value);
GitgExtSelectionMode gitg_window_get_selectable_mode (GitgWindow* self);
static gboolean gitg_window_real_change_to_activity (GitgWindow* self, gint i);
gpointer* gitg_ui_elements_get_available_elements (GitgUIElements* self, int* result_length1);
static void g_cclosure_user_marshal_BOOLEAN__INT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static void gitg_window_real_cancel (GitgWindow* self);
static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static Block71Data* block71_data_ref (Block71Data* _data71_);
static void block71_data_unref (void * _userdata_);
GitgNotifications* gitg_notifications_new (GtkOverlay* overlay);
GitgNotifications* gitg_notifications_construct (GType object_type, GtkOverlay* overlay);
static void _gitg_window___lambda164_ (Block71Data* _data71_);
static void __gitg_window___lambda164__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gpointer gitg_builder_load_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* id, const gchar* object);
static void _gitg_window___lambda165_ (GitgWindow* self, GtkInfoBar* w, gint r);
static void __gitg_window___lambda165__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self);
static void gitg_window_finalize (GObject* obj);
static void _vala_gitg_window_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_window_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);

static const GActionEntry GITG_WINDOW_win_entries[6] = {{"search", _gitg_window_on_search_activated_gsimple_action_activate_callback, NULL, "false", NULL}, {"gear-menu", _gitg_window_on_gear_menu_activated_gsimple_action_activate_callback, NULL, "false", NULL}, {"close", _gitg_window_on_close_activated_gsimple_action_activate_callback}, {"reload", _gitg_window_on_reload_activated_gsimple_action_activate_callback}, {"author-details-repo", _gitg_window_on_repo_author_details_activated_gsimple_action_activate_callback}, {"select", _gitg_window_on_select_activated_gsimple_action_activate_callback, NULL, "false", NULL}};

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


static void _gitg_window_on_search_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 152 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_search_activated ((GitgWindow*) self, action);
#line 491 "gitg-window.c"
}


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


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


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


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


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


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


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


static Block65Data* block65_data_ref (Block65Data* _data65_) {
#line 168 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data65_->_ref_count_);
#line 168 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data65_;
#line 553 "gitg-window.c"
}


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


static void __lambda116_ (Block65Data* _data65_, GtkDialog* d, gint id) {
	GitgWindow* self;
	gint _tmp0_ = 0;
	GtkDialog* _tmp9_ = NULL;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data65_->self;
#line 172 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (d != NULL);
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = id;
#line 173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 589 "gitg-window.c"
		GitgDashView* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		GFile* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_dash_view;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_clone_dialog_get_url (_data65_->dlg);
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_clone_dialog_get_location (_data65_->dlg);
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_clone_dialog_get_is_bare (_data65_->dlg);
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_dash_view_clone_repository (_tmp1_, _tmp3_, _tmp6_, _tmp8_);
#line 175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 618 "gitg-window.c"
	}
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = d;
#line 178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp9_);
#line 624 "gitg-window.c"
}


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


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


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


static Block66Data* block66_data_ref (Block66Data* _data66_) {
#line 185 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data66_->_ref_count_);
#line 185 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data66_;
#line 676 "gitg-window.c"
}


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


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


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


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


static void _gitg_window_add_repository_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_add_repository_clicked ((GitgWindow*) self);
#line 832 "gitg-window.c"
}


static void gitg_window_search_button_toggled (GitgWindow* self, GtkToggleButton* button) {
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSearchable* _tmp2_ = NULL;
	GtkToggleButton* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 224 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 224 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (button != NULL);
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 857 "gitg-window.c"
	}
#line 226 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 228 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = button;
#line 228 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_toggle_button_get_active (_tmp3_);
#line 228 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 867 "gitg-window.c"
		GtkSearchEntry* _tmp5_ = NULL;
		GtkSearchEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GitgExtSearchable* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		GtkSearchEntry* _tmp13_ = NULL;
#line 230 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_entry;
#line 230 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_grab_focus ((GtkWidget*) _tmp5_);
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 232 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 233 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = searchable;
#line 233 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp11_, TRUE);
#line 234 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 234 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_search_entry;
#line 234 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp12_, (GtkEntry*) _tmp13_);
#line 905 "gitg-window.c"
	} else {
		GitgExtSearchable* _tmp14_ = NULL;
		GitgExtSearchable* _tmp15_ = NULL;
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = searchable;
#line 238 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_visible (_tmp14_, FALSE);
#line 239 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 239 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_entry (_tmp15_, NULL);
#line 917 "gitg-window.c"
	}
#line 224 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 921 "gitg-window.c"
}


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


static void gitg_window_search_entry_changed (GitgWindow* self, GtkEditable* entry) {
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSearchable* _tmp2_ = NULL;
	gchar* ntext = NULL;
	GtkEditable* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GitgExtSearchable* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
#line 244 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 244 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (entry != NULL);
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp1_) : NULL;
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 962 "gitg-window.c"
	}
#line 246 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp2_;
#line 247 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = entry;
#line 247 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp3_) : NULL);
#line 247 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 247 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 247 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	ntext = _tmp6_;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = ntext;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = searchable;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_ext_searchable_get_search_text (_tmp8_);
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = _tmp10_;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_strcmp0 (_tmp7_, _tmp11_) != 0;
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp11_);
#line 249 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 992 "gitg-window.c"
		GitgExtSearchable* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
#line 251 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = searchable;
#line 251 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = ntext;
#line 251 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_searchable_set_search_text (_tmp13_, _tmp14_);
#line 1001 "gitg-window.c"
	}
#line 244 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (ntext);
#line 244 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1007 "gitg-window.c"
}


static void _gitg_window_search_entry_changed_gtk_editable_changed (GtkEditable* _sender, gpointer self) {
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_search_entry_changed ((GitgWindow*) self, _sender);
#line 1014 "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 366 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 366 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 368 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	ret = FALSE;
#line 370 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (GTK_WIDGET_CLASS (gitg_window_parent_class)->delete_event != NULL) {
#line 1031 "gitg-window.c"
		GdkEventAny* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
#line 372 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = event;
#line 372 "/home/nacho/checkout/gnome/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 372 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		ret = _tmp1_;
#line 1040 "gitg-window.c"
	}
#line 375 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = ret;
#line 375 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp2_) {
#line 377 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 1048 "gitg-window.c"
	}
#line 380 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = ret;
#line 380 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1054 "gitg-window.c"
}


static void gitg_window_on_close_activated (GitgWindow* self) {
#line 383 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 385 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_close ((GtkWindow*) self);
#line 1063 "gitg-window.c"
}


static void gitg_window_on_search_activated (GitgWindow* self, GSimpleAction* action) {
	GtkToggleButton* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 388 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 388 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 390 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_search_button;
#line 390 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 390 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 390 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 1083 "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 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = action;
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_action_get_state ((GAction*) _tmp3_);
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_variant_get_boolean (_tmp5_);
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp5_);
#line 392 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		state = _tmp7_;
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = action;
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = state;
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = g_variant_new_boolean (!_tmp9_);
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_variant_ref_sink (_tmp10_);
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_simple_action_set_state (_tmp8_, _tmp11_);
#line 393 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_variant_unref0 (_tmp11_);
#line 1122 "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 397 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 397 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 399 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	state = _tmp4_;
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!state);
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 401 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 1167 "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 435 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 435 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (repository != NULL, NULL);
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = hint;
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_window_create_new (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GITG_TYPE_REPOSITORY, GitgRepository), _tmp3_);
#line 437 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	window = _tmp4_;
#line 438 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 440 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = (GitgExtApplication*) window;
#line 440 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1202 "gitg-window.c"
}


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


static void gitg_window_update_title (GitgWindow* self) {
	gchar* windowtitle = NULL;
	gchar* _tmp0_ = NULL;
	gchar* title = NULL;
	gchar* subtitle = NULL;
	GitgRepository* _tmp1_ = NULL;
	gboolean _tmp43_ = FALSE;
	GError * _inner_error_ = NULL;
#line 443 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 445 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = g_strdup ("gitg");
#line 445 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	windowtitle = _tmp0_;
#line 447 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	subtitle = NULL;
#line 449 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 449 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1238 "gitg-window.c"
		GFile* workdir = NULL;
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		gchar* head_name = NULL;
		const gchar* _tmp38_ = NULL;
#line 451 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 451 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_workdir ((GgitRepository*) _tmp2_);
#line 451 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		workdir = _tmp3_;
#line 453 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = workdir;
#line 453 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp4_ != NULL) {
#line 1255 "gitg-window.c"
			gchar* parent_path = NULL;
			GFile* _tmp5_ = NULL;
			GFile* _tmp6_ = NULL;
			GFile* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
			GitgRepository* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			GitgRepository* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp5_ = workdir;
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp6_ = g_file_get_parent (_tmp5_);
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp7_ = _tmp6_;
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp8_ = gitg_utils_replace_home_dir_with_tilde (_tmp7_);
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp9_ = _tmp8_;
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp7_);
#line 455 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			parent_path = _tmp9_;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp10_ = self->priv->d_repository;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp11_ = gitg_repository_get_name (_tmp10_);
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp12_ = _tmp11_;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp13_ = _tmp12_;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp14_ = string_to_string (_tmp13_);
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp15_ = parent_path;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp16_ = string_to_string (_tmp15_);
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp17_ = g_strconcat (_tmp14_, " (", _tmp16_, ")", NULL);
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			title = _tmp17_;
#line 457 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp13_);
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp18_ = self->priv->d_repository;
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp19_ = gitg_repository_get_name (_tmp18_);
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp20_ = _tmp19_;
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp20_;
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp22_ = string_to_string (_tmp21_);
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp23_ = g_strconcat (_tmp22_, " - gitg", NULL);
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			windowtitle = _tmp23_;
#line 458 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (_tmp21_);
#line 453 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (parent_path);
#line 1332 "gitg-window.c"
		} else {
			GitgRepository* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
			gchar* _tmp26_ = NULL;
#line 462 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_repository;
#line 462 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp25_ = gitg_repository_get_name (_tmp24_);
#line 462 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp26_ = _tmp25_;
#line 462 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 462 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			title = _tmp26_;
#line 1347 "gitg-window.c"
		}
#line 465 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		head_name = NULL;
#line 1351 "gitg-window.c"
		{
			GitgRef* head = NULL;
			GitgRepository* _tmp27_ = NULL;
			GitgRepository* _tmp28_ = NULL;
			GitgRepository* _tmp29_ = NULL;
			GitgRef* _tmp30_ = NULL;
			GitgRef* _tmp31_ = NULL;
			GitgRef* _tmp32_ = NULL;
			GitgParsedRefName* _tmp33_ = NULL;
			GitgParsedRefName* _tmp34_ = NULL;
			GitgParsedRefName* _tmp35_ = NULL;
			gchar* _tmp36_ = NULL;
			gchar* _tmp37_ = NULL;
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp27_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp28_ = _tmp27_;
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp29_ = _tmp28_;
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp30_ = gitg_repository_get_head (_tmp29_, &_inner_error_);
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp31_ = _tmp30_;
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp29_);
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			head = _tmp31_;
#line 469 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1381 "gitg-window.c"
				goto __catch108_g_error;
			}
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp32_ = head;
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp33_ = gitg_ref_get_parsed_name (_tmp32_);
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp34_ = _tmp33_;
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp35_ = _tmp34_;
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp36_ = gitg_parsed_ref_name_get_shortname (_tmp35_);
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp37_ = _tmp36_;
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			head_name = _tmp37_;
#line 470 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (_tmp35_);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 1404 "gitg-window.c"
		}
		goto __finally108;
		__catch108_g_error:
		{
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_inner_error_ = NULL;
#line 1413 "gitg-window.c"
		}
		__finally108:
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (head_name);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (workdir);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (title);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (windowtitle);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			g_clear_error (&_inner_error_);
#line 467 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			return;
#line 1434 "gitg-window.c"
		}
#line 474 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp38_ = head_name;
#line 474 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp38_ != NULL) {
#line 1440 "gitg-window.c"
			const gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
#line 476 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp39_ = head_name;
#line 476 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp40_ = g_markup_escape_text (_tmp39_, (gssize) -1);
#line 476 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (subtitle);
#line 476 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			subtitle = _tmp40_;
#line 1451 "gitg-window.c"
		}
#line 449 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (head_name);
#line 449 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (workdir);
#line 1457 "gitg-window.c"
	} else {
		const gchar* _tmp41_ = NULL;
		gchar* _tmp42_ = NULL;
#line 481 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp41_ = _ ("Projects");
#line 481 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp42_ = g_strdup (_tmp41_);
#line 481 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 481 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		title = _tmp42_;
#line 1469 "gitg-window.c"
	}
#line 484 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp43_ = gitg_platform_support_use_native_window_controls (NULL);
#line 484 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp43_) {
#line 1475 "gitg-window.c"
		GtkHeaderBar* _tmp44_ = NULL;
		const gchar* _tmp45_ = NULL;
		const gchar* _tmp46_ = NULL;
#line 486 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp44_ = self->priv->d_header_bar;
#line 486 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp45_ = subtitle;
#line 486 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp44_, _tmp45_);
#line 487 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp46_ = title;
#line 487 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp46_);
#line 1489 "gitg-window.c"
	} else {
		const gchar* _tmp47_ = NULL;
		GtkHeaderBar* _tmp48_ = NULL;
		const gchar* _tmp49_ = NULL;
		GtkHeaderBar* _tmp50_ = NULL;
		const gchar* _tmp51_ = NULL;
#line 491 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp47_ = windowtitle;
#line 491 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_title ((GtkWindow*) self, _tmp47_);
#line 492 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp48_ = self->priv->d_header_bar;
#line 492 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp49_ = title;
#line 492 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_title (_tmp48_, _tmp49_);
#line 493 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp50_ = self->priv->d_header_bar;
#line 493 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp51_ = subtitle;
#line 493 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_subtitle (_tmp50_, _tmp51_);
#line 1512 "gitg-window.c"
	}
#line 443 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (subtitle);
#line 443 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (title);
#line 443 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (windowtitle);
#line 1520 "gitg-window.c"
}


static void gitg_window_repository_changed (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgUIElements* _tmp26_ = NULL;
	GitgRepository* _tmp27_ = NULL;
	GitgWindowMode _tmp28_ = 0;
#line 497 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 499 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_update_title (self);
#line 500 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 500 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 502 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 502 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 1542 "gitg-window.c"
		GtkStack* _tmp2_ = NULL;
		GtkStack* _tmp3_ = NULL;
		GtkStack* _tmp4_ = NULL;
		GtkStackSwitcher* _tmp5_ = NULL;
		GtkButton* _tmp6_ = NULL;
		GtkButton* _tmp7_ = NULL;
		GtkButton* _tmp8_ = NULL;
		GitgDashView* _tmp9_ = NULL;
		GitgRepository* _tmp10_ = NULL;
		GitgRepositoryListBoxRow* _tmp11_ = NULL;
		GitgRepositoryListBoxRow* _tmp12_ = NULL;
		GtkMenuButton* _tmp13_ = NULL;
		GMenuModel* _tmp14_ = NULL;
		GtkMenuButton* _tmp15_ = NULL;
#line 504 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_ACTIVITY;
#line 506 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_main_stack;
#line 506 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp2_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
#line 507 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_main_stack;
#line 507 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_stack_activities;
#line 507 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp3_, (GtkWidget*) _tmp4_);
#line 508 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_activities_switcher;
#line 508 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 509 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_dash_button;
#line 509 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp6_);
#line 510 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = self->priv->d_clone_button;
#line 510 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp7_);
#line 511 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = self->priv->d_add_button;
#line 511 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp8_);
#line 512 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_dash_view;
#line 512 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository;
#line 512 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = gitg_dash_view_add_repository (_tmp9_, _tmp10_);
#line 512 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = _tmp11_;
#line 512 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp12_);
#line 513 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = self->priv->d_gear_menu;
#line 513 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = self->priv->d_activities_model;
#line 513 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp13_, _tmp14_);
#line 514 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = self->priv->d_gear_menu;
#line 514 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp15_);
#line 1605 "gitg-window.c"
	} else {
		GtkStack* _tmp16_ = NULL;
		GtkStack* _tmp17_ = NULL;
		GitgDashView* _tmp18_ = NULL;
		GtkStackSwitcher* _tmp19_ = NULL;
		GtkButton* _tmp20_ = NULL;
		GtkButton* _tmp21_ = NULL;
		GtkButton* _tmp22_ = NULL;
		GtkMenuButton* _tmp23_ = NULL;
		GMenuModel* _tmp24_ = NULL;
		GtkMenuButton* _tmp25_ = NULL;
#line 518 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_mode = GITG_WINDOW_MODE_DASH;
#line 520 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_main_stack;
#line 520 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_transition_type (_tmp16_, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
#line 521 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = self->priv->d_main_stack;
#line 521 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_dash_view;
#line 521 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_stack_set_visible_child (_tmp17_, (GtkWidget*) _tmp18_);
#line 522 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_activities_switcher;
#line 522 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp19_);
#line 523 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_dash_button;
#line 523 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp20_);
#line 524 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_clone_button;
#line 524 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp21_);
#line 525 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_add_button;
#line 525 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_show ((GtkWidget*) _tmp22_);
#line 526 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_gear_menu;
#line 526 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp24_ = self->priv->d_dash_model;
#line 526 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_menu_button_set_menu_model (_tmp23_, _tmp24_);
#line 527 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp25_ = self->priv->d_gear_menu;
#line 527 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp25_);
#line 1655 "gitg-window.c"
	}
#line 530 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = self->priv->d_activities;
#line 530 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_update (_tmp26_);
#line 532 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = self->priv->d_repository;
#line 532 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp27_ != NULL) {
#line 534 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_activate_default_activity (self);
#line 1667 "gitg-window.c"
	}
#line 537 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = self->priv->d_mode;
#line 537 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == GITG_WINDOW_MODE_DASH) {
#line 539 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_on_current_activity_changed (self);
#line 1675 "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 543 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 543 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 545 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 545 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = event;
#line 545 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_->new_window_state;
#line 545 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_settings_set_int (_tmp0_, "state", (gint) _tmp2_);
#line 546 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = event;
#line 546 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = GTK_WIDGET_CLASS (gitg_window_parent_class)->window_state_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp3_);
#line 546 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp4_;
#line 546 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1708 "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 549 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 549 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_realized ((GtkWidget*) self);
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_) {
#line 1727 "gitg-window.c"
		GdkWindow* _tmp2_ = NULL;
		GdkWindowState _tmp3_ = 0;
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gtk_widget_get_window ((GtkWidget*) self);
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = gdk_window_get_state (_tmp2_);
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = !((_tmp3_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED);
#line 1736 "gitg-window.c"
	} else {
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 1740 "gitg-window.c"
	}
#line 551 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 1744 "gitg-window.c"
		GSettings* _tmp4_ = NULL;
		GdkEventConfigure* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		GdkEventConfigure* _tmp7_ = NULL;
		gint _tmp8_ = 0;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_state_settings;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = event;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_->width;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = event;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_->height;
#line 553 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_settings_set (_tmp4_, "size", "(ii)", _tmp6_, _tmp8_);
#line 1762 "gitg-window.c"
	}
#line 556 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = event;
#line 556 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = GTK_WIDGET_CLASS (gitg_window_parent_class)->configure_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), _tmp9_);
#line 556 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp10_;
#line 556 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1772 "gitg-window.c"
}


static GitgExtExternalChangeHint gitg_window_external_change_hint_from_file (GitgWindow* self, GFile* location) {
	GitgExtExternalChangeHint result = 0;
	GFile* l = NULL;
	GitgRepository* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* refs = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* index = NULL;
	GFile* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
	GFile* head = NULL;
	GFile* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
	GFile* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	gboolean _tmp12_ = FALSE;
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, 0);
#line 561 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository;
#line 561 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = ggit_repository_get_location ((GgitRepository*) _tmp0_);
#line 561 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	l = _tmp1_;
#line 563 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = l;
#line 563 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_file_get_child (_tmp2_, "refs");
#line 563 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	refs = _tmp3_;
#line 564 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = l;
#line 564 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = g_file_get_child (_tmp4_, "index");
#line 564 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	index = _tmp5_;
#line 565 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = l;
#line 565 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = g_file_get_child (_tmp6_, "HEAD");
#line 565 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	head = _tmp7_;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = location;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = refs;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = g_file_equal (_tmp10_, _tmp11_);
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp12_) {
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = TRUE;
#line 1833 "gitg-window.c"
	} else {
		GFile* _tmp13_ = NULL;
		GFile* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = location;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = refs;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_file_has_prefix (_tmp13_, _tmp14_);
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp15_;
#line 1846 "gitg-window.c"
	}
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp9_) {
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = TRUE;
#line 1852 "gitg-window.c"
	} else {
		GFile* _tmp16_ = NULL;
		GFile* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = location;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = head;
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = g_file_equal (_tmp16_, _tmp17_);
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp18_;
#line 1865 "gitg-window.c"
	}
#line 567 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_) {
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = GITG_EXT_EXTERNAL_CHANGE_HINT_REFS;
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (head);
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (index);
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (refs);
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (l);
#line 569 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 1881 "gitg-window.c"
	} else {
		GFile* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		gboolean _tmp21_ = FALSE;
#line 571 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = location;
#line 571 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = index;
#line 571 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp21_ = g_file_equal (_tmp19_, _tmp20_);
#line 571 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_INDEX;
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 573 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 1906 "gitg-window.c"
		} else {
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			result = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (head);
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (index);
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (refs);
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (l);
#line 577 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 1920 "gitg-window.c"
		}
	}
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (head);
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (index);
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (refs);
#line 559 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (l);
#line 1931 "gitg-window.c"
}


static gboolean gitg_window_filter_repository_changes (GitgWindow* self, GFile* location) {
	gboolean result = FALSE;
	GFile* _tmp0_ = NULL;
	GitgExtExternalChangeHint _tmp1_ = 0;
#line 582 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 582 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (location != NULL, FALSE);
#line 584 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = location;
#line 584 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_external_change_hint_from_file (self, _tmp0_);
#line 584 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp1_ != GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 584 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 1951 "gitg-window.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 595 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return self ? g_object_ref (self) : NULL;
#line 1958 "gitg-window.c"
}


static void gitg_window_set_repository_internal (GitgWindow* self, GitgRepository* repository) {
	GitgRecursiveMonitor* _tmp0_ = NULL;
	GitgRepository* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRemoteManager* _tmp5_ = NULL;
#line 587 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 589 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 589 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 1974 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 591 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 591 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 592 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 592 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 1984 "gitg-window.c"
	}
#line 595 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = repository;
#line 595 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 595 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_repository);
#line 595 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_repository = _tmp3_;
#line 597 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_repository;
#line 597 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 599 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_update_enable_monitoring (self);
#line 2000 "gitg-window.c"
	}
#line 602 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_remote_manager_new (self);
#line 602 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_remote_manager);
#line 602 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_remote_manager = _tmp5_;
#line 603 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "repository");
#line 2010 "gitg-window.c"
}


static gboolean _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func (GFile* file, gpointer self) {
	gboolean result;
	result = gitg_window_filter_repository_changes ((GitgWindow*) self, file);
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2019 "gitg-window.c"
}


static void ___lambda92_ (GitgWindow* self, GFile** files, int files_length1) {
	GitgExtExternalChangeHint hint = 0;
	GFile** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgExtExternalChangeHint _tmp5_ = 0;
#line 634 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	hint = GITG_EXT_EXTERNAL_CHANGE_HINT_NONE;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = files;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0__length1 = files_length1;
#line 2034 "gitg-window.c"
	{
		GFile** f_collection = NULL;
		gint f_collection_length1 = 0;
		gint _f_collection_size_ = 0;
		gint f_it = 0;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		f_collection = _tmp0_;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		f_collection_length1 = _tmp0__length1;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		for (f_it = 0; f_it < _tmp0__length1; f_it = f_it + 1) {
#line 2046 "gitg-window.c"
			GFile* _tmp1_ = NULL;
			GFile* f = NULL;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp1_ = _g_object_ref0 (f_collection[f_it]);
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			f = _tmp1_;
#line 2053 "gitg-window.c"
			{
				GitgExtExternalChangeHint _tmp2_ = 0;
				GFile* _tmp3_ = NULL;
				GitgExtExternalChangeHint _tmp4_ = 0;
#line 638 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp2_ = hint;
#line 638 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp3_ = f;
#line 638 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp4_ = gitg_window_external_change_hint_from_file (self, _tmp3_);
#line 638 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				hint = _tmp2_ | _tmp4_;
#line 636 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (f);
#line 2068 "gitg-window.c"
			}
		}
	}
#line 641 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = hint;
#line 641 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name ((GitgExtApplication*) self, "repository-changed-externally", _tmp5_);
#line 2076 "gitg-window.c"
}


static void ____lambda92__gitg_recursive_monitor_changed (GitgRecursiveMonitor* _sender, GFile** files, int files_length1, gpointer self) {
#line 633 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	___lambda92_ ((GitgWindow*) self, files, files_length1);
#line 2083 "gitg-window.c"
}


static void gitg_window_update_enable_monitoring (GitgWindow* self) {
	GitgRecursiveMonitor* _tmp0_ = NULL;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
#line 622 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 624 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_repository_monitor;
#line 624 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 2098 "gitg-window.c"
		GitgRecursiveMonitor* _tmp1_ = NULL;
#line 626 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository_monitor;
#line 626 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_recursive_monitor_cancel (_tmp1_);
#line 627 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 627 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = NULL;
#line 2108 "gitg-window.c"
	}
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_window_get_enable_monitoring (self);
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2116 "gitg-window.c"
		GitgRepository* _tmp5_ = NULL;
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_repository;
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp5_ != NULL;
#line 2122 "gitg-window.c"
	} else {
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = FALSE;
#line 2126 "gitg-window.c"
	}
#line 630 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 2130 "gitg-window.c"
		GitgRepository* _tmp6_ = NULL;
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GitgRecursiveMonitor* _tmp9_ = NULL;
		GitgRecursiveMonitor* _tmp10_ = NULL;
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_repository;
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = ggit_repository_get_location ((GgitRepository*) _tmp6_);
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = gitg_recursive_monitor_new (_tmp8_, _gitg_window_filter_repository_changes_gitg_recursive_monitor_filter_func, g_object_ref (self), g_object_unref);
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_repository_monitor);
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_repository_monitor = _tmp9_;
#line 632 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp8_);
#line 633 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = self->priv->d_repository_monitor;
#line 633 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_signal_connect_object (_tmp10_, "changed", (GCallback) ____lambda92__gitg_recursive_monitor_changed, self, 0);
#line 2154 "gitg-window.c"
	}
}


static void gitg_window_on_reload_activated (GitgWindow* self) {
	GError * _inner_error_ = NULL;
#line 646 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 2163 "gitg-window.c"
	{
		GitgRepository* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgRepository* _tmp7_ = NULL;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = ggit_repository_get_location ((GgitRepository*) _tmp3_);
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = gitg_repository_new (_tmp5_, NULL, &_inner_error_);
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp6_;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp5_);
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp7_;
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2195 "gitg-window.c"
			goto __catch109_g_error;
		}
#line 650 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (self, _tmp0_);
#line 651 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_update_title (self);
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2204 "gitg-window.c"
	}
	goto __finally109;
	__catch109_g_error:
	{
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 2213 "gitg-window.c"
	}
	__finally109:
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 648 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2224 "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 656 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 658 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	repo_config = NULL;
#line 2245 "gitg-window.c"
	{
		GgitConfig* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GgitConfig* _tmp2_ = NULL;
		GgitConfig* _tmp3_ = NULL;
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_repository;
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp2_;
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2259 "gitg-window.c"
			goto __catch110_g_error;
		}
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp0_;
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 662 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		repo_config = _tmp3_;
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 2272 "gitg-window.c"
	}
	goto __finally110;
	__catch110_g_error:
	{
		GError* e = NULL;
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 666 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 666 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 666 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2288 "gitg-window.c"
	}
	__finally110:
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo_config);
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 660 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 2301 "gitg-window.c"
	}
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = repo_config;
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = self->priv->d_repository;
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_repository_get_name (_tmp5_);
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_author_details_dialog_new ((GtkWindow*) self, _tmp4_, _tmp8_);
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp9_);
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp8_);
#line 669 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	author_details = _tmp10_;
#line 670 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = author_details;
#line 670 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 656 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (author_details);
#line 656 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo_config);
#line 2331 "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 673 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 675 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject*) self, "current_activity");
#line 677 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 677 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 677 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	current = _tmp1_;
#line 679 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = current;
#line 679 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp2_) : NULL);
#line 679 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp3_;
#line 681 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 681 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_searchable_available_binding = NULL;
#line 683 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = searchable;
#line 683 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_ != NULL) {
#line 2373 "gitg-window.c"
		GtkToggleButton* _tmp5_ = NULL;
		GtkSearchEntry* _tmp6_ = NULL;
		GitgExtSearchable* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GtkToggleButton* _tmp11_ = NULL;
		GitgExtSearchable* _tmp12_ = NULL;
		gboolean _tmp13_ = FALSE;
		gboolean _tmp14_ = FALSE;
		GitgExtSearchable* _tmp15_ = NULL;
		GtkToggleButton* _tmp16_ = NULL;
		GBinding* _tmp17_ = NULL;
		GBinding* _tmp18_ = NULL;
#line 685 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_search_button;
#line 685 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = self->priv->d_search_entry;
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = searchable;
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = gitg_ext_searchable_get_search_text (_tmp7_);
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp8_;
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp9_;
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp6_, _tmp10_);
#line 686 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp10_);
#line 687 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = self->priv->d_search_button;
#line 687 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = searchable;
#line 687 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = gitg_ext_searchable_get_search_visible (_tmp12_);
#line 687 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = _tmp13_;
#line 687 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp11_, _tmp14_);
#line 689 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = searchable;
#line 689 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = self->priv->d_search_button;
#line 689 "/home/nacho/checkout/gnome/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 689 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = _g_object_ref0 (_tmp17_);
#line 689 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_searchable_available_binding);
#line 689 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_searchable_available_binding = _tmp18_;
#line 2428 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp19_ = NULL;
		GtkToggleButton* _tmp20_ = NULL;
		GtkToggleButton* _tmp21_ = NULL;
		GtkSearchEntry* _tmp22_ = NULL;
#line 697 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = self->priv->d_search_button;
#line 697 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp19_, FALSE);
#line 698 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = self->priv->d_search_button;
#line 698 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp20_, FALSE);
#line 699 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp21_ = self->priv->d_search_button;
#line 699 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp21_, FALSE);
#line 700 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = self->priv->d_search_entry;
#line 700 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_entry_set_text ((GtkEntry*) _tmp22_, "");
#line 2450 "gitg-window.c"
	}
#line 703 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = current;
#line 703 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp23_) : NULL);
#line 703 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	selectable = _tmp24_;
#line 704 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_select_button;
#line 704 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = selectable;
#line 704 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp25_, _tmp26_ != NULL);
#line 706 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 706 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode_binding = NULL;
#line 707 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 707 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_available_binding = NULL;
#line 709 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = selectable;
#line 709 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp27_ != NULL) {
#line 2476 "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 711 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp28_ = selectable;
#line 711 "/home/nacho/checkout/gnome/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 711 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp30_ = _g_object_ref0 (_tmp29_);
#line 711 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_mode_binding);
#line 711 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_mode_binding = _tmp30_;
#line 716 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = selectable;
#line 716 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp32_ = self->priv->d_select_button;
#line 716 "/home/nacho/checkout/gnome/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 716 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp34_ = _g_object_ref0 (_tmp33_);
#line 716 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_selectable_available_binding);
#line 716 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_selectable_available_binding = _tmp34_;
#line 2506 "gitg-window.c"
	} else {
		GtkToggleButton* _tmp35_ = NULL;
		GtkToggleButton* _tmp36_ = NULL;
#line 724 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp35_ = self->priv->d_select_button;
#line 724 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_toggle_button_set_active (_tmp35_, FALSE);
#line 725 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp36_ = self->priv->d_select_button;
#line 725 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp36_, FALSE);
#line 2518 "gitg-window.c"
	}
#line 673 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 673 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 673 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (current);
#line 2526 "gitg-window.c"
}


static Block67Data* block67_data_ref (Block67Data* _data67_) {
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data67_->_ref_count_);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data67_;
#line 2535 "gitg-window.c"
}


static void block67_data_unref (void * _userdata_) {
	Block67Data* _data67_;
	_data67_ = (Block67Data*) _userdata_;
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data67_->_ref_count_)) {
#line 2544 "gitg-window.c"
		GitgWindow* self;
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self = _data67_->self;
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block67Data, _data67_);
#line 2556 "gitg-window.c"
	}
}


static gboolean __lambda108_ (Block67Data* _data67_, GitgExtUIElement* element) {
	GitgWindow* self;
	gboolean result = FALSE;
	GitgExtActivity* activity = NULL;
	GitgExtUIElement* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 744 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data67_->self;
#line 744 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 745 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 745 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 745 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 747 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 747 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = _data67_->default_activity;
#line 747 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_ext_activity_is_default_for (_tmp2_, _tmp3_);
#line 747 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_) {
#line 2588 "gitg-window.c"
		GitgExtActivity* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 749 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 749 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 749 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data67_->def);
#line 749 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data67_->def = _tmp6_;
#line 2599 "gitg-window.c"
	}
#line 752 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 752 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 752 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2607 "gitg-window.c"
}


static gboolean ___lambda108__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = __lambda108_ (self, element);
#line 744 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2616 "gitg-window.c"
}


static gboolean gitg_window_activate_activity (GitgWindow* self, const gchar* action) {
	gboolean result = FALSE;
	Block67Data* _data67_;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	GitgUIElements* _tmp7_ = NULL;
	GitgExtActivity* _tmp8_ = NULL;
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data67_ = g_slice_new0 (Block67Data);
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data67_->_ref_count_ = 1;
#line 729 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data67_->self = g_object_ref (self);
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = action;
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == NULL) {
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = TRUE;
#line 2641 "gitg-window.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = action;
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = g_strcmp0 (_tmp2_, "") == 0;
#line 2648 "gitg-window.c"
	}
#line 733 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 2652 "gitg-window.c"
		GSettings* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 735 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_interface_settings;
#line 735 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = g_settings_get_string (_tmp3_, "default-activity");
#line 735 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 735 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp4_;
#line 2663 "gitg-window.c"
	} else {
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 739 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = action;
#line 739 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_strdup (_tmp5_);
#line 739 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data67_->default_activity);
#line 739 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data67_->default_activity = _tmp6_;
#line 2675 "gitg-window.c"
	}
#line 742 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data67_->def = NULL;
#line 744 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_activities;
#line 744 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_foreach (_tmp7_, ___lambda108__gitg_ui_elements_foreach_ui_element_func, _data67_);
#line 755 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _data67_->def;
#line 755 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_ != NULL) {
#line 2687 "gitg-window.c"
		GitgUIElements* _tmp9_ = NULL;
		GitgExtActivity* _tmp10_ = NULL;
#line 757 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = self->priv->d_activities;
#line 757 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _data67_->def;
#line 757 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp9_, _tmp10_);
#line 758 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = TRUE;
#line 758 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		block67_data_unref (_data67_);
#line 758 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data67_ = NULL;
#line 758 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 2704 "gitg-window.c"
	}
#line 761 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 761 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	block67_data_unref (_data67_);
#line 761 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data67_ = NULL;
#line 761 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2714 "gitg-window.c"
}


static gboolean ___lambda109_ (GitgWindow* self, GitgExtUIElement* element) {
	gboolean result = FALSE;
	GitgExtActivity* activity = NULL;
	GitgExtUIElement* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtActivity* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 768 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (element != NULL, FALSE);
#line 769 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = element;
#line 769 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GITG_EXT_TYPE_ACTIVITY, GitgExtActivity));
#line 769 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	activity = _tmp1_;
#line 771 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = activity;
#line 771 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_activity_is_default_for (_tmp2_, "");
#line 771 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 2739 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 773 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 773 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = activity;
#line 773 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 774 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 774 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (activity);
#line 774 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 2754 "gitg-window.c"
	}
#line 777 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 777 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (activity);
#line 777 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2762 "gitg-window.c"
}


static gboolean ____lambda109__gitg_ui_elements_foreach_ui_element_func (GitgExtUIElement* element, gpointer self) {
	gboolean result;
	result = ___lambda109_ ((GitgWindow*) self, element);
#line 768 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2771 "gitg-window.c"
}


static void gitg_window_activate_default_activity (GitgWindow* self) {
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 764 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 766 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_action;
#line 766 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gitg_window_activate_activity (self, _tmp0_);
#line 766 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp1_) {
#line 2786 "gitg-window.c"
		GitgUIElements* _tmp2_ = NULL;
#line 768 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_activities;
#line 768 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_foreach (_tmp2_, ____lambda109__gitg_ui_elements_foreach_ui_element_func, self);
#line 2792 "gitg-window.c"
	}
}


static void _gitg_window_on_current_activity_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 808 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_on_current_activity_changed ((GitgWindow*) self);
#line 2800 "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 782 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 785 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
#line 785 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 785 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_TYPE_APPLICATION) ? ((GitgApplication*) _tmp1_) : NULL);
#line 785 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	app = _tmp2_;
#line 786 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = app;
#line 786 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = gitg_application_get_state_settings (_tmp3_);
#line 786 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = _tmp4_;
#line 786 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 786 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_state_settings = _tmp5_;
#line 789 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = gitg_ext_message_bus_new ();
#line 789 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_message_bus);
#line 789 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_message_bus = _tmp6_;
#line 792 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_plugins_engine_get_default ();
#line 792 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	engine = _tmp7_;
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = gitg_history_activity_new ((GitgExtApplication*) self);
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = gitg_commit_activity_new ((GitgExtApplication*) self);
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = g_new0 (GitgExtActivity*, 2 + 1);
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_[0] = (GitgExtActivity*) _tmp8_;
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_[1] = (GitgExtActivity*) _tmp9_;
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	builtins = _tmp10_;
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	builtins_length1 = 2;
#line 794 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_builtins_size_ = builtins_length1;
#line 799 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = engine;
#line 799 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = peas_extension_set_new ((PeasEngine*) _tmp11_, GITG_EXT_TYPE_ACTIVITY, "application", self, NULL);
#line 799 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	extset = _tmp12_;
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = builtins;
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13__length1 = builtins_length1;
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = extset;
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp15_ = self->priv->d_stack_activities;
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp16_ = gitg_ui_elements_new_with_builtin (GITG_EXT_TYPE_ACTIVITY, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp13_, _tmp13__length1, _tmp14_, _tmp15_);
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities);
#line 804 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_activities = _tmp16_;
#line 808 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_activities;
#line 808 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_object ((GObject*) _tmp17_, "notify::current", (GCallback) _gitg_window_on_current_activity_changed_g_object_notify, self, 0);
#line 811 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = self->priv->d_state_settings;
#line 811 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_settings_get_int (_tmp18_, "state");
#line 811 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	window_state = (GdkWindowState) _tmp19_;
#line 813 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = window_state;
#line 813 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if ((_tmp20_ & GDK_WINDOW_STATE_MAXIMIZED) == GDK_WINDOW_STATE_MAXIMIZED) {
#line 815 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_maximize ((GtkWindow*) self);
#line 2921 "gitg-window.c"
	}
#line 821 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = self->priv->d_state_settings;
#line 821 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_settings_get (_tmp21_, "size", "(ii)", &width, &height);
#line 822 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_resize ((GtkWindow*) self, width, height);
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (extset);
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	builtins = (_vala_array_free (builtins, builtins_length1, (GDestroyNotify) g_object_unref), NULL);
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (engine);
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (app);
#line 824 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 2941 "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 827 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 829 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 829 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 829 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp0_;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = environment;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1__length1 = environment_length1;
#line 2961 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e_collection = _tmp1_;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _tmp1__length1;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) {
#line 2973 "gitg-window.c"
			gchar* _tmp2_ = NULL;
			gchar* e = NULL;
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp2_ = g_strdup (e_collection[e_it]);
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			e = _tmp2_;
#line 2980 "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 833 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp3_ = e;
#line 833 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "=", 2);
#line 833 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				parts = _tmp5_;
#line 833 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				parts_length1 = _vala_array_length (_tmp4_);
#line 833 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_parts_size_ = parts_length1;
#line 835 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp6_ = parts;
#line 835 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp6__length1 = parts_length1;
#line 835 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				if (_tmp6__length1 == 1) {
#line 3006 "gitg-window.c"
					GeeHashMap* _tmp7_ = NULL;
					gchar** _tmp8_ = NULL;
					gint _tmp8__length1 = 0;
					const gchar* _tmp9_ = NULL;
#line 837 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp7_ = self->priv->d_environment;
#line 837 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp8_ = parts;
#line 837 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp8__length1 = parts_length1;
#line 837 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp9_ = _tmp8_[0];
#line 837 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, _tmp9_, "");
#line 3021 "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 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp10_ = self->priv->d_environment;
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp11_ = parts;
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp11__length1 = parts_length1;
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp12_ = _tmp11_[0];
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp13_ = parts;
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp13__length1 = parts_length1;
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp14_ = _tmp13_[1];
#line 841 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, _tmp12_, _tmp14_);
#line 3046 "gitg-window.c"
				}
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 831 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 3052 "gitg-window.c"
			}
		}
	}
}


GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action) {
	GitgWindow* result = NULL;
	GitgWindow* ret = NULL;
	GitgWindow* _tmp0_ = NULL;
	GitgWindow* _tmp1_ = NULL;
	GitgWindow* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 846 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (app != NULL, NULL);
#line 850 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_window_new ();
#line 850 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp0_);
#line 850 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	ret = _tmp0_;
#line 852 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = ret;
#line 852 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3078 "gitg-window.c"
		GitgWindow* _tmp2_ = NULL;
		GtkApplication* _tmp3_ = NULL;
		GitgWindow* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgWindow* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
#line 854 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = ret;
#line 854 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = app;
#line 854 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_application ((GtkWindow*) _tmp2_, _tmp3_);
#line 855 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = ret;
#line 855 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = repository;
#line 855 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_repository_internal (_tmp4_, _tmp5_);
#line 856 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = ret;
#line 856 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = action;
#line 856 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = g_strdup (_tmp7_);
#line 856 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_tmp6_->priv->d_action);
#line 856 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_->priv->d_action = _tmp8_;
#line 3108 "gitg-window.c"
	}
	{
		GitgWindow* _tmp9_ = NULL;
#line 861 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = ret;
#line 861 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_initable_init (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_INITABLE, GInitable), NULL, &_inner_error_);
#line 861 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3118 "gitg-window.c"
			goto __catch111_g_error;
		}
	}
	goto __finally111;
	__catch111_g_error:
	{
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3129 "gitg-window.c"
	}
	__finally111:
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (ret);
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 859 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return NULL;
#line 3142 "gitg-window.c"
	}
#line 864 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = ret;
#line 864 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (_tmp10_);
#line 865 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = ret;
#line 865 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3152 "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 869 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 869 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 871 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 871 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 871 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 871 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	v = (GitgExtActivity*) _tmp2_;
#line 873 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = v;
#line 873 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != NULL) {
#line 3184 "gitg-window.c"
		GitgUIElements* _tmp4_ = NULL;
		GitgExtActivity* _tmp5_ = NULL;
#line 875 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_activities;
#line 875 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = v;
#line 875 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ui_elements_set_current (_tmp4_, _tmp5_);
#line 3193 "gitg-window.c"
	}
#line 878 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_activities;
#line 878 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ui_elements_get_current (_tmp6_);
#line 878 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 878 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = v;
#line 878 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (((GitgExtActivity*) _tmp8_) == _tmp9_) {
#line 880 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = v;
#line 880 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 3209 "gitg-window.c"
	} else {
#line 884 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 884 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (v);
#line 884 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 3217 "gitg-window.c"
	}
#line 869 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (v);
#line 3221 "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 888 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 888 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 890 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_activities;
#line 890 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = id;
#line 890 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = gitg_ui_elements_lookup (_tmp0_, _tmp1_);
#line 890 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = (GitgExtActivity*) _tmp2_;
#line 890 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3245 "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 893 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 893 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (path != NULL);
#line 896 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	repository = NULL;
#line 898 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_repository;
#line 898 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 3267 "gitg-window.c"
		GitgRepository* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		GFile* _tmp4_ = NULL;
		GFile* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_repository;
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = ggit_repository_get_location ((GgitRepository*) _tmp2_);
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _tmp3_;
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = path;
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = g_file_equal (_tmp4_, _tmp5_);
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp6_;
#line 899 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp4_);
#line 3287 "gitg-window.c"
	} else {
#line 898 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = FALSE;
#line 3291 "gitg-window.c"
	}
#line 898 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 901 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 901 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 901 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3301 "gitg-window.c"
	}
	{
		GFile* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* _tmp9_ = NULL;
		GFile* _tmp10_ = NULL;
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = path;
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = ggit_repository_discover (_tmp8_, &_inner_error_);
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = _tmp9_;
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3316 "gitg-window.c"
			goto __catch112_g_error;
		}
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = _tmp7_;
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = NULL;
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 906 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		repo = _tmp10_;
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp7_);
#line 3329 "gitg-window.c"
	}
	goto __finally112;
	__catch112_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 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e = _inner_error_;
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 910 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = path;
#line 910 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_file_get_basename (_tmp11_);
#line 910 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		repo_name = _tmp12_;
#line 912 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = _ ("'%s' is not a Git repository.");
#line 912 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = repo_name;
#line 912 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup_printf (_tmp13_, _tmp14_);
#line 912 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		title = _tmp15_;
#line 913 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = title;
#line 913 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = e;
#line 913 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp17_->message;
#line 913 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp16_, _tmp18_, GTK_MESSAGE_WARNING);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (title);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (repo_name);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_error_free0 (e);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 915 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3383 "gitg-window.c"
	}
	__finally112:
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 904 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3398 "gitg-window.c"
	}
	{
		GitgRepository* _tmp19_ = NULL;
		GFile* _tmp20_ = NULL;
		GitgRepository* _tmp21_ = NULL;
		GitgRepository* _tmp22_ = NULL;
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = repo;
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp21_ = gitg_repository_new (_tmp20_, NULL, &_inner_error_);
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = _tmp21_;
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3413 "gitg-window.c"
			goto __catch113_g_error;
		}
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = _tmp19_;
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp19_ = NULL;
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 920 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		repository = _tmp22_;
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp19_);
#line 3426 "gitg-window.c"
	}
	goto __finally113;
	__catch113_g_error:
	{
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 3435 "gitg-window.c"
	}
	__finally113:
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repository);
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (repo);
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 918 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 3450 "gitg-window.c"
	}
#line 924 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = repository;
#line 924 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_set_repository ((GitgExtApplication*) self, _tmp23_);
#line 893 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repository);
#line 893 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (repo);
#line 3460 "gitg-window.c"
}


static Block68Data* block68_data_ref (Block68Data* _data68_) {
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data68_->_ref_count_);
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data68_;
#line 3469 "gitg-window.c"
}


static void block68_data_unref (void * _userdata_) {
	Block68Data* _data68_;
	_data68_ = (Block68Data*) _userdata_;
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data68_->_ref_count_)) {
#line 3478 "gitg-window.c"
		GitgWindow* self;
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self = _data68_->self;
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->title);
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (_data68_->message);
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 927 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block68Data, _data68_);
#line 3490 "gitg-window.c"
	}
}


static gboolean __lambda160_ (Block68Data* _data68_) {
	GitgWindow* self;
	gboolean result = FALSE;
	gchar* primary = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* secondary = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	GtkLabel* _tmp10_ = NULL;
	GtkLabel* _tmp11_ = NULL;
	GtkInfoBar* _tmp12_ = NULL;
	GtkMessageType _tmp13_ = 0;
	GtkInfoBar* _tmp14_ = NULL;
#line 931 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data68_->self;
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data68_->title;
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_markup_escape_text (_tmp0_, (gssize) -1);
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_strdup_printf ("<b>%s</b>", _tmp2_);
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp2_);
#line 932 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	primary = _tmp4_;
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = _data68_->message;
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_markup_escape_text (_tmp5_, (gssize) -1);
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_strdup_printf ("<small>%s</small>", _tmp7_);
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = _tmp8_;
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp7_);
#line 933 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	secondary = _tmp9_;
#line 935 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_infobar_primary_label;
#line 935 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp10_, primary);
#line 936 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = self->priv->d_infobar_secondary_label;
#line 936 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_label_set_label (_tmp11_, secondary);
#line 937 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = self->priv->d_infobar;
#line 937 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data68_->type;
#line 937 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_info_bar_set_message_type (_tmp12_, _tmp13_);
#line 939 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = self->priv->d_infobar;
#line 939 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp14_);
#line 940 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = FALSE;
#line 940 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (secondary);
#line 940 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 940 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3571 "gitg-window.c"
}


static gboolean ___lambda160__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda160_ (self);
#line 931 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3580 "gitg-window.c"
}


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


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


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


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


static Block69Data* block69_data_ref (Block69Data* _data69_) {
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data69_->_ref_count_);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data69_;
#line 3697 "gitg-window.c"
}


static void block69_data_unref (void * _userdata_) {
	Block69Data* _data69_;
	_data69_ = (Block69Data*) _userdata_;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data69_->_ref_count_)) {
#line 3706 "gitg-window.c"
		GitgWindow* self;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self = _data69_->self;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		(_data69_->cb_target_destroy_notify == NULL) ? NULL : (_data69_->cb_target_destroy_notify (_data69_->cb_target), NULL);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data69_->cb = NULL;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data69_->cb_target = NULL;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_data69_->cb_target_destroy_notify = NULL;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block69Data, _data69_);
#line 3722 "gitg-window.c"
	}
}


static gboolean _gitg_window_real_user_query_async_co_gsource_func (gpointer self) {
	gboolean result;
	result = gitg_window_real_user_query_async_co (self);
#line 946 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3732 "gitg-window.c"
}


static gboolean __lambda161_ (Block69Data* _data69_, GtkResponseType response) {
	GitgWindow* self;
	gboolean result = FALSE;
	GtkResponseType _tmp0_ = 0;
	GSourceFunc _tmp1_ = NULL;
	void* _tmp1__target = NULL;
	GDestroyNotify _tmp1__target_destroy_notify = NULL;
#line 949 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data69_->self;
#line 950 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = response;
#line 950 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data69_->retval = _tmp0_;
#line 952 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data69_->cb;
#line 952 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1__target = _data69_->cb_target;
#line 952 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1__target_destroy_notify = _data69_->cb_target_destroy_notify;
#line 952 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data69_->cb_target_destroy_notify = NULL;
#line 952 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify);
#line 953 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 953 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3763 "gitg-window.c"
}


static gboolean ___lambda161__gitg_ext_user_query_response (GitgExtUserQuery* _sender, GtkResponseType response_type, gpointer self) {
	gboolean result;
	result = __lambda161_ (self, response_type);
#line 949 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 3772 "gitg-window.c"
}


static gboolean gitg_window_real_user_query_async_co (GitgWindowUserQueryAsyncData* _data_) {
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	switch (_data_->_state_) {
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		case 0:
#line 3781 "gitg-window.c"
		goto _state_0;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		case 1:
#line 3785 "gitg-window.c"
		goto _state_1;
		default:
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_assert_not_reached ();
#line 3790 "gitg-window.c"
	}
	_state_0:
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = g_slice_new0 (Block69Data);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_ref_count_ = 1;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->self = g_object_ref (_data_->self);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->_async_data_ = _data_;
#line 946 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb = _gitg_window_real_user_query_async_co_gsource_func;
#line 946 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target = _data_;
#line 946 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->cb_target_destroy_notify = NULL;
#line 947 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_->retval = 0;
#line 949 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = NULL;
#line 949 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_tmp0_ = _data_->query;
#line 949 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data (_data_->_tmp0_, "response", (GCallback) ___lambda161__gitg_ext_user_query_response, block69_data_ref (_data_->_data69_), (GClosureNotify) block69_data_unref, 0);
#line 956 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = NULL;
#line 956 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_tmp1_ = _data_->query;
#line 956 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_application_user_query ((GitgExtApplication*) _data_->self, _data_->_tmp1_);
#line 958 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_state_ = 1;
#line 958 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 3825 "gitg-window.c"
	_state_1:
	;
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->result = _data_->_data69_->retval;
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3838 "gitg-window.c"
	} else {
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3842 "gitg-window.c"
	}
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 960 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	block69_data_unref (_data_->_data69_);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data_->_data69_ = NULL;
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_data_->_state_ == 0) {
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3856 "gitg-window.c"
	} else {
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3860 "gitg-window.c"
	}
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_unref (_data_->_async_result);
#line 944 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return FALSE;
#line 3866 "gitg-window.c"
}


static Block70Data* block70_data_ref (Block70Data* _data70_) {
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data70_->_ref_count_);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data70_;
#line 3875 "gitg-window.c"
}


static void block70_data_unref (void * _userdata_) {
	Block70Data* _data70_;
	_data70_ = (Block70Data*) _userdata_;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (g_atomic_int_dec_and_test (&_data70_->_ref_count_)) {
#line 3884 "gitg-window.c"
		GitgWindow* self;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self = _data70_->self;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data70_->dlg);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_data70_->query);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_slice_free (Block70Data, _data70_);
#line 3896 "gitg-window.c"
	}
}


static void __lambda162_ (Block70Data* _data70_) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gulong _tmp2_ = 0UL;
#line 1008 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data70_->self;
#line 1009 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data70_->dlg;
#line 1009 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 1010 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data70_->query;
#line 1010 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data70_->qid;
#line 1010 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 3918 "gitg-window.c"
}


static void ___lambda162__gitg_ext_user_query_quit (GitgExtUserQuery* _sender, gpointer self) {
#line 1008 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	__lambda162_ (self);
#line 3925 "gitg-window.c"
}


static void __lambda163_ (Block70Data* _data70_, GtkDialog* w, gint r) {
	GitgWindow* self;
	GtkMessageDialog* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
#line 1013 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = _data70_->self;
#line 1013 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 1014 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = _data70_->dlg;
#line 1014 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, FALSE);
#line 1016 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _data70_->query;
#line 1016 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = r;
#line 1016 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_emit_by_name (_tmp1_, "response", (GtkResponseType) _tmp2_, &_tmp3_);
#line 1016 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 3951 "gitg-window.c"
		GtkMessageDialog* _tmp4_ = NULL;
		GitgExtUserQuery* _tmp5_ = NULL;
		gulong _tmp6_ = 0UL;
#line 1018 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _data70_->dlg;
#line 1018 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 1019 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _data70_->query;
#line 1019 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _data70_->qid;
#line 1019 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_signal_handler_disconnect ((GObject*) _tmp5_, _tmp6_);
#line 3965 "gitg-window.c"
	}
}


static void ___lambda163__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 1013 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	__lambda163_ (self, _sender, response_id);
#line 3973 "gitg-window.c"
}


static void gitg_window_real_user_query (GitgExtApplication* base, GitgExtUserQuery* query) {
	GitgWindow * self;
	Block70Data* _data70_;
	GitgExtUserQuery* _tmp0_ = NULL;
	GitgExtUserQuery* _tmp1_ = NULL;
	GitgExtUserQuery* _tmp2_ = NULL;
	GtkMessageType _tmp3_ = 0;
	GtkMessageType _tmp4_ = 0;
	GtkMessageDialog* _tmp5_ = NULL;
	gchar* primary = NULL;
	GitgExtUserQuery* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GtkMessageDialog* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	GtkMessageDialog* _tmp15_ = NULL;
	GitgExtUserQuery* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	GitgExtUserQuery* _tmp19_ = NULL;
	gboolean _tmp20_ = FALSE;
	gboolean _tmp21_ = FALSE;
	GtkMessageDialog* _tmp23_ = NULL;
	GitgExtUserQuery* _tmp24_ = NULL;
	GtkResponseType _tmp25_ = 0;
	GtkResponseType _tmp26_ = 0;
	GitgExtUserQuery* _tmp27_ = NULL;
	GitgExtUserQueryResponse** _tmp28_ = NULL;
	gint _tmp28__length1 = 0;
	GitgExtUserQueryResponse** _tmp29_ = NULL;
	gint _tmp29__length1 = 0;
	GtkMessageDialog* _tmp52_ = NULL;
	GtkDialog* _tmp53_ = NULL;
	GtkMessageDialog* _tmp54_ = NULL;
	GitgExtUserQuery* _tmp55_ = NULL;
	gulong _tmp56_ = 0UL;
	GtkMessageDialog* _tmp57_ = NULL;
	GtkMessageDialog* _tmp58_ = NULL;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (query != NULL);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_ = g_slice_new0 (Block70Data);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->_ref_count_ = 1;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->self = g_object_ref (self);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = query;
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (_data70_->query);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->query = _tmp1_;
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _data70_->query;
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = gitg_ext_user_query_get_message_type (_tmp2_);
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, _tmp4_, GTK_BUTTONS_NONE, "");
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_ref_sink (_tmp5_);
#line 965 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->dlg = _tmp5_;
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = _data70_->query;
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_ext_user_query_get_title (_tmp6_);
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = _tmp7_;
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = g_markup_escape_text (_tmp8_, (gssize) -1);
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _tmp9_;
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_strdup_printf ("<b>%s</b>", _tmp10_);
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = _tmp11_;
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp10_);
#line 971 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	primary = _tmp12_;
#line 972 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _data70_->dlg;
#line 972 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = primary;
#line 972 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_set_markup (_tmp13_, _tmp14_);
#line 974 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp15_ = _data70_->dlg;
#line 974 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp16_ = _data70_->query;
#line 974 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = gitg_ext_user_query_get_message (_tmp16_);
#line 974 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = _tmp17_;
#line 974 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_message_dialog_format_secondary_text (_tmp15_, "%s", _tmp18_);
#line 976 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = _data70_->query;
#line 976 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = gitg_ext_user_query_get_message_use_markup (_tmp19_);
#line 976 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = _tmp20_;
#line 976 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp21_) {
#line 4091 "gitg-window.c"
		GtkMessageDialog* _tmp22_ = NULL;
#line 978 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = _data70_->dlg;
#line 978 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp22_, "secondary-use-markup", TRUE, NULL);
#line 4097 "gitg-window.c"
	}
#line 981 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = _data70_->dlg;
#line 981 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp24_ = _data70_->query;
#line 981 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_ext_user_query_get_default_response (_tmp24_);
#line 981 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = _tmp25_;
#line 981 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_dialog_set_default_response ((GtkDialog*) _tmp23_, (gint) _tmp26_);
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = _data70_->query;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = gitg_ext_user_query_get_responses (_tmp27_, &_tmp28__length1);
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp29_ = _tmp28_;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp29__length1 = _tmp28__length1;
#line 4117 "gitg-window.c"
	{
		GitgExtUserQueryResponse** response_collection = NULL;
		gint response_collection_length1 = 0;
		gint _response_collection_size_ = 0;
		gint response_it = 0;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		response_collection = _tmp29_;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		response_collection_length1 = _tmp29__length1;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		for (response_it = 0; response_it < _tmp29__length1; response_it = response_it + 1) {
#line 4129 "gitg-window.c"
			GitgExtUserQueryResponse* _tmp30_ = NULL;
			GitgExtUserQueryResponse* response = NULL;
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp30_ = _g_object_ref0 (response_collection[response_it]);
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			response = _tmp30_;
#line 4136 "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 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp31_ = _data70_->dlg;
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp32_ = response;
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp33_ = _tmp32_->text;
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp34_ = response;
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp35_ = _tmp34_->response_type;
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp36_ = gtk_dialog_add_button ((GtkDialog*) _tmp31_, _tmp33_, (gint) _tmp35_);
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp37_ = _g_object_ref0 (_tmp36_);
#line 985 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				button = _tmp37_;
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp38_ = response;
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp39_ = _tmp38_->response_type;
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp40_ = _data70_->query;
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp41_ = gitg_ext_user_query_get_default_response (_tmp40_);
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp42_ = _tmp41_;
#line 987 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				if (_tmp39_ == _tmp42_) {
#line 4179 "gitg-window.c"
					GtkWidget* _tmp43_ = NULL;
					GtkWidget* _tmp44_ = NULL;
					GitgExtUserQuery* _tmp45_ = NULL;
					gboolean _tmp46_ = FALSE;
					gboolean _tmp47_ = FALSE;
#line 989 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp43_ = button;
#line 989 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					gtk_widget_set_can_default (_tmp43_, TRUE);
#line 990 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp44_ = button;
#line 990 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					g_object_set (_tmp44_, "has-default", TRUE, NULL);
#line 992 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp45_ = _data70_->query;
#line 992 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp46_ = gitg_ext_user_query_get_default_is_destructive (_tmp45_);
#line 992 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp47_ = _tmp46_;
#line 992 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					if (_tmp47_) {
#line 4201 "gitg-window.c"
						GtkWidget* _tmp48_ = NULL;
						GtkStyleContext* _tmp49_ = NULL;
#line 994 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						_tmp48_ = button;
#line 994 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						_tmp49_ = gtk_widget_get_style_context (_tmp48_);
#line 994 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp49_, GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
#line 4210 "gitg-window.c"
					} else {
						GtkWidget* _tmp50_ = NULL;
						GtkStyleContext* _tmp51_ = NULL;
#line 998 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						_tmp50_ = button;
#line 998 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						_tmp51_ = gtk_widget_get_style_context (_tmp50_);
#line 998 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
						gtk_style_context_add_class (_tmp51_, GTK_STYLE_CLASS_SUGGESTED_ACTION);
#line 4220 "gitg-window.c"
					}
				}
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (button);
#line 983 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_object_unref0 (response);
#line 4227 "gitg-window.c"
			}
		}
	}
#line 1003 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp52_ = _data70_->dlg;
#line 1003 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp53_ = _g_object_ref0 ((GtkDialog*) _tmp52_);
#line 1003 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dialog);
#line 1003 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_dialog = _tmp53_;
#line 1004 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp54_ = _data70_->dlg;
#line 1004 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_add_weak_pointer ((GObject*) _tmp54_, &self->priv->d_dialog);
#line 1006 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->qid = (gulong) 0;
#line 1008 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp55_ = _data70_->query;
#line 1008 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp56_ = g_signal_connect_data (_tmp55_, "quit", (GCallback) ___lambda162__gitg_ext_user_query_quit, block70_data_ref (_data70_), (GClosureNotify) block70_data_unref, 0);
#line 1008 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_->qid = _tmp56_;
#line 1013 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp57_ = _data70_->dlg;
#line 1013 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GtkDialog*) _tmp57_, "response", (GCallback) ___lambda163__gtk_dialog_response, block70_data_ref (_data70_), (GClosureNotify) block70_data_unref, 0);
#line 1023 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp58_ = _data70_->dlg;
#line 1023 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_show ((GtkWidget*) _tmp58_);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (primary);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	block70_data_unref (_data70_);
#line 963 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data70_ = NULL;
#line 4265 "gitg-window.c"
}


static GgitSignature* gitg_window_real_get_verified_committer (GitgExtApplication* base) {
	GitgWindow * self;
	GgitSignature* result = NULL;
	gchar* user = NULL;
	gchar* email = NULL;
	GgitSignature* committer = NULL;
	gboolean _tmp18_ = FALSE;
	const gchar* _tmp19_ = NULL;
	GError * _inner_error_ = NULL;
#line 1031 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1033 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	user = NULL;
#line 1034 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	email = NULL;
#line 1035 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	committer = NULL;
#line 4286 "gitg-window.c"
	{
		GgitSignature* _tmp0_ = NULL;
		GitgRepository* _tmp1_ = NULL;
		GitgRepository* _tmp2_ = NULL;
		GitgRepository* _tmp3_ = NULL;
		GeeMap* _tmp4_ = NULL;
		GeeMap* _tmp5_ = NULL;
		GeeMap* _tmp6_ = NULL;
		GgitSignature* _tmp7_ = NULL;
		GgitSignature* _tmp8_ = NULL;
		GgitSignature* _tmp9_ = NULL;
		GgitSignature* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GgitSignature* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = gitg_ext_application_get_repository ((GitgExtApplication*) self);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = _tmp1_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = gitg_ext_application_get_environment ((GitgExtApplication*) self);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = _tmp4_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _tmp5_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp7_ = gitg_repository_get_signature_with_environment (_tmp3_, _tmp6_, "COMMITTER", &_inner_error_);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = _tmp7_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp6_);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp3_);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = _tmp8_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 4330 "gitg-window.c"
			goto __catch114_g_error;
		}
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = _tmp0_;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp0_ = NULL;
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1039 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		committer = _tmp9_;
#line 1041 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = committer;
#line 1041 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = ggit_signature_get_name (_tmp10_);
#line 1041 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 1041 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1041 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		user = _tmp12_;
#line 1042 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp13_ = committer;
#line 1042 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = ggit_signature_get_email (_tmp13_);
#line 1042 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup (_tmp14_);
#line 1042 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1042 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		email = _tmp15_;
#line 1044 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = user;
#line 1044 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp16_, "") == 0) {
#line 1046 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (user);
#line 1046 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			user = NULL;
#line 4369 "gitg-window.c"
		}
#line 1049 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = email;
#line 1049 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (g_strcmp0 (_tmp17_, "") == 0) {
#line 1051 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (email);
#line 1051 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			email = NULL;
#line 4379 "gitg-window.c"
		}
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp0_);
#line 4383 "gitg-window.c"
	}
	goto __finally114;
	__catch114_g_error:
	{
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_inner_error_ = NULL;
#line 4392 "gitg-window.c"
	}
	__finally114:
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_clear_error (&_inner_error_);
#line 1037 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return NULL;
#line 4409 "gitg-window.c"
	}
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = user;
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp19_ == NULL) {
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = TRUE;
#line 4417 "gitg-window.c"
	} else {
		const gchar* _tmp20_ = NULL;
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp20_ = email;
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = _tmp20_ == NULL;
#line 4424 "gitg-window.c"
	}
#line 1055 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp18_) {
#line 4428 "gitg-window.c"
		gchar* secmsg = NULL;
		gboolean _tmp21_ = FALSE;
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = user;
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp22_ == NULL) {
#line 4438 "gitg-window.c"
			const gchar* _tmp23_ = NULL;
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp23_ = email;
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = _tmp23_ == NULL;
#line 4444 "gitg-window.c"
		} else {
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = FALSE;
#line 4448 "gitg-window.c"
		}
#line 1059 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp21_) {
#line 4452 "gitg-window.c"
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
#line 1061 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp24_ = _ ("Your user name and email are not configured yet. Please go to the user" \
" configuration and provide your name and email.");
#line 1061 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp25_ = g_strdup (_tmp24_);
#line 1061 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_free0 (secmsg);
#line 1061 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			secmsg = _tmp25_;
#line 4463 "gitg-window.c"
		} else {
			const gchar* _tmp26_ = NULL;
#line 1063 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp26_ = user;
#line 1063 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			if (_tmp26_ == NULL) {
#line 4470 "gitg-window.c"
				const gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
#line 1065 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp27_ = _ ("Your user name is not configured yet. Please go to the user configurat" \
"ion and provide your name.");
#line 1065 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp28_ = g_strdup (_tmp27_);
#line 1065 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1065 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				secmsg = _tmp28_;
#line 4481 "gitg-window.c"
			} else {
				const gchar* _tmp29_ = NULL;
				gchar* _tmp30_ = NULL;
#line 1069 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp29_ = _ ("Your email is not configured yet. Please go to the user configuration " \
"and provide your email.");
#line 1069 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp30_ = g_strdup (_tmp29_);
#line 1069 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (secmsg);
#line 1069 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				secmsg = _tmp30_;
#line 4493 "gitg-window.c"
			}
		}
#line 1072 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = _ ("Missing author details");
#line 1072 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp32_ = secmsg;
#line 1072 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_application_show_infobar ((GitgExtApplication*) self, _tmp31_, _tmp32_, GTK_MESSAGE_ERROR);
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = NULL;
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (secmsg);
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (committer);
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (email);
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (user);
#line 1073 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4514 "gitg-window.c"
	}
#line 1076 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = committer;
#line 1076 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (email);
#line 1076 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (user);
#line 1076 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4524 "gitg-window.c"
}


void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines) {
	const gchar* _tmp0_ = NULL;
	GitgExtCommandLines* _tmp2_ = NULL;
#line 1109 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = hint;
#line 1111 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ != NULL) {
#line 4537 "gitg-window.c"
		const gchar* _tmp1_ = NULL;
#line 1113 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = hint;
#line 1113 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_activate_activity (self, _tmp1_);
#line 4543 "gitg-window.c"
	}
#line 1116 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = command_lines;
#line 1116 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ != NULL) {
#line 4549 "gitg-window.c"
		GitgExtCommandLines* _tmp3_ = NULL;
#line 1118 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = command_lines;
#line 1118 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_ext_command_lines_apply (_tmp3_, (GitgExtApplication*) self);
#line 4555 "gitg-window.c"
	}
#line 1121 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_window_present ((GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow));
#line 4559 "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 1124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (action != NULL);
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = action;
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = g_action_get_state ((GAction*) _tmp0_);
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = g_variant_get_boolean (_tmp2_);
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = _tmp3_;
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp2_);
#line 1126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	st = _tmp4_;
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = action;
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = g_variant_new_boolean (!st);
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_variant_ref_sink (_tmp6_);
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = _tmp6_;
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_simple_action_set_state (_tmp5_, _tmp7_);
#line 1127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_variant_unref0 (_tmp7_);
#line 4603 "gitg-window.c"
}


static void gitg_window_on_select_cancel_button_clicked (GitgWindow* self) {
#line 1188 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1190 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 4612 "gitg-window.c"
}


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


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


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


static GitgExtActivity* gitg_window_real_get_current_activity (GitgExtApplication* base) {
	GitgExtActivity* result;
	GitgWindow* self;
	GitgWindowMode _tmp0_ = 0;
#line 406 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 408 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_mode;
#line 408 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 4650 "gitg-window.c"
		GitgUIElements* _tmp1_ = NULL;
		gconstpointer _tmp2_ = NULL;
		GitgExtActivity* _tmp3_ = NULL;
		GitgExtActivity* _tmp4_ = NULL;
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_activities;
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = gitg_ui_elements_get_current (_tmp1_);
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp2_;
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 ((GitgExtActivity*) _tmp3_);
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = _tmp4_;
#line 410 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4667 "gitg-window.c"
	} else {
		GitgDashView* _tmp5_ = NULL;
		GitgExtActivity* _tmp6_ = NULL;
#line 414 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_dash_view;
#line 414 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 ((GitgExtActivity*) _tmp5_);
#line 414 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = _tmp6_;
#line 414 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 4679 "gitg-window.c"
	}
}


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


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


static void gitg_window_real_set_repository (GitgExtApplication* base, GitgRepository* value) {
	GitgWindow* self;
	GitgRepository* _tmp0_ = NULL;
#line 428 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 430 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 430 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_set_repository_internal (self, _tmp0_);
#line 431 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_repository_changed (self);
#line 4733 "gitg-window.c"
}


gboolean gitg_window_get_enable_monitoring (GitgWindow* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 610 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 612 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_enable_monitoring;
#line 612 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 612 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4748 "gitg-window.c"
}


void gitg_window_set_enable_monitoring (GitgWindow* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 615 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 617 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 617 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_enable_monitoring = _tmp0_;
#line 618 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_window_update_enable_monitoring (self);
#line 615 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "enable-monitoring");
#line 4764 "gitg-window.c"
}


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


static gboolean gitg_window_real_get_busy (GitgExtApplication* base) {
	gboolean result;
	GitgWindow* self;
	gboolean _tmp0_ = FALSE;
#line 1081 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1081 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_busy;
#line 1081 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = _tmp0_;
#line 1081 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 4799 "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 1082 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = (GitgWindow*) base;
#line 1084 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = value;
#line 1084 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_busy = _tmp0_;
#line 1088 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = self->priv->d_dialog;
#line 1088 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ != NULL) {
#line 4819 "gitg-window.c"
		GtkDialog* _tmp2_ = NULL;
		GdkWindow* _tmp3_ = NULL;
		GdkWindow* _tmp4_ = NULL;
#line 1090 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_dialog;
#line 1090 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = gtk_widget_get_window ((GtkWidget*) _tmp2_);
#line 1090 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = _g_object_ref0 (_tmp3_);
#line 1090 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1090 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		win = _tmp4_;
#line 4833 "gitg-window.c"
	} else {
		GdkWindow* _tmp5_ = NULL;
		GdkWindow* _tmp6_ = NULL;
#line 1094 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_window ((GtkWidget*) self);
#line 1094 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 1094 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (win);
#line 1094 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		win = _tmp6_;
#line 4845 "gitg-window.c"
	}
#line 1097 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = self->priv->d_busy;
#line 1097 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp7_) {
#line 4851 "gitg-window.c"
		GdkWindow* _tmp8_ = NULL;
		GdkDisplay* _tmp9_ = NULL;
		GdkCursor* _tmp10_ = NULL;
		GdkCursor* _tmp11_ = NULL;
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp8_ = win;
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp9_ = gtk_widget_get_display ((GtkWidget*) self);
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp10_ = gdk_cursor_new_for_display (_tmp9_, GDK_WATCH);
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp11_ = _tmp10_;
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp8_, _tmp11_);
#line 1099 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp11_);
#line 4868 "gitg-window.c"
	} else {
		GdkWindow* _tmp12_ = NULL;
#line 1104 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp12_ = win;
#line 1104 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gdk_window_set_cursor (_tmp12_, NULL);
#line 4875 "gitg-window.c"
	}
#line 1082 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (win);
#line 1082 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "busy");
#line 4881 "gitg-window.c"
}


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


void gitg_window_set_selectable_mode (GitgWindow* self, GitgExtSelectionMode value) {
	GitgExtSelectable* selectable = NULL;
	GitgExtActivity* _tmp0_ = NULL;
	GitgExtActivity* _tmp1_ = NULL;
	GitgExtSelectable* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GitgExtSelectable* _tmp4_ = NULL;
	GitgExtSelectionMode _tmp7_ = 0;
	GitgExtSelectable* _tmp8_ = NULL;
	GitgExtSelectionMode _tmp9_ = 0;
	GtkStyleContext* ctx = NULL;
	GtkHeaderBar* _tmp10_ = NULL;
	GtkStyleContext* _tmp11_ = NULL;
	GtkStyleContext* _tmp12_ = NULL;
	GitgExtSelectionMode _tmp13_ = 0;
	gboolean issel = FALSE;
	GitgExtSelectionMode _tmp25_ = 0;
	GitgExtSearchable* searchable = NULL;
	GitgExtActivity* _tmp26_ = NULL;
	GitgExtActivity* _tmp27_ = NULL;
	GitgExtSearchable* _tmp28_ = NULL;
	gboolean _tmp29_ = FALSE;
	gboolean _tmp30_ = FALSE;
	GtkHeaderBar* _tmp32_ = NULL;
	gboolean _tmp33_ = FALSE;
	gboolean _tmp34_ = FALSE;
	GtkToggleButton* _tmp36_ = NULL;
	gboolean _tmp37_ = FALSE;
	gboolean _tmp38_ = FALSE;
	GtkMenuButton* _tmp40_ = NULL;
	GtkToggleButton* _tmp41_ = NULL;
	gboolean _tmp42_ = FALSE;
	gboolean _tmp43_ = FALSE;
	gboolean _tmp44_ = FALSE;
	GtkButton* _tmp46_ = NULL;
	gboolean _tmp47_ = FALSE;
	gboolean _tmp48_ = FALSE;
	GtkButton* _tmp50_ = NULL;
	gboolean _tmp51_ = FALSE;
	gboolean _tmp52_ = FALSE;
	GtkButton* _tmp54_ = NULL;
	gboolean _tmp55_ = FALSE;
	gboolean _tmp56_ = FALSE;
	GtkStackSwitcher* _tmp58_ = NULL;
	GtkButton* _tmp59_ = NULL;
	gboolean _tmp60_ = FALSE;
	GtkToggleButton* _tmp61_ = NULL;
	gboolean _tmp62_ = FALSE;
#line 1133 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (self != NULL);
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = _tmp0_;
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, GITG_EXT_TYPE_SELECTABLE) ? ((GitgExtSelectable*) _tmp1_) : NULL;
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_ == NULL) {
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp1_);
#line 4960 "gitg-window.c"
	}
#line 1135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	selectable = _tmp2_;
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = selectable;
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp4_ == NULL) {
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = TRUE;
#line 4970 "gitg-window.c"
	} else {
		GitgExtSelectionMode _tmp5_ = 0;
		GitgExtSelectionMode _tmp6_ = 0;
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = self->priv->d_selectable_mode;
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp6_ = value;
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = _tmp5_ == _tmp6_;
#line 4980 "gitg-window.c"
	}
#line 1137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_) {
#line 1139 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (selectable);
#line 1139 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return;
#line 4988 "gitg-window.c"
	}
#line 1142 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = value;
#line 1142 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_selectable_mode = _tmp7_;
#line 1143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = selectable;
#line 1143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = value;
#line 1143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_selectable_set_selectable_mode (_tmp8_, _tmp9_);
#line 1145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_header_bar;
#line 1145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 1145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 1145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	ctx = _tmp12_;
#line 1147 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = self->priv->d_selectable_mode;
#line 1147 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp13_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 5012 "gitg-window.c"
		GtkStyleContext* _tmp14_ = NULL;
		GitgExtSelectable* _tmp15_ = NULL;
		GtkWidget* _tmp16_ = NULL;
		GtkWidget* _tmp17_ = NULL;
		GtkWidget* _tmp18_ = NULL;
#line 1149 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp14_ = ctx;
#line 1149 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp14_, "selection-mode");
#line 1151 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = selectable;
#line 1151 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = gitg_ext_selectable_get_action_widget (_tmp15_);
#line 1151 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp17_ = _tmp16_;
#line 1151 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (self->priv->d_select_actions);
#line 1151 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		self->priv->d_select_actions = _tmp17_;
#line 1153 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp18_ = self->priv->d_select_actions;
#line 1153 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp18_ != NULL) {
#line 5036 "gitg-window.c"
			GtkGrid* _tmp19_ = NULL;
			GtkWidget* _tmp20_ = NULL;
			GtkWidget* _tmp21_ = NULL;
#line 1155 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp19_ = self->priv->d_grid_main;
#line 1155 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp20_ = self->priv->d_select_actions;
#line 1155 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			gtk_grid_attach (_tmp19_, _tmp20_, 0, 3, 1, 1);
#line 1156 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp21_ = self->priv->d_select_actions;
#line 1156 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			gtk_widget_show (_tmp21_);
#line 5050 "gitg-window.c"
		}
	} else {
		GtkStyleContext* _tmp22_ = NULL;
		GtkWidget* _tmp23_ = NULL;
#line 1161 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp22_ = ctx;
#line 1161 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_style_context_remove_class (_tmp22_, "selection-mode");
#line 1163 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp23_ = self->priv->d_select_actions;
#line 1163 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp23_ != NULL) {
#line 5063 "gitg-window.c"
			GtkWidget* _tmp24_ = NULL;
#line 1165 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp24_ = self->priv->d_select_actions;
#line 1165 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			gtk_widget_destroy (_tmp24_);
#line 1166 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_g_object_unref0 (self->priv->d_select_actions);
#line 1166 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			self->priv->d_select_actions = NULL;
#line 5073 "gitg-window.c"
		}
	}
#line 1170 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = self->priv->d_selectable_mode;
#line 1170 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	issel = _tmp25_ == GITG_EXT_SELECTION_MODE_SELECTION;
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = gitg_ext_application_get_current_activity ((GitgExtApplication*) self);
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = _tmp26_;
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, GITG_EXT_TYPE_SEARCHABLE) ? ((GitgExtSearchable*) _tmp27_) : NULL;
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp28_ == NULL) {
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_object_unref0 (_tmp27_);
#line 5090 "gitg-window.c"
	}
#line 1171 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	searchable = _tmp28_;
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp30_ = gitg_platform_support_use_native_window_controls (NULL);
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp30_) {
#line 5098 "gitg-window.c"
		gboolean _tmp31_ = FALSE;
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp31_ = issel;
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp29_ = !_tmp31_;
#line 5104 "gitg-window.c"
	} else {
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp29_ = FALSE;
#line 5108 "gitg-window.c"
	}
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp32_ = self->priv->d_header_bar;
#line 1173 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_set_show_close_button (_tmp32_, _tmp29_);
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp34_ = issel;
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp34_) {
#line 5118 "gitg-window.c"
		GitgExtSearchable* _tmp35_ = NULL;
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp35_ = searchable;
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp33_ = _tmp35_ != NULL;
#line 5124 "gitg-window.c"
	} else {
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp33_ = FALSE;
#line 5128 "gitg-window.c"
	}
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp36_ = self->priv->d_search_button;
#line 1174 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp36_, _tmp33_);
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp38_ = issel;
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp38_) {
#line 5138 "gitg-window.c"
		GitgRepository* _tmp39_ = NULL;
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp39_ = self->priv->d_repository;
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp37_ = _tmp39_ != NULL;
#line 5144 "gitg-window.c"
	} else {
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp37_ = FALSE;
#line 5148 "gitg-window.c"
	}
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp40_ = self->priv->d_gear_menu;
#line 1175 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp40_, _tmp37_);
#line 1176 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp41_ = self->priv->d_select_button;
#line 1176 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp42_ = issel;
#line 1176 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp41_, !_tmp42_);
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp44_ = issel;
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp44_) {
#line 5164 "gitg-window.c"
		GitgRepository* _tmp45_ = NULL;
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp45_ = self->priv->d_repository;
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp43_ = _tmp45_ != NULL;
#line 5170 "gitg-window.c"
	} else {
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp43_ = FALSE;
#line 5174 "gitg-window.c"
	}
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_dash_button;
#line 1177 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp46_, _tmp43_);
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp48_ = issel;
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp48_) {
#line 5184 "gitg-window.c"
		GitgRepository* _tmp49_ = NULL;
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp49_ = self->priv->d_repository;
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp47_ = _tmp49_ == NULL;
#line 5190 "gitg-window.c"
	} else {
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp47_ = FALSE;
#line 5194 "gitg-window.c"
	}
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_clone_button;
#line 1178 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp50_, _tmp47_);
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp52_ = issel;
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp52_) {
#line 5204 "gitg-window.c"
		GitgRepository* _tmp53_ = NULL;
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp53_ = self->priv->d_repository;
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp51_ = _tmp53_ == NULL;
#line 5210 "gitg-window.c"
	} else {
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp51_ = FALSE;
#line 5214 "gitg-window.c"
	}
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_add_button;
#line 1179 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp54_, _tmp51_);
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp56_ = issel;
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (!_tmp56_) {
#line 5224 "gitg-window.c"
		GitgRepository* _tmp57_ = NULL;
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp57_ = self->priv->d_repository;
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp55_ = _tmp57_ != NULL;
#line 5230 "gitg-window.c"
	} else {
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp55_ = FALSE;
#line 5234 "gitg-window.c"
	}
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp58_ = self->priv->d_activities_switcher;
#line 1180 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp58_, _tmp55_);
#line 1181 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp59_ = self->priv->d_select_cancel_button;
#line 1181 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp60_ = issel;
#line 1181 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp59_, _tmp60_);
#line 1183 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp61_ = self->priv->d_select_button;
#line 1183 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp62_ = issel;
#line 1183 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_toggle_button_set_active (_tmp61_, _tmp62_);
#line 1133 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (searchable);
#line 1133 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (ctx);
#line 1133 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (selectable);
#line 1133 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_notify ((GObject *) self, "selectable-mode");
#line 5260 "gitg-window.c"
}


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


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


static gboolean gitg_window_real_change_to_activity (GitgWindow* self, gint i) {
	gboolean result = FALSE;
	GitgExtSelectionMode _tmp0_ = 0;
	gint _tmp1_ = 0;
	GitgWindowMode _tmp3_ = 0;
	GitgExtActivity** elems = NULL;
	GitgUIElements* _tmp4_ = NULL;
	gpointer* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	GitgExtActivity** _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	gint elems_length1 = 0;
	gint _elems_size_ = 0;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	GitgExtActivity** _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
	GitgUIElements* _tmp10_ = NULL;
	GitgExtActivity** _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gint _tmp12_ = 0;
	GitgExtActivity* _tmp13_ = NULL;
#line 117 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_selectable_mode;
#line 117 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_ == GITG_EXT_SELECTION_MODE_SELECTION) {
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 119 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 5332 "gitg-window.c"
	}
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = i;
#line 122 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp1_ == 0) {
#line 5338 "gitg-window.c"
		GitgWindowMode _tmp2_ = 0;
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_mode;
#line 124 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		if (_tmp2_ == GITG_WINDOW_MODE_ACTIVITY) {
#line 126 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			gitg_ext_application_set_repository ((GitgExtApplication*) self, NULL);
#line 127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			result = TRUE;
#line 127 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 5350 "gitg-window.c"
		} else {
#line 131 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			result = FALSE;
#line 131 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			return result;
#line 5356 "gitg-window.c"
		}
	}
#line 135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp3_ = self->priv->d_mode;
#line 135 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp3_ != GITG_WINDOW_MODE_ACTIVITY) {
#line 137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 137 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 5367 "gitg-window.c"
	}
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp4_ = self->priv->d_activities;
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp5_ = gitg_ui_elements_get_available_elements (_tmp4_, &_tmp5__length1);
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = _tmp5_;
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6__length1 = _tmp5__length1;
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	elems = _tmp6_;
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	elems_length1 = _tmp6__length1;
#line 140 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_elems_size_ = elems_length1;
#line 141 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = i;
#line 141 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	i = _tmp7_ - 1;
#line 143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = i;
#line 143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = elems;
#line 143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9__length1 = elems_length1;
#line 143 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp8_ >= _tmp9__length1) {
#line 145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		result = FALSE;
#line 145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 145 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		return result;
#line 5401 "gitg-window.c"
	}
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = self->priv->d_activities;
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = elems;
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11__length1 = elems_length1;
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = i;
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp13_ = _tmp11_[_tmp12_];
#line 148 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ui_elements_set_current (_tmp10_, _tmp13_);
#line 149 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	result = TRUE;
#line 149 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	elems = (_vala_array_free (elems, elems_length1, (GDestroyNotify) g_object_unref), NULL);
#line 149 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return result;
#line 5421 "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/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (return_value != NULL);
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (n_param_values == 2);
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		data1 = closure->data;
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		data2 = param_values->data[0].v_pointer;
#line 5443 "gitg-window.c"
	} else {
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		data1 = param_values->data[0].v_pointer;
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		data2 = closure->data;
#line 5449 "gitg-window.c"
	}
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	callback = (GMarshalFunc_BOOLEAN__INT) (marshal_data ? marshal_data : cc->callback);
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	v_return = callback (data1, g_value_get_int (param_values + 1), data2);
#line 24 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_value_set_boolean (return_value, v_return);
#line 5457 "gitg-window.c"
}


static void gitg_window_real_cancel (GitgWindow* self) {
	GtkInfoBar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 1196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 1196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 1196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp2_ = _tmp1_;
#line 1196 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp2_) {
#line 5473 "gitg-window.c"
		GtkInfoBar* _tmp3_ = NULL;
#line 1198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_infobar;
#line 1198 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_widget_hide ((GtkWidget*) _tmp3_);
#line 5479 "gitg-window.c"
	} else {
#line 1202 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gitg_window_set_selectable_mode (self, GITG_EXT_SELECTION_MODE_NORMAL);
#line 5483 "gitg-window.c"
	}
}


static Block71Data* block71_data_ref (Block71Data* _data71_) {
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_atomic_int_inc (&_data71_->_ref_count_);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return _data71_;
#line 5493 "gitg-window.c"
}


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


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


static void __gitg_window___lambda164__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 274 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda164_ (self);
#line 5560 "gitg-window.c"
}


static void _gitg_window___lambda165_ (GitgWindow* self, GtkInfoBar* w, gint r) {
	GtkInfoBar* _tmp0_ = NULL;
#line 337 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_return_if_fail (w != NULL);
#line 338 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = self->priv->d_infobar;
#line 338 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 5572 "gitg-window.c"
}


static void __gitg_window___lambda165__gtk_info_bar_response (GtkInfoBar* _sender, gint response_id, gpointer self) {
#line 337 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_gitg_window___lambda165_ ((GitgWindow*) self, _sender, response_id);
#line 5579 "gitg-window.c"
}


static GObject * gitg_window_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgWindow * self;
	Block71Data* _data71_;
	gboolean _tmp0_ = FALSE;
	GtkOverlay* _tmp6_ = NULL;
	GitgNotifications* _tmp7_ = NULL;
	GAction* _tmp8_ = NULL;
	GAction* _tmp9_ = NULL;
	GAction* _tmp10_ = NULL;
	GSettings* _tmp11_ = NULL;
	gchar* menuname = NULL;
	GtkSettings* _tmp12_ = NULL;
	gboolean _tmp13_ = FALSE;
	gboolean _tmp14_ = FALSE;
	GitgDashView* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gpointer _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	gpointer _tmp25_ = NULL;
	GtkSearchBar* _tmp26_ = NULL;
	GtkSearchEntry* _tmp27_ = NULL;
	GtkToggleButton* _tmp28_ = NULL;
	GtkSearchBar* _tmp29_ = NULL;
	GtkStackSwitcher* _tmp30_ = NULL;
	GtkStack* _tmp31_ = NULL;
	GeeHashMap* _tmp32_ = NULL;
	gchar** _tmp33_ = NULL;
	gchar** _tmp34_ = NULL;
	gboolean _tmp40_ = FALSE;
	const gchar* _tmp41_ = NULL;
	GtkHeaderBar* _tmp44_ = NULL;
	GtkStackSwitcher* _tmp45_ = NULL;
	GtkHeaderBar* _tmp46_ = NULL;
	GtkToggleButton* _tmp47_ = NULL;
	GtkHeaderBar* _tmp48_ = NULL;
	GtkToggleButton* _tmp49_ = NULL;
	GtkHeaderBar* _tmp50_ = NULL;
	GtkMenuButton* _tmp51_ = NULL;
	GtkHeaderBar* _tmp52_ = NULL;
	GtkMenuButton* _tmp53_ = NULL;
	GtkHeaderBar* _tmp54_ = NULL;
	GtkStackSwitcher* _tmp55_ = NULL;
	GtkHeaderBar* _tmp56_ = NULL;
	GtkToggleButton* _tmp57_ = NULL;
	GtkHeaderBar* _tmp58_ = NULL;
	GtkToggleButton* _tmp59_ = NULL;
	GtkInfoBar* _tmp60_ = NULL;
	GtkBindingSet* bset = NULL;
	GObjectClass* _tmp61_ = NULL;
	GtkBindingSet* _tmp62_ = NULL;
	GtkBindingSet* _tmp69_ = NULL;
	GSettings* _tmp70_ = NULL;
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	parent_class = G_OBJECT_CLASS (gitg_window_parent_class);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_WINDOW, GitgWindow);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data71_ = g_slice_new0 (Block71Data);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data71_->_ref_count_ = 1;
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data71_->self = g_object_ref (self);
#line 257 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp0_ = gitg_platform_support_use_native_window_controls (NULL);
#line 257 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp0_) {
#line 5657 "gitg-window.c"
		GtkGrid* _tmp1_ = NULL;
		GtkHeaderBar* _tmp2_ = NULL;
#line 259 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_window_set_titlebar ((GtkWindow*) self, NULL);
#line 260 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp1_ = self->priv->d_grid_top;
#line 260 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp2_ = self->priv->d_header_bar;
#line 260 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_grid_attach (_tmp1_, (GtkWidget*) _tmp2_, 0, 0, 1, 1);
#line 5668 "gitg-window.c"
	} else {
		GtkHeaderBar* _tmp3_ = NULL;
		GtkHeaderBar* _tmp4_ = NULL;
		GtkStyleContext* _tmp5_ = NULL;
#line 264 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp3_ = self->priv->d_header_bar;
#line 264 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_header_bar_set_show_close_button (_tmp3_, TRUE);
#line 265 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp4_ = self->priv->d_header_bar;
#line 265 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp5_ = gtk_widget_get_style_context ((GtkWidget*) _tmp4_);
#line 265 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		gtk_style_context_add_class (_tmp5_, "titlebar");
#line 5683 "gitg-window.c"
	}
#line 268 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_action_map_add_action_entries ((GActionMap*) self, GITG_WINDOW_win_entries, G_N_ELEMENTS (GITG_WINDOW_win_entries), self);
#line 270 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp6_ = self->priv->d_overlay;
#line 270 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp7_ = gitg_notifications_new (_tmp6_);
#line 270 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_notifications);
#line 270 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_notifications = _tmp7_;
#line 272 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp8_ = g_action_map_lookup_action ((GActionMap*) self, "select");
#line 272 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 272 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data71_->selact = _tmp9_;
#line 274 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp10_ = _data71_->selact;
#line 274 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_data ((GObject*) _tmp10_, "notify::state", (GCallback) __gitg_window___lambda164__g_object_notify, block71_data_ref (_data71_), (GClosureNotify) block71_data_unref, 0);
#line 287 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp11_ = g_settings_new ("org.gnome.gitg.preferences.interface");
#line 287 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_interface_settings);
#line 287 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_interface_settings = _tmp11_;
#line 291 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp12_ = gtk_settings_get_default ();
#line 291 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_get (_tmp12_, "gtk-shell-shows-app-menu", &_tmp13_, NULL);
#line 291 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp14_ = _tmp13_;
#line 291 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp14_) {
#line 5719 "gitg-window.c"
		gchar* _tmp15_ = NULL;
#line 293 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp15_ = g_strdup ("win-menu");
#line 293 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 293 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		menuname = _tmp15_;
#line 5727 "gitg-window.c"
	} else {
		gchar* _tmp16_ = NULL;
#line 297 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp16_ = g_strdup ("app-win-menu");
#line 297 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_g_free0 (menuname);
#line 297 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		menuname = _tmp16_;
#line 5736 "gitg-window.c"
	}
#line 300 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp17_ = self->priv->d_dash_view;
#line 300 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gitg_ext_ui_element_set_application ((GitgExtUIElement*) _tmp17_, (GitgExtApplication*) self);
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp18_ = menuname;
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp19_ = g_strconcat (_tmp18_, "-dash", NULL);
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp20_ = _tmp19_;
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp21_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp20_);
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_dash_model);
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_dash_model = (GMenuModel*) _tmp21_;
#line 302 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp20_);
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp22_ = menuname;
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp23_ = g_strconcat (_tmp22_, "-views", NULL);
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp24_ = _tmp23_;
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp25_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, "ui/gitg-menus.ui", _tmp24_);
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_activities_model);
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_activities_model = (GMenuModel*) _tmp25_;
#line 303 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (_tmp24_);
#line 306 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp26_ = self->priv->d_search_bar;
#line 306 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp27_ = self->priv->d_search_entry;
#line 306 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_search_bar_connect_entry (_tmp26_, (GtkEntry*) _tmp27_);
#line 307 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp28_ = self->priv->d_search_button;
#line 307 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp29_ = self->priv->d_search_bar;
#line 307 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp28_, "active", (GObject*) _tmp29_, "search-mode-enabled", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
#line 312 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp30_ = self->priv->d_activities_switcher;
#line 312 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp31_ = self->priv->d_stack_activities;
#line 312 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_stack_switcher_set_stack (_tmp30_, _tmp31_);
#line 314 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp32_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 314 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_object_unref0 (self->priv->d_environment);
#line 314 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	self->priv->d_environment = _tmp32_;
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp34_ = _tmp33_ = g_listenv ();
#line 5796 "gitg-window.c"
	{
		gchar** e_collection = NULL;
		gint e_collection_length1 = 0;
		gint _e_collection_size_ = 0;
		gint e_it = 0;
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e_collection = _tmp34_;
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e_collection_length1 = _vala_array_length (_tmp33_);
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		for (e_it = 0; e_it < _vala_array_length (_tmp33_); e_it = e_it + 1) {
#line 5808 "gitg-window.c"
			gchar* _tmp35_ = NULL;
			gchar* e = NULL;
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp35_ = g_strdup (e_collection[e_it]);
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			e = _tmp35_;
#line 5815 "gitg-window.c"
			{
				GeeHashMap* _tmp36_ = NULL;
				const gchar* _tmp37_ = NULL;
				const gchar* _tmp38_ = NULL;
				const gchar* _tmp39_ = NULL;
#line 318 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp36_ = self->priv->d_environment;
#line 318 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp37_ = e;
#line 318 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp38_ = e;
#line 318 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp39_ = g_getenv (_tmp38_);
#line 318 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _tmp36_, _tmp37_, _tmp39_);
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_g_free0 (e);
#line 5833 "gitg-window.c"
			}
		}
#line 316 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		e_collection = (_vala_array_free (e_collection, e_collection_length1, (GDestroyNotify) g_free), NULL);
#line 5838 "gitg-window.c"
	}
#line 321 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp41_ = gtk_check_version ((guint) 3, (guint) 13, (guint) 2);
#line 321 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp41_ != NULL) {
#line 5844 "gitg-window.c"
		GtkTextDirection _tmp42_ = 0;
#line 322 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp42_ = gtk_widget_get_direction ((GtkWidget*) self);
#line 322 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp40_ = _tmp42_ == GTK_TEXT_DIR_RTL;
#line 5850 "gitg-window.c"
	} else {
#line 321 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp40_ = FALSE;
#line 5854 "gitg-window.c"
	}
#line 321 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	if (_tmp40_) {
#line 5858 "gitg-window.c"
		GtkImage* _tmp43_ = NULL;
#line 324 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		_tmp43_ = self->priv->dash_image;
#line 324 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		g_object_set (_tmp43_, "icon-name", "go-previous-rtl-symbolic", NULL);
#line 5864 "gitg-window.c"
	}
#line 327 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp44_ = self->priv->d_header_bar;
#line 327 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp45_ = self->priv->d_activities_switcher;
#line 327 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
#line 328 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp46_ = self->priv->d_header_bar;
#line 328 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp47_ = self->priv->d_search_button;
#line 328 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp46_, (GtkWidget*) _tmp47_);
#line 329 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp48_ = self->priv->d_header_bar;
#line 329 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp49_ = self->priv->d_select_button;
#line 329 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp48_, (GtkWidget*) _tmp49_);
#line 330 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp50_ = self->priv->d_header_bar;
#line 330 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp51_ = self->priv->d_gear_menu;
#line 330 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_container_remove ((GtkContainer*) _tmp50_, (GtkWidget*) _tmp51_);
#line 332 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp52_ = self->priv->d_header_bar;
#line 332 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp53_ = self->priv->d_gear_menu;
#line 332 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp52_, (GtkWidget*) _tmp53_);
#line 333 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp54_ = self->priv->d_header_bar;
#line 333 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp55_ = self->priv->d_activities_switcher;
#line 333 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp54_, (GtkWidget*) _tmp55_);
#line 334 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp56_ = self->priv->d_header_bar;
#line 334 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp57_ = self->priv->d_select_button;
#line 334 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp56_, (GtkWidget*) _tmp57_);
#line 335 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp58_ = self->priv->d_header_bar;
#line 335 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp59_ = self->priv->d_search_button;
#line 335 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_header_bar_pack_end (_tmp58_, (GtkWidget*) _tmp59_);
#line 337 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp60_ = self->priv->d_infobar;
#line 337 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_signal_connect_object (_tmp60_, "response", (GCallback) __gitg_window___lambda165__gtk_info_bar_response, self, 0);
#line 341 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp61_ = G_OBJECT_GET_CLASS ((GObject*) self);
#line 341 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp62_ = gtk_binding_set_by_class (_tmp61_);
#line 341 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	bset = _tmp62_;
#line 5924 "gitg-window.c"
	{
		gint i = 0;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
		i = 0;
#line 5929 "gitg-window.c"
		{
			gboolean _tmp63_ = FALSE;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			_tmp63_ = TRUE;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
			while (TRUE) {
#line 5936 "gitg-window.c"
				gint _tmp65_ = 0;
				GtkBindingSet* _tmp66_ = NULL;
				gint _tmp67_ = 0;
				gint _tmp68_ = 0;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				if (!_tmp63_) {
#line 5943 "gitg-window.c"
					gint _tmp64_ = 0;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					_tmp64_ = i;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					i = _tmp64_ + 1;
#line 5949 "gitg-window.c"
				}
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp63_ = FALSE;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp65_ = i;
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				if (!(_tmp65_ < 10)) {
#line 343 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
					break;
#line 5959 "gitg-window.c"
				}
#line 345 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp66_ = bset;
#line 345 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp67_ = i;
#line 345 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				_tmp68_ = i;
#line 345 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
				gtk_binding_entry_add_signal (_tmp66_, (guint) (GDK_KEY_0 + _tmp67_), GDK_MOD1_MASK, "change-to-activity", (guint) 1, G_TYPE_INT, _tmp68_, NULL);
#line 5969 "gitg-window.c"
			}
		}
	}
#line 354 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp69_ = bset;
#line 354 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	gtk_binding_entry_add_signal (_tmp69_, (guint) GDK_KEY_Escape, 0, "cancel", (guint) 0, NULL);
#line 360 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_tmp70_ = self->priv->d_interface_settings;
#line 360 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	g_settings_bind (_tmp70_, "enable-monitoring", (GObject*) self, "enable-monitoring", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_g_free0 (menuname);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	block71_data_unref (_data71_);
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	_data71_ = NULL;
#line 255 "/home/nacho/checkout/gnome/gitg/gitg/gitg-window.vala"
	return obj;
#line 5989 "gitg-window.c"
}


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


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


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


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


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



