/* gitg-application.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-application.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 <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <config.h>
#include "libgitg-ext/libgitg-ext.h"
#include <glib/gi18n-lib.h>
#include <libpeas/peas.h>
#include "libgitg/libgitg.h"
#include <libgitg/gitg-platform-support.h>
#include <gdk/gdk.h>
#include <libgit2-glib/ggit.h>


#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;
typedef struct _GitgApplicationPrivate GitgApplicationPrivate;

#define GITG_TYPE_PREFERENCES_DIALOG (gitg_preferences_dialog_get_type ())
#define GITG_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialog))
#define GITG_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialogClass))
#define GITG_IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PREFERENCES_DIALOG))
#define GITG_IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PREFERENCES_DIALOG))
#define GITG_PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PREFERENCES_DIALOG, GitgPreferencesDialogClass))

typedef struct _GitgPreferencesDialog GitgPreferencesDialog;
typedef struct _GitgPreferencesDialogClass GitgPreferencesDialogClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_HISTORY_TYPE_COMMAND_LINE (gitg_history_command_line_get_type ())
#define GITG_HISTORY_COMMAND_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_HISTORY_TYPE_COMMAND_LINE, GitgHistoryCommandLine))
#define GITG_HISTORY_COMMAND_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_HISTORY_TYPE_COMMAND_LINE, GitgHistoryCommandLineClass))
#define GITG_HISTORY_IS_COMMAND_LINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_HISTORY_TYPE_COMMAND_LINE))
#define GITG_HISTORY_IS_COMMAND_LINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_HISTORY_TYPE_COMMAND_LINE))
#define GITG_HISTORY_COMMAND_LINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_HISTORY_TYPE_COMMAND_LINE, GitgHistoryCommandLineClass))

typedef struct _GitgHistoryCommandLine GitgHistoryCommandLine;
typedef struct _GitgHistoryCommandLineClass GitgHistoryCommandLineClass;

#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 __vala_PeasPluginInfo_free0(var) ((var == NULL) ? NULL : (var = (_vala_PeasPluginInfo_free (var), NULL)))
#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

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

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

typedef struct _GitgAuthorDetailsDialog GitgAuthorDetailsDialog;
typedef struct _GitgAuthorDetailsDialogClass GitgAuthorDetailsDialogClass;

#define GITG_APPLICATION_TYPE_ACCEL (gitg_application_accel_get_type ())
typedef struct _GitgApplicationAccel GitgApplicationAccel;

#define GITG_APPLICATION_TYPE_MULTI_ACCEL (gitg_application_multi_accel_get_type ())
typedef struct _GitgApplicationMultiAccel GitgApplicationMultiAccel;

#define GITG_APPLICATION_TYPE_OPTIONS (gitg_application_options_get_type ())
typedef struct _GitgApplicationOptions GitgApplicationOptions;

struct _GitgApplication {
	GtkApplication parent_instance;
	GitgApplicationPrivate * priv;
};

struct _GitgApplicationClass {
	GtkApplicationClass parent_class;
};

struct _GitgApplicationPrivate {
	GSettings* d_state_settings;
	GitgPreferencesDialog* d_preferences;
	GtkShortcutsWindow* d_shortcuts;
};

struct _GitgApplicationAccel {
	gchar* name;
	gchar* accel;
};

struct _GitgApplicationMultiAccel {
	gchar* name;
	gchar** accels;
	gint accels_length1;
	gint _accels_size_;
};

struct _GitgApplicationOptions {
};


static gpointer gitg_application_parent_class = NULL;
static gboolean gitg_application_options_quit;
static gchar* gitg_application_options_activity;
static gboolean gitg_application_options_no_wd;
static GApplicationCommandLine* gitg_application_options_command_line;
static gboolean gitg_application_options_quit = FALSE;
static gchar* gitg_application_options_activity = NULL;
static gboolean gitg_application_options_no_wd = FALSE;
static GApplicationCommandLine* gitg_application_options_command_line = NULL;

GType gitg_application_get_type (void) G_GNUC_CONST;
GType gitg_preferences_dialog_get_type (void) G_GNUC_CONST;
#define GITG_APPLICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_APPLICATION, GitgApplicationPrivate))
enum  {
	GITG_APPLICATION_DUMMY_PROPERTY,
	GITG_APPLICATION_STATE_SETTINGS
};
static void gitg_application_on_app_new_window_activated (GitgApplication* self);
static void _gitg_application_on_app_new_window_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_application_on_app_about_activated (GitgApplication* self);
static void _gitg_application_on_app_about_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_application_on_app_quit_activated (GitgApplication* self);
static void _gitg_application_on_app_quit_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_application_on_app_author_details_global_activated (GitgApplication* self);
static void _gitg_application_on_app_author_details_global_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_application_on_preferences_activated (GitgApplication* self);
static void _gitg_application_on_preferences_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
static void gitg_application_on_shortcuts_activated (GitgApplication* self);
static void _gitg_application_on_shortcuts_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
GitgApplication* gitg_application_new (void);
GitgApplication* gitg_application_construct (GType object_type);
static gboolean gitg_application_show_version_and_quit (void);
static GitgExtCommandLines* gitg_application_parse_command_line (GitgApplication* self, gchar*** argv, int* argv_length1, GError** error);
static gboolean gitg_application_options_commit_activity (void);
GType gitg_history_command_line_get_type (void) G_GNUC_CONST;
GitgHistoryCommandLine* gitg_history_command_line_new (void);
GitgHistoryCommandLine* gitg_history_command_line_construct (GType object_type);
static void _vala_array_add8 (GitgExtCommandLine*** array, int* length, int* size, GitgExtCommandLine* value);
GType gitg_plugins_engine_get_type (void) G_GNUC_CONST;
GitgPluginsEngine* gitg_plugins_engine_get_default (void);
static PeasPluginInfo* _vala_PeasPluginInfo_copy (PeasPluginInfo* self);
static void _vala_array_add9 (GitgExtCommandLine*** array, int* length, int* size, GitgExtCommandLine* value);
static void _vala_PeasPluginInfo_free (PeasPluginInfo* self);
static gboolean gitg_application_real_local_command_line (GApplication* base, gchar*** arguments, gint* exit_status);
static gchar** _vala_array_dup16 (gchar** self, int length);
void gitg_plugins_engine_initialize (void);
static gint gitg_application_real_command_line (GApplication* base, GApplicationCommandLine* cmd);
static void _vala_array_add10 (GFile*** array, int* length, int* size, GFile* value);
static void gitg_application_open_command_line (GitgApplication* self, GFile** files, int files_length1, const gchar* hint, GitgExtCommandLines* command_lines);
static void gitg_application_activate_command_line (GitgApplication* self, GitgExtCommandLines* command_lines);
static void gitg_application_new_window (GitgApplication* self, GitgRepository* repo, const gchar* hint, GitgExtCommandLines* command_lines);
gpointer gitg_builder_load_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* id, const gchar* object);
static void ___lambda168_ (GitgApplication* self, GtkWidget* w);
static void ____lambda168__gtk_widget_destroy (GtkWidget* _sender, gpointer self);
static void ___lambda169_ (GitgApplication* self, GtkWidget* w);
static void ____lambda169__gtk_widget_destroy (GtkWidget* _sender, gpointer self);
GType gitg_window_get_type (void) G_GNUC_CONST;
GType gitg_author_details_dialog_get_type (void) G_GNUC_CONST;
GitgAuthorDetailsDialog* gitg_author_details_dialog_show_global (GitgWindow* window);
static void gitg_application_init_error (GitgApplication* self, const gchar* msg);
static void __lambda170_ (GitgApplication* self);
static void ___lambda170__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void gitg_application_real_startup (GApplication* base);
static GType gitg_application_accel_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgApplicationAccel* gitg_application_accel_dup (const GitgApplicationAccel* self);
static void gitg_application_accel_free (GitgApplicationAccel* self);
static void gitg_application_accel_copy (const GitgApplicationAccel* self, GitgApplicationAccel* dest);
static void gitg_application_accel_destroy (GitgApplicationAccel* self);
static GType gitg_application_multi_accel_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgApplicationMultiAccel* gitg_application_multi_accel_dup (const GitgApplicationMultiAccel* self);
static void gitg_application_multi_accel_free (GitgApplicationMultiAccel* self);
static void gitg_application_multi_accel_copy (const GitgApplicationMultiAccel* self, GitgApplicationMultiAccel* dest);
static void gitg_application_multi_accel_destroy (GitgApplicationMultiAccel* self);
static void gitg_application_add_css (GitgApplication* self, const gchar* path);
static void _vala_GitgApplicationMultiAccel_array_free (GitgApplicationMultiAccel* array, gint array_length);
static void gitg_application_real_shutdown (GApplication* base);
static void gitg_application_present_window (GitgApplication* self, const gchar* activity, GitgExtCommandLines* command_lines);
static void gitg_application_real_activate (GApplication* base);
static GitgWindow* gitg_application_find_window_for_file (GitgApplication* self, GFile* file);
static void gitg_application_real_open (GApplication* base, GFile** files, int files_length1, const gchar* hint);
void gitg_window_set_environment (GitgWindow* self, gchar** environment, int environment_length1);
void gitg_window_present (GitgWindow* self, const gchar* hint, GitgExtCommandLines* command_lines);
GitgWindow* gitg_window_create_new (GtkApplication* app, GitgRepository* repository, const gchar* action);
GSettings* gitg_application_get_state_settings (GitgApplication* self);
static GType gitg_application_options_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgApplicationOptions* gitg_application_options_dup (const GitgApplicationOptions* self);
static void gitg_application_options_free (GitgApplicationOptions* self);
static gchar** _vala_array_dup17 (gchar** self, int length);
static void gitg_application_finalize (GObject* obj);
static void _vala_gitg_application_get_property (GObject * object, guint property_id, 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_APPLICATION_app_entries[5] = {{"new", _gitg_application_on_app_new_window_activated_gsimple_action_activate_callback}, {"about", _gitg_application_on_app_about_activated_gsimple_action_activate_callback}, {"quit", _gitg_application_on_app_quit_activated_gsimple_action_activate_callback}, {"author-details-global", _gitg_application_on_app_author_details_global_activated_gsimple_action_activate_callback}, {"preferences", _gitg_application_on_preferences_activated_gsimple_action_activate_callback}};
static const GActionEntry GITG_APPLICATION_shortcut_window_entries[1] = {{"shortcuts", _gitg_application_on_shortcuts_activated_gsimple_action_activate_callback}};
static const GOptionEntry GITG_APPLICATION_OPTIONS_entries[5] = {{"version", 'v', (gint) G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, (void*) gitg_application_show_version_and_quit, "Show the application's version", NULL}, {"activity", '\0', 0, G_OPTION_ARG_STRING, &gitg_application_options_activity, "Start gitg with a particular activity", NULL}, {"commit", 'c', (gint) G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, (void*) gitg_application_options_commit_activity, "Start gitg with the commit activity (shorthand for --activity commit)", NULL}, {"no-wd", (gchar) 0, 0, G_OPTION_ARG_NONE, &gitg_application_options_no_wd, "Do not try to load a repository from the current working directory", NULL}, {NULL}};

static void _gitg_application_on_app_new_window_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 309 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_app_new_window_activated ((GitgApplication*) self);
#line 249 "gitg-application.c"
}


static void _gitg_application_on_app_about_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 309 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_app_about_activated ((GitgApplication*) self);
#line 256 "gitg-application.c"
}


static void _gitg_application_on_app_quit_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 309 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_app_quit_activated ((GitgApplication*) self);
#line 263 "gitg-application.c"
}


static void _gitg_application_on_app_author_details_global_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 309 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_app_author_details_global_activated ((GitgApplication*) self);
#line 270 "gitg-application.c"
}


static void _gitg_application_on_preferences_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 309 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_preferences_activated ((GitgApplication*) self);
#line 277 "gitg-application.c"
}


static void _gitg_application_on_shortcuts_activated_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 318 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_on_shortcuts_activated ((GitgApplication*) self);
#line 284 "gitg-application.c"
}


GitgApplication* gitg_application_construct (GType object_type) {
	GitgApplication * self = NULL;
#line 34 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) g_object_new (object_type, "application-id", "org.gnome.gitg", "flags", (G_APPLICATION_HANDLES_OPEN | G_APPLICATION_HANDLES_COMMAND_LINE) | G_APPLICATION_SEND_ENVIRONMENT, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return self;
#line 294 "gitg-application.c"
}


GitgApplication* gitg_application_new (void) {
#line 32 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return gitg_application_construct (GITG_TYPE_APPLICATION);
#line 301 "gitg-application.c"
}


static gboolean gitg_application_show_version_and_quit (void) {
	gboolean result = FALSE;
	FILE* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = stdout;
#line 84 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_get_application_name ();
#line 84 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	fprintf (_tmp0_, "%s %s\n", _tmp1_, VERSION);
#line 88 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_options_quit = TRUE;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = TRUE;
#line 89 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 321 "gitg-application.c"
}


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


static void _vala_array_add8 (GitgExtCommandLine*** array, int* length, int* size, GitgExtCommandLine* value) {
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if ((*length) == (*size)) {
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*array = g_renew (GitgExtCommandLine*, *array, (*size) + 1);
#line 339 "gitg-application.c"
	}
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[(*length)++] = value;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[*length] = NULL;
#line 345 "gitg-application.c"
}


static PeasPluginInfo* _vala_PeasPluginInfo_copy (PeasPluginInfo* self) {
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return g_boxed_copy (peas_plugin_info_get_type (), self);
#line 352 "gitg-application.c"
}


static gpointer __vala_PeasPluginInfo_copy0 (gpointer self) {
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return self ? _vala_PeasPluginInfo_copy (self) : NULL;
#line 359 "gitg-application.c"
}


static void _vala_array_add9 (GitgExtCommandLine*** array, int* length, int* size, GitgExtCommandLine* value) {
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if ((*length) == (*size)) {
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*array = g_renew (GitgExtCommandLine*, *array, (*size) + 1);
#line 370 "gitg-application.c"
	}
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[(*length)++] = value;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[*length] = NULL;
#line 376 "gitg-application.c"
}


static void _vala_PeasPluginInfo_free (PeasPluginInfo* self) {
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_boxed_free (peas_plugin_info_get_type (), self);
#line 383 "gitg-application.c"
}


static GitgExtCommandLines* gitg_application_parse_command_line (GitgApplication* self, gchar*** argv, int* argv_length1, GError** error) {
	GitgExtCommandLines* result = NULL;
	GOptionContext* ctx = NULL;
	const gchar* _tmp0_ = NULL;
	GOptionContext* _tmp1_ = NULL;
	GOptionContext* _tmp2_ = NULL;
	GOptionContext* _tmp3_ = NULL;
	GOptionGroup* _tmp4_ = NULL;
	GitgExtCommandLine** cmdexts = NULL;
	GitgExtCommandLine** _tmp5_ = NULL;
	gint cmdexts_length1 = 0;
	gint _cmdexts_size_ = 0;
	GitgHistoryCommandLine* historycmd = NULL;
	GitgHistoryCommandLine* _tmp6_ = NULL;
	GitgExtCommandLine** _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	GitgHistoryCommandLine* _tmp8_ = NULL;
	GitgExtCommandLine* _tmp9_ = NULL;
	GOptionContext* _tmp10_ = NULL;
	GitgHistoryCommandLine* _tmp11_ = NULL;
	GOptionGroup* _tmp12_ = NULL;
	GitgPluginsEngine* engine = NULL;
	GitgPluginsEngine* _tmp13_ = NULL;
	GitgPluginsEngine* _tmp14_ = NULL;
	GList* _tmp15_ = NULL;
	GOptionContext* _tmp30_ = NULL;
	GitgExtCommandLines* ret = NULL;
	GitgExtCommandLine** _tmp31_ = NULL;
	gint _tmp31__length1 = 0;
	GitgExtCommandLines* _tmp32_ = NULL;
	GitgExtCommandLines* _tmp33_ = NULL;
	GError * _inner_error_ = NULL;
#line 92 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 94 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = _ ("- Git repository viewer");
#line 94 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_option_context_new (_tmp0_);
#line 94 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	ctx = _tmp1_;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = ctx;
#line 96 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_option_context_add_main_entries (_tmp2_, GITG_APPLICATION_OPTIONS_entries, GETTEXT_PACKAGE);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = ctx;
#line 97 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = gtk_get_option_group (TRUE);
#line 97 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_option_context_add_group (_tmp3_, _tmp4_);
#line 99 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp5_ = g_new0 (GitgExtCommandLine*, 0 + 1);
#line 99 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cmdexts = _tmp5_;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cmdexts_length1 = 0;
#line 99 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_cmdexts_size_ = cmdexts_length1;
#line 101 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp6_ = gitg_history_command_line_new ();
#line 101 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	historycmd = _tmp6_;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7_ = cmdexts;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7__length1 = cmdexts_length1;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = historycmd;
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_ = _g_object_ref0 ((GitgExtCommandLine*) _tmp8_);
#line 102 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_vala_array_add8 (&cmdexts, &cmdexts_length1, &_cmdexts_size_, _tmp9_);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp10_ = ctx;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp11_ = historycmd;
#line 104 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp12_ = gitg_ext_command_line_get_option_group ((GitgExtCommandLine*) _tmp11_);
#line 104 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_option_context_add_group (_tmp10_, _tmp12_);
#line 107 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp13_ = gitg_plugins_engine_get_default ();
#line 107 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	engine = _tmp13_;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp14_ = engine;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp15_ = peas_engine_get_plugin_list ((PeasEngine*) _tmp14_);
#line 475 "gitg-application.c"
	{
		GList* info_collection = NULL;
		GList* info_it = NULL;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		info_collection = _tmp15_;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (info_it = info_collection; info_it != NULL; info_it = info_it->next) {
#line 483 "gitg-application.c"
			PeasPluginInfo* _tmp16_ = NULL;
			PeasPluginInfo* info = NULL;
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp16_ = __vala_PeasPluginInfo_copy0 ((PeasPluginInfo*) info_it->data);
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			info = _tmp16_;
#line 490 "gitg-application.c"
			{
				PeasPluginInfo* _tmp17_ = NULL;
				const gchar* _tmp18_ = NULL;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp17_ = info;
#line 111 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp18_ = peas_plugin_info_get_external_data (_tmp17_, "CommandLine");
#line 111 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (_tmp18_ != NULL) {
#line 500 "gitg-application.c"
					GitgExtCommandLine* ext = NULL;
					GitgPluginsEngine* _tmp19_ = NULL;
					PeasPluginInfo* _tmp20_ = NULL;
					PeasExtension* _tmp21_ = NULL;
					GitgExtCommandLine* _tmp22_ = NULL;
					GitgExtCommandLine* _tmp23_ = NULL;
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp19_ = engine;
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp20_ = info;
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp21_ = peas_engine_create_extension ((PeasEngine*) _tmp19_, _tmp20_, GITG_EXT_TYPE_COMMAND_LINE, NULL);
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, GITG_EXT_TYPE_COMMAND_LINE) ? ((GitgExtCommandLine*) _tmp21_) : NULL;
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					if (_tmp22_ == NULL) {
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_g_object_unref0 (_tmp21_);
#line 519 "gitg-application.c"
					}
#line 113 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					ext = _tmp22_;
#line 115 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp23_ = ext;
#line 115 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					if (_tmp23_ != NULL) {
#line 527 "gitg-application.c"
						GitgExtCommandLine** _tmp24_ = NULL;
						gint _tmp24__length1 = 0;
						GitgExtCommandLine* _tmp25_ = NULL;
						GitgExtCommandLine* _tmp26_ = NULL;
						GOptionContext* _tmp27_ = NULL;
						GitgExtCommandLine* _tmp28_ = NULL;
						GOptionGroup* _tmp29_ = NULL;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp24_ = cmdexts;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp24__length1 = cmdexts_length1;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp25_ = ext;
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp26_ = _g_object_ref0 (_tmp25_);
#line 117 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_vala_array_add9 (&cmdexts, &cmdexts_length1, &_cmdexts_size_, _tmp26_);
#line 118 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp27_ = ctx;
#line 118 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp28_ = ext;
#line 118 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						_tmp29_ = gitg_ext_command_line_get_option_group (_tmp28_);
#line 118 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
						g_option_context_add_group (_tmp27_, _tmp29_);
#line 553 "gitg-application.c"
					}
#line 111 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (ext);
#line 557 "gitg-application.c"
				}
#line 109 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				__vala_PeasPluginInfo_free0 (info);
#line 561 "gitg-application.c"
			}
		}
	}
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp30_ = ctx;
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_option_context_parse (_tmp30_, argv_length1, argv, &_inner_error_);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (_inner_error_->domain == G_OPTION_ERROR) {
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			g_propagate_error (error, _inner_error_);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_object_unref0 (engine);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_object_unref0 (historycmd);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			cmdexts = (_vala_array_free (cmdexts, cmdexts_length1, (GDestroyNotify) g_object_unref), NULL);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_option_context_free0 (ctx);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			return NULL;
#line 585 "gitg-application.c"
		} else {
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_object_unref0 (engine);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_object_unref0 (historycmd);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			cmdexts = (_vala_array_free (cmdexts, cmdexts_length1, (GDestroyNotify) g_object_unref), NULL);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_option_context_free0 (ctx);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.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 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			g_clear_error (&_inner_error_);
#line 123 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			return NULL;
#line 601 "gitg-application.c"
		}
	}
#line 125 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp31_ = cmdexts;
#line 125 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp31__length1 = cmdexts_length1;
#line 125 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp32_ = gitg_ext_command_lines_new (_tmp31_, _tmp31__length1);
#line 125 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	ret = _tmp32_;
#line 126 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp33_ = ret;
#line 126 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_ext_command_lines_parse_finished (_tmp33_);
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = ret;
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (engine);
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (historycmd);
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cmdexts = (_vala_array_free (cmdexts, cmdexts_length1, (GDestroyNotify) g_object_unref), NULL);
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_option_context_free0 (ctx);
#line 128 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 628 "gitg-application.c"
}


static gchar** _vala_array_dup16 (gchar** self, int length) {
	gchar** result;
	int i;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = g_new0 (gchar*, length + 1);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	for (i = 0; i < length; i++) {
#line 639 "gitg-application.c"
		gchar* _tmp0_ = NULL;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp0_ = g_strdup (self[i]);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result[i] = _tmp0_;
#line 645 "gitg-application.c"
	}
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 649 "gitg-application.c"
}


static gboolean gitg_application_real_local_command_line (GApplication* base, gchar*** arguments, gint* exit_status) {
	GitgApplication * self;
	gint _vala_exit_status = 0;
	gboolean result = FALSE;
	gchar** cp = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	gint cp_length1 = 0;
	gint _cp_size_ = 0;
	gchar** argv = NULL;
	gchar** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	gint argv_length1 = 0;
	gint _argv_size_ = 0;
	gboolean _tmp9_ = FALSE;
	gint _tmp10_ = 0;
	gboolean _tmp11_ = FALSE;
	GError * _inner_error_ = NULL;
#line 131 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = *arguments;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0__length1 = _vala_array_length (*arguments);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup16 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1__length1 = _tmp0__length1;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cp = _tmp1_;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cp_length1 = _tmp1__length1;
#line 134 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_cp_size_ = cp_length1;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = cp;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2__length1 = cp_length1;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	argv = _tmp2_;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	argv_length1 = _tmp2__length1;
#line 135 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_argv_size_ = argv_length1;
#line 137 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_plugins_engine_initialize ();
#line 701 "gitg-application.c"
	{
		GitgExtCommandLines* _tmp3_ = NULL;
		GitgExtCommandLines* _tmp4_ = NULL;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = gitg_application_parse_command_line (self, &argv, &argv_length1, &_inner_error_);
#line 142 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = _tmp3_;
#line 142 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (_tmp4_);
#line 142 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 713 "gitg-application.c"
			goto __catch42_g_error;
		}
	}
	goto __finally42;
	__catch42_g_error:
	{
		GError* e = NULL;
		FILE* _tmp5_ = NULL;
		GError* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		e = _inner_error_;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_inner_error_ = NULL;
#line 146 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = stderr;
#line 146 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp6_ = e;
#line 146 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = _tmp6_->message;
#line 146 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		fprintf (_tmp5_, "Failed to parse options: %s\n", _tmp7_);
#line 147 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_vala_exit_status = 1;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result = TRUE;
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_error_free0 (e);
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		cp = (_vala_array_free (cp, cp_length1, (GDestroyNotify) g_free), NULL);
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (exit_status) {
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			*exit_status = _vala_exit_status;
#line 748 "gitg-application.c"
		}
#line 148 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return result;
#line 752 "gitg-application.c"
	}
	__finally42:
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 757 "gitg-application.c"
		gboolean _tmp8_ = FALSE;
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		cp = (_vala_array_free (cp, cp_length1, (GDestroyNotify) g_free), NULL);
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.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 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_clear_error (&_inner_error_);
#line 139 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return _tmp8_;
#line 767 "gitg-application.c"
	}
#line 151 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_ = gitg_application_options_quit;
#line 151 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp9_) {
#line 153 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_vala_exit_status = 0;
#line 154 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result = TRUE;
#line 154 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		cp = (_vala_array_free (cp, cp_length1, (GDestroyNotify) g_free), NULL);
#line 154 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (exit_status) {
#line 154 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			*exit_status = _vala_exit_status;
#line 783 "gitg-application.c"
		}
#line 154 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return result;
#line 787 "gitg-application.c"
	}
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp11_ = G_APPLICATION_CLASS (gitg_application_parent_class)->local_command_line ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication), arguments, &_tmp10_);
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_vala_exit_status = _tmp10_;
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = _tmp11_;
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	cp = (_vala_array_free (cp, cp_length1, (GDestroyNotify) g_free), NULL);
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (exit_status) {
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*exit_status = _vala_exit_status;
#line 801 "gitg-application.c"
	}
#line 157 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 805 "gitg-application.c"
}


static void _vala_array_add10 (GFile*** array, int* length, int* size, GFile* value) {
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if ((*length) == (*size)) {
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		*array = g_renew (GFile*, *array, (*size) + 1);
#line 816 "gitg-application.c"
	}
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[(*length)++] = value;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*array)[*length] = NULL;
#line 822 "gitg-application.c"
}


static gint gitg_application_real_command_line (GApplication* base, GApplicationCommandLine* cmd) {
	GitgApplication * self;
	gint result = 0;
	gchar** arguments = NULL;
	GApplicationCommandLine* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gchar** _tmp2_ = NULL;
	gint arguments_length1 = 0;
	gint _arguments_size_ = 0;
	gchar** argv = NULL;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	gint argv_length1 = 0;
	gint _argv_size_ = 0;
	GitgExtCommandLines* command_lines = NULL;
	gboolean _tmp11_ = FALSE;
	GApplicationCommandLine* _tmp12_ = NULL;
	gboolean _tmp13_ = FALSE;
	GApplicationCommandLine* tmpcmd = NULL;
	GApplicationCommandLine* _tmp16_ = NULL;
	GApplicationCommandLine* _tmp17_ = NULL;
	GApplicationCommandLine* _tmp18_ = NULL;
	GApplicationCommandLine* _tmp19_ = NULL;
	gchar** _tmp20_ = NULL;
	gint _tmp20__length1 = 0;
	GApplicationCommandLine* _tmp34_ = NULL;
	GApplicationCommandLine* _tmp35_ = NULL;
	GError * _inner_error_ = NULL;
#line 160 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 160 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_val_if_fail (cmd != NULL, 0);
#line 162 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = cmd;
#line 162 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = g_application_command_line_get_arguments (_tmp0_, &_tmp1_);
#line 162 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	arguments = _tmp2_;
#line 162 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	arguments_length1 = _tmp1_;
#line 162 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_arguments_size_ = arguments_length1;
#line 163 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = arguments;
#line 163 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3__length1 = arguments_length1;
#line 163 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	argv = _tmp3_;
#line 163 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	argv_length1 = _tmp3__length1;
#line 163 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_argv_size_ = argv_length1;
#line 878 "gitg-application.c"
	{
		GitgExtCommandLines* _tmp4_ = NULL;
		GitgExtCommandLines* _tmp5_ = NULL;
		GitgExtCommandLines* _tmp6_ = NULL;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = gitg_application_parse_command_line (self, &argv, &argv_length1, &_inner_error_);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = _tmp5_;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 889 "gitg-application.c"
			goto __catch43_g_error;
		}
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp6_ = _tmp4_;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = NULL;
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (command_lines);
#line 168 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		command_lines = _tmp6_;
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (_tmp4_);
#line 902 "gitg-application.c"
	}
	goto __finally43;
	__catch43_g_error:
	{
		GError* e = NULL;
		GApplicationCommandLine* _tmp7_ = NULL;
		GError* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		e = _inner_error_;
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_inner_error_ = NULL;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = cmd;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp8_ = e;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9_ = _tmp8_->message;
#line 172 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_application_command_line_printerr (_tmp7_, "option parsing failed: %s\n", _tmp9_);
#line 173 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result = 1;
#line 173 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_error_free0 (e);
#line 173 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (command_lines);
#line 173 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		arguments = (_vala_array_free (arguments, arguments_length1, (GDestroyNotify) g_free), NULL);
#line 173 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return result;
#line 933 "gitg-application.c"
	}
	__finally43:
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 938 "gitg-application.c"
		gint _tmp10_ = 0;
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (command_lines);
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		arguments = (_vala_array_free (arguments, arguments_length1, (GDestroyNotify) g_free), NULL);
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.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 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_clear_error (&_inner_error_);
#line 166 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return _tmp10_;
#line 950 "gitg-application.c"
	}
#line 176 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp11_ = gitg_application_options_quit;
#line 176 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp11_) {
#line 178 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result = 0;
#line 178 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (command_lines);
#line 178 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		arguments = (_vala_array_free (arguments, arguments_length1, (GDestroyNotify) g_free), NULL);
#line 178 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return result;
#line 964 "gitg-application.c"
	}
#line 181 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp12_ = cmd;
#line 181 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp13_ = g_application_command_line_get_is_remote (_tmp12_);
#line 181 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (!_tmp13_) {
#line 972 "gitg-application.c"
		GApplicationCommandLine* _tmp14_ = NULL;
		GApplicationCommandLine* _tmp15_ = NULL;
#line 183 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp14_ = cmd;
#line 183 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp15_ = _g_object_ref0 (_tmp14_);
#line 183 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (gitg_application_options_command_line);
#line 183 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_options_command_line = _tmp15_;
#line 983 "gitg-application.c"
	}
#line 186 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp16_ = gitg_application_options_command_line;
#line 186 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp17_ = _g_object_ref0 (_tmp16_);
#line 186 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	tmpcmd = _tmp17_;
#line 187 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp18_ = cmd;
#line 187 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp19_ = _g_object_ref0 (_tmp18_);
#line 187 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (gitg_application_options_command_line);
#line 187 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_options_command_line = _tmp19_;
#line 189 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp20_ = argv;
#line 189 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp20__length1 = argv_length1;
#line 189 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp20__length1 > 1) {
#line 1005 "gitg-application.c"
		GFile** files = NULL;
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		GFile** _tmp22_ = NULL;
		gint files_length1 = 0;
		gint _files_size_ = 0;
		gint _tmp23_ = 0;
		gchar** _tmp24_ = NULL;
		gint _tmp24__length1 = 0;
		gchar** _tmp25_ = NULL;
		gint _tmp25__length1 = 0;
		GFile** _tmp30_ = NULL;
		gint _tmp30__length1 = 0;
		const gchar* _tmp31_ = NULL;
		GitgExtCommandLines* _tmp32_ = NULL;
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp21_ = argv;
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp21__length1 = argv_length1;
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp22_ = g_new0 (GFile*, (_tmp21__length1 - 1) + 1);
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		files = _tmp22_;
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		files_length1 = _tmp21__length1 - 1;
#line 191 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_files_size_ = files_length1;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		files_length1 = 0;
#line 192 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp23_ = files_length1;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp24_ = argv;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp24__length1 = argv_length1;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp25_ = argv;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp25__length1 = argv_length1;
#line 1045 "gitg-application.c"
		{
			gchar** arg_collection = NULL;
			gint arg_collection_length1 = 0;
			gint _arg_collection_size_ = 0;
			gint arg_it = 0;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			arg_collection = _tmp24_ + 1;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			arg_collection_length1 = _tmp25__length1 - 1;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			for (arg_it = 0; arg_it < (_tmp25__length1 - 1); arg_it = arg_it + 1) {
#line 1057 "gitg-application.c"
				gchar* _tmp26_ = NULL;
				gchar* arg = NULL;
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp26_ = g_strdup (arg_collection[arg_it]);
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				arg = _tmp26_;
#line 1064 "gitg-application.c"
				{
					GFile** _tmp27_ = NULL;
					gint _tmp27__length1 = 0;
					const gchar* _tmp28_ = NULL;
					GFile* _tmp29_ = NULL;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp27_ = files;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp27__length1 = files_length1;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp28_ = arg;
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp29_ = g_file_new_for_commandline_arg (_tmp28_);
#line 196 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_vala_array_add10 (&files, &files_length1, &_files_size_, _tmp29_);
#line 194 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_free0 (arg);
#line 1082 "gitg-application.c"
				}
			}
		}
#line 199 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp30_ = files;
#line 199 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp30__length1 = files_length1;
#line 199 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp31_ = gitg_application_options_activity;
#line 199 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp32_ = command_lines;
#line 199 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_open_command_line (self, _tmp30_, _tmp30__length1, _tmp31_, _tmp32_);
#line 189 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		files = (_vala_array_free (files, files_length1, (GDestroyNotify) g_object_unref), NULL);
#line 1098 "gitg-application.c"
	} else {
		GitgExtCommandLines* _tmp33_ = NULL;
#line 203 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp33_ = command_lines;
#line 203 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_activate_command_line (self, _tmp33_);
#line 1105 "gitg-application.c"
	}
#line 206 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp34_ = tmpcmd;
#line 206 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp35_ = _g_object_ref0 (_tmp34_);
#line 206 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (gitg_application_options_command_line);
#line 206 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_options_command_line = _tmp35_;
#line 207 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = 1;
#line 207 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (tmpcmd);
#line 207 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (command_lines);
#line 207 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	arguments = (_vala_array_free (arguments, arguments_length1, (GDestroyNotify) g_free), NULL);
#line 207 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 1125 "gitg-application.c"
}


static void gitg_application_on_app_new_window_activated (GitgApplication* self) {
#line 210 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 212 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_new_window (self, NULL, NULL, NULL);
#line 1134 "gitg-application.c"
}


static void gitg_application_on_app_about_activated (GitgApplication* self) {
	gchar** artists = NULL;
	gchar* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gint artists_length1 = 0;
	gint _artists_size_ = 0;
	gchar** authors = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar** _tmp4_ = NULL;
	gint authors_length1 = 0;
	gint _authors_size_ = 0;
	gchar* copyright = NULL;
	gchar* _tmp5_ = NULL;
	gchar* comments = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GList* wnds = NULL;
	GList* _tmp8_ = NULL;
	GtkWindow* _tmp9_ = NULL;
	GList* _tmp10_ = NULL;
	gchar** _tmp13_ = NULL;
	gint _tmp13__length1 = 0;
	gchar** _tmp14_ = NULL;
	gint _tmp14__length1 = 0;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
#line 215 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = g_strdup ("Jakub Steiner <jimmac@gmail.com>");
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_new0 (gchar*, 1 + 1);
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_[0] = _tmp0_;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	artists = _tmp1_;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	artists_length1 = 1;
#line 217 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_artists_size_ = artists_length1;
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = g_strdup ("Jesse van den Kieboom <jessevdk@gnome.org>");
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = g_strdup ("Ignacio Casal Quinteiro <icq@gnome.org>");
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = g_new0 (gchar*, 2 + 1);
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_[0] = _tmp2_;
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_[1] = _tmp3_;
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	authors = _tmp4_;
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	authors_length1 = 2;
#line 218 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_authors_size_ = authors_length1;
#line 221 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp5_ = g_strdup ("Copyright \xc2\xa9 2012 Jesse van den Kieboom");
#line 221 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	copyright = _tmp5_;
#line 222 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp6_ = _ ("gitg is a Git repository viewer for gtk+/GNOME");
#line 222 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7_ = g_strdup (_tmp6_);
#line 222 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	comments = _tmp7_;
#line 224 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = gtk_application_get_windows ((GtkApplication*) self);
#line 224 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	wnds = _tmp8_;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp10_ = wnds;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp10_ != NULL) {
#line 1215 "gitg-application.c"
		GList* _tmp11_ = NULL;
		gconstpointer _tmp12_ = NULL;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp11_ = wnds;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp12_ = _tmp11_->data;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9_ = (GtkWindow*) _tmp12_;
#line 1224 "gitg-application.c"
	} else {
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9_ = NULL;
#line 1228 "gitg-application.c"
	}
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp13_ = artists;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp13__length1 = artists_length1;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp14_ = authors;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp14__length1 = authors_length1;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp15_ = copyright;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp16_ = comments;
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp17_ = _ ("translator-credits");
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp18_ = _ ("gitg homepage");
#line 226 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_show_about_dialog (_tmp9_, "artists", _tmp13_, "authors", _tmp14_, "copyright", _tmp15_, "comments", _tmp16_, "translator-credits", _tmp17_, "version", VERSION, "website", PACKAGE_URL, "website-label", _tmp18_, "logo-icon-name", PACKAGE_NAME, "license-type", GTK_LICENSE_GPL_2_0, NULL);
#line 215 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (comments);
#line 215 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (copyright);
#line 215 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
#line 215 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	artists = (_vala_array_free (artists, artists_length1, (GDestroyNotify) g_free), NULL);
#line 1256 "gitg-application.c"
}


static void gitg_application_on_app_quit_activated (GitgApplication* self) {
	GList* wnds = NULL;
	GList* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
#line 239 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_list_copy (_tmp0_);
#line 241 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	wnds = _tmp1_;
#line 243 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = wnds;
#line 1275 "gitg-application.c"
	{
		GList* window_collection = NULL;
		GList* window_it = NULL;
#line 243 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		window_collection = _tmp2_;
#line 243 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (window_it = window_collection; window_it != NULL; window_it = window_it->next) {
#line 1283 "gitg-application.c"
			GtkWindow* window = NULL;
#line 243 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			window = (GtkWindow*) window_it->data;
#line 1287 "gitg-application.c"
			{
				GtkWindow* _tmp3_ = NULL;
#line 245 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp3_ = window;
#line 245 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				gtk_widget_destroy ((GtkWidget*) _tmp3_);
#line 1294 "gitg-application.c"
			}
		}
	}
#line 239 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_list_free0 (wnds);
#line 1300 "gitg-application.c"
}


static void ___lambda168_ (GitgApplication* self, GtkWidget* w) {
#line 258 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (w != NULL);
#line 259 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_preferences);
#line 259 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self->priv->d_preferences = NULL;
#line 1311 "gitg-application.c"
}


static void ____lambda168__gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
#line 258 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	___lambda168_ ((GitgApplication*) self, _sender);
#line 1318 "gitg-application.c"
}


static void gitg_application_on_preferences_activated (GitgApplication* self) {
	GList* wnds = NULL;
	GList* _tmp0_ = NULL;
	GitgPreferencesDialog* _tmp1_ = NULL;
	GList* _tmp4_ = NULL;
	GitgPreferencesDialog* _tmp8_ = NULL;
#line 249 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 251 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 251 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	wnds = _tmp0_;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = self->priv->d_preferences;
#line 254 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp1_ == NULL) {
#line 1338 "gitg-application.c"
		gpointer _tmp2_ = NULL;
		GitgPreferencesDialog* _tmp3_ = NULL;
#line 256 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp2_ = gitg_builder_load_object (GITG_TYPE_PREFERENCES_DIALOG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, "ui/gitg-preferences.ui", "preferences");
#line 256 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (self->priv->d_preferences);
#line 256 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		self->priv->d_preferences = (GitgPreferencesDialog*) _tmp2_;
#line 258 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = self->priv->d_preferences;
#line 258 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_signal_connect_object ((GtkWidget*) _tmp3_, "destroy", (GCallback) ____lambda168__gtk_widget_destroy, self, 0);
#line 1351 "gitg-application.c"
	}
#line 263 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = wnds;
#line 263 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp4_ != NULL) {
#line 1357 "gitg-application.c"
		GitgPreferencesDialog* _tmp5_ = NULL;
		GList* _tmp6_ = NULL;
		gconstpointer _tmp7_ = NULL;
#line 265 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = self->priv->d_preferences;
#line 265 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp6_ = wnds;
#line 265 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = _tmp6_->data;
#line 265 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gtk_window_set_transient_for ((GtkWindow*) _tmp5_, (GtkWindow*) _tmp7_);
#line 1369 "gitg-application.c"
	}
#line 268 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = self->priv->d_preferences;
#line 268 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_window_present ((GtkWindow*) _tmp8_);
#line 1375 "gitg-application.c"
}


static void ___lambda169_ (GitgApplication* self, GtkWidget* w) {
#line 282 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (w != NULL);
#line 283 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_shortcuts);
#line 283 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self->priv->d_shortcuts = NULL;
#line 1386 "gitg-application.c"
}


static void ____lambda169__gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
#line 282 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	___lambda169_ ((GitgApplication*) self, _sender);
#line 1393 "gitg-application.c"
}


static void gitg_application_on_shortcuts_activated (GitgApplication* self) {
	GList* wnds = NULL;
	GList* _tmp0_ = NULL;
	GtkShortcutsWindow* _tmp1_ = NULL;
	GList* _tmp4_ = NULL;
	GtkShortcutsWindow* _tmp8_ = NULL;
#line 271 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 275 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 275 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	wnds = _tmp0_;
#line 278 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = self->priv->d_shortcuts;
#line 278 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp1_ == NULL) {
#line 1413 "gitg-application.c"
		gpointer _tmp2_ = NULL;
		GtkShortcutsWindow* _tmp3_ = NULL;
#line 280 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp2_ = gitg_builder_load_object (GTK_TYPE_SHORTCUTS_WINDOW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, "ui/gitg-shortcuts.ui", "shortcuts-gitg");
#line 280 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (self->priv->d_shortcuts);
#line 280 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		self->priv->d_shortcuts = (GtkShortcutsWindow*) _tmp2_;
#line 282 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = self->priv->d_shortcuts;
#line 282 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_signal_connect_object ((GtkWidget*) _tmp3_, "destroy", (GCallback) ____lambda169__gtk_widget_destroy, self, 0);
#line 1426 "gitg-application.c"
	}
#line 287 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = wnds;
#line 287 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp4_ != NULL) {
#line 1432 "gitg-application.c"
		GtkShortcutsWindow* _tmp5_ = NULL;
		GList* _tmp6_ = NULL;
		gconstpointer _tmp7_ = NULL;
#line 289 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = self->priv->d_shortcuts;
#line 289 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp6_ = wnds;
#line 289 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = _tmp6_->data;
#line 289 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gtk_window_set_transient_for ((GtkWindow*) _tmp5_, (GtkWindow*) _tmp7_);
#line 1444 "gitg-application.c"
	}
#line 292 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = self->priv->d_shortcuts;
#line 292 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_window_present ((GtkWindow*) _tmp8_);
#line 1450 "gitg-application.c"
}


static void gitg_application_on_app_author_details_global_activated (GitgApplication* self) {
	GList* wnds = NULL;
	GList* _tmp0_ = NULL;
	GitgWindow* window = NULL;
	GList* _tmp1_ = NULL;
	GitgWindow* _tmp6_ = NULL;
	GitgAuthorDetailsDialog* _tmp7_ = NULL;
	GitgAuthorDetailsDialog* _tmp8_ = NULL;
#line 296 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 298 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 298 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	wnds = _tmp0_;
#line 299 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	window = NULL;
#line 301 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = wnds;
#line 301 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp1_ != NULL) {
#line 1474 "gitg-application.c"
		GList* _tmp2_ = NULL;
		gconstpointer _tmp3_ = NULL;
		GtkWindow* _tmp4_ = NULL;
		GitgWindow* _tmp5_ = NULL;
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp2_ = wnds;
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = _tmp2_->data;
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = (GtkWindow*) _tmp3_;
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, GITG_TYPE_WINDOW) ? ((GitgWindow*) _tmp4_) : NULL);
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (window);
#line 303 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		window = _tmp5_;
#line 1491 "gitg-application.c"
	}
#line 306 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp6_ = window;
#line 306 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7_ = gitg_author_details_dialog_show_global (_tmp6_);
#line 306 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = _tmp7_;
#line 306 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (_tmp8_);
#line 296 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (window);
#line 1503 "gitg-application.c"
}


static void __lambda170_ (GitgApplication* self) {
#line 346 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_main_quit ();
#line 1510 "gitg-application.c"
}


static void ___lambda170__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 346 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	__lambda170_ ((GitgApplication*) self);
#line 1517 "gitg-application.c"
}


static void gitg_application_init_error (GitgApplication* self, const gchar* msg) {
	GtkMessageDialog* dlg = NULL;
	const gchar* _tmp0_ = NULL;
	GtkMessageDialog* _tmp1_ = NULL;
#line 335 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 335 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (msg != NULL);
#line 337 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = msg;
#line 337 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", _tmp0_);
#line 337 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_object_ref_sink (_tmp1_);
#line 337 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	dlg = _tmp1_;
#line 344 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_object_set ((GtkWindow*) dlg, "window-position", GTK_WIN_POS_CENTER, NULL);
#line 346 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_signal_connect_object ((GtkDialog*) dlg, "response", (GCallback) ___lambda170__gtk_dialog_response, self, 0);
#line 347 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_widget_show ((GtkWidget*) dlg);
#line 335 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (dlg);
#line 1545 "gitg-application.c"
}


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


static void _vala_GitgApplicationMultiAccel_array_free (GitgApplicationMultiAccel* array, gint array_length) {
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (array != NULL) {
#line 1564 "gitg-application.c"
		int i;
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			gitg_application_multi_accel_destroy (&array[i]);
#line 1570 "gitg-application.c"
		}
	}
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_free (array);
#line 1575 "gitg-application.c"
}


static void gitg_application_real_startup (GApplication* base) {
	GitgApplication * self;
	GSettings* _tmp3_ = NULL;
	GSettings* _tmp4_ = NULL;
#line 384 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	static const GitgApplicationAccel single_accels[] = {{"app.new", "<Primary>N"}, {"app.quit", "<Primary>Q"}, {"app.help", "F1"}, {"win.search", "<Primary>F"}, {"win.gear-menu", "F10"}, {"win.open-repository", "<Primary>O"}, {"win.close", "<Primary>W"}};
#line 1585 "gitg-application.c"
	GitgApplicationMultiAccel* multi_accels = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar** _tmp8_ = NULL;
	GitgApplicationMultiAccel _tmp9_ = {0};
	GitgApplicationMultiAccel* _tmp10_ = NULL;
	gint multi_accels_length1 = 0;
	gint _multi_accels_size_ = 0;
	GitgApplicationMultiAccel* _tmp18_ = NULL;
	gint _tmp18__length1 = 0;
	GtkSettings* _tmp24_ = NULL;
	gboolean _tmp25_ = FALSE;
	gboolean _tmp26_ = FALSE;
	const gchar* _tmp30_ = NULL;
	gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	GtkIconTheme* theme = NULL;
	GtkIconTheme* _tmp33_ = NULL;
	GtkIconTheme* _tmp34_ = NULL;
	GtkIconTheme* _tmp35_ = NULL;
	gchar* _tmp36_ = NULL;
	gchar* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	gchar* _tmp39_ = NULL;
	GError * _inner_error_ = NULL;
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 352 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_APPLICATION_CLASS (gitg_application_parent_class)->startup ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 354 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_platform_support_application_support_prepare_startup ();
#line 1618 "gitg-application.c"
	{
#line 358 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_init (&_inner_error_);
#line 358 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1624 "gitg-application.c"
			goto __catch44_g_error;
		}
	}
	goto __finally44;
	__catch44_g_error:
	{
		GError* e = NULL;
		GError* _tmp0_ = NULL;
#line 356 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		e = _inner_error_;
#line 356 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_inner_error_ = NULL;
#line 362 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp0_ = e;
#line 362 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (g_error_matches (_tmp0_, GITG_INIT_ERROR, GITG_INIT_ERROR_THREADS_UNSAFE)) {
#line 1641 "gitg-application.c"
			gchar* errmsg = NULL;
			const gchar* _tmp1_ = NULL;
			gchar* _tmp2_ = NULL;
#line 364 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp1_ = _ ("We are terribly sorry, but gitg requires libgit2 (a library on which g" \
"itg depends) to be compiled with threading support.\n" \
"\n" \
"If you manually compiled libgit2, then please configure libgit2 with -" \
"DTHREADSAFE:BOOL=ON.\n" \
"\n" \
"Otherwise, report a bug in your distributions' bug reporting system fo" \
"r providing libgit2 without threading support.");
#line 364 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp2_ = g_strdup (_tmp1_);
#line 364 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			errmsg = _tmp2_;
#line 366 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			gitg_application_init_error (self, errmsg);
#line 367 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			g_error ("gitg-application.vala:367: %s", errmsg);
#line 362 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_g_free0 (errmsg);
#line 1657 "gitg-application.c"
		}
#line 370 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_error_free0 (e);
#line 370 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return;
#line 1663 "gitg-application.c"
	}
	__finally44:
#line 356 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 356 "/home/jesse/dev/gitg/gitg/gitg-application.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 356 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_clear_error (&_inner_error_);
#line 356 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return;
#line 1674 "gitg-application.c"
	}
#line 374 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = g_settings_new ("org.gnome.gitg.state.window");
#line 374 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 374 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self->priv->d_state_settings = _tmp3_;
#line 375 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = self->priv->d_state_settings;
#line 375 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_settings_delay (_tmp4_);
#line 378 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_action_map_add_action_entries ((GActionMap*) self, GITG_APPLICATION_app_entries, G_N_ELEMENTS (GITG_APPLICATION_app_entries), self);
#line 381 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_action_map_add_action_entries ((GActionMap*) self, GITG_APPLICATION_shortcut_window_entries, G_N_ELEMENTS (GITG_APPLICATION_shortcut_window_entries), self);
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp5_ = g_strdup ("win.reload");
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp6_ = g_strdup ("<Primary>R");
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7_ = g_strdup ("F5");
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = g_new0 (gchar*, 2 + 1);
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_[0] = _tmp6_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_[1] = _tmp7_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	memset (&_tmp9_, 0, sizeof (GitgApplicationMultiAccel));
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (_tmp9_.name);
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_.name = _tmp5_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_.accels = (_vala_array_free (_tmp9_.accels, _tmp9_.accels_length1, (GDestroyNotify) g_free), NULL);
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_.accels = _tmp8_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_.accels_length1 = 2;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_._accels_size_ = _tmp9_.accels_length1;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp10_ = g_new0 (GitgApplicationMultiAccel, 1);
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp10_[0] = _tmp9_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	multi_accels = _tmp10_;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	multi_accels_length1 = 1;
#line 395 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_multi_accels_size_ = multi_accels_length1;
#line 1726 "gitg-application.c"
	{
		GitgApplicationAccel* accel_collection = NULL;
		gint accel_collection_length1 = 0;
		gint _accel_collection_size_ = 0;
		gint accel_it = 0;
#line 402 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		accel_collection = single_accels;
#line 402 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		accel_collection_length1 = G_N_ELEMENTS (single_accels);
#line 402 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (accel_it = 0; accel_it < G_N_ELEMENTS (single_accels); accel_it = accel_it + 1) {
#line 1738 "gitg-application.c"
			GitgApplicationAccel accel = {0};
#line 402 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			accel = accel_collection[accel_it];
#line 1742 "gitg-application.c"
			{
				GitgApplicationAccel _tmp11_ = {0};
				const gchar* _tmp12_ = NULL;
				GitgApplicationAccel _tmp13_ = {0};
				const gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				gchar** _tmp16_ = NULL;
				gchar** _tmp17_ = NULL;
				gint _tmp17__length1 = 0;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp11_ = accel;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp12_ = _tmp11_.name;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp13_ = accel;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp14_ = _tmp13_.accel;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp15_ = g_strdup (_tmp14_);
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp16_ = g_new0 (gchar*, 1 + 1);
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp16_[0] = _tmp15_;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp17_ = _tmp16_;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp17__length1 = 1;
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				gtk_application_set_accels_for_action ((GtkApplication*) self, _tmp12_, _tmp17_);
#line 404 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp17_ = (_vala_array_free (_tmp17_, _tmp17__length1, (GDestroyNotify) g_free), NULL);
#line 1774 "gitg-application.c"
			}
		}
	}
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp18_ = multi_accels;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp18__length1 = multi_accels_length1;
#line 1782 "gitg-application.c"
	{
		GitgApplicationMultiAccel* accel_collection = NULL;
		gint accel_collection_length1 = 0;
		gint _accel_collection_size_ = 0;
		gint accel_it = 0;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		accel_collection = _tmp18_;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		accel_collection_length1 = _tmp18__length1;
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (accel_it = 0; accel_it < _tmp18__length1; accel_it = accel_it + 1) {
#line 1794 "gitg-application.c"
			GitgApplicationMultiAccel _tmp19_ = {0};
			GitgApplicationMultiAccel accel = {0};
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			gitg_application_multi_accel_copy (&accel_collection[accel_it], &_tmp19_);
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			accel = _tmp19_;
#line 1801 "gitg-application.c"
			{
				GitgApplicationMultiAccel _tmp20_ = {0};
				const gchar* _tmp21_ = NULL;
				GitgApplicationMultiAccel _tmp22_ = {0};
				gchar** _tmp23_ = NULL;
				gint _tmp23__length1 = 0;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp20_ = accel;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp21_ = _tmp20_.name;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp22_ = accel;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp23_ = _tmp22_.accels;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp23__length1 = _tmp22_.accels_length1;
#line 409 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				gtk_application_set_accels_for_action ((GtkApplication*) self, _tmp21_, _tmp23_);
#line 407 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				gitg_application_multi_accel_destroy (&accel);
#line 1822 "gitg-application.c"
			}
		}
	}
#line 412 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp24_ = gtk_settings_get_default ();
#line 412 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_object_get (_tmp24_, "gtk-shell-shows-app-menu", &_tmp25_, NULL);
#line 412 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp26_ = _tmp25_;
#line 412 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp26_) {
#line 1834 "gitg-application.c"
		GMenuModel* menu = NULL;
		gpointer _tmp27_ = NULL;
		GMenuModel* _tmp28_ = NULL;
#line 414 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp27_ = gitg_builder_load_object (g_menu_model_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, "ui/gitg-menus.ui", "app-menu");
#line 414 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		menu = (GMenuModel*) _tmp27_;
#line 416 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp28_ = menu;
#line 416 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		if (_tmp28_ != NULL) {
#line 1846 "gitg-application.c"
			GMenuModel* _tmp29_ = NULL;
#line 418 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp29_ = menu;
#line 418 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			gtk_application_set_app_menu ((GtkApplication*) self, _tmp29_);
#line 1852 "gitg-application.c"
		}
#line 412 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_object_unref0 (menu);
#line 1856 "gitg-application.c"
	}
#line 422 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_add_css (self, "style.css");
#line 423 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp30_ = string_to_string (PLATFORM_NAME);
#line 423 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp31_ = g_strconcat ("style-", _tmp30_, ".css", NULL);
#line 423 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp32_ = _tmp31_;
#line 423 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_add_css (self, _tmp32_);
#line 423 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (_tmp32_);
#line 425 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp33_ = gtk_icon_theme_get_default ();
#line 425 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp34_ = _g_object_ref0 (_tmp33_);
#line 425 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	theme = _tmp34_;
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp35_ = theme;
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp36_ = gitg_platform_support_get_data_dir ();
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp37_ = _tmp36_;
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp38_ = g_build_filename (_tmp37_, "icons", NULL);
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp39_ = _tmp38_;
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gtk_icon_theme_prepend_search_path (_tmp35_, _tmp39_);
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (_tmp39_);
#line 426 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (_tmp37_);
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (theme);
#line 350 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	multi_accels = (_vala_GitgApplicationMultiAccel_array_free (multi_accels, multi_accels_length1), NULL);
#line 1896 "gitg-application.c"
}


static void gitg_application_add_css (GitgApplication* self, const gchar* path) {
	GtkCssProvider* provider = NULL;
	const gchar* _tmp0_ = NULL;
	GtkCssProvider* _tmp1_ = NULL;
	GtkCssProvider* _tmp2_ = NULL;
#line 429 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 429 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (path != NULL);
#line 431 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = path;
#line 431 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = gitg_resource_load_css (_tmp0_);
#line 431 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	provider = _tmp1_;
#line 433 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = provider;
#line 433 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp2_ != NULL) {
#line 1919 "gitg-application.c"
		GdkScreen* _tmp3_ = NULL;
		GtkCssProvider* _tmp4_ = NULL;
#line 435 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = gdk_screen_get_default ();
#line 435 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = provider;
#line 435 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gtk_style_context_add_provider_for_screen (_tmp3_, (GtkStyleProvider*) _tmp4_, (guint) 600);
#line 1928 "gitg-application.c"
	}
#line 429 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (provider);
#line 1932 "gitg-application.c"
}


static void gitg_application_real_shutdown (GApplication* base) {
	GitgApplication * self;
	GSettings* _tmp0_ = NULL;
#line 441 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 443 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 443 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_settings_apply (_tmp0_);
#line 444 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_APPLICATION_CLASS (gitg_application_parent_class)->shutdown ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 1947 "gitg-application.c"
}


static void gitg_application_activate_command_line (GitgApplication* self, GitgExtCommandLines* command_lines) {
	gboolean _tmp0_ = FALSE;
#line 447 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 447 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (command_lines != NULL);
#line 449 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gitg_application_options_no_wd;
#line 449 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp0_) {
#line 1961 "gitg-application.c"
		const gchar* _tmp1_ = NULL;
		GitgExtCommandLines* _tmp2_ = NULL;
#line 451 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp1_ = gitg_application_options_activity;
#line 451 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp2_ = command_lines;
#line 451 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_present_window (self, _tmp1_, _tmp2_);
#line 1970 "gitg-application.c"
	} else {
		gchar* wd = NULL;
		GApplicationCommandLine* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		GFile* _tmp7_ = NULL;
		GFile** _tmp8_ = NULL;
		GFile** _tmp9_ = NULL;
		gint _tmp9__length1 = 0;
		const gchar* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		GitgExtCommandLines* _tmp12_ = NULL;
#line 456 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp3_ = gitg_application_options_command_line;
#line 456 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = g_application_command_line_get_cwd (_tmp3_);
#line 456 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 456 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		wd = _tmp5_;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp6_ = wd;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = g_file_new_for_path (_tmp6_);
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp8_ = g_new0 (GFile*, 1 + 1);
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp8_[0] = _tmp7_;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9_ = _tmp8_;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9__length1 = 1;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp10_ = gitg_application_options_activity;
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_application_open ((GApplication*) self, _tmp9_, 1, _tmp10_);
#line 458 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp9_ = (_vala_array_free (_tmp9_, _tmp9__length1, (GDestroyNotify) g_object_unref), NULL);
#line 459 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp11_ = gitg_application_options_activity;
#line 459 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp12_ = command_lines;
#line 459 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_present_window (self, _tmp11_, _tmp12_);
#line 449 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_g_free0 (wd);
#line 2018 "gitg-application.c"
	}
}


static void gitg_application_real_activate (GApplication* base) {
	GitgApplication * self;
#line 463 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 465 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_present_window (self, NULL, NULL);
#line 466 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_APPLICATION_CLASS (gitg_application_parent_class)->activate ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 2031 "gitg-application.c"
}


static GitgWindow* gitg_application_find_window_for_file (GitgApplication* self, GFile* file) {
	GitgWindow* result = NULL;
	GList* _tmp0_ = NULL;
#line 469 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 469 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 2044 "gitg-application.c"
	{
		GList* window_collection = NULL;
		GList* window_it = NULL;
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		window_collection = _tmp0_;
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (window_it = window_collection; window_it != NULL; window_it = window_it->next) {
#line 2052 "gitg-application.c"
			GtkWindow* _tmp1_ = NULL;
			GtkWindow* window = NULL;
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp1_ = _g_object_ref0 ((GtkWindow*) window_it->data);
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			window = _tmp1_;
#line 2059 "gitg-application.c"
			{
				GitgWindow* wnd = NULL;
				GtkWindow* _tmp2_ = NULL;
				GitgWindow* _tmp3_ = NULL;
				GitgWindow* _tmp4_ = NULL;
				GitgRepository* _tmp5_ = NULL;
				GitgRepository* _tmp6_ = NULL;
				GitgRepository* _tmp7_ = NULL;
				gboolean _tmp8_ = FALSE;
				GitgWindow* _tmp9_ = NULL;
				GitgRepository* _tmp10_ = NULL;
				GitgRepository* _tmp11_ = NULL;
				GitgRepository* _tmp12_ = NULL;
				GFile* _tmp13_ = NULL;
				GFile* _tmp14_ = NULL;
				GFile* _tmp15_ = NULL;
				gboolean _tmp16_ = FALSE;
				gboolean _tmp17_ = FALSE;
#line 473 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp2_ = window;
#line 473 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_TYPE_WINDOW) ? ((GitgWindow*) _tmp2_) : NULL);
#line 473 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				wnd = _tmp3_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp4_ = wnd;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp5_ = gitg_ext_application_get_repository ((GitgExtApplication*) _tmp4_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp6_ = _tmp5_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp7_ = _tmp6_;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp8_ = _tmp7_ == NULL;
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (_tmp7_);
#line 475 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (_tmp8_) {
#line 477 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (wnd);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (window);
#line 477 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					continue;
#line 2104 "gitg-application.c"
				}
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp9_ = wnd;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp10_ = gitg_ext_application_get_repository ((GitgExtApplication*) _tmp9_);
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp11_ = _tmp10_;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp12_ = _tmp11_;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp13_ = ggit_repository_get_location ((GgitRepository*) _tmp12_);
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp14_ = _tmp13_;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp15_ = file;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp16_ = g_file_equal (_tmp14_, _tmp15_);
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp17_ = _tmp16_;
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (_tmp14_);
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (_tmp12_);
#line 480 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (_tmp17_) {
#line 482 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					result = wnd;
#line 482 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (window);
#line 482 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					return result;
#line 2136 "gitg-application.c"
				}
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (wnd);
#line 471 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (window);
#line 2142 "gitg-application.c"
			}
		}
	}
#line 486 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = NULL;
#line 486 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 2150 "gitg-application.c"
}


static void gitg_application_real_open (GApplication* base, GFile** files, int files_length1, const gchar* hint) {
	GitgApplication * self;
	GFile** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	const gchar* _tmp1_ = NULL;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = (GitgApplication*) base;
#line 489 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (hint != NULL);
#line 491 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = files;
#line 491 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0__length1 = files_length1;
#line 491 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = hint;
#line 491 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_open_command_line (self, _tmp0_, _tmp0__length1, _tmp1_, NULL);
#line 2171 "gitg-application.c"
}


static void gitg_application_open_command_line (GitgApplication* self, GFile** files, int files_length1, const gchar* hint, GitgExtCommandLines* command_lines) {
	GFile** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GFile** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	GError * _inner_error_ = NULL;
#line 495 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 497 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = files;
#line 497 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0__length1 = files_length1;
#line 497 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp0__length1 == 0) {
#line 499 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return;
#line 2191 "gitg-application.c"
	}
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = files;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1__length1 = files_length1;
#line 2197 "gitg-application.c"
	{
		GFile** f_collection = NULL;
		gint f_collection_length1 = 0;
		gint _f_collection_size_ = 0;
		gint f_it = 0;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		f_collection = _tmp1_;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		f_collection_length1 = _tmp1__length1;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		for (f_it = 0; f_it < _tmp1__length1; f_it = f_it + 1) {
#line 2209 "gitg-application.c"
			GFile* _tmp2_ = NULL;
			GFile* f = NULL;
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			_tmp2_ = _g_object_ref0 (f_collection[f_it]);
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
			f = _tmp2_;
#line 2216 "gitg-application.c"
			{
				GFile* resolved = NULL;
				GitgWindow* window = NULL;
				GFile* _tmp7_ = NULL;
				GitgWindow* _tmp8_ = NULL;
				GitgWindow* _tmp9_ = NULL;
				GitgRepository* repo = NULL;
				GitgRepository* _tmp21_ = NULL;
				const gchar* _tmp22_ = NULL;
				GitgExtCommandLines* _tmp23_ = NULL;
				{
					GFile* _tmp3_ = NULL;
					GFile* _tmp4_ = NULL;
					GFile* _tmp5_ = NULL;
					GFile* _tmp6_ = NULL;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp4_ = f;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp5_ = ggit_repository_discover (_tmp4_, &_inner_error_);
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp3_ = _tmp5_;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2240 "gitg-application.c"
						goto __catch45_g_error;
					}
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp6_ = _tmp3_;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp3_ = NULL;
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 510 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					resolved = _tmp6_;
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (_tmp3_);
#line 2253 "gitg-application.c"
				}
				goto __finally45;
				__catch45_g_error:
				{
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					g_clear_error (&_inner_error_);
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_inner_error_ = NULL;
#line 512 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 512 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (f);
#line 512 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					continue;
#line 2268 "gitg-application.c"
				}
				__finally45:
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (f);
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.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 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					g_clear_error (&_inner_error_);
#line 508 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					return;
#line 2283 "gitg-application.c"
				}
#line 515 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp7_ = resolved;
#line 515 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp8_ = gitg_application_find_window_for_file (self, _tmp7_);
#line 515 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				window = _tmp8_;
#line 517 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp9_ = window;
#line 517 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (_tmp9_ != NULL) {
#line 2295 "gitg-application.c"
					GitgWindow* _tmp10_ = NULL;
					GApplicationCommandLine* _tmp11_ = NULL;
					gchar** _tmp12_ = NULL;
					gchar** _tmp13_ = NULL;
					GitgWindow* _tmp14_ = NULL;
					const gchar* _tmp15_ = NULL;
					GitgExtCommandLines* _tmp16_ = NULL;
#line 520 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp10_ = window;
#line 520 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp11_ = gitg_application_options_command_line;
#line 520 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp13_ = _tmp12_ = g_application_command_line_get_environ (_tmp11_);
#line 520 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					gitg_window_set_environment (_tmp10_, _tmp13_, _vala_array_length (_tmp12_));
#line 521 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp14_ = window;
#line 521 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp15_ = hint;
#line 521 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp16_ = command_lines;
#line 521 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					gitg_window_present (_tmp14_, _tmp15_, _tmp16_);
#line 522 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (window);
#line 522 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 522 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (f);
#line 522 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					continue;
#line 2327 "gitg-application.c"
				}
				{
					GitgRepository* _tmp17_ = NULL;
					GFile* _tmp18_ = NULL;
					GitgRepository* _tmp19_ = NULL;
					GitgRepository* _tmp20_ = NULL;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp18_ = resolved;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp19_ = gitg_repository_new (_tmp18_, NULL, &_inner_error_);
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp17_ = _tmp19_;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2342 "gitg-application.c"
						goto __catch46_g_error;
					}
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp20_ = _tmp17_;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_tmp17_ = NULL;
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (repo);
#line 530 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					repo = _tmp20_;
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (_tmp17_);
#line 2355 "gitg-application.c"
				}
				goto __finally46;
				__catch46_g_error:
				{
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					g_clear_error (&_inner_error_);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_inner_error_ = NULL;
#line 532 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (repo);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (window);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (f);
#line 532 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					continue;
#line 2374 "gitg-application.c"
				}
				__finally46:
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (repo);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (window);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (resolved);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					_g_object_unref0 (f);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.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 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					g_clear_error (&_inner_error_);
#line 528 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
					return;
#line 2393 "gitg-application.c"
				}
#line 535 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp21_ = repo;
#line 535 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp22_ = hint;
#line 535 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_tmp23_ = command_lines;
#line 535 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				gitg_application_new_window (self, _tmp21_, _tmp22_, _tmp23_);
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (repo);
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (window);
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (resolved);
#line 503 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
				_g_object_unref0 (f);
#line 2411 "gitg-application.c"
			}
		}
	}
}


static void gitg_application_new_window (GitgApplication* self, GitgRepository* repo, const gchar* hint, GitgExtCommandLines* command_lines) {
	GitgWindow* window = NULL;
	GitgRepository* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GitgWindow* _tmp2_ = NULL;
	GitgWindow* _tmp3_ = NULL;
	const gchar* _tmp8_ = NULL;
	GitgExtCommandLines* _tmp9_ = NULL;
#line 539 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 541 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = repo;
#line 541 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = hint;
#line 541 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = gitg_window_create_new ((GtkApplication*) self, _tmp0_, _tmp1_);
#line 541 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	window = _tmp2_;
#line 543 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = window;
#line 543 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp3_ != NULL) {
#line 2440 "gitg-application.c"
		GitgWindow* _tmp4_ = NULL;
		GApplicationCommandLine* _tmp5_ = NULL;
		gchar** _tmp6_ = NULL;
		gchar** _tmp7_ = NULL;
#line 545 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp4_ = window;
#line 545 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp5_ = gitg_application_options_command_line;
#line 545 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp7_ = _tmp6_ = g_application_command_line_get_environ (_tmp5_);
#line 545 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_window_set_environment (_tmp4_, _tmp7_, _vala_array_length (_tmp6_));
#line 2453 "gitg-application.c"
	}
#line 548 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp8_ = hint;
#line 548 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_ = command_lines;
#line 548 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_present_window (self, _tmp8_, _tmp9_);
#line 539 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (window);
#line 2463 "gitg-application.c"
}


static void gitg_application_present_window (GitgApplication* self, const gchar* activity, GitgExtCommandLines* command_lines) {
	GList* windows = NULL;
	GList* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GitgWindow* w = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	gconstpointer _tmp4_ = NULL;
	GitgWindow* _tmp5_ = NULL;
	GitgWindow* _tmp6_ = NULL;
	GApplicationCommandLine* _tmp7_ = NULL;
	gchar** _tmp8_ = NULL;
	gchar** _tmp9_ = NULL;
	GitgWindow* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	GitgExtCommandLines* _tmp12_ = NULL;
#line 551 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_if_fail (self != NULL);
#line 557 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = gtk_application_get_windows ((GtkApplication*) self);
#line 557 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	windows = _tmp0_;
#line 559 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = windows;
#line 559 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	if (_tmp1_ == NULL) {
#line 561 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		gitg_application_new_window (self, NULL, NULL, NULL);
#line 562 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		return;
#line 2497 "gitg-application.c"
	}
#line 565 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = windows;
#line 565 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = g_list_first (_tmp2_);
#line 565 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp4_ = _tmp3_->data;
#line 565 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((GtkWindow*) _tmp4_, GITG_TYPE_WINDOW, GitgWindow));
#line 565 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	w = _tmp5_;
#line 567 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp6_ = w;
#line 567 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp7_ = gitg_application_options_command_line;
#line 567 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp9_ = _tmp8_ = g_application_command_line_get_environ (_tmp7_);
#line 567 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_window_set_environment (_tmp6_, _tmp9_, _vala_array_length (_tmp8_));
#line 568 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp10_ = w;
#line 568 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp11_ = activity;
#line 568 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp12_ = command_lines;
#line 568 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_window_present (_tmp10_, _tmp11_, _tmp12_);
#line 551 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (w);
#line 2527 "gitg-application.c"
}


GSettings* gitg_application_get_state_settings (GitgApplication* self) {
	GSettings* result;
	GSettings* _tmp0_ = NULL;
	GSettings* _tmp1_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = self->priv->d_state_settings;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = _tmp1_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 2545 "gitg-application.c"
}


static gboolean gitg_application_options_commit_activity (void) {
	gboolean result = FALSE;
	gchar* _tmp0_ = NULL;
#line 50 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = g_strdup ("commit");
#line 50 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (gitg_application_options_activity);
#line 50 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_options_activity = _tmp0_;
#line 51 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = TRUE;
#line 51 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 2562 "gitg-application.c"
}


static GitgApplicationOptions* gitg_application_options_dup (const GitgApplicationOptions* self) {
	GitgApplicationOptions* dup;
#line 40 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	dup = g_new0 (GitgApplicationOptions, 1);
#line 40 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	memcpy (dup, self, sizeof (GitgApplicationOptions));
#line 40 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return dup;
#line 2574 "gitg-application.c"
}


static void gitg_application_options_free (GitgApplicationOptions* self) {
#line 40 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_free (self);
#line 2581 "gitg-application.c"
}


static GType gitg_application_options_get_type (void) {
	static volatile gsize gitg_application_options_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_application_options_type_id__volatile)) {
		GType gitg_application_options_type_id;
		gitg_application_options_type_id = g_boxed_type_register_static ("GitgApplicationOptions", (GBoxedCopyFunc) gitg_application_options_dup, (GBoxedFreeFunc) gitg_application_options_free);
		g_once_init_leave (&gitg_application_options_type_id__volatile, gitg_application_options_type_id);
	}
	return gitg_application_options_type_id__volatile;
}


static void gitg_application_accel_copy (const GitgApplicationAccel* self, GitgApplicationAccel* dest) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = (*self).name;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*dest).name);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).name = _tmp1_;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = (*self).accel;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*dest).accel);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).accel = _tmp3_;
#line 2617 "gitg-application.c"
}


static void gitg_application_accel_destroy (GitgApplicationAccel* self) {
#line 325 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*self).name);
#line 326 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*self).accel);
#line 2626 "gitg-application.c"
}


static GitgApplicationAccel* gitg_application_accel_dup (const GitgApplicationAccel* self) {
	GitgApplicationAccel* dup;
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	dup = g_new0 (GitgApplicationAccel, 1);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_accel_copy (self, dup);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return dup;
#line 2638 "gitg-application.c"
}


static void gitg_application_accel_free (GitgApplicationAccel* self) {
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_accel_destroy (self);
#line 323 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_free (self);
#line 2647 "gitg-application.c"
}


static GType gitg_application_accel_get_type (void) {
	static volatile gsize gitg_application_accel_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_application_accel_type_id__volatile)) {
		GType gitg_application_accel_type_id;
		gitg_application_accel_type_id = g_boxed_type_register_static ("GitgApplicationAccel", (GBoxedCopyFunc) gitg_application_accel_dup, (GBoxedFreeFunc) gitg_application_accel_free);
		g_once_init_leave (&gitg_application_accel_type_id__volatile, gitg_application_accel_type_id);
	}
	return gitg_application_accel_type_id__volatile;
}


static gchar** _vala_array_dup17 (gchar** self, int length) {
	gchar** result;
	int i;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	result = g_new0 (gchar*, length + 1);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	for (i = 0; i < length; i++) {
#line 2669 "gitg-application.c"
		gchar* _tmp0_ = NULL;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		_tmp0_ = g_strdup (self[i]);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		result[i] = _tmp0_;
#line 2675 "gitg-application.c"
	}
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return result;
#line 2679 "gitg-application.c"
}


static void gitg_application_multi_accel_copy (const GitgApplicationMultiAccel* self, GitgApplicationMultiAccel* dest) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = (*self).name;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*dest).name);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).name = _tmp1_;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2_ = (*self).accels;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp2__length1 = (*self).accels_length1;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup17 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp3__length1 = _tmp2__length1;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).accels = (_vala_array_free ((*dest).accels, (*dest).accels_length1, (GDestroyNotify) g_free), NULL);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).accels = _tmp3_;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest).accels_length1 = _tmp3__length1;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*dest)._accels_size_ = (*dest).accels_length1;
#line 2714 "gitg-application.c"
}


static void gitg_application_multi_accel_destroy (GitgApplicationMultiAccel* self) {
#line 331 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 ((*self).name);
#line 332 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	(*self).accels = (_vala_array_free ((*self).accels, (*self).accels_length1, (GDestroyNotify) g_free), NULL);
#line 2723 "gitg-application.c"
}


static GitgApplicationMultiAccel* gitg_application_multi_accel_dup (const GitgApplicationMultiAccel* self) {
	GitgApplicationMultiAccel* dup;
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	dup = g_new0 (GitgApplicationMultiAccel, 1);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_multi_accel_copy (self, dup);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	return dup;
#line 2735 "gitg-application.c"
}


static void gitg_application_multi_accel_free (GitgApplicationMultiAccel* self) {
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_multi_accel_destroy (self);
#line 329 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_free (self);
#line 2744 "gitg-application.c"
}


static GType gitg_application_multi_accel_get_type (void) {
	static volatile gsize gitg_application_multi_accel_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_application_multi_accel_type_id__volatile)) {
		GType gitg_application_multi_accel_type_id;
		gitg_application_multi_accel_type_id = g_boxed_type_register_static ("GitgApplicationMultiAccel", (GBoxedCopyFunc) gitg_application_multi_accel_dup, (GBoxedFreeFunc) gitg_application_multi_accel_free);
		g_once_init_leave (&gitg_application_multi_accel_type_id__volatile, gitg_application_multi_accel_type_id);
	}
	return gitg_application_multi_accel_type_id__volatile;
}


static void gitg_application_class_init (GitgApplicationClass * klass) {
	gchar* _tmp0_ = NULL;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_type_class_add_private (klass, sizeof (GitgApplicationPrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->local_command_line = (gboolean (*)(GApplication*, gchar***, gint*)) gitg_application_real_local_command_line;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->command_line = (gint (*)(GApplication*, GApplicationCommandLine*)) gitg_application_real_command_line;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->startup = (void (*)(GApplication*)) gitg_application_real_startup;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->shutdown = (void (*)(GApplication*)) gitg_application_real_shutdown;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->activate = (void (*)(GApplication*)) gitg_application_real_activate;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	((GApplicationClass *) klass)->open = (void (*)(GApplication*, GFile**, int, const gchar*)) gitg_application_real_open;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_application_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_application_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_APPLICATION_STATE_SETTINGS, g_param_spec_object ("state-settings", "state-settings", "state-settings", g_settings_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 79 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_tmp0_ = g_strdup ("");
#line 79 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_free0 (gitg_application_options_activity);
#line 79 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	gitg_application_options_activity = _tmp0_;
#line 2789 "gitg-application.c"
}


static void gitg_application_instance_init (GitgApplication * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self->priv = GITG_APPLICATION_GET_PRIVATE (self);
#line 2796 "gitg-application.c"
}


static void gitg_application_finalize (GObject* obj) {
	GitgApplication * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_APPLICATION, GitgApplication);
#line 25 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_state_settings);
#line 71 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_preferences);
#line 74 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	_g_object_unref0 (self->priv->d_shortcuts);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	G_OBJECT_CLASS (gitg_application_parent_class)->finalize (obj);
#line 2812 "gitg-application.c"
}


GType gitg_application_get_type (void) {
	static volatile gsize gitg_application_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_application_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgApplicationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_application_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgApplication), 0, (GInstanceInitFunc) gitg_application_instance_init, NULL };
		GType gitg_application_type_id;
		gitg_application_type_id = g_type_register_static (gtk_application_get_type (), "GitgApplication", &g_define_type_info, 0);
		g_once_init_leave (&gitg_application_type_id__volatile, gitg_application_type_id);
	}
	return gitg_application_type_id__volatile;
}


static void _vala_gitg_application_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgApplication * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_APPLICATION, GitgApplication);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		case GITG_APPLICATION_STATE_SETTINGS:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		g_value_take_object (value, gitg_application_get_state_settings (self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		break;
#line 2839 "gitg-application.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-application.vala"
		break;
#line 2845 "gitg-application.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;
}



