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

/*
 * 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 <gee.h>
#include <folks/folks.h>
#include <stdlib.h>
#include <string.h>
#include <cairo.h>
#include <float.h>
#include <math.h>
#include <glib/gi18n-lib.h>
#include <pango/pango.h>


#define CONTACTS_TYPE_CONTACT_PANE (contacts_contact_pane_get_type ())
#define CONTACTS_CONTACT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_CONTACT_PANE, ContactsContactPane))
#define CONTACTS_CONTACT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_CONTACT_PANE, ContactsContactPaneClass))
#define CONTACTS_IS_CONTACT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_CONTACT_PANE))
#define CONTACTS_IS_CONTACT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_CONTACT_PANE))
#define CONTACTS_CONTACT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_CONTACT_PANE, ContactsContactPaneClass))

typedef struct _ContactsContactPane ContactsContactPane;
typedef struct _ContactsContactPaneClass ContactsContactPaneClass;
typedef struct _ContactsContactPanePrivate ContactsContactPanePrivate;

#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 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_CONTACT_SHEET (contacts_contact_sheet_get_type ())
#define CONTACTS_CONTACT_SHEET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_CONTACT_SHEET, ContactsContactSheet))
#define CONTACTS_CONTACT_SHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_CONTACT_SHEET, ContactsContactSheetClass))
#define CONTACTS_IS_CONTACT_SHEET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_CONTACT_SHEET))
#define CONTACTS_IS_CONTACT_SHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_CONTACT_SHEET))
#define CONTACTS_CONTACT_SHEET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_CONTACT_SHEET, ContactsContactSheetClass))

typedef struct _ContactsContactSheet ContactsContactSheet;
typedef struct _ContactsContactSheetClass ContactsContactSheetClass;

#define CONTACTS_TYPE_CONTACT_EDITOR (contacts_contact_editor_get_type ())
#define CONTACTS_CONTACT_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_CONTACT_EDITOR, ContactsContactEditor))
#define CONTACTS_CONTACT_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_CONTACT_EDITOR, ContactsContactEditorClass))
#define CONTACTS_IS_CONTACT_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_CONTACT_EDITOR))
#define CONTACTS_IS_CONTACT_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_CONTACT_EDITOR))
#define CONTACTS_CONTACT_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_CONTACT_EDITOR, ContactsContactEditorClass))

typedef struct _ContactsContactEditor ContactsContactEditor;
typedef struct _ContactsContactEditorClass ContactsContactEditorClass;
enum  {
	CONTACTS_CONTACT_PANE_DUMMY_PROPERTY,
	CONTACTS_CONTACT_PANE_STORE,
	CONTACTS_CONTACT_PANE_LAST_PROPERTY
};
static GParamSpec* contacts_contact_pane_properties[CONTACTS_CONTACT_PANE_LAST_PROPERTY];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _ContactsContactPrivate ContactsContactPrivate;
typedef struct _Block26Data Block26Data;

#define CONTACTS_TYPE_CONTACT_FRAME (contacts_contact_frame_get_type ())
#define CONTACTS_CONTACT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_CONTACT_FRAME, ContactsContactFrame))
#define CONTACTS_CONTACT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_CONTACT_FRAME, ContactsContactFrameClass))
#define CONTACTS_IS_CONTACT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_CONTACT_FRAME))
#define CONTACTS_IS_CONTACT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_CONTACT_FRAME))
#define CONTACTS_CONTACT_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_CONTACT_FRAME, ContactsContactFrameClass))

typedef struct _ContactsContactFrame ContactsContactFrame;
typedef struct _ContactsContactFrameClass ContactsContactFrameClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block27Data Block27Data;

#define CONTACTS_TYPE_LINK_OPERATION (contacts_link_operation_get_type ())
#define CONTACTS_LINK_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_LINK_OPERATION, ContactsLinkOperation))
#define CONTACTS_LINK_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_LINK_OPERATION, ContactsLinkOperationClass))
#define CONTACTS_IS_LINK_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_LINK_OPERATION))
#define CONTACTS_IS_LINK_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_LINK_OPERATION))
#define CONTACTS_LINK_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_LINK_OPERATION, ContactsLinkOperationClass))

typedef struct _ContactsLinkOperation ContactsLinkOperation;
typedef struct _ContactsLinkOperationClass ContactsLinkOperationClass;

#define CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG (contacts_linked_accounts_dialog_get_type ())
#define CONTACTS_LINKED_ACCOUNTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG, ContactsLinkedAccountsDialog))
#define CONTACTS_LINKED_ACCOUNTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG, ContactsLinkedAccountsDialogClass))
#define CONTACTS_IS_LINKED_ACCOUNTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG))
#define CONTACTS_IS_LINKED_ACCOUNTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG))
#define CONTACTS_LINKED_ACCOUNTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONTACTS_TYPE_LINKED_ACCOUNTS_DIALOG, ContactsLinkedAccountsDialogClass))

typedef struct _ContactsLinkedAccountsDialog ContactsLinkedAccountsDialog;
typedef struct _ContactsLinkedAccountsDialogClass ContactsLinkedAccountsDialogClass;
typedef struct _ContactsLinkedAccountsDialogPrivate ContactsLinkedAccountsDialogPrivate;

#define CONTACTS_CONTACT_EDITOR_TYPE_PROPERTY_DATA (contacts_contact_editor_property_data_get_type ())
typedef struct _ContactsContactEditorPropertyData ContactsContactEditorPropertyData;

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

#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;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _ContactsContactPaneCreateContactData ContactsContactPaneCreateContactData;

#define TYPE_CENTER (center_get_type ())
#define CENTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CENTER, Center))
#define CENTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CENTER, CenterClass))
#define IS_CENTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CENTER))
#define IS_CENTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CENTER))
#define CENTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CENTER, CenterClass))

typedef struct _Center Center;
typedef struct _CenterClass CenterClass;
typedef struct _ContactsContactEditorPrivate ContactsContactEditorPrivate;
enum  {
	CONTACTS_CONTACT_PANE_CONTACTS_LINKED_SIGNAL,
	CONTACTS_CONTACT_PANE_WILL_DELETE_SIGNAL,
	CONTACTS_CONTACT_PANE_LAST_SIGNAL
};
static guint contacts_contact_pane_signals[CONTACTS_CONTACT_PANE_LAST_SIGNAL] = {0};

struct _ContactsContactPane {
	GtkStack parent_instance;
	ContactsContactPanePrivate * priv;
	ContactsContact* contact;
	gboolean on_edit_mode;
	GtkGrid* suggestion_grid;
};

struct _ContactsContactPaneClass {
	GtkStackClass parent_class;
};

struct _ContactsContactPanePrivate {
	ContactsStore* _store;
	GtkGrid* none_selected_page;
	GtkScrolledWindow* contact_sheet_page;
	ContactsContactSheet* sheet;
	GtkBox* contact_editor_page;
	ContactsContactEditor* editor;
	GSimpleActionGroup* edit_contact_actions;
};

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 _Block26Data {
	int _ref_count_;
	ContactsContactPane* self;
	ContactsContact* c;
};

struct _Block27Data {
	int _ref_count_;
	Block26Data * _data26_;
	gchar* linked_contact;
};

struct _ContactsLinkedAccountsDialog {
	GtkDialog parent_instance;
	ContactsLinkedAccountsDialogPrivate * priv;
	gboolean any_unlinked;
};

struct _ContactsLinkedAccountsDialogClass {
	GtkDialogClass parent_class;
};

struct _ContactsContactEditorPropertyData {
	FolksPersona* persona;
	GValue value;
};

typedef enum  {
	CONTACT_ERROR_NOT_IMPLEMENTED,
	CONTACT_ERROR_NO_PRIMARY
} ContactError;
#define CONTACT_ERROR contact_error_quark ()
struct _ContactsApp {
	GtkApplication parent_instance;
	ContactsAppPrivate * priv;
	GSettings* settings;
	ContactsStore* contacts_store;
	ContactsWindow* window;
};

struct _ContactsAppClass {
	GtkApplicationClass parent_class;
};

struct _ContactsContactPaneCreateContactData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GAsyncReadyCallback _callback_;
	gboolean _task_complete_;
	ContactsContactPane* self;
	GHashTable* details;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	ContactsStore* contacts_store;
	ContactsApp* _tmp3_;
	ContactsStore* _tmp4_;
	ContactsStore* _tmp5_;
	ContactsContactEditor* _tmp6_;
	gboolean _tmp7_;
	GHashTable* _tmp8_;
	gchar* _tmp9_;
	ContactsContactEditor* _tmp10_;
	GValue _tmp11_;
	GValue _tmp12_;
	GValue* _tmp13_;
	ContactsContactEditor* _tmp14_;
	gboolean _tmp15_;
	GHashTable* _tmp16_;
	gchar* _tmp17_;
	ContactsContactEditor* _tmp18_;
	GValue _tmp19_;
	GValue _tmp20_;
	GValue* _tmp21_;
	GeeIterator* _prop_it;
	ContactsContactEditor* _tmp22_;
	GeeHashMap* _tmp23_;
	GeeHashMap* _tmp24_;
	GeeSet* _tmp25_;
	GeeSet* _tmp26_;
	GeeSet* _tmp27_;
	GeeIterator* _tmp28_;
	GeeIterator* _tmp29_;
	GeeIterator* _tmp30_;
	gboolean _tmp31_;
	GeeMapEntry* prop;
	GeeIterator* _tmp32_;
	gpointer _tmp33_;
	GHashTable* _tmp34_;
	GeeMapEntry* _tmp35_;
	gconstpointer _tmp36_;
	const gchar* _tmp37_;
	gchar* _tmp38_;
	GeeMapEntry* _tmp39_;
	gconstpointer _tmp40_;
	ContactsContactEditorPropertyData* _tmp41_;
	GValue _tmp42_;
	GValue _tmp43_;
	GValue* _tmp44_;
	GHashTable* _tmp45_;
	guint _tmp46_;
	ContactsStore* _tmp47_;
	FolksIndividualAggregator* _tmp48_;
	FolksIndividualAggregator* _tmp49_;
	FolksPersonaStore* _tmp50_;
	FolksPersonaStore* _tmp51_;
	FolksPersonaStore* primary_store;
	ContactsStore* _tmp52_;
	FolksIndividualAggregator* _tmp53_;
	FolksIndividualAggregator* _tmp54_;
	FolksPersonaStore* _tmp55_;
	FolksPersonaStore* _tmp56_;
	FolksPersonaStore* _tmp57_;
	FolksPersona* persona;
	FolksPersona* _tmp58_;
	FolksPersonaStore* _tmp59_;
	GHashTable* _tmp60_;
	FolksPersona* _tmp61_;
	FolksPersona* _tmp62_;
	GError* e;
	GError* _tmp63_;
	const gchar* _tmp64_;
	gchar* _tmp65_;
	gchar* _tmp66_;
	ContactsContact* contact;
	ContactsStore* _tmp67_;
	FolksPersona* _tmp68_;
	ContactsContact* _tmp69_;
	ContactsContact* _tmp70_;
	ContactsApp* _tmp71_;
	ContactsContact* _tmp72_;
	GError * _inner_error_;
};

struct _ContactsContactEditor {
	GtkGrid parent_instance;
	ContactsContactEditorPrivate * priv;
	GtkButton* linked_button;
	GtkButton* remove_button;
};

struct _ContactsContactEditorClass {
	GtkGridClass parent_class;
};


static gpointer contacts_contact_pane_parent_class = NULL;
extern ContactsApp* contacts_app_app;

#define PROFILE_SIZE 96
GType contacts_contact_pane_get_type (void) G_GNUC_CONST;
GType contacts_contact_get_type (void) G_GNUC_CONST;
GType contacts_store_get_type (void) G_GNUC_CONST;
GType contacts_contact_sheet_get_type (void) G_GNUC_CONST;
GType contacts_contact_editor_get_type (void) G_GNUC_CONST;
#define CONTACTS_CONTACT_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CONTACTS_TYPE_CONTACT_PANE, ContactsContactPanePrivate))
static void contacts_contact_pane_on_add_detail (ContactsContactPane* self, GSimpleAction* action, GVariant* parameter);
static void _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self);
void contacts_contact_pane_update_sheet (ContactsContactPane* self);
void contacts_contact_sheet_clear (ContactsContactSheet* self);
void contacts_contact_sheet_update (ContactsContactSheet* self, ContactsContact* c);
FolksIndividualAggregator* contacts_store_get_aggregator (ContactsStore* self);
ContactsContact* contacts_contact_from_individual (FolksIndividual* i);
gboolean contacts_contact_suggest_link_to (ContactsContact* self, ContactsContact* other);
void contacts_contact_pane_add_suggestion (ContactsContactPane* self, ContactsContact* c);
static Block26Data* block26_data_ref (Block26Data* _data26_);
static void block26_data_unref (void * _userdata_);
static gboolean __lambda67_ (ContactsContactPane* self, cairo_t* cr);
static gboolean ___lambda67__gtk_widget_draw (GtkWidget* _sender, cairo_t* cr, gpointer self);
GType contacts_contact_frame_get_type (void) G_GNUC_CONST;
#define CONTACTS_CONTACT_SMALL_AVATAR_SIZE 54
ContactsContactFrame* contacts_contact_frame_new (gint size, gboolean with_button);
ContactsContactFrame* contacts_contact_frame_construct (GType object_type, gint size, gboolean with_button);
void contacts_contact_keep_widget_uptodate (ContactsContact* self, GtkWidget* w, GtkCallback callback, void* callback_target, GDestroyNotify callback_target_destroy_notify);
static void __lambda68_ (Block26Data* _data26_, GtkWidget* w);
void contacts_contact_frame_set_image (ContactsContactFrame* self, FolksAvatarDetails* details, ContactsContact* contact);
static void ___lambda68__gtk_callback (GtkWidget* widget, gpointer self);
const gchar* contacts_contact_get_display_name (ContactsContact* self);
gchar* contacts_contact_format_persona_stores (ContactsContact* self);
static void __lambda69_ (Block26Data* _data26_);
static Block27Data* block27_data_ref (Block27Data* _data27_);
static void block27_data_unref (void * _userdata_);
void contacts_link_contacts (ContactsContact* main, ContactsContact* other, GAsyncReadyCallback _callback_, gpointer _user_data_);
GType contacts_link_operation_get_type (void) G_GNUC_CONST;
ContactsLinkOperation* contacts_link_contacts_finish (GAsyncResult* _res_);
static void __lambda70_ (Block27Data* _data27_, GObject* obj, GAsyncResult* _result_);
static void ___lambda70__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void ___lambda69__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void __lambda71_ (Block26Data* _data26_);
ContactsStore* contacts_contact_pane_get_store (ContactsContactPane* self);
void contacts_store_add_no_suggest_link (ContactsStore* self, ContactsContact* a, ContactsContact* b);
static void ___lambda71__gtk_button_clicked (GtkButton* _sender, gpointer self);
void contacts_contact_pane_show_contact (ContactsContactPane* self, ContactsContact* new_contact, gboolean show_matches);
static void _contacts_contact_pane_update_sheet_contacts_contact_personas_changed (ContactsContact* _sender, gpointer self);
static void _contacts_contact_pane_update_sheet_contacts_contact_changed (ContactsContact* _sender, gpointer self);
void contacts_contact_editor_add_new_row_for_property (ContactsContactEditor* self, FolksPersona* p, const gchar* prop_name, const gchar* type);
FolksPersona* contacts_contact_find_primary_persona (ContactsContact* self);
static void contacts_contact_pane_linked_accounts (ContactsContactPane* self);
GType contacts_linked_accounts_dialog_get_type (void) G_GNUC_CONST;
ContactsLinkedAccountsDialog* contacts_linked_accounts_dialog_new (ContactsContact* contact);
ContactsLinkedAccountsDialog* contacts_linked_accounts_dialog_construct (GType object_type, ContactsContact* contact);
void contacts_contact_pane_set_edit_mode (ContactsContactPane* self, gboolean on_edit, gboolean drop_changes);
static void contacts_contact_pane_delete_contact (ContactsContactPane* self);
void contacts_contact_hide (ContactsContact* self);
void contacts_contact_editor_clear (ContactsContactEditor* self);
void contacts_contact_editor_edit (ContactsContactEditor* self, ContactsContact* c);
GType contacts_contact_editor_property_data_get_type (void) G_GNUC_CONST;
ContactsContactEditorPropertyData* contacts_contact_editor_property_data_dup (const ContactsContactEditorPropertyData* self);
void contacts_contact_editor_property_data_free (ContactsContactEditorPropertyData* self);
void contacts_contact_editor_property_data_copy (const ContactsContactEditorPropertyData* self, ContactsContactEditorPropertyData* dest);
void contacts_contact_editor_property_data_destroy (ContactsContactEditorPropertyData* self);
GeeHashMap* contacts_contact_editor_properties_changed (ContactsContactEditor* self);
void contacts_contact_set_persona_property (FolksPersona* persona, const gchar* property_name, GValue* new_value, GAsyncReadyCallback _callback_, gpointer _user_data_);
GQuark contact_error_quark (void);
void contacts_contact_set_persona_property_finish (GAsyncResult* _res_, GError** error);
static void ______lambda75_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_);
GType contacts_app_get_type (void) G_GNUC_CONST;
void contacts_app_show_message (ContactsApp* self, const gchar* message);
static void _______lambda75__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
gboolean contacts_contact_editor_name_changed (ContactsContactEditor* self);
void contacts_contact_editor_get_full_name_value (ContactsContactEditor* self, GValue* result);
void contacts_contact_set_individual_property (ContactsContact* contact, const gchar* property_name, GValue* value, GAsyncReadyCallback _callback_, gpointer _user_data_);
FolksPersona* contacts_contact_set_individual_property_finish (GAsyncResult* _res_, GError** error);
static void _____lambda77_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_);
static void ______lambda77__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
gboolean contacts_contact_editor_avatar_changed (ContactsContactEditor* self);
void contacts_contact_editor_get_avatar_value (ContactsContactEditor* self, GValue* result);
static void _____lambda78_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_);
static void ______lambda78__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
void contacts_contact_pane_new_contact (ContactsContactPane* self);
void contacts_contact_editor_set_new_contact (ContactsContactEditor* self);
static void contacts_contact_pane_create_contact_data_free (gpointer _data);
static void contacts_contact_pane_create_contact_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data);
void contacts_contact_pane_create_contact (ContactsContactPane* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void contacts_contact_pane_create_contact_finish (ContactsContactPane* self, GAsyncResult* _res_);
static gboolean contacts_contact_pane_create_contact_co (ContactsContactPaneCreateContactData* _data_);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
GType contacts_window_get_type (void) G_GNUC_CONST;
static GValue* _g_value_dup (GValue* self);
static void contacts_contact_pane_show_message_dialog (ContactsContactPane* self, const gchar* message);
void contacts_contact_create_primary_persona_for_details (FolksPersonaStore* store, GHashTable* details, GAsyncReadyCallback _callback_, gpointer _user_data_);
FolksPersona* contacts_contact_create_primary_persona_for_details_finish (GAsyncResult* _res_, GError** error);
static void contacts_contact_pane_create_contact_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
ContactsContact* contacts_store_find_contact_with_persona (ContactsStore* self, FolksPersona* persona);
void contacts_app_show_contact (ContactsApp* self, ContactsContact* contact);
ContactsContactPane* contacts_contact_pane_new (void);
ContactsContactPane* contacts_contact_pane_construct (GType object_type);
void contacts_contact_pane_set_store (ContactsContactPane* self, ContactsStore* value);
static void _contacts_contact_pane_update_sheet_contacts_store_quiescent (ContactsStore* _sender, gpointer self);
static void g_cclosure_user_marshal_VOID__STRING_STRING_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
static GObject * contacts_contact_pane_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
ContactsContactSheet* contacts_contact_sheet_new (void);
ContactsContactSheet* contacts_contact_sheet_construct (GType object_type);
GType center_get_type (void) G_GNUC_CONST;
Center* center_new (void);
Center* center_construct (GType object_type);
void center_set_max_width (Center* self, gint value);
void center_set_xalign (Center* self, gdouble value);
ContactsContactEditor* contacts_contact_editor_new (GSimpleActionGroup* editor_actions);
ContactsContactEditor* contacts_contact_editor_construct (GType object_type, GSimpleActionGroup* editor_actions);
static void _contacts_contact_pane_linked_accounts_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void _contacts_contact_pane_delete_contact_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void contacts_contact_pane_finalize (GObject * obj);
static void _vala_contacts_contact_pane_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_contacts_contact_pane_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);

static const GActionEntry CONTACTS_CONTACT_PANE_action_entries[11] = {{"add.email-addresses.home", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.email-addresses.work", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.phone-numbers.cell", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.phone-numbers.home", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.phone-numbers.work", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.urls", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.nickname", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.birthday", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.postal-addresses.home", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.postal-addresses.work", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}, {"add.notes", _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback}};

static void _contacts_contact_pane_on_add_detail_gsimple_action_activate_callback (GSimpleAction* action, GVariant* parameter, gpointer self) {
#line 63 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_on_add_detail ((ContactsContactPane*) self, action, parameter);
#line 490 "contacts-contact-pane.c"
}


void contacts_contact_pane_update_sheet (ContactsContactPane* self) {
	gboolean _tmp0_;
	ContactsContactSheet* _tmp1_;
	ContactsContact* _tmp2_;
	ContactsContactSheet* _tmp3_;
	ContactsContact* _tmp4_;
	GtkScrolledWindow* _tmp5_;
	GeeMap* matches = NULL;
	ContactsContact* _tmp6_;
	ContactsStore* _tmp7_;
	FolksIndividualAggregator* _tmp8_;
	FolksIndividualAggregator* _tmp9_;
	ContactsContact* _tmp10_;
	FolksIndividual* _tmp11_;
	GeeMap* _tmp12_;
#line 84 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->on_edit_mode;
#line 85 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp0_) {
#line 87 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 517 "contacts-contact-pane.c"
	}
#line 90 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = self->priv->sheet;
#line 90 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_sheet_clear (_tmp1_);
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = self->contact;
#line 92 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp2_ == NULL) {
#line 93 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 529 "contacts-contact-pane.c"
	}
#line 95 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = self->priv->sheet;
#line 95 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->contact;
#line 95 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_sheet_update (_tmp3_, _tmp4_);
#line 96 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = self->priv->contact_sheet_page;
#line 96 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp5_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = self->contact;
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp7_ = _tmp6_->store;
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp8_ = contacts_store_get_aggregator (_tmp7_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp9_ = _tmp8_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp10_ = self->contact;
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp11_ = _tmp10_->individual;
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp12_ = folks_individual_aggregator_get_potential_matches (_tmp9_, _tmp11_, FOLKS_MATCH_RESULT_HIGH);
#line 98 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	matches = _tmp12_;
#line 557 "contacts-contact-pane.c"
	{
		GeeIterator* _ind_it = NULL;
		GeeMap* _tmp13_;
		GeeSet* _tmp14_;
		GeeSet* _tmp15_;
		GeeSet* _tmp16_;
		GeeIterator* _tmp17_;
		GeeIterator* _tmp18_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp13_ = matches;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp14_ = gee_map_get_keys (_tmp13_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp15_ = _tmp14_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp16_ = _tmp15_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp17_ = gee_iterable_iterator ((GeeIterable*) _tmp16_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp18_ = _tmp17_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_tmp16_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_ind_it = _tmp18_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		while (TRUE) {
#line 584 "contacts-contact-pane.c"
			GeeIterator* _tmp19_;
			gboolean _tmp20_;
			FolksIndividual* ind = NULL;
			GeeIterator* _tmp21_;
			gpointer _tmp22_;
			ContactsContact* c = NULL;
			FolksIndividual* _tmp23_;
			ContactsContact* _tmp24_;
			gboolean _tmp25_ = FALSE;
			ContactsContact* _tmp26_;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp19_ = _ind_it;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp20_ = gee_iterator_next (_tmp19_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (!_tmp20_) {
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				break;
#line 603 "contacts-contact-pane.c"
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp21_ = _ind_it;
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp22_ = gee_iterator_get (_tmp21_);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			ind = (FolksIndividual*) _tmp22_;
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp23_ = ind;
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp24_ = contacts_contact_from_individual (_tmp23_);
#line 100 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			c = _tmp24_;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp26_ = c;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (_tmp26_ != NULL) {
#line 621 "contacts-contact-pane.c"
				ContactsContact* _tmp27_;
				ContactsContact* _tmp28_;
				gboolean _tmp29_;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp27_ = self->contact;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp28_ = c;
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp29_ = contacts_contact_suggest_link_to (_tmp27_, _tmp28_);
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp25_ = _tmp29_;
#line 633 "contacts-contact-pane.c"
			} else {
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp25_ = FALSE;
#line 637 "contacts-contact-pane.c"
			}
#line 101 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (_tmp25_) {
#line 641 "contacts-contact-pane.c"
				ContactsContact* _tmp30_;
#line 102 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp30_ = c;
#line 102 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				contacts_contact_pane_add_suggestion (self, _tmp30_);
#line 647 "contacts-contact-pane.c"
			}
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_object_unref0 (c);
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_object_unref0 (ind);
#line 653 "contacts-contact-pane.c"
		}
#line 99 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_ind_it);
#line 657 "contacts-contact-pane.c"
	}
#line 84 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (matches);
#line 661 "contacts-contact-pane.c"
}


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


static Block26Data* block26_data_ref (Block26Data* _data26_) {
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_atomic_int_inc (&_data26_->_ref_count_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return _data26_;
#line 677 "contacts-contact-pane.c"
}


static void block26_data_unref (void * _userdata_) {
	Block26Data* _data26_;
	_data26_ = (Block26Data*) _userdata_;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (g_atomic_int_dec_and_test (&_data26_->_ref_count_)) {
#line 686 "contacts-contact-pane.c"
		ContactsContactPane* self;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self = _data26_->self;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data26_->c);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (self);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_slice_free (Block26Data, _data26_);
#line 696 "contacts-contact-pane.c"
	}
}


static gboolean __lambda67_ (ContactsContactPane* self, cairo_t* cr) {
	gboolean result = FALSE;
	GtkAllocation allocation = {0};
	GtkGrid* _tmp0_;
	GtkAllocation _tmp1_ = {0};
	GtkStyleContext* context = NULL;
	GtkGrid* _tmp2_;
	GtkStyleContext* _tmp3_;
	GtkStyleContext* _tmp4_;
	cairo_t* _tmp5_;
	GtkAllocation _tmp6_;
	gint _tmp7_;
	GtkAllocation _tmp8_;
	gint _tmp9_;
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_val_if_fail (cr != NULL, FALSE);
#line 123 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->suggestion_grid;
#line 123 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp0_, &_tmp1_);
#line 123 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	allocation = _tmp1_;
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = self->suggestion_grid;
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = gtk_widget_get_style_context ((GtkWidget*) _tmp2_);
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 125 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	context = _tmp4_;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = cr;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = allocation;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp7_ = _tmp6_.width;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp8_ = allocation;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp9_ = _tmp8_.height;
#line 126 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_render_background (context, _tmp5_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp7_, (gdouble) _tmp9_);
#line 129 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	result = FALSE;
#line 129 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (context);
#line 129 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return result;
#line 749 "contacts-contact-pane.c"
}


static gboolean ___lambda67__gtk_widget_draw (GtkWidget* _sender, cairo_t* cr, gpointer self) {
	gboolean result;
	result = __lambda67_ ((ContactsContactPane*) self, cr);
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return result;
#line 758 "contacts-contact-pane.c"
}


static void __lambda68_ (Block26Data* _data26_, GtkWidget* w) {
	ContactsContactPane* self;
	GtkWidget* _tmp0_;
	ContactsContact* _tmp1_;
	FolksIndividual* _tmp2_;
	ContactsContact* _tmp3_;
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = _data26_->self;
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (w != NULL);
#line 137 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = w;
#line 137 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = _data26_->c;
#line 137 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = _tmp1_->individual;
#line 137 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = _data26_->c;
#line 137 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_frame_set_image (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, CONTACTS_TYPE_CONTACT_FRAME) ? ((ContactsContactFrame*) _tmp0_) : NULL, (FolksAvatarDetails*) _tmp2_, _tmp3_);
#line 782 "contacts-contact-pane.c"
}


static void ___lambda68__gtk_callback (GtkWidget* widget, gpointer self) {
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	__lambda68_ (self, widget);
#line 789 "contacts-contact-pane.c"
}


static Block27Data* block27_data_ref (Block27Data* _data27_) {
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_atomic_int_inc (&_data27_->_ref_count_);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return _data27_;
#line 798 "contacts-contact-pane.c"
}


static void block27_data_unref (void * _userdata_) {
	Block27Data* _data27_;
	_data27_ = (Block27Data*) _userdata_;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (g_atomic_int_dec_and_test (&_data27_->_ref_count_)) {
#line 807 "contacts-contact-pane.c"
		ContactsContactPane* self;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self = _data27_->_data26_->self;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_data27_->linked_contact);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		block26_data_unref (_data27_->_data26_);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data27_->_data26_ = NULL;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_slice_free (Block27Data, _data27_);
#line 819 "contacts-contact-pane.c"
	}
}


static void __lambda70_ (Block27Data* _data27_, GObject* obj, GAsyncResult* _result_) {
	Block26Data* _data26_;
	ContactsContactPane* self;
	ContactsLinkOperation* operation = NULL;
	GAsyncResult* _tmp0_;
	ContactsLinkOperation* _tmp1_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_ = _data27_->_data26_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = _data26_->self;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (_result_ != NULL);
#line 164 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = _result_;
#line 164 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = contacts_link_contacts_finish (_tmp0_);
#line 164 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	operation = _tmp1_;
#line 165 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_emit (self, contacts_contact_pane_signals[CONTACTS_CONTACT_PANE_CONTACTS_LINKED_SIGNAL], 0, NULL, _data27_->linked_contact, operation);
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (operation);
#line 846 "contacts-contact-pane.c"
}


static void ___lambda70__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	__lambda70_ (self, source_object, res);
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	block27_data_unref (self);
#line 855 "contacts-contact-pane.c"
}


static void __lambda69_ (Block26Data* _data26_) {
	ContactsContactPane* self;
	Block27Data* _data27_;
	ContactsContact* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	ContactsContact* _tmp4_;
	ContactsContact* _tmp5_;
	GtkGrid* _tmp6_;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = _data26_->self;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data27_ = g_slice_new0 (Block27Data);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data27_->_ref_count_ = 1;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data27_->_data26_ = block26_data_ref (_data26_);
#line 162 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = _data26_->c;
#line 162 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = contacts_contact_get_display_name (_tmp0_);
#line 162 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = _tmp1_;
#line 162 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 162 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data27_->linked_contact = _tmp3_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->contact;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = _data26_->c;
#line 163 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_link_contacts (_tmp4_, _tmp5_, ___lambda70__gasync_ready_callback, block27_data_ref (_data27_));
#line 167 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = self->suggestion_grid;
#line 167 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp6_);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	block27_data_unref (_data27_);
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data27_ = NULL;
#line 901 "contacts-contact-pane.c"
}


static void ___lambda69__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	__lambda69_ (self);
#line 908 "contacts-contact-pane.c"
}


static void __lambda71_ (Block26Data* _data26_) {
	ContactsContactPane* self;
	ContactsStore* _tmp0_;
	ContactsStore* _tmp1_;
	ContactsContact* _tmp2_;
	ContactsContact* _tmp3_;
	GtkGrid* _tmp4_;
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = _data26_->self;
#line 171 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = contacts_contact_pane_get_store (self);
#line 171 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = _tmp0_;
#line 171 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = self->contact;
#line 171 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = _data26_->c;
#line 171 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_store_add_no_suggest_link (_tmp1_, _tmp2_, _tmp3_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->suggestion_grid;
#line 173 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp4_);
#line 935 "contacts-contact-pane.c"
}


static void ___lambda71__gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	__lambda71_ (self);
#line 942 "contacts-contact-pane.c"
}


void contacts_contact_pane_add_suggestion (ContactsContactPane* self, ContactsContact* c) {
	Block26Data* _data26_;
	ContactsContact* _tmp0_;
	ContactsContact* _tmp1_;
	GtkOverlay* parent_overlay = NULL;
	GtkContainer* _tmp2_;
	GtkOverlay* _tmp3_;
	GtkGrid* _tmp4_;
	GtkGrid* _tmp6_;
	GtkGrid* _tmp7_;
	GtkOverlay* _tmp8_;
	GtkGrid* _tmp9_;
	GtkGrid* _tmp10_;
	GtkStyleContext* _tmp11_;
	GtkGrid* _tmp12_;
	GtkGrid* _tmp13_;
	ContactsContactFrame* image_frame = NULL;
	ContactsContactFrame* _tmp14_;
	ContactsContactFrame* _tmp15_;
	ContactsContactFrame* _tmp16_;
	ContactsContactFrame* _tmp17_;
	ContactsContact* _tmp18_;
	ContactsContactFrame* _tmp19_;
	GtkGrid* _tmp20_;
	ContactsContactFrame* _tmp21_;
	GtkLabel* label = NULL;
	GtkLabel* _tmp22_;
	ContactsContact* _tmp23_;
	gboolean _tmp24_;
	GtkLabel* _tmp40_;
	GtkLabel* _tmp41_;
	GtkLabel* _tmp42_;
	GtkLabel* _tmp43_;
	GtkLabel* _tmp44_;
	GtkLabel* _tmp45_;
	GtkLabel* _tmp46_;
	GtkLabel* _tmp47_;
	GtkGrid* _tmp48_;
	GtkLabel* _tmp49_;
	GtkButtonBox* bbox = NULL;
	GtkButtonBox* _tmp50_;
	GtkButton* yes = NULL;
	GtkButton* _tmp51_;
	GtkButton* no = NULL;
	GtkButton* _tmp52_;
	GtkGrid* _tmp53_;
	GtkGrid* _tmp54_;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (c != NULL);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_ = g_slice_new0 (Block26Data);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_->_ref_count_ = 1;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_->self = g_object_ref (self);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = c;
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data26_->c);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_->c = _tmp1_;
#line 108 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = (GtkContainer*) gtk_widget_get_parent ((GtkWidget*) self);
#line 108 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_overlay_get_type ()) ? ((GtkOverlay*) _tmp2_) : NULL);
#line 108 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	parent_overlay = _tmp3_;
#line 110 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->suggestion_grid;
#line 110 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp4_ != NULL) {
#line 1021 "contacts-contact-pane.c"
		GtkGrid* _tmp5_;
#line 111 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp5_ = self->suggestion_grid;
#line 111 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp5_);
#line 112 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (self->suggestion_grid);
#line 112 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self->suggestion_grid = NULL;
#line 1031 "contacts-contact-pane.c"
	}
#line 115 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = (GtkGrid*) gtk_grid_new ();
#line 115 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp6_);
#line 115 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->suggestion_grid);
#line 115 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->suggestion_grid = _tmp6_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp7_ = self->suggestion_grid;
#line 116 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp7_, GTK_ALIGN_END);
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp8_ = parent_overlay;
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp9_ = self->suggestion_grid;
#line 117 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_overlay_add_overlay (_tmp8_, (GtkWidget*) _tmp9_);
#line 119 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp10_ = self->suggestion_grid;
#line 119 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp11_ = gtk_widget_get_style_context ((GtkWidget*) _tmp10_);
#line 119 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_style_context_add_class (_tmp11_, "contacts-suggestion");
#line 120 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp12_ = self->suggestion_grid;
#line 120 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_redraw_on_allocate ((GtkWidget*) _tmp12_, TRUE);
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp13_ = self->suggestion_grid;
#line 121 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_connect_object ((GtkWidget*) _tmp13_, "draw", (GCallback) ___lambda67__gtk_widget_draw, self, 0);
#line 132 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp14_ = contacts_contact_frame_new (CONTACTS_CONTACT_SMALL_AVATAR_SIZE, FALSE);
#line 132 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp14_);
#line 132 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	image_frame = _tmp14_;
#line 133 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp15_ = image_frame;
#line 133 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _tmp15_, FALSE);
#line 134 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp16_ = image_frame;
#line 134 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_set ((GtkWidget*) _tmp16_, "margin", 24, NULL);
#line 135 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp17_ = image_frame;
#line 135 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_margin_end ((GtkWidget*) _tmp17_, 12);
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp18_ = _data26_->c;
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp19_ = image_frame;
#line 136 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_keep_widget_uptodate (_tmp18_, (GtkWidget*) _tmp19_, ___lambda68__gtk_callback, block26_data_ref (_data26_), block26_data_unref);
#line 140 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp20_ = self->suggestion_grid;
#line 140 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp21_ = image_frame;
#line 140 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_grid_attach (_tmp20_, (GtkWidget*) _tmp21_, 0, 0, 1, 2);
#line 142 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp22_ = (GtkLabel*) gtk_label_new ("");
#line 142 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp22_);
#line 142 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	label = _tmp22_;
#line 143 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp23_ = self->contact;
#line 143 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp24_ = _tmp23_->is_main;
#line 143 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp24_) {
#line 1107 "contacts-contact-pane.c"
		GtkLabel* _tmp25_;
		ContactsContact* _tmp26_;
		const gchar* _tmp27_;
		const gchar* _tmp28_;
		ContactsContact* _tmp29_;
		gchar* _tmp30_;
		gchar* _tmp31_;
		gchar* _tmp32_;
		gchar* _tmp33_;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp25_ = label;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp26_ = _data26_->c;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp27_ = contacts_contact_get_display_name (_tmp26_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp28_ = _tmp27_;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp29_ = _data26_->c;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp30_ = contacts_contact_format_persona_stores (_tmp29_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp31_ = _tmp30_;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp32_ = g_markup_printf_escaped (_ ("Does %s from %s belong here?"), _tmp28_, _tmp31_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp33_ = _tmp32_;
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_label_set_markup (_tmp25_, _tmp33_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_tmp33_);
#line 144 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_tmp31_);
#line 1141 "contacts-contact-pane.c"
	} else {
		GtkLabel* _tmp34_;
		ContactsContact* _tmp35_;
		const gchar* _tmp36_;
		const gchar* _tmp37_;
		gchar* _tmp38_;
		gchar* _tmp39_;
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp34_ = label;
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp35_ = _data26_->c;
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp36_ = contacts_contact_get_display_name (_tmp35_);
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp37_ = _tmp36_;
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp38_ = g_markup_printf_escaped (_ ("Do these details belong to %s?"), _tmp37_);
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp39_ = _tmp38_;
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_label_set_markup (_tmp34_, _tmp39_);
#line 146 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_tmp39_);
#line 1165 "contacts-contact-pane.c"
	}
#line 147 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp40_ = label;
#line 147 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp40_, GTK_ALIGN_START);
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp41_ = label;
#line 148 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp41_, GTK_ALIGN_START);
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp42_ = label;
#line 149 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_label_set_line_wrap (_tmp42_, TRUE);
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp43_ = label;
#line 150 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_label_set_width_chars (_tmp43_, 20);
#line 151 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp44_ = label;
#line 151 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_label_set_line_wrap_mode (_tmp44_, PANGO_WRAP_WORD_CHAR);
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp45_ = label;
#line 152 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _tmp45_, TRUE);
#line 153 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp46_ = label;
#line 153 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp46_, 24);
#line 154 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp47_ = label;
#line 154 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp47_, 24);
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp48_ = self->suggestion_grid;
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp49_ = label;
#line 155 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_grid_attach (_tmp48_, (GtkWidget*) _tmp49_, 1, 0, 1, 2);
#line 157 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp50_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
#line 157 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp50_);
#line 157 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	bbox = _tmp50_;
#line 158 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp51_ = (GtkButton*) gtk_button_new_with_label (_ ("Yes"));
#line 158 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp51_);
#line 158 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	yes = _tmp51_;
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp52_ = (GtkButton*) gtk_button_new_with_label (_ ("No"));
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp52_);
#line 159 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	no = _tmp52_;
#line 161 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_connect_data (yes, "clicked", (GCallback) ___lambda69__gtk_button_clicked, block26_data_ref (_data26_), (GClosureNotify) block26_data_unref, 0);
#line 170 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_connect_data (no, "clicked", (GCallback) ___lambda71__gtk_button_clicked, block26_data_ref (_data26_), (GClosureNotify) block26_data_unref, 0);
#line 176 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_add ((GtkContainer*) bbox, (GtkWidget*) yes);
#line 177 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_add ((GtkContainer*) bbox, (GtkWidget*) no);
#line 178 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_box_set_spacing ((GtkBox*) bbox, 8);
#line 179 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_halign ((GtkWidget*) bbox, GTK_ALIGN_END);
#line 180 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_hexpand ((GtkWidget*) bbox, TRUE);
#line 181 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_set ((GtkWidget*) bbox, "margin", 24, NULL);
#line 182 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_margin_start ((GtkWidget*) bbox, 12);
#line 183 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp53_ = self->suggestion_grid;
#line 183 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_grid_attach (_tmp53_, (GtkWidget*) bbox, 2, 0, 1, 2);
#line 184 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp54_ = self->suggestion_grid;
#line 184 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp54_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (no);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (yes);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (bbox);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (label);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (image_frame);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (parent_overlay);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	block26_data_unref (_data26_);
#line 107 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data26_ = NULL;
#line 1265 "contacts-contact-pane.c"
}


static void _contacts_contact_pane_update_sheet_contacts_contact_personas_changed (ContactsContact* _sender, gpointer self) {
#line 197 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_update_sheet ((ContactsContactPane*) self);
#line 1272 "contacts-contact-pane.c"
}


static void _contacts_contact_pane_update_sheet_contacts_contact_changed (ContactsContact* _sender, gpointer self) {
#line 198 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_update_sheet ((ContactsContactPane*) self);
#line 1279 "contacts-contact-pane.c"
}


void contacts_contact_pane_show_contact (ContactsContactPane* self, ContactsContact* new_contact, gboolean show_matches) {
	ContactsContact* _tmp0_;
	ContactsContact* _tmp1_;
	GtkGrid* _tmp2_;
	ContactsContact* _tmp4_;
	ContactsContact* _tmp9_;
	ContactsContact* _tmp10_;
	ContactsContact* _tmp11_;
	ContactsContact* _tmp14_;
#line 187 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 188 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->contact;
#line 188 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = new_contact;
#line 188 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp0_ == _tmp1_) {
#line 189 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 1302 "contacts-contact-pane.c"
	}
#line 191 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = self->suggestion_grid;
#line 191 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp2_ != NULL) {
#line 1308 "contacts-contact-pane.c"
		GtkGrid* _tmp3_;
#line 192 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = self->suggestion_grid;
#line 192 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp3_);
#line 193 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (self->suggestion_grid);
#line 193 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self->suggestion_grid = NULL;
#line 1318 "contacts-contact-pane.c"
	}
#line 196 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->contact;
#line 196 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp4_ != NULL) {
#line 1324 "contacts-contact-pane.c"
		ContactsContact* _tmp5_;
		guint _tmp6_;
		ContactsContact* _tmp7_;
		guint _tmp8_;
#line 197 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp5_ = self->contact;
#line 197 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_parse_name ("personas-changed", CONTACTS_TYPE_CONTACT, &_tmp6_, NULL, FALSE);
#line 197 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _contacts_contact_pane_update_sheet_contacts_contact_personas_changed, self);
#line 198 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp7_ = self->contact;
#line 198 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_parse_name ("changed", CONTACTS_TYPE_CONTACT, &_tmp8_, NULL, FALSE);
#line 198 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _contacts_contact_pane_update_sheet_contacts_contact_changed, self);
#line 1341 "contacts-contact-pane.c"
	}
#line 201 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp9_ = new_contact;
#line 201 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp10_ = _g_object_ref0 (_tmp9_);
#line 201 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->contact);
#line 201 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->contact = _tmp10_;
#line 203 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_update_sheet (self);
#line 205 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp11_ = self->contact;
#line 205 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp11_ != NULL) {
#line 1357 "contacts-contact-pane.c"
		ContactsContact* _tmp12_;
		ContactsContact* _tmp13_;
#line 206 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp12_ = self->contact;
#line 206 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_connect_object (_tmp12_, "personas-changed", (GCallback) _contacts_contact_pane_update_sheet_contacts_contact_personas_changed, self, 0);
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp13_ = self->contact;
#line 207 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_connect_object (_tmp13_, "changed", (GCallback) _contacts_contact_pane_update_sheet_contacts_contact_changed, self, 0);
#line 1368 "contacts-contact-pane.c"
	}
#line 210 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp14_ = self->contact;
#line 210 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp14_ == NULL) {
#line 1374 "contacts-contact-pane.c"
		GtkGrid* _tmp15_;
#line 211 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp15_ = self->priv->none_selected_page;
#line 211 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp15_);
#line 1380 "contacts-contact-pane.c"
	}
}


static void contacts_contact_pane_on_add_detail (ContactsContactPane* self, GSimpleAction* action, GVariant* parameter) {
	gchar** tok = NULL;
	GSimpleAction* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar** _tmp3_;
	gchar** _tmp4_;
	gint tok_length1;
	gint _tok_size_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	const gchar* _tmp6_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 268 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (action != NULL);
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = action;
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = g_action_get_name ((GAction*) _tmp0_);
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = _tmp1_;
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = _tmp3_ = g_strsplit (_tmp2_, ".", 0);
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	tok = _tmp4_;
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	tok_length1 = _vala_array_length (_tmp3_);
#line 269 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tok_size_ = tok_length1;
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = tok;
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5__length1 = tok_length1;
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = _tmp5_[0];
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (g_strcmp0 (_tmp6_, "add") == 0) {
#line 1423 "contacts-contact-pane.c"
		gchar* _tmp7_ = NULL;
		gchar** _tmp8_;
		gint _tmp8__length1;
		ContactsContactEditor* _tmp12_;
		ContactsContact* _tmp13_;
		FolksPersona* _tmp14_;
		FolksPersona* _tmp15_;
		gchar** _tmp16_;
		gint _tmp16__length1;
		const gchar* _tmp17_;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp8_ = tok;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp8__length1 = tok_length1;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_tmp8__length1 > 2) {
#line 1440 "contacts-contact-pane.c"
			gchar** _tmp9_;
			gint _tmp9__length1;
			const gchar* _tmp10_;
			gchar* _tmp11_;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp9_ = tok;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp9__length1 = tok_length1;
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp10_ = _tmp9_[2];
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp11_ = g_utf8_strup (_tmp10_, (gssize) -1);
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_free0 (_tmp7_);
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp7_ = _tmp11_;
#line 1457 "contacts-contact-pane.c"
		} else {
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_free0 (_tmp7_);
#line 274 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp7_ = NULL;
#line 1463 "contacts-contact-pane.c"
		}
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp12_ = self->priv->editor;
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp13_ = self->contact;
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp14_ = contacts_contact_find_primary_persona (_tmp13_);
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp15_ = _tmp14_;
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp16_ = tok;
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp16__length1 = tok_length1;
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp17_ = _tmp16_[1];
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_add_new_row_for_property (_tmp12_, _tmp15_, _tmp17_, _tmp7_);
#line 272 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_tmp15_);
#line 271 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_tmp7_);
#line 1485 "contacts-contact-pane.c"
	}
#line 268 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	tok = (_vala_array_free (tok, tok_length1, (GDestroyNotify) g_free), NULL);
#line 1489 "contacts-contact-pane.c"
}


static void contacts_contact_pane_linked_accounts (ContactsContactPane* self) {
	ContactsLinkedAccountsDialog* dialog = NULL;
	ContactsContact* _tmp0_;
	ContactsLinkedAccountsDialog* _tmp1_;
	gint _result_ = 0;
	ContactsLinkedAccountsDialog* _tmp2_;
	gint _tmp3_;
	gboolean _tmp4_ = FALSE;
	gint _tmp5_;
	ContactsLinkedAccountsDialog* _tmp8_;
#line 278 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->contact;
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = contacts_linked_accounts_dialog_new (_tmp0_);
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp1_);
#line 279 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	dialog = _tmp1_;
#line 280 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = dialog;
#line 280 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = gtk_dialog_run ((GtkDialog*) _tmp2_);
#line 280 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_result_ = _tmp3_;
#line 281 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = _result_;
#line 281 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp5_ == ((gint) GTK_RESPONSE_CLOSE)) {
#line 1523 "contacts-contact-pane.c"
		ContactsLinkedAccountsDialog* _tmp6_;
		gboolean _tmp7_;
#line 282 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp6_ = dialog;
#line 282 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp7_ = _tmp6_->any_unlinked;
#line 282 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp4_ = _tmp7_;
#line 1532 "contacts-contact-pane.c"
	} else {
#line 281 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp4_ = FALSE;
#line 1536 "contacts-contact-pane.c"
	}
#line 281 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp4_) {
#line 284 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_set_edit_mode (self, FALSE, FALSE);
#line 285 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_set_edit_mode (self, TRUE, FALSE);
#line 1544 "contacts-contact-pane.c"
	}
#line 287 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp8_ = dialog;
#line 287 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_destroy ((GtkWidget*) _tmp8_);
#line 278 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (dialog);
#line 1552 "contacts-contact-pane.c"
}


static void contacts_contact_pane_delete_contact (ContactsContactPane* self) {
	ContactsContact* _tmp0_;
#line 290 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 291 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->contact;
#line 291 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp0_ != NULL) {
#line 1564 "contacts-contact-pane.c"
		ContactsContact* _tmp1_;
		ContactsContact* _tmp2_;
#line 292 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp1_ = self->contact;
#line 292 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_hide (_tmp1_);
#line 294 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp2_ = self->contact;
#line 294 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_emit (self, contacts_contact_pane_signals[CONTACTS_CONTACT_PANE_WILL_DELETE_SIGNAL], 0, _tmp2_);
#line 1575 "contacts-contact-pane.c"
	}
}


static void ______lambda75_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_) {
	GError * _inner_error_ = NULL;
#line 326 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (_result_ != NULL);
#line 1584 "contacts-contact-pane.c"
	{
		GAsyncResult* _tmp0_;
#line 328 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp0_ = _result_;
#line 328 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_set_persona_property_finish (_tmp0_, &_inner_error_);
#line 328 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1593 "contacts-contact-pane.c"
			goto __catch7_g_error;
		}
	}
	goto __finally7;
	__catch7_g_error:
	{
		GError* e2 = NULL;
		ContactsApp* _tmp1_;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		e2 = _inner_error_;
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_inner_error_ = NULL;
#line 330 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp1_ = contacts_app_app;
#line 330 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp2_ = e2;
#line 330 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = _tmp2_->message;
#line 330 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_app_show_message (_tmp1_, _tmp3_);
#line 331 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_update_sheet (self);
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_error_free0 (e2);
#line 1620 "contacts-contact-pane.c"
	}
	__finally7:
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.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 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_clear_error (&_inner_error_);
#line 327 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 1631 "contacts-contact-pane.c"
	}
}


static void _______lambda75__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	______lambda75_ ((ContactsContactPane*) self, source_object, res);
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_unref (self);
#line 1641 "contacts-contact-pane.c"
}


static void _____lambda77_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_) {
	GError * _inner_error_ = NULL;
#line 340 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (_result_ != NULL);
#line 1649 "contacts-contact-pane.c"
	{
		GAsyncResult* _tmp0_;
		FolksPersona* _tmp1_;
		FolksPersona* _tmp2_;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp0_ = _result_;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp1_ = contacts_contact_set_individual_property_finish (_tmp0_, &_inner_error_);
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp2_ = _tmp1_;
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_tmp2_);
#line 342 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1664 "contacts-contact-pane.c"
			goto __catch8_g_error;
		}
	}
	goto __finally8;
	__catch8_g_error:
	{
		GError* e = NULL;
		ContactsApp* _tmp3_;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		e = _inner_error_;
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_inner_error_ = NULL;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = contacts_app_app;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp4_ = e;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp5_ = _tmp4_->message;
#line 344 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_app_show_message (_tmp3_, _tmp5_);
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_error_free0 (e);
#line 1689 "contacts-contact-pane.c"
	}
	__finally8:
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.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 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_clear_error (&_inner_error_);
#line 341 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 1700 "contacts-contact-pane.c"
	}
}


static void ______lambda77__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_____lambda77_ ((ContactsContactPane*) self, source_object, res);
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_unref (self);
#line 1710 "contacts-contact-pane.c"
}


static void _____lambda78_ (ContactsContactPane* self, GObject* obj, GAsyncResult* _result_) {
	GError * _inner_error_ = NULL;
#line 354 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (_result_ != NULL);
#line 1718 "contacts-contact-pane.c"
	{
		GAsyncResult* _tmp0_;
		FolksPersona* _tmp1_;
		FolksPersona* _tmp2_;
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp0_ = _result_;
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp1_ = contacts_contact_set_individual_property_finish (_tmp0_, &_inner_error_);
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp2_ = _tmp1_;
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_tmp2_);
#line 356 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1733 "contacts-contact-pane.c"
			goto __catch9_g_error;
		}
	}
	goto __finally9;
	__catch9_g_error:
	{
		GError* e = NULL;
		ContactsApp* _tmp3_;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		e = _inner_error_;
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_inner_error_ = NULL;
#line 358 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = contacts_app_app;
#line 358 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp4_ = e;
#line 358 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp5_ = _tmp4_->message;
#line 358 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_app_show_message (_tmp3_, _tmp5_);
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_error_free0 (e);
#line 1758 "contacts-contact-pane.c"
	}
	__finally9:
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.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 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_clear_error (&_inner_error_);
#line 355 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 1769 "contacts-contact-pane.c"
	}
}


static void ______lambda78__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 352 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_____lambda78_ ((ContactsContactPane*) self, source_object, res);
#line 352 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_unref (self);
#line 1779 "contacts-contact-pane.c"
}


void contacts_contact_pane_set_edit_mode (ContactsContactPane* self, gboolean on_edit, gboolean drop_changes) {
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 298 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 299 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = on_edit;
#line 299 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = self->on_edit_mode;
#line 299 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp0_ == _tmp1_) {
#line 300 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return;
#line 1797 "contacts-contact-pane.c"
	}
#line 302 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = on_edit;
#line 302 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp2_) {
#line 1803 "contacts-contact-pane.c"
		ContactsContact* _tmp3_;
		ContactsContactSheet* _tmp4_;
		GtkGrid* _tmp5_;
		ContactsContactEditor* _tmp7_;
		ContactsContactEditor* _tmp8_;
		ContactsContact* _tmp9_;
		ContactsContactEditor* _tmp10_;
		GtkBox* _tmp11_;
#line 303 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = self->contact;
#line 303 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_tmp3_ == NULL) {
#line 304 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			return;
#line 1818 "contacts-contact-pane.c"
		}
#line 307 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self->on_edit_mode = TRUE;
#line 309 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp4_ = self->priv->sheet;
#line 309 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_sheet_clear (_tmp4_);
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp5_ = self->suggestion_grid;
#line 311 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_tmp5_ != NULL) {
#line 1830 "contacts-contact-pane.c"
			GtkGrid* _tmp6_;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp6_ = self->suggestion_grid;
#line 312 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			gtk_widget_destroy ((GtkWidget*) _tmp6_);
#line 313 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_object_unref0 (self->suggestion_grid);
#line 313 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			self->suggestion_grid = NULL;
#line 1840 "contacts-contact-pane.c"
		}
#line 316 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp7_ = self->priv->editor;
#line 316 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_clear (_tmp7_);
#line 317 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp8_ = self->priv->editor;
#line 317 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp9_ = self->contact;
#line 317 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_edit (_tmp8_, _tmp9_);
#line 318 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp10_ = self->priv->editor;
#line 318 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp10_);
#line 319 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp11_ = self->priv->contact_editor_page;
#line 319 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp11_);
#line 1860 "contacts-contact-pane.c"
	} else {
		gboolean _tmp12_;
		ContactsContactEditor* _tmp48_;
		ContactsContact* _tmp49_;
#line 321 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self->on_edit_mode = FALSE;
#line 323 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp12_ = drop_changes;
#line 323 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (!_tmp12_) {
#line 1871 "contacts-contact-pane.c"
			ContactsContactEditor* _tmp36_;
			gboolean _tmp37_;
			ContactsContactEditor* _tmp42_;
			gboolean _tmp43_;
			{
				GeeIterator* _prop_it = NULL;
				ContactsContactEditor* _tmp13_;
				GeeHashMap* _tmp14_;
				GeeHashMap* _tmp15_;
				GeeSet* _tmp16_;
				GeeSet* _tmp17_;
				GeeSet* _tmp18_;
				GeeIterator* _tmp19_;
				GeeIterator* _tmp20_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp13_ = self->priv->editor;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp14_ = contacts_contact_editor_properties_changed (_tmp13_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp15_ = _tmp14_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp16_ = gee_abstract_map_get_entries ((GeeAbstractMap*) _tmp15_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp17_ = _tmp16_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp18_ = _tmp17_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp19_ = gee_iterable_iterator ((GeeIterable*) _tmp18_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp20_ = _tmp19_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_g_object_unref0 (_tmp18_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_g_object_unref0 (_tmp15_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_prop_it = _tmp20_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				while (TRUE) {
#line 1910 "contacts-contact-pane.c"
					GeeIterator* _tmp21_;
					gboolean _tmp22_;
					GeeMapEntry* prop = NULL;
					GeeIterator* _tmp23_;
					gpointer _tmp24_;
					GeeMapEntry* _tmp25_;
					gconstpointer _tmp26_;
					ContactsContactEditorPropertyData* _tmp27_;
					FolksPersona* _tmp28_;
					GeeMapEntry* _tmp29_;
					gconstpointer _tmp30_;
					const gchar* _tmp31_;
					GeeMapEntry* _tmp32_;
					gconstpointer _tmp33_;
					ContactsContactEditorPropertyData* _tmp34_;
					GValue _tmp35_;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp21_ = _prop_it;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp22_ = gee_iterator_next (_tmp21_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					if (!_tmp22_) {
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
						break;
#line 1935 "contacts-contact-pane.c"
					}
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp23_ = _prop_it;
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp24_ = gee_iterator_get (_tmp23_);
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					prop = (GeeMapEntry*) _tmp24_;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp25_ = prop;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp26_ = gee_map_entry_get_value (_tmp25_);
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp27_ = _tmp26_;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp28_ = (*((ContactsContactEditorPropertyData*) _tmp27_)).persona;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp29_ = prop;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp30_ = gee_map_entry_get_key (_tmp29_);
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp31_ = _tmp30_;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp32_ = prop;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp33_ = gee_map_entry_get_value (_tmp32_);
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp34_ = _tmp33_;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_tmp35_ = (*((ContactsContactEditorPropertyData*) _tmp34_)).value;
#line 325 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					contacts_contact_set_persona_property (_tmp28_, (const gchar*) _tmp31_, &_tmp35_, _______lambda75__gasync_ready_callback, g_object_ref (self));
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
					_g_object_unref0 (prop);
#line 1969 "contacts-contact-pane.c"
				}
#line 324 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_g_object_unref0 (_prop_it);
#line 1973 "contacts-contact-pane.c"
			}
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp36_ = self->priv->editor;
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp37_ = contacts_contact_editor_name_changed (_tmp36_);
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (_tmp37_) {
#line 1981 "contacts-contact-pane.c"
				GValue v = {0};
				ContactsContactEditor* _tmp38_;
				GValue _tmp39_ = {0};
				ContactsContact* _tmp40_;
				GValue _tmp41_;
#line 337 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp38_ = self->priv->editor;
#line 337 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				contacts_contact_editor_get_full_name_value (_tmp38_, &_tmp39_);
#line 337 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				v = _tmp39_;
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp40_ = self->contact;
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp41_ = v;
#line 338 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				contacts_contact_set_individual_property (_tmp40_, "full-name", &_tmp41_, ______lambda77__gasync_ready_callback, g_object_ref (self));
#line 336 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
#line 2001 "contacts-contact-pane.c"
			}
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp42_ = self->priv->editor;
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp43_ = contacts_contact_editor_avatar_changed (_tmp42_);
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (_tmp43_) {
#line 2009 "contacts-contact-pane.c"
				GValue v = {0};
				ContactsContactEditor* _tmp44_;
				GValue _tmp45_ = {0};
				ContactsContact* _tmp46_;
				GValue _tmp47_;
#line 351 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp44_ = self->priv->editor;
#line 351 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				contacts_contact_editor_get_avatar_value (_tmp44_, &_tmp45_);
#line 351 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				v = _tmp45_;
#line 352 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp46_ = self->contact;
#line 352 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				_tmp47_ = v;
#line 352 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				contacts_contact_set_individual_property (_tmp46_, "avatar", &_tmp47_, ______lambda78__gasync_ready_callback, g_object_ref (self));
#line 350 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL;
#line 2029 "contacts-contact-pane.c"
			}
		}
#line 364 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp48_ = self->priv->editor;
#line 364 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_clear (_tmp48_);
#line 366 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp49_ = self->contact;
#line 366 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_tmp49_ != NULL) {
#line 2040 "contacts-contact-pane.c"
			ContactsContactSheet* _tmp50_;
			ContactsContactSheet* _tmp51_;
			ContactsContact* _tmp52_;
			GtkScrolledWindow* _tmp53_;
#line 367 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp50_ = self->priv->sheet;
#line 367 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			contacts_contact_sheet_clear (_tmp50_);
#line 368 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp51_ = self->priv->sheet;
#line 368 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp52_ = self->contact;
#line 368 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			contacts_contact_sheet_update (_tmp51_, _tmp52_);
#line 369 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp53_ = self->priv->contact_sheet_page;
#line 369 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp53_);
#line 2059 "contacts-contact-pane.c"
		} else {
			GtkGrid* _tmp54_;
#line 371 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_tmp54_ = self->priv->none_selected_page;
#line 371 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp54_);
#line 2066 "contacts-contact-pane.c"
		}
	}
}


void contacts_contact_pane_new_contact (ContactsContactPane* self) {
	ContactsContactSheet* _tmp0_;
	GtkGrid* _tmp1_;
	ContactsContactEditor* _tmp3_;
	GtkBox* _tmp4_;
#line 376 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 377 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->on_edit_mode = TRUE;
#line 379 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->priv->sheet;
#line 379 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_sheet_clear (_tmp0_);
#line 381 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = self->suggestion_grid;
#line 381 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp1_ != NULL) {
#line 2089 "contacts-contact-pane.c"
		GtkGrid* _tmp2_;
#line 382 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp2_ = self->suggestion_grid;
#line 382 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		gtk_widget_destroy ((GtkWidget*) _tmp2_);
#line 383 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (self->suggestion_grid);
#line 383 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		self->suggestion_grid = NULL;
#line 2099 "contacts-contact-pane.c"
	}
#line 386 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = self->priv->editor;
#line 386 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_editor_set_new_contact (_tmp3_);
#line 388 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->priv->contact_editor_page;
#line 388 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_stack_set_visible_child ((GtkStack*) self, (GtkWidget*) _tmp4_);
#line 2109 "contacts-contact-pane.c"
}


static void contacts_contact_pane_create_contact_data_free (gpointer _data) {
	ContactsContactPaneCreateContactData* _data_;
	_data_ = _data;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data_->self);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_slice_free (ContactsContactPaneCreateContactData, _data_);
#line 2120 "contacts-contact-pane.c"
}


static void contacts_contact_pane_create_contact_async_ready_wrapper (GObject *source_object, GAsyncResult *res, void *user_data) {
	ContactsContactPaneCreateContactData* _task_data_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_task_data_ = g_task_get_task_data (G_TASK (res));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_task_data_->_callback_ != NULL) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_task_data_->_callback_ (source_object, res, user_data);
#line 2132 "contacts-contact-pane.c"
	}
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_task_data_->_task_complete_ = TRUE;
#line 2136 "contacts-contact-pane.c"
}


void contacts_contact_pane_create_contact (ContactsContactPane* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ContactsContactPaneCreateContactData* _data_;
	ContactsContactPane* _tmp0_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_ = g_slice_new0 (ContactsContactPaneCreateContactData);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_callback_ = _callback_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, contacts_contact_pane_create_contact_async_ready_wrapper, _user_data_);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_callback_ == NULL) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_task_complete_ = TRUE;
#line 2153 "contacts-contact-pane.c"
	}
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_task_set_task_data (_data_->_async_result, _data_, contacts_contact_pane_create_contact_data_free);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->self = _tmp0_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_create_contact_co (_data_);
#line 2163 "contacts-contact-pane.c"
}


void contacts_contact_pane_create_contact_finish (ContactsContactPane* self, GAsyncResult* _res_) {
	ContactsContactPaneCreateContactData* _data_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 2171 "contacts-contact-pane.c"
}


static void _g_free0_ (gpointer var) {
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	var = (g_free (var), NULL);
#line 2178 "contacts-contact-pane.c"
}


static void _vala_GValue_free (GValue* self) {
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_value_unset (self);
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_free (self);
#line 2187 "contacts-contact-pane.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 2194 "contacts-contact-pane.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 2201 "contacts-contact-pane.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return self ? _g_value_dup (self) : NULL;
#line 2208 "contacts-contact-pane.c"
}


static void contacts_contact_pane_create_contact_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ContactsContactPaneCreateContactData* _data_;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_ = _user_data_;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_source_object_ = source_object;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_res_ = _res_;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_task_complete_ = TRUE;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_create_contact_co (_data_);
#line 2224 "contacts-contact-pane.c"
}


static gboolean contacts_contact_pane_create_contact_co (ContactsContactPaneCreateContactData* _data_) {
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	switch (_data_->_state_) {
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		case 0:
#line 2233 "contacts-contact-pane.c"
		goto _state_0;
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		case 1:
#line 2237 "contacts-contact-pane.c"
		goto _state_1;
		default:
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_assert_not_reached ();
#line 2242 "contacts-contact-pane.c"
	}
	_state_0:
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp0_ = g_str_hash;
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp1_ = g_str_equal;
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 393 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->details = _data_->_tmp2_;
#line 394 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp3_ = contacts_app_app;
#line 394 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp4_ = _data_->_tmp3_->contacts_store;
#line 394 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp5_ = _g_object_ref0 (_data_->_tmp4_);
#line 394 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->contacts_store = _data_->_tmp5_;
#line 397 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp6_ = _data_->self->priv->editor;
#line 397 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp7_ = contacts_contact_editor_name_changed (_data_->_tmp6_);
#line 397 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_tmp7_) {
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp8_ = _data_->details;
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp9_ = g_strdup ("full-name");
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp10_ = _data_->self->priv->editor;
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		memset (&_data_->_tmp11_, 0, sizeof (GValue));
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_get_full_name_value (_data_->_tmp10_, &_data_->_tmp11_);
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp12_ = _data_->_tmp11_;
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp13_ = __g_value_dup0 (&_data_->_tmp12_);
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_hash_table_insert (_data_->_tmp8_, _data_->_tmp9_, _data_->_tmp13_);
#line 398 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		G_IS_VALUE (&_data_->_tmp12_) ? (g_value_unset (&_data_->_tmp12_), NULL) : NULL;
#line 2285 "contacts-contact-pane.c"
	}
#line 400 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp14_ = _data_->self->priv->editor;
#line 400 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp15_ = contacts_contact_editor_avatar_changed (_data_->_tmp14_);
#line 400 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_tmp15_) {
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp16_ = _data_->details;
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp17_ = g_strdup ("avatar");
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp18_ = _data_->self->priv->editor;
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		memset (&_data_->_tmp19_, 0, sizeof (GValue));
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_editor_get_avatar_value (_data_->_tmp18_, &_data_->_tmp19_);
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp20_ = _data_->_tmp19_;
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp21_ = __g_value_dup0 (&_data_->_tmp20_);
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_hash_table_insert (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp21_);
#line 401 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		G_IS_VALUE (&_data_->_tmp20_) ? (g_value_unset (&_data_->_tmp20_), NULL) : NULL;
#line 2311 "contacts-contact-pane.c"
	}
	{
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp22_ = _data_->self->priv->editor;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp23_ = contacts_contact_editor_properties_changed (_data_->_tmp22_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp24_ = _data_->_tmp23_;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp25_ = gee_abstract_map_get_entries ((GeeAbstractMap*) _data_->_tmp24_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp28_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp27_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp29_ = _data_->_tmp28_;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->_tmp27_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->_tmp24_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_prop_it = _data_->_tmp29_;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		while (TRUE) {
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp30_ = _data_->_prop_it;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp31_ = gee_iterator_next (_data_->_tmp30_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			if (!_data_->_tmp31_) {
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				break;
#line 2346 "contacts-contact-pane.c"
			}
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp32_ = _data_->_prop_it;
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp33_ = gee_iterator_get (_data_->_tmp32_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->prop = (GeeMapEntry*) _data_->_tmp33_;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp34_ = _data_->details;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp35_ = _data_->prop;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp36_ = gee_map_entry_get_key (_data_->_tmp35_);
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp37_ = _data_->_tmp36_;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp38_ = g_strdup ((const gchar*) _data_->_tmp37_);
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp39_ = _data_->prop;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp40_ = gee_map_entry_get_value (_data_->_tmp39_);
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp42_ = (*((ContactsContactEditorPropertyData*) _data_->_tmp41_)).value;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp43_ = _data_->_tmp42_;
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_data_->_tmp44_ = __g_value_dup0 (&_data_->_tmp43_);
#line 404 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			g_hash_table_insert (_data_->_tmp34_, _data_->_tmp38_, _data_->_tmp44_);
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			_g_object_unref0 (_data_->prop);
#line 2380 "contacts-contact-pane.c"
		}
#line 403 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->_prop_it);
#line 2384 "contacts-contact-pane.c"
	}
#line 407 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_set_edit_mode (_data_->self, FALSE, TRUE);
#line 409 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp45_ = _data_->details;
#line 409 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp46_ = g_hash_table_size (_data_->_tmp45_);
#line 409 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_tmp46_ == ((guint) 0)) {
#line 410 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_show_message_dialog (_data_->self, _ ("You need to enter some data"));
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->contacts_store);
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_hash_table_unref0 (_data_->details);
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_data_->_state_ != 0) {
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			while (_data_->_task_complete_ != TRUE) {
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2408 "contacts-contact-pane.c"
			}
		}
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_object_unref (_data_->_async_result);
#line 411 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return FALSE;
#line 2415 "contacts-contact-pane.c"
	}
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp47_ = _data_->contacts_store;
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp48_ = contacts_store_get_aggregator (_data_->_tmp47_);
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp49_ = _data_->_tmp48_;
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp50_ = folks_individual_aggregator_get_primary_store (_data_->_tmp49_);
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp51_ = _data_->_tmp50_;
#line 414 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_tmp51_ == NULL) {
#line 415 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_show_message_dialog (_data_->self, _ ("No primary addressbook configured"));
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->contacts_store);
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_hash_table_unref0 (_data_->details);
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_data_->_state_ != 0) {
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			while (_data_->_task_complete_ != TRUE) {
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2443 "contacts-contact-pane.c"
			}
		}
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_object_unref (_data_->_async_result);
#line 416 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return FALSE;
#line 2450 "contacts-contact-pane.c"
	}
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp52_ = _data_->contacts_store;
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp53_ = contacts_store_get_aggregator (_data_->_tmp52_);
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp54_ = _data_->_tmp53_;
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp55_ = folks_individual_aggregator_get_primary_store (_data_->_tmp54_);
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp56_ = _data_->_tmp55_;
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp57_ = _g_object_ref0 (_data_->_tmp56_);
#line 420 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->primary_store = _data_->_tmp57_;
#line 421 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->persona = NULL;
#line 2468 "contacts-contact-pane.c"
	{
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp59_ = _data_->primary_store;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp60_ = _data_->details;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_state_ = 1;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_create_primary_persona_for_details (_data_->_tmp59_, _data_->_tmp60_, contacts_contact_pane_create_contact_ready, _data_);
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return FALSE;
#line 2480 "contacts-contact-pane.c"
		_state_1:
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp61_ = contacts_contact_create_primary_persona_for_details_finish (_data_->_res_, &_data_->_inner_error_);
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp58_ = _data_->_tmp61_;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2488 "contacts-contact-pane.c"
			goto __catch10_g_error;
		}
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp62_ = _data_->_tmp58_;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp58_ = NULL;
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->persona);
#line 423 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->persona = _data_->_tmp62_;
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->_tmp58_);
#line 2501 "contacts-contact-pane.c"
	}
	goto __finally10;
	__catch10_g_error:
	{
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->e = _data_->_inner_error_;
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_inner_error_ = NULL;
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp63_ = _data_->e;
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp64_ = _data_->_tmp63_->message;
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp65_ = g_strdup_printf (_ ("Unable to create new contacts: %s"), _data_->_tmp64_);
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp66_ = _data_->_tmp65_;
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_show_message_dialog (_data_->self, _data_->_tmp66_);
#line 425 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_free0 (_data_->_tmp66_);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_error_free0 (_data_->e);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->persona);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->primary_store);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->contacts_store);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_hash_table_unref0 (_data_->details);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		if (_data_->_state_ != 0) {
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			while (_data_->_task_complete_ != TRUE) {
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2540 "contacts-contact-pane.c"
			}
		}
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_object_unref (_data_->_async_result);
#line 426 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return FALSE;
#line 2547 "contacts-contact-pane.c"
	}
	__finally10:
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->persona);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->primary_store);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_object_unref0 (_data_->contacts_store);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_g_hash_table_unref0 (_data_->details);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_clear_error (&_data_->_inner_error_);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_object_unref (_data_->_async_result);
#line 422 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		return FALSE;
#line 2568 "contacts-contact-pane.c"
	}
#line 430 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp67_ = _data_->contacts_store;
#line 430 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp68_ = _data_->persona;
#line 430 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp69_ = contacts_store_find_contact_with_persona (_data_->_tmp67_, _data_->_tmp68_);
#line 430 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->contact = _data_->_tmp69_;
#line 431 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_data_->_tmp70_ = _data_->contact;
#line 431 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_tmp70_ != NULL) {
#line 432 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp71_ = contacts_app_app;
#line 432 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_data_->_tmp72_ = _data_->contact;
#line 432 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_app_show_contact (_data_->_tmp71_, _data_->_tmp72_);
#line 2588 "contacts-contact-pane.c"
	} else {
#line 434 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_show_message_dialog (_data_->self, _ ("Unable to find newly created contact"));
#line 2592 "contacts-contact-pane.c"
	}
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data_->contact);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data_->persona);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data_->primary_store);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (_data_->contacts_store);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_hash_table_unref0 (_data_->details);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_data_->_state_ != 0) {
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2612 "contacts-contact-pane.c"
		}
	}
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_unref (_data_->_async_result);
#line 392 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return FALSE;
#line 2619 "contacts-contact-pane.c"
}


static void contacts_contact_pane_show_message_dialog (ContactsContactPane* self, const gchar* message) {
	GtkMessageDialog* dialog = NULL;
	GtkWidget* _tmp0_;
	const gchar* _tmp1_;
	GtkMessageDialog* _tmp2_;
#line 437 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 437 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (message != NULL);
#line 438 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = gtk_widget_get_toplevel ((GtkWidget*) self);
#line 438 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = message;
#line 438 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, CONTACTS_TYPE_WINDOW) ? ((ContactsWindow*) _tmp0_) : NULL), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp1_);
#line 438 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp2_);
#line 438 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	dialog = _tmp2_;
#line 444 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_dialog_run ((GtkDialog*) dialog);
#line 445 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_destroy ((GtkWidget*) dialog);
#line 437 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (dialog);
#line 2648 "contacts-contact-pane.c"
}


ContactsContactPane* contacts_contact_pane_construct (GType object_type) {
	ContactsContactPane * self = NULL;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = (ContactsContactPane*) g_object_new (object_type, NULL);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return self;
#line 2658 "contacts-contact-pane.c"
}


ContactsContactPane* contacts_contact_pane_new (void) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return contacts_contact_pane_construct (CONTACTS_TYPE_CONTACT_PANE);
#line 2665 "contacts-contact-pane.c"
}


ContactsStore* contacts_contact_pane_get_store (ContactsContactPane* self) {
	ContactsStore* result;
	ContactsStore* _tmp0_;
#line 34 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 35 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = self->priv->_store;
#line 35 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	result = _tmp0_;
#line 35 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return result;
#line 2680 "contacts-contact-pane.c"
}


static void _contacts_contact_pane_update_sheet_contacts_store_quiescent (ContactsStore* _sender, gpointer self) {
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_update_sheet ((ContactsContactPane*) self);
#line 2687 "contacts-contact-pane.c"
}


void contacts_contact_pane_set_store (ContactsContactPane* self, ContactsStore* value) {
	ContactsStore* _tmp0_;
	ContactsStore* _tmp1_;
	ContactsStore* _tmp2_;
#line 37 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = value;
#line 38 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 38 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->_store);
#line 38 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->priv->_store = _tmp1_;
#line 42 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = value;
#line 42 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (_tmp2_ != NULL) {
#line 2709 "contacts-contact-pane.c"
		ContactsStore* _tmp3_;
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		_tmp3_ = self->priv->_store;
#line 43 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_signal_connect_object (_tmp3_, "quiescent", (GCallback) _contacts_contact_pane_update_sheet_contacts_store_quiescent, self, 0);
#line 2715 "contacts-contact-pane.c"
	}
#line 37 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_notify_by_pspec ((GObject *) self, contacts_contact_pane_properties[CONTACTS_CONTACT_PANE_STORE]);
#line 2719 "contacts-contact-pane.c"
}


static void g_cclosure_user_marshal_VOID__STRING_STRING_OBJECT (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
	typedef void (*GMarshalFunc_VOID__STRING_STRING_OBJECT) (gpointer data1, const char* arg_1, const char* arg_2, gpointer arg_3, gpointer data2);
	register GMarshalFunc_VOID__STRING_STRING_OBJECT callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_return_if_fail (n_param_values == 4);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		data1 = closure->data;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		data2 = param_values->data[0].v_pointer;
#line 2738 "contacts-contact-pane.c"
	} else {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		data1 = param_values->data[0].v_pointer;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		data2 = closure->data;
#line 2744 "contacts-contact-pane.c"
	}
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	callback = (GMarshalFunc_VOID__STRING_STRING_OBJECT) (marshal_data ? marshal_data : cc->callback);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_object (param_values + 3), data2);
#line 2750 "contacts-contact-pane.c"
}


static void _contacts_contact_pane_linked_accounts_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 242 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_linked_accounts ((ContactsContactPane*) self);
#line 2757 "contacts-contact-pane.c"
}


static void _contacts_contact_pane_delete_contact_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 243 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_delete_contact ((ContactsContactPane*) self);
#line 2764 "contacts-contact-pane.c"
}


static GObject * contacts_contact_pane_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	ContactsContactPane * self;
	GSimpleActionGroup* _tmp0_;
	GSimpleActionGroup* _tmp1_;
	ContactsContactSheet* _tmp2_;
	ContactsContactSheet* _tmp3_;
	ContactsContactSheet* _tmp4_;
	ContactsContactSheet* _tmp5_;
	ContactsContactSheet* _tmp6_;
	Center* hcenter = NULL;
	Center* _tmp7_;
	Center* _tmp8_;
	Center* _tmp9_;
	Center* _tmp10_;
	Center* _tmp11_;
	ContactsContactSheet* _tmp12_;
	GtkScrolledWindow* _tmp13_;
	Center* _tmp14_;
	ContactsContactSheet* _tmp15_;
	GtkScrolledWindow* _tmp16_;
	GtkAdjustment* _tmp17_;
	GtkScrolledWindow* _tmp18_;
	GtkWidget* _tmp19_;
	GtkStyleContext* _tmp20_;
	GtkScrolledWindow* _tmp21_;
	GtkWidget* _tmp22_;
	GtkStyleContext* _tmp23_;
	GSimpleActionGroup* _tmp24_;
	ContactsContactEditor* _tmp25_;
	ContactsContactEditor* _tmp26_;
	GtkButton* _tmp27_;
	ContactsContactEditor* _tmp28_;
	GtkButton* _tmp29_;
	GtkBox* _tmp30_;
	ContactsContactEditor* _tmp31_;
	GSimpleAction* birthday_action = NULL;
	GSimpleActionGroup* _tmp32_;
	GAction* _tmp33_;
	GSimpleAction* _tmp34_;
	ContactsContactEditor* _tmp35_;
	GSimpleAction* _tmp36_;
	GSimpleAction* nickname_action = NULL;
	GSimpleActionGroup* _tmp37_;
	GAction* _tmp38_;
	GSimpleAction* _tmp39_;
	ContactsContactEditor* _tmp40_;
	GSimpleAction* _tmp41_;
	GSimpleAction* notes_action = NULL;
	GSimpleActionGroup* _tmp42_;
	GAction* _tmp43_;
	GSimpleAction* _tmp44_;
	ContactsContactEditor* _tmp45_;
	GSimpleAction* _tmp46_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	parent_class = G_OBJECT_CLASS (contacts_contact_pane_parent_class);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_CONTACT_PANE, ContactsContactPane);
#line 215 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp0_ = g_simple_action_group_new ();
#line 215 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->edit_contact_actions);
#line 215 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->priv->edit_contact_actions = _tmp0_;
#line 216 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp1_ = self->priv->edit_contact_actions;
#line 216 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_action_map_add_action_entries ((GActionMap*) _tmp1_, CONTACTS_CONTACT_PANE_action_entries, G_N_ELEMENTS (CONTACTS_CONTACT_PANE_action_entries), self);
#line 219 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp2_ = contacts_contact_sheet_new ();
#line 219 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp2_);
#line 219 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->sheet);
#line 219 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->priv->sheet = _tmp2_;
#line 220 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp3_ = self->priv->sheet;
#line 220 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _tmp3_, TRUE);
#line 221 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp4_ = self->priv->sheet;
#line 221 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_vexpand ((GtkWidget*) _tmp4_, TRUE);
#line 222 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp5_ = self->priv->sheet;
#line 222 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_set ((GtkWidget*) _tmp5_, "margin", 36, NULL);
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp6_ = self->priv->sheet;
#line 223 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp6_, 24);
#line 225 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp7_ = center_new ();
#line 225 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp7_);
#line 225 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	hcenter = _tmp7_;
#line 226 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp8_ = hcenter;
#line 226 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	center_set_max_width (_tmp8_, 600);
#line 227 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp9_ = hcenter;
#line 227 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	center_set_xalign (_tmp9_, 0.0);
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp10_ = hcenter;
#line 228 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_show ((GtkWidget*) _tmp10_);
#line 229 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp11_ = hcenter;
#line 229 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp12_ = self->priv->sheet;
#line 229 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) _tmp12_);
#line 231 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp13_ = self->priv->contact_sheet_page;
#line 231 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp14_ = hcenter;
#line 231 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_add ((GtkContainer*) _tmp13_, (GtkWidget*) _tmp14_);
#line 232 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp15_ = self->priv->sheet;
#line 232 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp16_ = self->priv->contact_sheet_page;
#line 232 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp17_ = gtk_scrolled_window_get_vadjustment (_tmp16_);
#line 232 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_set_focus_vadjustment ((GtkContainer*) _tmp15_, _tmp17_);
#line 234 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp18_ = self->priv->contact_sheet_page;
#line 234 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp19_ = gtk_bin_get_child ((GtkBin*) _tmp18_);
#line 234 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp20_ = gtk_widget_get_style_context (_tmp19_);
#line 234 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_style_context_add_class (_tmp20_, "contacts-main-view");
#line 235 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp21_ = self->priv->contact_sheet_page;
#line 235 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp22_ = gtk_bin_get_child ((GtkBin*) _tmp21_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp23_ = gtk_widget_get_style_context (_tmp22_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_style_context_add_class (_tmp23_, "view");
#line 237 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->suggestion_grid);
#line 237 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->suggestion_grid = NULL;
#line 240 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->on_edit_mode = FALSE;
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp24_ = self->priv->edit_contact_actions;
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp25_ = contacts_contact_editor_new (_tmp24_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_ref_sink (_tmp25_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->editor);
#line 241 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->priv->editor = _tmp25_;
#line 242 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp26_ = self->priv->editor;
#line 242 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp27_ = _tmp26_->linked_button;
#line 242 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_connect_object (_tmp27_, "clicked", (GCallback) _contacts_contact_pane_linked_accounts_gtk_button_clicked, self, 0);
#line 243 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp28_ = self->priv->editor;
#line 243 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp29_ = _tmp28_->remove_button;
#line 243 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_signal_connect_object (_tmp29_, "clicked", (GCallback) _contacts_contact_pane_delete_contact_gtk_button_clicked, self, 0);
#line 244 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp30_ = self->priv->contact_editor_page;
#line 244 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp31_ = self->priv->editor;
#line 244 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_container_add ((GtkContainer*) _tmp30_, (GtkWidget*) _tmp31_);
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp32_ = self->priv->edit_contact_actions;
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp33_ = g_action_map_lookup_action ((GActionMap*) _tmp32_, "add.birthday");
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp33_) : NULL);
#line 247 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	birthday_action = _tmp34_;
#line 248 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp35_ = self->priv->editor;
#line 248 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp36_ = birthday_action;
#line 248 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp35_, "has-birthday-row", (GObject*) _tmp36_, "enabled", G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 253 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp37_ = self->priv->edit_contact_actions;
#line 253 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp38_ = g_action_map_lookup_action ((GActionMap*) _tmp37_, "add.nickname");
#line 253 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp38_) : NULL);
#line 253 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	nickname_action = _tmp39_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp40_ = self->priv->editor;
#line 254 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp41_ = nickname_action;
#line 254 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp40_, "has-nickname-row", (GObject*) _tmp41_, "enabled", (G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE) | G_BINDING_INVERT_BOOLEAN, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 260 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp42_ = self->priv->edit_contact_actions;
#line 260 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp43_ = g_action_map_lookup_action ((GActionMap*) _tmp42_, "add.notes");
#line 260 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp44_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp43_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp43_) : NULL);
#line 260 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	notes_action = _tmp44_;
#line 261 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp45_ = self->priv->editor;
#line 261 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_tmp46_ = notes_action;
#line 261 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp45_, "has-notes-row", (GObject*) _tmp46_, "enabled", (G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE) | G_BINDING_INVERT_BOOLEAN, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (notes_action);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (nickname_action);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (birthday_action);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (hcenter);
#line 214 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	return obj;
#line 3003 "contacts-contact-pane.c"
}


static void contacts_contact_pane_class_init (ContactsContactPaneClass * klass) {
	gint ContactsContactPane_private_offset;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_parent_class = g_type_class_peek_parent (klass);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_type_class_add_private (klass, sizeof (ContactsContactPanePrivate));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_contacts_contact_pane_get_property;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_contacts_contact_pane_set_property;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	G_OBJECT_CLASS (klass)->constructor = contacts_contact_pane_constructor;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	G_OBJECT_CLASS (klass)->finalize = contacts_contact_pane_finalize;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), CONTACTS_CONTACT_PANE_STORE, contacts_contact_pane_properties[CONTACTS_CONTACT_PANE_STORE] = g_param_spec_object ("store", "store", "store", CONTACTS_TYPE_STORE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	ContactsContactPane_private_offset = g_type_class_get_instance_private_offset (klass);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/contacts/ui/contacts-contact-pane.ui");
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_signals[CONTACTS_CONTACT_PANE_CONTACTS_LINKED_SIGNAL] = g_signal_new ("contacts-linked", CONTACTS_TYPE_CONTACT_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_OBJECT, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, CONTACTS_TYPE_LINK_OPERATION);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_signals[CONTACTS_CONTACT_PANE_WILL_DELETE_SIGNAL] = g_signal_new ("will-delete", CONTACTS_TYPE_CONTACT_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, CONTACTS_TYPE_CONTACT);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "none_selected_page", FALSE, ContactsContactPane_private_offset + G_STRUCT_OFFSET (ContactsContactPanePrivate, none_selected_page));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "contact_sheet_page", FALSE, ContactsContactPane_private_offset + G_STRUCT_OFFSET (ContactsContactPanePrivate, contact_sheet_page));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "contact_editor_page", FALSE, ContactsContactPane_private_offset + G_STRUCT_OFFSET (ContactsContactPanePrivate, contact_editor_page));
#line 3037 "contacts-contact-pane.c"
}


static void contacts_contact_pane_instance_init (ContactsContactPane * self) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self->priv = CONTACTS_CONTACT_PANE_GET_PRIVATE (self);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	contacts_contact_pane_set_store (self, NULL);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 3048 "contacts-contact-pane.c"
}


static void contacts_contact_pane_finalize (GObject * obj) {
	ContactsContactPane * self;
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_CONTACT_PANE, ContactsContactPane);
#line 32 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->_store);
#line 49 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->contact);
#line 52 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->none_selected_page);
#line 55 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->contact_sheet_page);
#line 56 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->sheet);
#line 59 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->contact_editor_page);
#line 60 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->editor);
#line 62 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->priv->edit_contact_actions);
#line 78 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	_g_object_unref0 (self->suggestion_grid);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	G_OBJECT_CLASS (contacts_contact_pane_parent_class)->finalize (obj);
#line 3076 "contacts-contact-pane.c"
}


/**
 * The ContactPage is the right pane. It consists of 3 possible pages:
 * a page if nothing is selected, a ContactSheet to view contact information,
 * and a ContactEditor to edit contact information.
 */
GType contacts_contact_pane_get_type (void) {
	static volatile gsize contacts_contact_pane_type_id__volatile = 0;
	if (g_once_init_enter (&contacts_contact_pane_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ContactsContactPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) contacts_contact_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContactsContactPane), 0, (GInstanceInitFunc) contacts_contact_pane_instance_init, NULL };
		GType contacts_contact_pane_type_id;
		contacts_contact_pane_type_id = g_type_register_static (gtk_stack_get_type (), "ContactsContactPane", &g_define_type_info, 0);
		g_once_init_leave (&contacts_contact_pane_type_id__volatile, contacts_contact_pane_type_id);
	}
	return contacts_contact_pane_type_id__volatile;
}


static void _vala_contacts_contact_pane_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	ContactsContactPane * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CONTACTS_TYPE_CONTACT_PANE, ContactsContactPane);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	switch (property_id) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		case CONTACTS_CONTACT_PANE_STORE:
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		g_value_set_object (value, contacts_contact_pane_get_store (self));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		break;
#line 3108 "contacts-contact-pane.c"
		default:
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		break;
#line 3114 "contacts-contact-pane.c"
	}
}


static void _vala_contacts_contact_pane_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	ContactsContactPane * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CONTACTS_TYPE_CONTACT_PANE, ContactsContactPane);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
	switch (property_id) {
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		case CONTACTS_CONTACT_PANE_STORE:
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		contacts_contact_pane_set_store (self, g_value_get_object (value));
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		break;
#line 3130 "contacts-contact-pane.c"
		default:
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 30 "/home/mcatanzaro/Projects/GNOME/gnome-contacts/src/contacts-contact-pane.vala"
		break;
#line 3136 "contacts-contact-pane.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



