/* contacts-app.c generated by valac 0.37.1.6-1eaec, the Vala compiler
 * generated from contacts-app.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 8 -*- */
/*
 * Copyright (C) 2011 Alexander Larsson <alexl@redhat.com>
 *
 * This program 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.
 *
 * This program 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 this program.  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 <glib/gi18n-lib.h>
#include <folks/folks.h>
#include <folks/folks-eds.h>
#include <contacts-esd-setup.h>
#include <libedataserver/libedataserver.h>
#include <config.h>
#include <gdk/gdk.h>
#include <gee.h>


#define CONTACTS_TYPE_APP (contacts_app_get_type ())
#define CONTACTS_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_APP, ContactsApp))
#define CONTACTS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_APP, ContactsAppClass))
#define CONTACTS_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_APP))
#define CONTACTS_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_APP))
#define CONTACTS_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_APP, ContactsAppClass))

typedef struct _ContactsApp ContactsApp;
typedef struct _ContactsAppClass ContactsAppClass;
typedef struct _ContactsAppPrivate ContactsAppPrivate;

#define CONTACTS_TYPE_STORE (contacts_store_get_type ())
#define CONTACTS_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_STORE, ContactsStore))
#define CONTACTS_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_STORE, ContactsStoreClass))
#define CONTACTS_IS_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_STORE))
#define CONTACTS_IS_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_STORE))
#define CONTACTS_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_STORE, ContactsStoreClass))

typedef struct _ContactsStore ContactsStore;
typedef struct _ContactsStoreClass ContactsStoreClass;

#define CONTACTS_TYPE_WINDOW (contacts_window_get_type ())
#define CONTACTS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_WINDOW, ContactsWindow))
#define CONTACTS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_WINDOW, ContactsWindowClass))
#define CONTACTS_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_WINDOW))
#define CONTACTS_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_WINDOW))
#define CONTACTS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_WINDOW, ContactsWindowClass))

typedef struct _ContactsWindow ContactsWindow;
typedef struct _ContactsWindowClass ContactsWindowClass;
enum  {
	CONTACTS_APP_DUMMY_PROPERTY,
	CONTACTS_APP_LAST_PROPERTY
};
static GParamSpec* contacts_app_properties[CONTACTS_APP_LAST_PROPERTY];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define CONTACTS_TYPE_CONTACT (contacts_contact_get_type ())
#define CONTACTS_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_CONTACT, ContactsContact))
#define CONTACTS_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_CONTACT, ContactsContactClass))
#define CONTACTS_IS_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_CONTACT))
#define CONTACTS_IS_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_CONTACT))
#define CONTACTS_CONTACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_CONTACT, ContactsContactClass))

typedef struct _ContactsContact ContactsContact;
typedef struct _ContactsContactClass ContactsContactClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block1Data Block1Data;
typedef struct _ContactsContactPrivate ContactsContactPrivate;
typedef struct _Block2Data Block2Data;
typedef struct _ContactsAppShowIndividualData ContactsAppShowIndividualData;

#define CONTACTS_TYPE_ACCOUNTS_LIST (contacts_accounts_list_get_type ())
#define CONTACTS_ACCOUNTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_ACCOUNTS_LIST, ContactsAccountsList))
#define CONTACTS_ACCOUNTS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_ACCOUNTS_LIST, ContactsAccountsListClass))
#define CONTACTS_IS_ACCOUNTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_ACCOUNTS_LIST))
#define CONTACTS_IS_ACCOUNTS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_ACCOUNTS_LIST))
#define CONTACTS_ACCOUNTS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_ACCOUNTS_LIST, ContactsAccountsListClass))

typedef struct _ContactsAccountsList ContactsAccountsList;
typedef struct _ContactsAccountsListClass ContactsAccountsListClass;
typedef struct _Block3Data Block3Data;
typedef struct _ContactsAccountsListPrivate ContactsAccountsListPrivate;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block4Data Block4Data;
typedef struct _Block5Data Block5Data;
typedef struct _ContactsAppShowByEmailData ContactsAppShowByEmailData;
typedef struct _Block6Data Block6Data;
typedef struct _Block7Data Block7Data;
typedef struct _Block8Data Block8Data;

#define CONTACTS_TYPE_IN_APP_NOTIFICATION (contacts_in_app_notification_get_type ())
#define CONTACTS_IN_APP_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_IN_APP_NOTIFICATION, ContactsInAppNotification))
#define CONTACTS_IN_APP_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_IN_APP_NOTIFICATION, ContactsInAppNotificationClass))
#define CONTACTS_IS_IN_APP_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_IN_APP_NOTIFICATION))
#define CONTACTS_IS_IN_APP_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_IN_APP_NOTIFICATION))
#define CONTACTS_IN_APP_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_IN_APP_NOTIFICATION, ContactsInAppNotificationClass))

typedef struct _ContactsInAppNotification ContactsInAppNotification;
typedef struct _ContactsInAppNotificationClass ContactsInAppNotificationClass;
#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))

struct _ContactsApp {
	GtkApplication parent_instance;
	ContactsAppPrivate * priv;
	GSettings* settings;
	ContactsStore* contacts_store;
	ContactsWindow* window;
};

struct _ContactsAppClass {
	GtkApplicationClass parent_class;
};

struct _ContactsAppPrivate {
	gboolean is_prepare_scheluded;
	gboolean is_quiescent_scheduled;
};

struct _Block1Data {
	int _ref_count_;
	ContactsApp* self;
	gchar* id;
	gpointer _async_data_;
};

typedef gboolean (*ContactsStoreContactMatcher) (ContactsContact* c, void* user_data);
struct _ContactsContact {
	GObject parent_instance;
	ContactsContactPrivate * priv;
	ContactsStore* store;
	gboolean is_main;
	FolksPresenceType presence_type;
	gchar* presence_message;
	gboolean is_phone;
	FolksIndividual* individual;
	FolksPersona* fake_persona;
};

struct _ContactsContactClass {
	GObjectClass parent_class;
};

struct _Block2Data {
	int _ref_count_;
	Block1Data * _data1_;
	GtkMessageDialog* dialog;
};

struct _ContactsAppShowIndividualData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	ContactsApp* self;
	gchar* id;
	Block1Data* _data1_;
	const gchar* _tmp0_;
	ContactsContact* contact;
	ContactsStore* _tmp1_;
	ContactsContact* _tmp2_;
	ContactsContact* _tmp3_;
	ContactsContact* _tmp4_;
	Block2Data* _data2_;
	ContactsApp* _tmp5_;
	ContactsWindow* _tmp6_;
	const gchar* _tmp7_;
	GtkMessageDialog* _tmp8_;
	GtkMessageDialog* _tmp9_;
	GtkMessageDialog* _tmp10_;
	GtkMessageDialog* _tmp11_;
};

struct _Block3Data {
	int _ref_count_;
	ContactsApp* self;
	GtkDialog* dialog;
	GtkWidget* ok_button;
	ContactsAccountsList* acc;
	gulong active_button_once;
	gulong stores_changed_id;
};

struct _ContactsAccountsList {
	GtkGrid parent_instance;
	ContactsAccountsListPrivate * priv;
	FolksPersonaStore* selected_store;
};

struct _ContactsAccountsListClass {
	GtkGridClass parent_class;
};

struct _Block4Data {
	int _ref_count_;
	ContactsApp* self;
	gchar* email_address;
	gpointer _async_data_;
};

struct _Block5Data {
	int _ref_count_;
	Block4Data * _data4_;
	GtkMessageDialog* dialog;
};

struct _ContactsAppShowByEmailData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	ContactsApp* self;
	gchar* email_address;
	Block4Data* _data4_;
	const gchar* _tmp0_;
	ContactsContact* contact;
	ContactsStore* _tmp1_;
	ContactsContact* _tmp2_;
	ContactsContact* _tmp3_;
	ContactsContact* _tmp4_;
	Block5Data* _data5_;
	ContactsApp* _tmp5_;
	ContactsWindow* _tmp6_;
	const gchar* _tmp7_;
	GtkMessageDialog* _tmp8_;
	GtkMessageDialog* _tmp9_;
	GtkMessageDialog* _tmp10_;
	GtkMessageDialog* _tmp11_;
};

struct _Block6Data {
	int _ref_count_;
	ContactsApp* self;
	gchar* query;
};

struct _Block7Data {
	int _ref_count_;
	ContactsApp* self;
	gulong id;
	guint id2;
};

struct _Block8Data {
	int _ref_count_;
	ContactsApp* self;
	gulong id;
	guint id2;
};


static gpointer contacts_app_parent_class = NULL;
extern ContactsApp* contacts_app_app;
ContactsApp* contacts_app_app = NULL;
static gchar* contacts_app_individual_id;
static gchar* contacts_app_individual_id = NULL;
static gchar* contacts_app_email_address;
static gchar* contacts_app_email_address = NULL;
static gchar* contacts_app_search_terms;
static gchar* contacts_app_search_terms = NULL;

GType contacts_app_get_type (void) G_GNUC_CONST;
GType contacts_store_get_type (void) G_GNUC_CONST;
GType contacts_window_get_type (void) G_GNUC_CONST;
#define CONTACTS_APP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CONTACTS_TYPE_APP, ContactsAppPrivate))
static void _g_application_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void contacts_app_show_help (ContactsApp* self);
static void _contacts_app_show_help_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void contacts_app_show_about (ContactsApp* self);
static void _contacts_app_show_about_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void contacts_app_change_address_book (ContactsApp* self);
static void _contacts_app_change_address_book_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void contacts_app_new_contact (ContactsApp* self);
static void _contacts_app_new_contact_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
GType contacts_contact_get_type (void) G_GNUC_CONST;
void contacts_app_show_contact (ContactsApp* self, ContactsContact* contact);
void contacts_window_set_shown_contact (ContactsWindow* self, ContactsContact* c);
static void contacts_app_show_individual_data_free (gpointer _data);
static void contacts_app_show_individual_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data);
void contacts_app_show_individual (ContactsApp* self, const gchar* id, GAsyncReadyCallback _callback_, gpointer _user_data_);
void contacts_app_show_individual_finish (ContactsApp* self, GAsyncResult* _res_);
static gboolean contacts_app_show_individual_co (ContactsAppShowIndividualData* _data_);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
void contacts_store_find_contact (ContactsStore* self, ContactsStoreContactMatcher matcher, void* matcher_target, GAsyncReadyCallback _callback_, gpointer _user_data_);
ContactsContact* contacts_store_find_contact_finish (ContactsStore* self, GAsyncResult* _res_);
static gboolean __lambda106_ (Block1Data* _data1_, ContactsContact* c);
static gboolean ___lambda106__contacts_store_contact_matcher (ContactsContact* c, gpointer self);
static void contacts_app_show_individual_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static void ___lambda107_ (Block2Data* _data2_, gint id);
static void ____lambda107__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
GType contacts_accounts_list_get_type (void) G_GNUC_CONST;
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
ContactsAccountsList* contacts_accounts_list_new (void);
ContactsAccountsList* contacts_accounts_list_construct (GType object_type);
void contacts_accounts_list_update_contents (ContactsAccountsList* self, gboolean select_active);
static void __lambda103_ (Block3Data* _data3_);
static void ___lambda103__contacts_accounts_list_account_selected (ContactsAccountsList* _sender, gpointer self);
static void __lambda104_ (Block3Data* _data3_);
static void ___lambda104__contacts_store_eds_persona_store_changed (ContactsStore* _sender, gpointer self);
static void __lambda105_ (Block3Data* _data3_, gint response);
void contacts_store_refresh (ContactsStore* self);
static void ___lambda105__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
static void contacts_app_show_by_email_data_free (gpointer _data);
static void contacts_app_show_by_email_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data);
void contacts_app_show_by_email (ContactsApp* self, const gchar* email_address, GAsyncReadyCallback _callback_, gpointer _user_data_);
void contacts_app_show_by_email_finish (ContactsApp* self, GAsyncResult* _res_);
static gboolean contacts_app_show_by_email_co (ContactsAppShowByEmailData* _data_);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
static gboolean __lambda108_ (Block4Data* _data4_, ContactsContact* c);
gboolean contacts_contact_has_email (ContactsContact* self, const gchar* email_address);
static gboolean ___lambda108__contacts_store_contact_matcher (ContactsContact* c, gpointer self);
static void contacts_app_show_by_email_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (void * _userdata_);
static void ___lambda109_ (Block5Data* _data5_, gint id);
static void ____lambda109__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self);
void contacts_app_show_search (ContactsApp* self, const gchar* query);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
gboolean contacts_store_get_is_quiescent (ContactsStore* self);
void contacts_window_show_search (ContactsWindow* self, const gchar* query);
static void ___lambda110_ (Block6Data* _data6_);
static void ____lambda110__contacts_store_quiescent (ContactsStore* _sender, gpointer self);
static void contacts_app_create_app_menu (ContactsApp* self);
GtkBuilder* contacts_load_ui (const gchar* ui);
static void contacts_app_create_window (ContactsApp* self);
ContactsWindow* contacts_window_new (GtkApplication* app, ContactsStore* contacts_store);
ContactsWindow* contacts_window_construct (GType object_type, GtkApplication* app, ContactsStore* contacts_store);
static void contacts_app_schedule_window_creation (ContactsApp* self);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (void * _userdata_);
static void __lambda111_ (Block7Data* _data7_);
static void contacts_app_schedule_window_finish_ui (ContactsApp* self);
static void ___lambda111__contacts_store_prepared (ContactsStore* _sender, gpointer self);
static gboolean __lambda114_ (Block7Data* _data7_);
static gboolean ___lambda114__gsource_func (gpointer self);
static Block8Data* block8_data_ref (Block8Data* _data8_);
static void block8_data_unref (void * _userdata_);
static void __lambda112_ (Block8Data* _data8_);
void contacts_window_set_list_pane (ContactsWindow* self);
static void ___lambda112__contacts_store_quiescent (ContactsStore* _sender, gpointer self);
static gboolean __lambda113_ (Block8Data* _data8_);
static gboolean ___lambda113__gsource_func (gpointer self);
static void contacts_app_real_startup (GApplication* base);
ContactsStore* contacts_store_new (void);
ContactsStore* contacts_store_construct (GType object_type);
GtkCssProvider* contacts_load_css (const gchar* css);
static void contacts_app_real_activate (GApplication* base);
gboolean contacts_store_get_is_prepared (ContactsStore* self);
void contacts_app_show_message (ContactsApp* self, const gchar* message);
GType contacts_in_app_notification_get_type (void) G_GNUC_CONST;
ContactsInAppNotification* contacts_in_app_notification_new (const gchar* message, GtkButton* button);
ContactsInAppNotification* contacts_in_app_notification_construct (GType object_type, const gchar* message, GtkButton* button);
void contacts_in_app_notification_show (ContactsInAppNotification* self);
void contacts_window_add_notification (ContactsWindow* self, ContactsInAppNotification* notification);
void contacts_window_new_contact (ContactsWindow* self);
static gint contacts_app_real_command_line (GApplication* base, GApplicationCommandLine* command_line);
FolksPersonaStore** contacts_app_get_eds_address_books (int* result_length1);
FolksBackendStore* contacts_store_get_backend_store (ContactsStore* self);
static void _vala_array_add1 (FolksPersonaStore** * array, int* length, int* size, FolksPersonaStore* value);
ContactsApp* contacts_app_new (void);
ContactsApp* contacts_app_construct (GType object_type);
static void contacts_app_finalize (GObject * obj);
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 const GActionEntry CONTACTS_APP_action_entries[5] = {{"quit", _g_application_quit_gsimple_action_activate_callback}, {"help", _contacts_app_show_help_gsimple_action_activate_callback}, {"about", _contacts_app_show_about_gsimple_action_activate_callback}, {"change-book", _contacts_app_change_address_book_gsimple_action_activate_callback}, {"new-contact", _contacts_app_new_contact_gsimple_action_activate_callback}};
static const GOptionEntry CONTACTS_APP_options[4] = {{"individual", 'i', 0, G_OPTION_ARG_STRING, &contacts_app_individual_id, N_ ("Show contact with this individual id"), NULL}, {"email", 'e', 0, G_OPTION_ARG_STRING, &contacts_app_email_address, N_ ("Show contact with this email address"), NULL}, {"search", 's', 0, G_OPTION_ARG_STRING, &contacts_app_search_terms, NULL, NULL}, {NULL}};

static void _g_application_quit_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_application_quit ((GApplication*) self);
#line 400 "contacts-app.c"
}


static void _contacts_app_show_help_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_help ((ContactsApp*) self);
#line 407 "contacts-app.c"
}


static void _contacts_app_show_about_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_about ((ContactsApp*) self);
#line 414 "contacts-app.c"
}


static void _contacts_app_change_address_book_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_change_address_book ((ContactsApp*) self);
#line 421 "contacts-app.c"
}


static void _contacts_app_new_contact_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_new_contact ((ContactsApp*) self);
#line 428 "contacts-app.c"
}


void contacts_app_show_contact (ContactsApp* self, ContactsContact* contact) {
	ContactsWindow* _tmp0_;
	ContactsContact* _tmp1_;
#line 42 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->window;
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = contact;
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_set_shown_contact (_tmp0_, _tmp1_);
#line 443 "contacts-app.c"
}


static void contacts_app_show_individual_data_free (gpointer _data) {
	ContactsAppShowIndividualData* _data_;
	_data_ = _data;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_slice_free (ContactsAppShowIndividualData, _data_);
#line 454 "contacts-app.c"
}


static void contacts_app_show_individual_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data) {
	ContactsAppShowIndividualData* _task_data_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_task_data_->_callback_ != NULL) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 466 "contacts-app.c"
	}
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_task_data_->_task_complete_ = TRUE;
#line 470 "contacts-app.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return self ? g_object_ref (self) : NULL;
#line 477 "contacts-app.c"
}


void contacts_app_show_individual (ContactsApp* self, const gchar* id, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ContactsAppShowIndividualData* _data_;
	ContactsApp* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = g_slice_new0 (ContactsAppShowIndividualData);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_callback_ = _callback_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, contacts_app_show_individual_async_ready_wrapper, _user_data_);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_callback_ == NULL) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_task_complete_ = TRUE;
#line 496 "contacts-app.c"
	}
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_task_set_task_data (_data_->_async_result, _data_, contacts_app_show_individual_data_free);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->self = _tmp0_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = id;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (_data_->id);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->id = _tmp2_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_individual_co (_data_);
#line 514 "contacts-app.c"
}


void contacts_app_show_individual_finish (ContactsApp* self, GAsyncResult* _res_) {
	ContactsAppShowIndividualData* _data_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 522 "contacts-app.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data1_;
#line 531 "contacts-app.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 540 "contacts-app.c"
		ContactsApp* self;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data1_->self;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_free0 (_data1_->id);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block1Data, _data1_);
#line 550 "contacts-app.c"
	}
}


static gboolean __lambda106_ (Block1Data* _data1_, ContactsContact* c) {
	ContactsApp* self;
	gboolean result = FALSE;
	ContactsContact* _tmp0_;
	FolksIndividual* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data1_->self;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_val_if_fail (c != NULL, FALSE);
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = c;
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _tmp0_->individual;
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = folks_individual_get_id (_tmp1_);
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = _tmp2_;
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = _data1_->id;
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = g_strcmp0 (_tmp3_, _tmp4_) == 0;
#line 48 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 581 "contacts-app.c"
}


static gboolean ___lambda106__contacts_store_contact_matcher (ContactsContact* c, gpointer self) {
	gboolean result;
	result = __lambda106_ (self, c);
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 590 "contacts-app.c"
}


static void contacts_app_show_individual_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ContactsAppShowIndividualData* _data_;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = _user_data_;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_source_object_ = source_object;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_res_ = _res_;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_task_complete_ = TRUE;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_individual_co (_data_);
#line 606 "contacts-app.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data2_;
#line 615 "contacts-app.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 624 "contacts-app.c"
		ContactsApp* self;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data2_->_data1_->self;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_data2_->dialog);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		block1_data_unref (_data2_->_data1_);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data2_->_data1_ = NULL;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block2Data, _data2_);
#line 636 "contacts-app.c"
	}
}


static void ___lambda107_ (Block2Data* _data2_, gint id) {
	Block1Data* _data1_;
	ContactsApp* self;
	GtkMessageDialog* _tmp0_;
#line 57 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data1_ = _data2_->_data1_;
#line 57 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data1_->self;
#line 58 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _data2_->dialog;
#line 58 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 653 "contacts-app.c"
}


static void ____lambda107__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 57 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	___lambda107_ (self, response_id);
#line 660 "contacts-app.c"
}


static gboolean contacts_app_show_individual_co (ContactsAppShowIndividualData* _data_) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	switch (_data_->_state_) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		case 0:
#line 669 "contacts-app.c"
		goto _state_0;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		case 1:
#line 673 "contacts-app.c"
		goto _state_1;
		default:
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_assert_not_reached ();
#line 678 "contacts-app.c"
	}
	_state_0:
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp0_ = _data_->id;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (_data_->_data1_->id);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_->id = _data_->_tmp0_;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp1_ = _data_->self->contacts_store;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_state_ = 1;
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_store_find_contact (_data_->_tmp1_, ___lambda106__contacts_store_contact_matcher, _data_->_data1_, contacts_app_show_individual_ready, _data_);
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return FALSE;
#line 703 "contacts-app.c"
	_state_1:
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp2_ = contacts_store_find_contact_finish (_data_->_tmp1_, _data_->_res_);
#line 47 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->contact = _data_->_tmp2_;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp3_ = _data_->contact;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_data_->_tmp3_ != NULL) {
#line 51 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp4_ = _data_->contact;
#line 51 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_show_contact (_data_->self, _data_->_tmp4_);
#line 717 "contacts-app.c"
	} else {
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data2_ = g_slice_new0 (Block2Data);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data2_->_ref_count_ = 1;
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data2_->_data1_ = block1_data_ref (_data_->_data1_);
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp5_ = contacts_app_app;
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp6_ = _data_->_tmp5_->window;
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp7_ = _data_->_data1_->id;
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp8_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _data_->_tmp6_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _ ("No contact with id %s found"), _data_->_tmp7_);
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_object_ref_sink (_data_->_tmp8_);
#line 53 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data2_->dialog = _data_->_tmp8_;
#line 55 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp9_ = _data_->_data2_->dialog;
#line 55 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_window_set_title ((GtkWindow*) _data_->_tmp9_, _ ("Contact not found"));
#line 56 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp10_ = _data_->_data2_->dialog;
#line 56 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_widget_show ((GtkWidget*) _data_->_tmp10_);
#line 57 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp11_ = _data_->_data2_->dialog;
#line 57 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_signal_connect_data ((GtkDialog*) _data_->_tmp11_, "response", (GCallback) ____lambda107__gtk_dialog_response, block2_data_ref (_data_->_data2_), (GClosureNotify) block2_data_unref, 0);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		block2_data_unref (_data_->_data2_);
#line 50 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data2_ = NULL;
#line 753 "contacts-app.c"
	}
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (_data_->contact);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block1_data_unref (_data_->_data1_);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data1_ = NULL;
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_data_->_state_ != 0) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 769 "contacts-app.c"
		}
	}
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_unref (_data_->_async_result);
#line 46 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return FALSE;
#line 776 "contacts-app.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data3_;
#line 785 "contacts-app.c"
}


static void block3_data_unref (void * _userdata_) {
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 794 "contacts-app.c"
		ContactsApp* self;
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data3_->self;
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_data3_->acc);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_data3_->ok_button);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_data3_->dialog);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block3Data, _data3_);
#line 808 "contacts-app.c"
	}
}


static void __lambda103_ (Block3Data* _data3_) {
	ContactsApp* self;
	gulong _tmp0_;
#line 87 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data3_->self;
#line 88 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_set_sensitive (_data3_->ok_button, TRUE);
#line 89 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _data3_->active_button_once;
#line 89 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _data3_->acc, _tmp0_);
#line 824 "contacts-app.c"
}


static void ___lambda103__contacts_accounts_list_account_selected (ContactsAccountsList* _sender, gpointer self) {
#line 87 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__lambda103_ (self);
#line 831 "contacts-app.c"
}


static void __lambda104_ (Block3Data* _data3_) {
	ContactsApp* self;
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data3_->self;
#line 93 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_accounts_list_update_contents (_data3_->acc, TRUE);
#line 841 "contacts-app.c"
}


static void ___lambda104__contacts_store_eds_persona_store_changed (ContactsStore* _sender, gpointer self) {
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__lambda104_ (self);
#line 848 "contacts-app.c"
}


static void __lambda105_ (Block3Data* _data3_, gint response) {
	ContactsApp* self;
	gint _tmp0_;
	ContactsStore* _tmp16_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data3_->self;
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = response;
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp0_ == ((gint) GTK_RESPONSE_OK)) {
#line 862 "contacts-app.c"
		EdsfPersonaStore* e_store = NULL;
		FolksPersonaStore* _tmp1_;
		EdsfPersonaStore* _tmp2_;
		EdsfPersonaStore* _tmp3_;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp1_ = _data3_->acc->selected_store;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, EDSF_TYPE_PERSONA_STORE) ? ((EdsfPersonaStore*) _tmp1_) : NULL);
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		e_store = _tmp2_;
#line 102 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp3_ = e_store;
#line 102 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		if (_tmp3_ != NULL) {
#line 877 "contacts-app.c"
			ESourceRegistry* _tmp4_;
			EdsfPersonaStore* _tmp5_;
			ESource* _tmp6_;
			ESource* _tmp7_;
			GSettings* settings = NULL;
			GSettings* _tmp8_;
			GSettings* _tmp9_;
			EdsfPersonaStore* _tmp10_;
			const gchar* _tmp11_;
			const gchar* _tmp12_;
			gchar* _tmp13_;
			gchar* _tmp14_;
			ContactsStore* _tmp15_;
#line 103 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp4_ = eds_source_registry;
#line 103 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp5_ = e_store;
#line 103 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp6_ = edsf_persona_store_get_source (_tmp5_);
#line 103 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp7_ = _tmp6_;
#line 103 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			e_source_registry_set_default_address_book (_tmp4_, _tmp7_);
#line 104 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp8_ = g_settings_new ("org.freedesktop.folks");
#line 104 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			settings = _tmp8_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp9_ = settings;
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp10_ = e_store;
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp11_ = folks_persona_store_get_id ((FolksPersonaStore*) _tmp10_);
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp12_ = _tmp11_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp13_ = g_strdup_printf ("eds:%s", _tmp12_);
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp14_ = _tmp13_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			g_settings_set_string (_tmp9_, "primary-store", _tmp14_);
#line 105 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_g_free0 (_tmp14_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp15_ = self->contacts_store;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			contacts_store_refresh (_tmp15_);
#line 102 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_g_object_unref0 (settings);
#line 927 "contacts-app.c"
		}
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (e_store);
#line 931 "contacts-app.c"
	}
#line 110 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp16_ = self->contacts_store;
#line 110 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _tmp16_, _data3_->stores_changed_id);
#line 111 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_destroy ((GtkWidget*) _data3_->dialog);
#line 939 "contacts-app.c"
}


static void ___lambda105__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__lambda105_ (self, response_id);
#line 946 "contacts-app.c"
}


void contacts_app_change_address_book (ContactsApp* self) {
	Block3Data* _data3_;
	ContactsWindow* _tmp0_;
	GtkDialog* _tmp1_;
	GtkWidget* _tmp2_;
	GtkWidget* _tmp3_;
	GtkStyleContext* _tmp4_;
	GtkLabel* explanation_label = NULL;
	GtkLabel* _tmp5_;
	GtkBox* _tmp6_;
	GtkBox* _tmp7_;
	ContactsAccountsList* _tmp8_;
	gulong _tmp9_;
	ContactsStore* _tmp10_;
	gulong _tmp11_;
	GtkBox* _tmp12_;
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->_ref_count_ = 1;
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->self = g_object_ref (self);
#line 64 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->window;
#line 64 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = (GtkDialog*) gtk_dialog_new_with_buttons (_ ("Change Address Book"), (GtkWindow*) G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CONTACTS_TYPE_WINDOW, ContactsWindow), (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT) | GTK_DIALOG_USE_HEADER_BAR, _ ("Change"), GTK_RESPONSE_OK, _ ("Cancel"), GTK_RESPONSE_CANCEL, NULL, NULL);
#line 64 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_ref_sink (_tmp1_);
#line 64 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->dialog = _tmp1_;
#line 73 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = gtk_dialog_get_widget_for_response (_data3_->dialog, (gint) GTK_RESPONSE_OK);
#line 73 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 73 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->ok_button = _tmp3_;
#line 74 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_set_sensitive (_data3_->ok_button, FALSE);
#line 75 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = gtk_widget_get_style_context (_data3_->ok_button);
#line 75 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_style_context_add_class (_tmp4_, "suggested-action");
#line 76 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_window_set_resizable ((GtkWindow*) _data3_->dialog, FALSE);
#line 77 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_container_set_border_width ((GtkContainer*) _data3_->dialog, (guint) 12);
#line 79 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5_ = (GtkLabel*) gtk_label_new (_ ("New contacts will be added to the selected address book.\n" \
"You are able to view and edit contacts from other address books."));
#line 79 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_ref_sink (_tmp5_);
#line 79 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	explanation_label = _tmp5_;
#line 80 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp6_ = (GtkBox*) gtk_dialog_get_content_area (_data3_->dialog);
#line 80 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_container_add ((GtkContainer*) (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_box_get_type ()) ? ((GtkBox*) _tmp6_) : NULL), (GtkWidget*) explanation_label);
#line 81 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp7_ = (GtkBox*) gtk_dialog_get_content_area (_data3_->dialog);
#line 81 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_box_set_spacing (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_box_get_type ()) ? ((GtkBox*) _tmp7_) : NULL, 12);
#line 83 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp8_ = contacts_accounts_list_new ();
#line 83 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_ref_sink (_tmp8_);
#line 83 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->acc = _tmp8_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_accounts_list_update_contents (_data3_->acc, TRUE);
#line 86 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->active_button_once = (gulong) 0;
#line 87 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp9_ = g_signal_connect_data (_data3_->acc, "account-selected", (GCallback) ___lambda103__contacts_accounts_list_account_selected, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 87 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->active_button_once = _tmp9_;
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp10_ = self->contacts_store;
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp11_ = g_signal_connect_data (_tmp10_, "eds-persona-store-changed", (GCallback) ___lambda104__contacts_store_eds_persona_store_changed, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_->stores_changed_id = _tmp11_;
#line 96 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp12_ = (GtkBox*) gtk_dialog_get_content_area (_data3_->dialog);
#line 96 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_container_add ((GtkContainer*) (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_box_get_type ()) ? ((GtkBox*) _tmp12_) : NULL), (GtkWidget*) _data3_->acc);
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_show_all ((GtkWidget*) _data3_->dialog);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_connect_data (_data3_->dialog, "response", (GCallback) ___lambda105__gtk_dialog_response, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (explanation_label);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block3_data_unref (_data3_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data3_ = NULL;
#line 1046 "contacts-app.c"
}


void contacts_app_show_help (ContactsApp* self) {
	GError * _inner_error_ = NULL;
#line 115 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 1054 "contacts-app.c"
	{
		ContactsWindow* _tmp0_;
		GdkScreen* _tmp1_;
		guint32 _tmp2_;
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp0_ = self->window;
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp1_ = gtk_window_get_screen ((GtkWindow*) _tmp0_);
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp2_ = gtk_get_current_event_time ();
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_show_uri (_tmp1_, "help:gnome-help/contacts", _tmp2_, &_inner_error_);
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1069 "contacts-app.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e1 = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		e1 = _inner_error_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_inner_error_ = NULL;
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp3_ = e1;
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp4_ = _tmp3_->message;
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_warning ("contacts-app.vala:121: Error showing help: %s", _tmp4_);
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_error_free0 (e1);
#line 1091 "contacts-app.c"
	}
	__finally0:
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.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 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_clear_error (&_inner_error_);
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		return;
#line 1102 "contacts-app.c"
	}
}


void contacts_app_show_about (ContactsApp* self) {
	gchar** authors = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar** _tmp2_;
	gint authors_length1;
	gint _authors_size_;
	gchar** artists = NULL;
	gchar* _tmp3_;
	gchar** _tmp4_;
	gint artists_length1;
	gint _artists_size_;
	ContactsWindow* _tmp5_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = g_strdup ("Alexander Larsson <alexl@redhat.com>");
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_strdup ("Erick Pérez Castellanos <erick.red@gmail.com>");
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_new0 (gchar*, 2 + 1);
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_[0] = _tmp0_;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_[1] = _tmp1_;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	authors = _tmp2_;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	authors_length1 = 2;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_authors_size_ = authors_length1;
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = g_strdup ("Allan Day <allanpday@gmail.com>");
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = g_new0 (gchar*, 1 + 1);
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_[0] = _tmp3_;
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	artists = _tmp4_;
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	artists_length1 = 1;
#line 130 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_artists_size_ = artists_length1;
#line 133 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5_ = self->window;
#line 133 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_show_about_dialog ((GtkWindow*) _tmp5_, "artists", artists, "authors", authors, "translator-credits", _ ("translator-credits"), "program-name", _ ("GNOME Contacts"), "title", _ ("About GNOME Contacts"), "comments", _ ("Contact Management Application"), "copyright", "Copyright 2011 Red Hat, Inc.\nCopyright 2014 The Contacts Developers", "license-type", GTK_LICENSE_GPL_2_0, "logo-icon-name", "x-office-address-book", "version", PACKAGE_VERSION, "website", "https://wiki.gnome.org/Apps/Contacts", "wrap-license", TRUE, NULL);
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	artists = (_vala_array_free (artists, artists_length1, (GDestroyNotify) g_free), NULL);
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL);
#line 1158 "contacts-app.c"
}


static void contacts_app_show_by_email_data_free (gpointer _data) {
	ContactsAppShowByEmailData* _data_;
	_data_ = _data;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (_data_->self);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_slice_free (ContactsAppShowByEmailData, _data_);
#line 1169 "contacts-app.c"
}


static void contacts_app_show_by_email_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data) {
	ContactsAppShowByEmailData* _task_data_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_task_data_->_callback_ != NULL) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 1181 "contacts-app.c"
	}
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_task_data_->_task_complete_ = TRUE;
#line 1185 "contacts-app.c"
}


void contacts_app_show_by_email (ContactsApp* self, const gchar* email_address, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ContactsAppShowByEmailData* _data_;
	ContactsApp* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = g_slice_new0 (ContactsAppShowByEmailData);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_callback_ = _callback_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, contacts_app_show_by_email_async_ready_wrapper, _user_data_);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_callback_ == NULL) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_task_complete_ = TRUE;
#line 1204 "contacts-app.c"
	}
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_task_set_task_data (_data_->_async_result, _data_, contacts_app_show_by_email_data_free);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->self = _tmp0_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = email_address;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (_data_->email_address);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->email_address = _tmp2_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_by_email_co (_data_);
#line 1222 "contacts-app.c"
}


void contacts_app_show_by_email_finish (ContactsApp* self, GAsyncResult* _res_) {
	ContactsAppShowByEmailData* _data_;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 1230 "contacts-app.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data4_;
#line 1239 "contacts-app.c"
}


static void block4_data_unref (void * _userdata_) {
	Block4Data* _data4_;
	_data4_ = (Block4Data*) _userdata_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 1248 "contacts-app.c"
		ContactsApp* self;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data4_->self;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_free0 (_data4_->email_address);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block4Data, _data4_);
#line 1258 "contacts-app.c"
	}
}


static gboolean __lambda108_ (Block4Data* _data4_, ContactsContact* c) {
	ContactsApp* self;
	gboolean result = FALSE;
	ContactsContact* _tmp0_;
	const gchar* _tmp1_;
	gboolean _tmp2_;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data4_->self;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_val_if_fail (c != NULL, FALSE);
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = c;
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _data4_->email_address;
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = contacts_contact_has_email (_tmp0_, _tmp1_);
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = _tmp2_;
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1283 "contacts-app.c"
}


static gboolean ___lambda108__contacts_store_contact_matcher (ContactsContact* c, gpointer self) {
	gboolean result;
	result = __lambda108_ (self, c);
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1292 "contacts-app.c"
}


static void contacts_app_show_by_email_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ContactsAppShowByEmailData* _data_;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_ = _user_data_;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_source_object_ = source_object;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_res_ = _res_;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_task_complete_ = TRUE;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_show_by_email_co (_data_);
#line 1308 "contacts-app.c"
}


static Block5Data* block5_data_ref (Block5Data* _data5_) {
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data5_->_ref_count_);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data5_;
#line 1317 "contacts-app.c"
}


static void block5_data_unref (void * _userdata_) {
	Block5Data* _data5_;
	_data5_ = (Block5Data*) _userdata_;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
#line 1326 "contacts-app.c"
		ContactsApp* self;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data5_->_data4_->self;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_data5_->dialog);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		block4_data_unref (_data5_->_data4_);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data5_->_data4_ = NULL;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block5Data, _data5_);
#line 1338 "contacts-app.c"
	}
}


static void ___lambda109_ (Block5Data* _data5_, gint id) {
	Block4Data* _data4_;
	ContactsApp* self;
	GtkMessageDialog* _tmp0_;
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data4_ = _data5_->_data4_;
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data4_->self;
#line 160 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _data5_->dialog;
#line 160 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp0_);
#line 1355 "contacts-app.c"
}


static void ____lambda109__gtk_dialog_response (GtkDialog* _sender, gint response_id, gpointer self) {
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	___lambda109_ (self, response_id);
#line 1362 "contacts-app.c"
}


static gboolean contacts_app_show_by_email_co (ContactsAppShowByEmailData* _data_) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	switch (_data_->_state_) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		case 0:
#line 1371 "contacts-app.c"
		goto _state_0;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		case 1:
#line 1375 "contacts-app.c"
		goto _state_1;
		default:
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_assert_not_reached ();
#line 1380 "contacts-app.c"
	}
	_state_0:
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_ = g_slice_new0 (Block4Data);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_->_ref_count_ = 1;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_->self = g_object_ref (_data_->self);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp0_ = _data_->email_address;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (_data_->_data4_->email_address);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_->email_address = _data_->_tmp0_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_->_async_data_ = _data_;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp1_ = _data_->self->contacts_store;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_state_ = 1;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_store_find_contact (_data_->_tmp1_, ___lambda108__contacts_store_contact_matcher, _data_->_data4_, contacts_app_show_by_email_ready, _data_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return FALSE;
#line 1405 "contacts-app.c"
	_state_1:
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp2_ = contacts_store_find_contact_finish (_data_->_tmp1_, _data_->_res_);
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->contact = _data_->_tmp2_;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_tmp3_ = _data_->contact;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_data_->_tmp3_ != NULL) {
#line 153 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp4_ = _data_->contact;
#line 153 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_show_contact (_data_->self, _data_->_tmp4_);
#line 1419 "contacts-app.c"
	} else {
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data5_ = g_slice_new0 (Block5Data);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data5_->_ref_count_ = 1;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data5_->_data4_ = block4_data_ref (_data_->_data4_);
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp5_ = contacts_app_app;
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp6_ = _data_->_tmp5_->window;
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp7_ = _data_->_data4_->email_address;
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp8_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _data_->_tmp6_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _ ("No contact with email address %s found"), _data_->_tmp7_);
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_object_ref_sink (_data_->_tmp8_);
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data5_->dialog = _data_->_tmp8_;
#line 157 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp9_ = _data_->_data5_->dialog;
#line 157 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_window_set_title ((GtkWindow*) _data_->_tmp9_, _ ("Contact not found"));
#line 158 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp10_ = _data_->_data5_->dialog;
#line 158 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_widget_show ((GtkWidget*) _data_->_tmp10_);
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_tmp11_ = _data_->_data5_->dialog;
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_signal_connect_data ((GtkDialog*) _data_->_tmp11_, "response", (GCallback) ____lambda109__gtk_dialog_response, block5_data_ref (_data_->_data5_), (GClosureNotify) block5_data_unref, 0);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		block5_data_unref (_data_->_data5_);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_data_->_data5_ = NULL;
#line 1455 "contacts-app.c"
	}
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (_data_->contact);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block4_data_unref (_data_->_data4_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data_->_data4_ = NULL;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_data_->_state_ != 0) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1471 "contacts-app.c"
		}
	}
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_unref (_data_->_async_result);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return FALSE;
#line 1478 "contacts-app.c"
}


static Block6Data* block6_data_ref (Block6Data* _data6_) {
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data6_->_ref_count_);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data6_;
#line 1487 "contacts-app.c"
}


static void block6_data_unref (void * _userdata_) {
	Block6Data* _data6_;
	_data6_ = (Block6Data*) _userdata_;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
#line 1496 "contacts-app.c"
		ContactsApp* self;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data6_->self;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_free0 (_data6_->query);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block6Data, _data6_);
#line 1506 "contacts-app.c"
	}
}


static void ___lambda110_ (Block6Data* _data6_) {
	ContactsApp* self;
	ContactsWindow* _tmp0_;
	const gchar* _tmp1_;
#line 169 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data6_->self;
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->window;
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _data6_->query;
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_show_search (_tmp0_, _tmp1_);
#line 1523 "contacts-app.c"
}


static void ____lambda110__contacts_store_quiescent (ContactsStore* _sender, gpointer self) {
#line 169 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	___lambda110_ (self);
#line 1530 "contacts-app.c"
}


void contacts_app_show_search (ContactsApp* self, const gchar* query) {
	Block6Data* _data6_;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	ContactsStore* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (query != NULL);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data6_ = g_slice_new0 (Block6Data);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data6_->_ref_count_ = 1;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data6_->self = g_object_ref (self);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = query;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (_data6_->query);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data6_->query = _tmp1_;
#line 166 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = self->contacts_store;
#line 166 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = contacts_store_get_is_quiescent (_tmp2_);
#line 166 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = _tmp3_;
#line 166 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp4_) {
#line 1567 "contacts-app.c"
		ContactsWindow* _tmp5_;
		const gchar* _tmp6_;
#line 167 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp5_ = self->window;
#line 167 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp6_ = _data6_->query;
#line 167 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_window_show_search (_tmp5_, _tmp6_);
#line 1576 "contacts-app.c"
	} else {
		ContactsStore* _tmp7_;
#line 169 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp7_ = self->contacts_store;
#line 169 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_signal_connect_data (_tmp7_, "quiescent", (GCallback) ____lambda110__contacts_store_quiescent, block6_data_ref (_data6_), (GClosureNotify) block6_data_unref, G_CONNECT_AFTER);
#line 1583 "contacts-app.c"
	}
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block6_data_unref (_data6_);
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data6_ = NULL;
#line 1589 "contacts-app.c"
}


static void contacts_app_create_app_menu (ContactsApp* self) {
	gchar* _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	gchar* _tmp3_;
	gchar** _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	GtkBuilder* builder = NULL;
	GtkBuilder* _tmp6_;
	GObject* _tmp7_;
#line 175 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 176 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_action_map_add_action_entries ((GActionMap*) self, CONTACTS_APP_action_entries, G_N_ELEMENTS (CONTACTS_APP_action_entries), self);
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = g_strdup ("F1");
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_new0 (gchar*, 1 + 1);
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_[0] = _tmp0_;
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = _tmp1_;
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2__length1 = 1;
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_application_set_accels_for_action ((GtkApplication*) self, "app.help", _tmp2_);
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = g_strdup ("<Primary>n");
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = g_new0 (gchar*, 1 + 1);
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_[0] = _tmp3_;
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5_ = _tmp4_;
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5__length1 = 1;
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_application_set_accels_for_action ((GtkApplication*) self, "app.new-contact", _tmp5_);
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
#line 181 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp6_ = contacts_load_ui ("app-menu.ui");
#line 181 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	builder = _tmp6_;
#line 182 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp7_ = gtk_builder_get_object (builder, "app-menu");
#line 182 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_application_set_app_menu ((GtkApplication*) self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, g_menu_model_get_type (), GMenuModel));
#line 175 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (builder);
#line 1647 "contacts-app.c"
}


static void contacts_app_create_window (ContactsApp* self) {
	ContactsStore* _tmp0_;
	ContactsWindow* _tmp1_;
#line 185 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 186 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 186 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = contacts_window_new ((GtkApplication*) self, _tmp0_);
#line 186 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_ref_sink (_tmp1_);
#line 186 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->window);
#line 186 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->window = _tmp1_;
#line 1666 "contacts-app.c"
}


static Block7Data* block7_data_ref (Block7Data* _data7_) {
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data7_->_ref_count_);
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data7_;
#line 1675 "contacts-app.c"
}


static void block7_data_unref (void * _userdata_) {
	Block7Data* _data7_;
	_data7_ = (Block7Data*) _userdata_;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
#line 1684 "contacts-app.c"
		ContactsApp* self;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data7_->self;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block7Data, _data7_);
#line 1692 "contacts-app.c"
	}
}


static void __lambda111_ (Block7Data* _data7_) {
	ContactsApp* self;
	ContactsStore* _tmp0_;
	gulong _tmp1_;
	guint _tmp2_;
	ContactsWindow* _tmp3_;
#line 194 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data7_->self;
#line 195 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 195 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _data7_->id;
#line 195 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 196 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = _data7_->id2;
#line 196 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_source_remove (_tmp2_);
#line 198 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_create_app_menu (self);
#line 199 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_create_window (self);
#line 200 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = self->window;
#line 200 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_show ((GtkWidget*) _tmp3_);
#line 202 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_schedule_window_finish_ui (self);
#line 204 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_application_release ((GApplication*) self);
#line 1727 "contacts-app.c"
}


static void ___lambda111__contacts_store_prepared (ContactsStore* _sender, gpointer self) {
#line 194 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__lambda111_ (self);
#line 1734 "contacts-app.c"
}


static gboolean __lambda114_ (Block7Data* _data7_) {
	ContactsApp* self;
	gboolean result = FALSE;
	ContactsStore* _tmp0_;
	gulong _tmp1_;
	ContactsWindow* _tmp2_;
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data7_->self;
#line 208 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 208 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _data7_->id;
#line 208 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 210 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_create_app_menu (self);
#line 211 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_create_window (self);
#line 212 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = self->window;
#line 212 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_widget_show ((GtkWidget*) _tmp2_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_schedule_window_finish_ui (self);
#line 216 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_application_release ((GApplication*) self);
#line 217 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = FALSE;
#line 217 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1768 "contacts-app.c"
}


static gboolean ___lambda114__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda114_ (self);
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1777 "contacts-app.c"
}


static void contacts_app_schedule_window_creation (ContactsApp* self) {
	Block7Data* _data7_;
	ContactsStore* _tmp0_;
	gulong _tmp1_;
	guint _tmp2_;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_ = g_slice_new0 (Block7Data);
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->_ref_count_ = 1;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->self = g_object_ref (self);
#line 191 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_application_hold ((GApplication*) self);
#line 192 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->id = (gulong) 0;
#line 193 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->id2 = (guint) 0;
#line 194 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 194 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_signal_connect_data (_tmp0_, "prepared", (GCallback) ___lambda111__contacts_store_prepared, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
#line 194 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->id = _tmp1_;
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ___lambda114__gsource_func, block7_data_ref (_data7_), block7_data_unref);
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_->id2 = _tmp2_;
#line 220 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->priv->is_prepare_scheluded = TRUE;
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block7_data_unref (_data7_);
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data7_ = NULL;
#line 1816 "contacts-app.c"
}


static Block8Data* block8_data_ref (Block8Data* _data8_) {
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_atomic_int_inc (&_data8_->_ref_count_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return _data8_;
#line 1825 "contacts-app.c"
}


static void block8_data_unref (void * _userdata_) {
	Block8Data* _data8_;
	_data8_ = (Block8Data*) _userdata_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
#line 1834 "contacts-app.c"
		ContactsApp* self;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		self = _data8_->self;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (self);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_slice_free (Block8Data, _data8_);
#line 1842 "contacts-app.c"
	}
}


static void __lambda112_ (Block8Data* _data8_) {
	ContactsApp* self;
	guint _tmp0_;
	ContactsStore* _tmp1_;
	gulong _tmp2_;
	ContactsWindow* _tmp3_;
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data8_->self;
#line 229 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _data8_->id2;
#line 229 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_source_remove (_tmp0_);
#line 230 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = self->contacts_store;
#line 230 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = _data8_->id;
#line 230 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _tmp1_, _tmp2_);
#line 232 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_debug ("contacts-app.vala:232: callign set_list_pane from quiescent.connect");
#line 233 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = self->window;
#line 233 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_set_list_pane (_tmp3_);
#line 1871 "contacts-app.c"
}


static void ___lambda112__contacts_store_quiescent (ContactsStore* _sender, gpointer self) {
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__lambda112_ (self);
#line 1878 "contacts-app.c"
}


static gboolean __lambda113_ (Block8Data* _data8_) {
	ContactsApp* self;
	gboolean result = FALSE;
	ContactsStore* _tmp0_;
	gulong _tmp1_;
	ContactsWindow* _tmp2_;
#line 236 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = _data8_->self;
#line 237 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 237 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = _data8_->id;
#line 237 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 239 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_debug ("contacts-app.vala:239: callign set_list_pane from 500.timeout");
#line 240 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = self->window;
#line 240 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_set_list_pane (_tmp2_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = FALSE;
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1906 "contacts-app.c"
}


static gboolean ___lambda113__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda113_ (self);
#line 236 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 1915 "contacts-app.c"
}


static void contacts_app_schedule_window_finish_ui (ContactsApp* self) {
	Block8Data* _data8_;
	ContactsStore* _tmp0_;
	gulong _tmp1_;
	guint _tmp2_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_ = g_slice_new0 (Block8Data);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->_ref_count_ = 1;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->self = g_object_ref (self);
#line 226 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->id = (gulong) 0;
#line 227 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->id2 = (guint) 0;
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->contacts_store;
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_signal_connect_data (_tmp0_, "quiescent", (GCallback) ___lambda112__contacts_store_quiescent, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->id = _tmp1_;
#line 236 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, ___lambda113__gsource_func, block8_data_ref (_data8_), block8_data_unref);
#line 236 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_->id2 = _tmp2_;
#line 244 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->priv->is_quiescent_scheduled = TRUE;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	block8_data_unref (_data8_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_data8_ = NULL;
#line 1952 "contacts-app.c"
}


static void contacts_app_real_startup (GApplication* base) {
	ContactsApp * self;
	gboolean _tmp0_;
	ContactsStore* _tmp1_;
	GtkCssProvider* css_provider = NULL;
	GtkCssProvider* _tmp2_;
	GdkScreen* _tmp3_;
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = (ContactsApp*) base;
#line 248 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = contacts_ensure_eds_accounts (TRUE);
#line 248 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (!_tmp0_) {
#line 249 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_application_quit ((GApplication*) self);
#line 1971 "contacts-app.c"
	}
#line 251 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = contacts_store_new ();
#line 251 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->contacts_store);
#line 251 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->contacts_store = _tmp1_;
#line 252 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	G_APPLICATION_CLASS (contacts_app_parent_class)->startup ((GApplication*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_get_type (), GtkApplication));
#line 254 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = contacts_load_css ("style.css");
#line 254 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	css_provider = _tmp2_;
#line 255 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = gdk_screen_get_default ();
#line 255 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	gtk_style_context_add_provider_for_screen (_tmp3_, (GtkStyleProvider*) css_provider, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (css_provider);
#line 1991 "contacts-app.c"
}


static void contacts_app_real_activate (GApplication* base) {
	ContactsApp * self;
	ContactsWindow* _tmp0_;
	ContactsStore* _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	ContactsWindow* _tmp11_;
#line 261 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = (ContactsApp*) base;
#line 263 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->window;
#line 263 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp0_ == NULL) {
#line 2008 "contacts-app.c"
		ContactsStore* _tmp1_;
		gboolean _tmp2_;
		gboolean _tmp3_;
		ContactsWindow* _tmp5_;
#line 264 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp1_ = self->contacts_store;
#line 264 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp2_ = contacts_store_get_is_prepared (_tmp1_);
#line 264 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp3_ = _tmp2_;
#line 264 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		if (!_tmp3_) {
#line 2021 "contacts-app.c"
			gboolean _tmp4_;
#line 265 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp4_ = self->priv->is_prepare_scheluded;
#line 265 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			if (!_tmp4_) {
#line 266 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				contacts_app_schedule_window_creation (self);
#line 267 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				return;
#line 2031 "contacts-app.c"
			}
		}
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_create_app_menu (self);
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_create_window (self);
#line 273 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp5_ = self->window;
#line 273 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 2042 "contacts-app.c"
	}
#line 276 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp6_ = self->contacts_store;
#line 276 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp7_ = contacts_store_get_is_quiescent (_tmp6_);
#line 276 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp8_ = _tmp7_;
#line 276 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp8_) {
#line 2052 "contacts-app.c"
		ContactsWindow* _tmp9_;
#line 277 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_debug ("contacts-app.vala:277: callign set_list_pane cause store is already qu" \
"iescent");
#line 278 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp9_ = self->window;
#line 278 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_window_set_list_pane (_tmp9_);
#line 2060 "contacts-app.c"
	} else {
		gboolean _tmp10_;
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp10_ = self->priv->is_quiescent_scheduled;
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		if (!_tmp10_) {
#line 280 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			contacts_app_schedule_window_finish_ui (self);
#line 2069 "contacts-app.c"
		}
	}
#line 283 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp11_ = self->window;
#line 283 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp11_ != NULL) {
#line 2076 "contacts-app.c"
		ContactsWindow* _tmp12_;
#line 284 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp12_ = self->window;
#line 284 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		gtk_window_present ((GtkWindow*) _tmp12_);
#line 2082 "contacts-app.c"
	}
}


void contacts_app_show_message (ContactsApp* self, const gchar* message) {
	ContactsInAppNotification* notification = NULL;
	const gchar* _tmp0_;
	ContactsInAppNotification* _tmp1_;
	ContactsWindow* _tmp2_;
#line 287 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 287 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (message != NULL);
#line 288 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = message;
#line 288 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = contacts_in_app_notification_new (_tmp0_, NULL);
#line 288 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_object_ref_sink (_tmp1_);
#line 288 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	notification = _tmp1_;
#line 289 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_in_app_notification_show (notification);
#line 290 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = self->window;
#line 290 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_add_notification (_tmp2_, notification);
#line 287 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (notification);
#line 2112 "contacts-app.c"
}


void contacts_app_new_contact (ContactsApp* self) {
	ContactsWindow* _tmp0_;
#line 293 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_if_fail (self != NULL);
#line 294 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = self->window;
#line 294 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_window_new_contact (_tmp0_);
#line 2124 "contacts-app.c"
}


static gint contacts_app_real_command_line (GApplication* base, GApplicationCommandLine* command_line) {
	ContactsApp * self;
	gint result = 0;
	gchar** args = NULL;
	GApplicationCommandLine* _tmp0_;
	gint _tmp1_;
	gchar** _tmp2_;
	gint args_length1;
	gint _args_size_;
	gchar** _args = NULL;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gint _args_length1;
	gint __args_size_;
	GOptionContext* context = NULL;
	GOptionContext* _tmp4_;
	GOptionContext* _tmp5_;
	GOptionContext* _tmp6_;
	GOptionContext* _tmp7_;
	GOptionGroup* _tmp8_;
	const gchar* _tmp13_;
	const gchar* _tmp16_;
	const gchar* _tmp19_;
	GError * _inner_error_ = NULL;
#line 310 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = (ContactsApp*) base;
#line 310 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_return_val_if_fail (command_line != NULL, 0);
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = command_line;
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp2_ = g_application_command_line_get_arguments (_tmp0_, &_tmp1_);
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	args = _tmp2_;
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	args_length1 = _tmp1_;
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_args_size_ = args_length1;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3_ = args;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp3__length1 = args_length1;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_args = _tmp3_;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_args_length1 = _tmp3__length1;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	__args_size_ = _args_length1;
#line 313 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp4_ = g_option_context_new (N_ ("— contact management"));
#line 313 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	context = _tmp4_;
#line 314 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp5_ = context;
#line 314 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_option_context_add_main_entries (_tmp5_, CONTACTS_APP_options, GETTEXT_PACKAGE);
#line 315 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp6_ = context;
#line 315 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_option_context_set_translation_domain (_tmp6_, GETTEXT_PACKAGE);
#line 316 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp7_ = context;
#line 316 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp8_ = gtk_get_option_group (TRUE);
#line 316 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_option_context_add_group (_tmp7_, _tmp8_);
#line 318 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (contacts_app_individual_id);
#line 318 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_individual_id = NULL;
#line 319 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (contacts_app_email_address);
#line 319 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_email_address = NULL;
#line 320 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_free0 (contacts_app_search_terms);
#line 320 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_search_terms = NULL;
#line 2206 "contacts-app.c"
	{
		GOptionContext* _tmp9_;
#line 323 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp9_ = context;
#line 323 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_option_context_parse (_tmp9_, &_args_length1, &_args, &_inner_error_);
#line 323 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2215 "contacts-app.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		GError* _tmp10_;
		const gchar* _tmp11_;
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		e = _inner_error_;
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_inner_error_ = NULL;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp10_ = e;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp11_ = _tmp10_->message;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_printerr ("Unable to parse: %s\n", _tmp11_);
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		result = 1;
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_error_free0 (e);
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_option_context_free0 (context);
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		return result;
#line 2245 "contacts-app.c"
	}
	__finally1:
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2250 "contacts-app.c"
		gint _tmp12_ = 0;
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_option_context_free0 (context);
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.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 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		g_clear_error (&_inner_error_);
#line 322 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		return _tmp12_;
#line 2262 "contacts-app.c"
	}
#line 329 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_application_activate ((GApplication*) self);
#line 331 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp13_ = contacts_app_individual_id;
#line 331 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp13_ != NULL) {
#line 2270 "contacts-app.c"
		ContactsApp* _tmp14_;
		const gchar* _tmp15_;
#line 332 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp14_ = contacts_app_app;
#line 332 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp15_ = contacts_app_individual_id;
#line 332 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_show_individual (_tmp14_, _tmp15_, NULL, NULL);
#line 2279 "contacts-app.c"
	}
#line 333 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp16_ = contacts_app_email_address;
#line 333 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp16_ != NULL) {
#line 2285 "contacts-app.c"
		ContactsApp* _tmp17_;
		const gchar* _tmp18_;
#line 334 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp17_ = contacts_app_app;
#line 334 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp18_ = contacts_app_email_address;
#line 334 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_show_by_email (_tmp17_, _tmp18_, NULL, NULL);
#line 2294 "contacts-app.c"
	}
#line 335 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp19_ = contacts_app_search_terms;
#line 335 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (_tmp19_ != NULL) {
#line 2300 "contacts-app.c"
		ContactsApp* _tmp20_;
		const gchar* _tmp21_;
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp20_ = contacts_app_app;
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp21_ = contacts_app_search_terms;
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		contacts_app_show_search (_tmp20_, _tmp21_);
#line 2309 "contacts-app.c"
	}
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = 0;
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_option_context_free0 (context);
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 2319 "contacts-app.c"
}


static void _vala_array_add1 (FolksPersonaStore** * array, int* length, int* size, FolksPersonaStore* value) {
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if ((*length) == (*size)) {
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		*array = g_renew (FolksPersonaStore*, *array, (*size) + 1);
#line 2330 "contacts-app.c"
	}
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	(*array)[(*length)++] = value;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	(*array)[*length] = NULL;
#line 2336 "contacts-app.c"
}


FolksPersonaStore** contacts_app_get_eds_address_books (int* result_length1) {
	FolksPersonaStore** result = NULL;
	FolksPersonaStore** stores = NULL;
	FolksPersonaStore** _tmp0_;
	gint stores_length1;
	gint _stores_size_;
	FolksPersonaStore** _tmp34_;
	gint _tmp34__length1;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = g_new0 (FolksPersonaStore*, 0 + 1);
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	stores = _tmp0_;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	stores_length1 = 0;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_stores_size_ = stores_length1;
#line 2356 "contacts-app.c"
	{
		GeeIterator* _backend_it = NULL;
		ContactsApp* _tmp1_;
		ContactsStore* _tmp2_;
		FolksBackendStore* _tmp3_;
		FolksBackendStore* _tmp4_;
		GeeMap* _tmp5_;
		GeeMap* _tmp6_;
		GeeCollection* _tmp7_;
		GeeCollection* _tmp8_;
		GeeCollection* _tmp9_;
		GeeIterator* _tmp10_;
		GeeIterator* _tmp11_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp1_ = contacts_app_app;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp2_ = _tmp1_->contacts_store;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp3_ = contacts_store_get_backend_store (_tmp2_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp4_ = _tmp3_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp5_ = folks_backend_store_get_enabled_backends (_tmp4_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp6_ = _tmp5_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp7_ = gee_map_get_values (_tmp6_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp8_ = _tmp7_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp9_ = _tmp8_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp10_ = gee_iterable_iterator ((GeeIterable*) _tmp9_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_tmp11_ = _tmp10_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_tmp9_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_backend_it = _tmp11_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		while (TRUE) {
#line 2398 "contacts-app.c"
			GeeIterator* _tmp12_;
			gboolean _tmp13_;
			FolksBackend* backend = NULL;
			GeeIterator* _tmp14_;
			gpointer _tmp15_;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp12_ = _backend_it;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp13_ = gee_iterator_next (_tmp12_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			if (!_tmp13_) {
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				break;
#line 2412 "contacts-app.c"
			}
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp14_ = _backend_it;
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_tmp15_ = gee_iterator_get (_tmp14_);
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			backend = (FolksBackend*) _tmp15_;
#line 2420 "contacts-app.c"
			{
				GeeIterator* _persona_store_it = NULL;
				FolksBackend* _tmp16_;
				GeeMap* _tmp17_;
				GeeMap* _tmp18_;
				GeeCollection* _tmp19_;
				GeeCollection* _tmp20_;
				GeeCollection* _tmp21_;
				GeeIterator* _tmp22_;
				GeeIterator* _tmp23_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp16_ = backend;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp17_ = folks_backend_get_persona_stores (_tmp16_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp18_ = _tmp17_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp19_ = gee_map_get_values (_tmp18_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp20_ = _tmp19_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp21_ = _tmp20_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp22_ = gee_iterable_iterator ((GeeIterable*) _tmp21_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_tmp23_ = _tmp22_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_g_object_unref0 (_tmp21_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_persona_store_it = _tmp23_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				while (TRUE) {
#line 2453 "contacts-app.c"
					GeeIterator* _tmp24_;
					gboolean _tmp25_;
					FolksPersonaStore* persona_store = NULL;
					GeeIterator* _tmp26_;
					gpointer _tmp27_;
					FolksPersonaStore* _tmp28_;
					const gchar* _tmp29_;
					const gchar* _tmp30_;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp24_ = _persona_store_it;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp25_ = gee_iterator_next (_tmp24_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					if (!_tmp25_) {
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						break;
#line 2470 "contacts-app.c"
					}
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp26_ = _persona_store_it;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp27_ = gee_iterator_get (_tmp26_);
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					persona_store = (FolksPersonaStore*) _tmp27_;
#line 345 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp28_ = persona_store;
#line 345 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp29_ = folks_persona_store_get_type_id (_tmp28_);
#line 345 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_tmp30_ = _tmp29_;
#line 345 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					if (g_strcmp0 (_tmp30_, "eds") == 0) {
#line 2486 "contacts-app.c"
						FolksPersonaStore** _tmp31_;
						gint _tmp31__length1;
						FolksPersonaStore* _tmp32_;
						FolksPersonaStore* _tmp33_;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						_tmp31_ = stores;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						_tmp31__length1 = stores_length1;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						_tmp32_ = persona_store;
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						_tmp33_ = _g_object_ref0 (_tmp32_);
#line 346 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
						_vala_array_add1 (&stores, &stores_length1, &_stores_size_, _tmp33_);
#line 2501 "contacts-app.c"
					}
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
					_g_object_unref0 (persona_store);
#line 2505 "contacts-app.c"
				}
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
				_g_object_unref0 (_persona_store_it);
#line 2509 "contacts-app.c"
			}
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
			_g_object_unref0 (backend);
#line 2513 "contacts-app.c"
		}
#line 343 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		_g_object_unref0 (_backend_it);
#line 2517 "contacts-app.c"
	}
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp34_ = stores;
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp34__length1 = stores_length1;
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	if (result_length1) {
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
		*result_length1 = _tmp34__length1;
#line 2527 "contacts-app.c"
	}
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	result = _tmp34_;
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return result;
#line 2533 "contacts-app.c"
}


ContactsApp* contacts_app_construct (GType object_type) {
	ContactsApp * self = NULL;
	ContactsApp* _tmp0_;
	GSettings* _tmp1_;
#line 354 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = (ContactsApp*) g_object_new (object_type, "application-id", "org.gnome.Contacts", "flags", G_APPLICATION_HANDLES_COMMAND_LINE, NULL);
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (contacts_app_app);
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_app = _tmp0_;
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_tmp1_ = g_settings_new ("org.gnome.Contacts");
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->settings);
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->settings = _tmp1_;
#line 353 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return self;
#line 2557 "contacts-app.c"
}


ContactsApp* contacts_app_new (void) {
#line 353 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	return contacts_app_construct (CONTACTS_TYPE_APP);
#line 2564 "contacts-app.c"
}


static void contacts_app_class_init (ContactsAppClass * klass) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	contacts_app_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	g_type_class_add_private (klass, sizeof (ContactsAppPrivate));
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	((GApplicationClass *) klass)->startup = (void (*) (GApplication *)) contacts_app_real_startup;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	((GApplicationClass *) klass)->activate = (void (*) (GApplication *)) contacts_app_real_activate;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	((GApplicationClass *) klass)->command_line = (gint (*) (GApplication *, GApplicationCommandLine*)) contacts_app_real_command_line;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	G_OBJECT_CLASS (klass)->finalize = contacts_app_finalize;
#line 2581 "contacts-app.c"
}


static void contacts_app_instance_init (ContactsApp * self) {
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->priv = CONTACTS_APP_GET_PRIVATE (self);
#line 31 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->priv->is_prepare_scheluded = FALSE;
#line 32 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self->priv->is_quiescent_scheduled = FALSE;
#line 2592 "contacts-app.c"
}


static void contacts_app_finalize (GObject * obj) {
	ContactsApp * self;
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_APP, ContactsApp);
#line 24 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->settings);
#line 27 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->contacts_store);
#line 29 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	_g_object_unref0 (self->window);
#line 22 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-app.vala"
	G_OBJECT_CLASS (contacts_app_parent_class)->finalize (obj);
#line 2608 "contacts-app.c"
}


GType contacts_app_get_type (void) {
	static volatile gsize contacts_app_type_id__volatile = 0;
	if (g_once_init_enter (&contacts_app_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ContactsAppClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) contacts_app_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContactsApp), 0, (GInstanceInitFunc) contacts_app_instance_init, NULL };
		GType contacts_app_type_id;
		contacts_app_type_id = g_type_register_static (gtk_application_get_type (), "ContactsApp", &g_define_type_info, 0);
		g_once_init_leave (&contacts_app_type_id__volatile, contacts_app_type_id);
	}
	return contacts_app_type_id__volatile;
}


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);
}



