/* Dialogs.c generated by valac 0.56.3, the Vala compiler
 * generated from Dialogs.vala, do not modify */

/*
 * Copyright 2021 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <meta/window.h>

#define GREETER_COMPOSITOR_ACCESS_DIALOG_PANTHEON_PORTAL_NAME "org.freedesktop.impl.portal.desktop.pantheon"
#define GREETER_COMPOSITOR_ACCESS_DIALOG_FDO_PORTAL_PATH "/org/freedesktop/portal/desktop"
#define GREETER_COMPOSITOR_ACCESS_DIALOG_GALA_DIALOG_PATH "/io/elementary/gala/dialog"
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL (greeter_compositor_access_portal_get_type ())
#define GREETER_COMPOSITOR_ACCESS_PORTAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL, GreeterCompositorAccessPortal))
#define GREETER_COMPOSITOR_IS_ACCESS_PORTAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL))
#define GREETER_COMPOSITOR_ACCESS_PORTAL_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL, GreeterCompositorAccessPortalIface))

typedef struct _GreeterCompositorAccessPortal GreeterCompositorAccessPortal;
typedef struct _GreeterCompositorAccessPortalIface GreeterCompositorAccessPortalIface;

#define GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL_PROXY (greeter_compositor_access_portal_proxy_get_type ())
typedef GDBusProxy GreeterCompositorAccessPortalProxy;
typedef GDBusProxyClass GreeterCompositorAccessPortalProxyClass;
typedef struct _GreeterCompositorAccessPortalAccessDialogReadyData GreeterCompositorAccessPortalAccessDialogReadyData;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

#define GREETER_COMPOSITOR_TYPE_REQUEST (greeter_compositor_request_get_type ())
#define GREETER_COMPOSITOR_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_REQUEST, GreeterCompositorRequest))
#define GREETER_COMPOSITOR_IS_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_REQUEST))
#define GREETER_COMPOSITOR_REQUEST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GREETER_COMPOSITOR_TYPE_REQUEST, GreeterCompositorRequestIface))

typedef struct _GreeterCompositorRequest GreeterCompositorRequest;
typedef struct _GreeterCompositorRequestIface GreeterCompositorRequestIface;

#define GREETER_COMPOSITOR_TYPE_REQUEST_PROXY (greeter_compositor_request_proxy_get_type ())
typedef GDBusProxy GreeterCompositorRequestProxy;
typedef GDBusProxyClass GreeterCompositorRequestProxyClass;

#define GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG (greeter_compositor_access_dialog_get_type ())
#define GREETER_COMPOSITOR_ACCESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialog))
#define GREETER_COMPOSITOR_ACCESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialogClass))
#define GREETER_COMPOSITOR_IS_ACCESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG))
#define GREETER_COMPOSITOR_IS_ACCESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG))
#define GREETER_COMPOSITOR_ACCESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialogClass))

typedef struct _GreeterCompositorAccessDialog GreeterCompositorAccessDialog;
typedef struct _GreeterCompositorAccessDialogClass GreeterCompositorAccessDialogClass;
typedef struct _GreeterCompositorAccessDialogPrivate GreeterCompositorAccessDialogPrivate;
enum  {
	GREETER_COMPOSITOR_ACCESS_DIALOG_0_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY,
	GREETER_COMPOSITOR_ACCESS_DIALOG_NUM_PROPERTIES
};
static GParamSpec* greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
enum  {
	GREETER_COMPOSITOR_ACCESS_DIALOG_RESPONSE_SIGNAL,
	GREETER_COMPOSITOR_ACCESS_DIALOG_SHOW_SIGNAL,
	GREETER_COMPOSITOR_ACCESS_DIALOG_NUM_SIGNALS
};
static guint greeter_compositor_access_dialog_signals[GREETER_COMPOSITOR_ACCESS_DIALOG_NUM_SIGNALS] = {0};

struct _GreeterCompositorAccessPortalIface {
	GTypeInterface parent_iface;
	void (*access_dialog) (GreeterCompositorAccessPortal* self, const char* request_path, const gchar* app_id, const gchar* window_handle, const gchar* title, const gchar* sub_title, const gchar* body, GHashTable* options, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*access_dialog_finish) (GreeterCompositorAccessPortal* self, GAsyncResult* _res_, guint* response, GError** error);
};

struct _GreeterCompositorAccessPortalAccessDialogReadyData {
	GDBusMethodInvocation* _invocation_;
	char* request_path;
	gchar* app_id;
	gchar* window_handle;
	gchar* title;
	gchar* sub_title;
	gchar* body;
	GHashTable* options;
};

struct _GreeterCompositorRequestIface {
	GTypeInterface parent_iface;
	void (*close) (GreeterCompositorRequest* self, GError** error);
};

struct _GreeterCompositorAccessDialog {
	GObject parent_instance;
	GreeterCompositorAccessDialogPrivate * priv;
	char* path;
};

struct _GreeterCompositorAccessDialogClass {
	GObjectClass parent_class;
	void (*on_response) (GreeterCompositorAccessDialog* self, GObject* obj, GAsyncResult* res);
	void (*show) (GreeterCompositorAccessDialog* self);
};

struct _GreeterCompositorAccessDialogPrivate {
	MetaWindow* _parent;
	gchar* _title;
	gchar* _body;
	gchar* _icon;
	gchar* _accept_label;
	gchar* _deny_label;
};

static gint GreeterCompositorAccessDialog_private_offset;
static gpointer greeter_compositor_access_dialog_parent_class = NULL;
VALA_EXTERN GreeterCompositorAccessPortal* greeter_compositor_access_dialog_portal;
GreeterCompositorAccessPortal* greeter_compositor_access_dialog_portal = NULL;

VALA_EXTERN GType greeter_compositor_access_portal_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint greeter_compositor_access_portal_register_object (void* object,
                                                        GDBusConnection* connection,
                                                        const gchar* path,
                                                        GError** error);
VALA_EXTERN GType greeter_compositor_access_portal_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorAccessPortal, g_object_unref)
VALA_EXTERN void greeter_compositor_access_portal_access_dialog (GreeterCompositorAccessPortal* self,
                                                     const char* request_path,
                                                     const gchar* app_id,
                                                     const gchar* window_handle,
                                                     const gchar* title,
                                                     const gchar* sub_title,
                                                     const gchar* body,
                                                     GHashTable* options,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
VALA_EXTERN void greeter_compositor_access_portal_access_dialog_finish (GreeterCompositorAccessPortal* self,
                                                            GAsyncResult* _res_,
                                                            guint* response,
                                                            GError** error);
static GType greeter_compositor_access_portal_get_type_once (void);
static void greeter_compositor_access_portal_proxy_g_signal (GDBusProxy* proxy,
                                                      const gchar* sender_name,
                                                      const gchar* signal_name,
                                                      GVariant* parameters);
static void _vala_g_async_ready_callback (GObject *source_object,
                                   GAsyncResult *res,
                                   void *user_data);
static void greeter_compositor_access_portal_proxy_access_dialog_async (GreeterCompositorAccessPortal* self,
                                                                 const char* request_path,
                                                                 const gchar* app_id,
                                                                 const gchar* window_handle,
                                                                 const gchar* title,
                                                                 const gchar* sub_title,
                                                                 const gchar* body,
                                                                 GHashTable* options,
                                                                 GAsyncReadyCallback _callback_,
                                                                 gpointer _user_data_);
static void greeter_compositor_access_portal_proxy_access_dialog_finish (GreeterCompositorAccessPortal* self,
                                                                  GAsyncResult* _res_,
                                                                  guint* response,
                                                                  GError** error);
static void greeter_compositor_access_portal_proxy_greeter_compositor_access_portal_interface_init (GreeterCompositorAccessPortalIface* iface);
static void _dbus_greeter_compositor_access_portal_access_dialog (GreeterCompositorAccessPortal* self,
                                                           GVariant* _parameters_,
                                                           GDBusMethodInvocation* invocation);
static void _dbus_greeter_compositor_access_portal_access_dialog_ready (GObject * source_object,
                                                                 GAsyncResult * _res_,
                                                                 gpointer _user_data_);
static void greeter_compositor_access_portal_dbus_interface_method_call (GDBusConnection* connection,
                                                                  const gchar* sender,
                                                                  const gchar* object_path,
                                                                  const gchar* interface_name,
                                                                  const gchar* method_name,
                                                                  GVariant* parameters,
                                                                  GDBusMethodInvocation* invocation,
                                                                  gpointer user_data);
static GVariant* greeter_compositor_access_portal_dbus_interface_get_property (GDBusConnection* connection,
                                                                        const gchar* sender,
                                                                        const gchar* object_path,
                                                                        const gchar* interface_name,
                                                                        const gchar* property_name,
                                                                        GError** error,
                                                                        gpointer user_data);
static gboolean greeter_compositor_access_portal_dbus_interface_set_property (GDBusConnection* connection,
                                                                       const gchar* sender,
                                                                       const gchar* object_path,
                                                                       const gchar* interface_name,
                                                                       const gchar* property_name,
                                                                       GVariant* value,
                                                                       GError** error,
                                                                       gpointer user_data);
static void _greeter_compositor_access_portal_unregister_object (gpointer user_data);
VALA_EXTERN GType greeter_compositor_request_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint greeter_compositor_request_register_object (void* object,
                                                  GDBusConnection* connection,
                                                  const gchar* path,
                                                  GError** error);
VALA_EXTERN GType greeter_compositor_request_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorRequest, g_object_unref)
VALA_EXTERN void greeter_compositor_request_close (GreeterCompositorRequest* self,
                                       GError** error);
static GType greeter_compositor_request_get_type_once (void);
static void greeter_compositor_request_proxy_g_signal (GDBusProxy* proxy,
                                                const gchar* sender_name,
                                                const gchar* signal_name,
                                                GVariant* parameters);
static void greeter_compositor_request_proxy_close (GreeterCompositorRequest* self,
                                             GError** error);
static void greeter_compositor_request_proxy_greeter_compositor_request_interface_init (GreeterCompositorRequestIface* iface);
static void _dbus_greeter_compositor_request_close (GreeterCompositorRequest* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation);
static void greeter_compositor_request_dbus_interface_method_call (GDBusConnection* connection,
                                                            const gchar* sender,
                                                            const gchar* object_path,
                                                            const gchar* interface_name,
                                                            const gchar* method_name,
                                                            GVariant* parameters,
                                                            GDBusMethodInvocation* invocation,
                                                            gpointer user_data);
static GVariant* greeter_compositor_request_dbus_interface_get_property (GDBusConnection* connection,
                                                                  const gchar* sender,
                                                                  const gchar* object_path,
                                                                  const gchar* interface_name,
                                                                  const gchar* property_name,
                                                                  GError** error,
                                                                  gpointer user_data);
static gboolean greeter_compositor_request_dbus_interface_set_property (GDBusConnection* connection,
                                                                 const gchar* sender,
                                                                 const gchar* object_path,
                                                                 const gchar* interface_name,
                                                                 const gchar* property_name,
                                                                 GVariant* value,
                                                                 GError** error,
                                                                 gpointer user_data);
static void _greeter_compositor_request_unregister_object (gpointer user_data);
VALA_EXTERN GType greeter_compositor_access_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorAccessDialog, g_object_unref)
VALA_EXTERN void greeter_compositor_access_dialog_on_response (GreeterCompositorAccessDialog* self,
                                                   GObject* obj,
                                                   GAsyncResult* res);
VALA_EXTERN void greeter_compositor_access_dialog_watch_portal (void);
static void __lambda40_ (void);
static void ___lambda40__gbus_name_appeared_callback (GDBusConnection* connection,
                                               const gchar* name,
                                               const gchar* name_owner,
                                               gpointer self);
static void __lambda41_ (void);
static void ___lambda41__gbus_name_vanished_callback (GDBusConnection* connection,
                                               const gchar* name,
                                               gpointer self);
VALA_EXTERN GreeterCompositorAccessDialog* greeter_compositor_access_dialog_new (const gchar* title,
                                                                     const gchar* body,
                                                                     const gchar* icon);
VALA_EXTERN GreeterCompositorAccessDialog* greeter_compositor_access_dialog_construct (GType object_type,
                                                                           const gchar* title,
                                                                           const gchar* body,
                                                                           const gchar* icon);
VALA_EXTERN void greeter_compositor_access_dialog_close (GreeterCompositorAccessDialog* self);
static void greeter_compositor_access_dialog_real_on_response (GreeterCompositorAccessDialog* self,
                                                        GObject* obj,
                                                        GAsyncResult* res);
VALA_EXTERN MetaWindow* greeter_compositor_access_dialog_get_parent (GreeterCompositorAccessDialog* self);
VALA_EXTERN void greeter_compositor_access_dialog_set_parent (GreeterCompositorAccessDialog* self,
                                                  MetaWindow* value);
VALA_EXTERN const gchar* greeter_compositor_access_dialog_get_title (GreeterCompositorAccessDialog* self);
static void greeter_compositor_access_dialog_set_title (GreeterCompositorAccessDialog* self,
                                                 const gchar* value);
VALA_EXTERN const gchar* greeter_compositor_access_dialog_get_body (GreeterCompositorAccessDialog* self);
static void greeter_compositor_access_dialog_set_body (GreeterCompositorAccessDialog* self,
                                                const gchar* value);
VALA_EXTERN const gchar* greeter_compositor_access_dialog_get_icon (GreeterCompositorAccessDialog* self);
static void greeter_compositor_access_dialog_set_icon (GreeterCompositorAccessDialog* self,
                                                const gchar* value);
VALA_EXTERN const gchar* greeter_compositor_access_dialog_get_accept_label (GreeterCompositorAccessDialog* self);
VALA_EXTERN void greeter_compositor_access_dialog_set_accept_label (GreeterCompositorAccessDialog* self,
                                                        const gchar* value);
VALA_EXTERN const gchar* greeter_compositor_access_dialog_get_deny_label (GreeterCompositorAccessDialog* self);
VALA_EXTERN void greeter_compositor_access_dialog_set_deny_label (GreeterCompositorAccessDialog* self,
                                                      const gchar* value);
static void greeter_compositor_access_dialog_real_show (GreeterCompositorAccessDialog* self);
static void _g_free0_ (gpointer var);
static void _g_variant_unref0_ (gpointer var);
static GVariant* _variant_new1 (const gchar* value);
static GVariant* _variant_new2 (const gchar* value);
static GVariant* _variant_new3 (const gchar* value);
static void _greeter_compositor_access_dialog_on_response_gasync_ready_callback (GObject* source_object,
                                                                          GAsyncResult* res,
                                                                          gpointer self);
static void greeter_compositor_access_dialog_finalize (GObject * obj);
static GType greeter_compositor_access_dialog_get_type_once (void);
static void _vala_greeter_compositor_access_dialog_get_property (GObject * object,
                                                          guint property_id,
                                                          GValue * value,
                                                          GParamSpec * pspec);
static void _vala_greeter_compositor_access_dialog_set_property (GObject * object,
                                                          guint property_id,
                                                          const GValue * value,
                                                          GParamSpec * pspec);

static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_request_path = {-1, "request_path", "o", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_app_id = {-1, "app_id", "s", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_window_handle = {-1, "window_handle", "s", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_title = {-1, "title", "s", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_sub_title = {-1, "sub_title", "s", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_body = {-1, "body", "s", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_options = {-1, "options", "a{sv}", NULL};
static const GDBusArgInfo _greeter_compositor_access_portal_dbus_arg_info_access_dialog_response = {-1, "response", "u", NULL};
static const GDBusArgInfo * const _greeter_compositor_access_portal_dbus_arg_info_access_dialog_in[] = {&_greeter_compositor_access_portal_dbus_arg_info_access_dialog_request_path, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_app_id, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_window_handle, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_title, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_sub_title, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_body, &_greeter_compositor_access_portal_dbus_arg_info_access_dialog_options, NULL};
static const GDBusArgInfo * const _greeter_compositor_access_portal_dbus_arg_info_access_dialog_out[] = {&_greeter_compositor_access_portal_dbus_arg_info_access_dialog_response, NULL};
static const GDBusMethodInfo _greeter_compositor_access_portal_dbus_method_info_access_dialog = {-1, "AccessDialog", (GDBusArgInfo **) (&_greeter_compositor_access_portal_dbus_arg_info_access_dialog_in), (GDBusArgInfo **) (&_greeter_compositor_access_portal_dbus_arg_info_access_dialog_out), NULL};
static const GDBusMethodInfo * const _greeter_compositor_access_portal_dbus_method_info[] = {&_greeter_compositor_access_portal_dbus_method_info_access_dialog, NULL};
static const GDBusSignalInfo * const _greeter_compositor_access_portal_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _greeter_compositor_access_portal_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _greeter_compositor_access_portal_dbus_interface_info = {-1, "org.freedesktop.impl.portal.Access", (GDBusMethodInfo **) (&_greeter_compositor_access_portal_dbus_method_info), (GDBusSignalInfo **) (&_greeter_compositor_access_portal_dbus_signal_info), (GDBusPropertyInfo **) (&_greeter_compositor_access_portal_dbus_property_info), NULL};
static const GDBusInterfaceVTable _greeter_compositor_access_portal_dbus_interface_vtable = {greeter_compositor_access_portal_dbus_interface_method_call, greeter_compositor_access_portal_dbus_interface_get_property, greeter_compositor_access_portal_dbus_interface_set_property};
static const GDBusArgInfo * const _greeter_compositor_request_dbus_arg_info_close_in[] = {NULL};
static const GDBusArgInfo * const _greeter_compositor_request_dbus_arg_info_close_out[] = {NULL};
static const GDBusMethodInfo _greeter_compositor_request_dbus_method_info_close = {-1, "Close", (GDBusArgInfo **) (&_greeter_compositor_request_dbus_arg_info_close_in), (GDBusArgInfo **) (&_greeter_compositor_request_dbus_arg_info_close_out), NULL};
static const GDBusMethodInfo * const _greeter_compositor_request_dbus_method_info[] = {&_greeter_compositor_request_dbus_method_info_close, NULL};
static const GDBusSignalInfo * const _greeter_compositor_request_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _greeter_compositor_request_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _greeter_compositor_request_dbus_interface_info = {-1, "org.freedesktop.impl.portal.Request", (GDBusMethodInfo **) (&_greeter_compositor_request_dbus_method_info), (GDBusSignalInfo **) (&_greeter_compositor_request_dbus_signal_info), (GDBusPropertyInfo **) (&_greeter_compositor_request_dbus_property_info), NULL};
static const GDBusInterfaceVTable _greeter_compositor_request_dbus_interface_vtable = {greeter_compositor_request_dbus_interface_method_call, greeter_compositor_request_dbus_interface_get_property, greeter_compositor_request_dbus_interface_set_property};

void
greeter_compositor_access_portal_access_dialog (GreeterCompositorAccessPortal* self,
                                                const char* request_path,
                                                const gchar* app_id,
                                                const gchar* window_handle,
                                                const gchar* title,
                                                const gchar* sub_title,
                                                const gchar* body,
                                                GHashTable* options,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_)
{
	GreeterCompositorAccessPortalIface* _iface_;
	_iface_ = GREETER_COMPOSITOR_ACCESS_PORTAL_GET_INTERFACE (self);
	if (_iface_->access_dialog) {
		_iface_->access_dialog (self, request_path, app_id, window_handle, title, sub_title, body, options, _callback_, _user_data_);
	}
}

void
greeter_compositor_access_portal_access_dialog_finish (GreeterCompositorAccessPortal* self,
                                                       GAsyncResult* _res_,
                                                       guint* response,
                                                       GError** error)
{
	GreeterCompositorAccessPortalIface* _iface_;
	_iface_ = GREETER_COMPOSITOR_ACCESS_PORTAL_GET_INTERFACE (self);
	if (_iface_->access_dialog_finish) {
		_iface_->access_dialog_finish (self, _res_, response, error);
	}
}

static void
greeter_compositor_access_portal_default_init (GreeterCompositorAccessPortalIface * iface,
                                               gpointer iface_data)
{
}

static GType
greeter_compositor_access_portal_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GreeterCompositorAccessPortalIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) greeter_compositor_access_portal_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType greeter_compositor_access_portal_type_id;
	greeter_compositor_access_portal_type_id = g_type_register_static (G_TYPE_INTERFACE, "GreeterCompositorAccessPortal", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (greeter_compositor_access_portal_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (greeter_compositor_access_portal_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) greeter_compositor_access_portal_proxy_get_type);
	g_type_set_qdata (greeter_compositor_access_portal_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.impl.portal.Access");
	g_type_set_qdata (greeter_compositor_access_portal_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_greeter_compositor_access_portal_dbus_interface_info));
	g_type_set_qdata (greeter_compositor_access_portal_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) greeter_compositor_access_portal_register_object);
	return greeter_compositor_access_portal_type_id;
}

GType
greeter_compositor_access_portal_get_type (void)
{
	static volatile gsize greeter_compositor_access_portal_type_id__once = 0;
	if (g_once_init_enter (&greeter_compositor_access_portal_type_id__once)) {
		GType greeter_compositor_access_portal_type_id;
		greeter_compositor_access_portal_type_id = greeter_compositor_access_portal_get_type_once ();
		g_once_init_leave (&greeter_compositor_access_portal_type_id__once, greeter_compositor_access_portal_type_id);
	}
	return greeter_compositor_access_portal_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (GreeterCompositorAccessPortalProxy, greeter_compositor_access_portal_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL, greeter_compositor_access_portal_proxy_greeter_compositor_access_portal_interface_init) )
static void
greeter_compositor_access_portal_proxy_class_init (GreeterCompositorAccessPortalProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = greeter_compositor_access_portal_proxy_g_signal;
}

static void
greeter_compositor_access_portal_proxy_g_signal (GDBusProxy* proxy,
                                                 const gchar* sender_name,
                                                 const gchar* signal_name,
                                                 GVariant* parameters)
{
}

static void
greeter_compositor_access_portal_proxy_init (GreeterCompositorAccessPortalProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_greeter_compositor_access_portal_dbus_interface_info));
}

static void
_vala_g_async_ready_callback (GObject *source_object,
                              GAsyncResult *res,
                              void *user_data)
{
	g_task_return_pointer (user_data, g_object_ref (res), g_object_unref);
	g_object_unref (user_data);
}

static void
greeter_compositor_access_portal_proxy_access_dialog_async (GreeterCompositorAccessPortal* self,
                                                            const char* request_path,
                                                            const gchar* app_id,
                                                            const gchar* window_handle,
                                                            const gchar* title,
                                                            const gchar* sub_title,
                                                            const gchar* body,
                                                            GHashTable* options,
                                                            GAsyncReadyCallback _callback_,
                                                            gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GVariantBuilder _tmp34_;
	GHashTableIter _tmp35_;
	gpointer _tmp36_;
	gpointer _tmp37_;
	G_IO_ERROR;
	G_DBUS_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.impl.portal.Access", "AccessDialog");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_object_path (request_path));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (app_id));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (window_handle));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (title));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (sub_title));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (body));
	g_hash_table_iter_init (&_tmp35_, options);
	g_variant_builder_init (&_tmp34_, G_VARIANT_TYPE ("a{sv}"));
	while (g_hash_table_iter_next (&_tmp35_, &_tmp36_, &_tmp37_)) {
		gchar* _key;
		GVariant* _value;
		_key = (gchar*) _tmp36_;
		_value = (GVariant*) _tmp37_;
		g_variant_builder_add (&_tmp34_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp34_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static void
greeter_compositor_access_portal_proxy_access_dialog_finish (GreeterCompositorAccessPortal* self,
                                                             GAsyncResult* _res_,
                                                             guint* response,
                                                             GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint _vala_response = 0U;
	GVariant* _tmp38_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp38_ = g_variant_iter_next_value (&_reply_iter);
	_vala_response = g_variant_get_uint32 (_tmp38_);
	g_variant_unref (_tmp38_);
	*response = _vala_response;
	g_object_unref (_reply_message);
}

static void
greeter_compositor_access_portal_proxy_greeter_compositor_access_portal_interface_init (GreeterCompositorAccessPortalIface* iface)
{
	iface->access_dialog = greeter_compositor_access_portal_proxy_access_dialog_async;
	iface->access_dialog_finish = greeter_compositor_access_portal_proxy_access_dialog_finish;
}

static void
_dbus_greeter_compositor_access_portal_access_dialog (GreeterCompositorAccessPortal* self,
                                                      GVariant* _parameters_,
                                                      GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	GreeterCompositorAccessPortalAccessDialogReadyData* _ready_data;
	GVariant* _tmp39_;
	GVariant* _tmp40_;
	GVariant* _tmp41_;
	GVariant* _tmp42_;
	GVariant* _tmp43_;
	GVariant* _tmp44_;
	GVariant* _tmp45_;
	GHashTable* _tmp46_;
	GVariantIter _tmp47_;
	GVariant* _tmp48_;
	GVariant* _tmp49_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (GreeterCompositorAccessPortalAccessDialogReadyData);
	_ready_data->_invocation_ = invocation;
	_tmp39_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->request_path = g_variant_dup_string (_tmp39_, NULL);
	g_variant_unref (_tmp39_);
	_tmp40_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->app_id = g_variant_dup_string (_tmp40_, NULL);
	g_variant_unref (_tmp40_);
	_tmp41_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->window_handle = g_variant_dup_string (_tmp41_, NULL);
	g_variant_unref (_tmp41_);
	_tmp42_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->title = g_variant_dup_string (_tmp42_, NULL);
	g_variant_unref (_tmp42_);
	_tmp43_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->sub_title = g_variant_dup_string (_tmp43_, NULL);
	g_variant_unref (_tmp43_);
	_tmp44_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->body = g_variant_dup_string (_tmp44_, NULL);
	g_variant_unref (_tmp44_);
	_tmp45_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp46_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
	g_variant_iter_init (&_tmp47_, _tmp45_);
	while (g_variant_iter_loop (&_tmp47_, "{?*}", &_tmp48_, &_tmp49_)) {
		g_hash_table_insert (_tmp46_, g_variant_dup_string (_tmp48_, NULL), g_variant_get_variant (_tmp49_));
	}
	_ready_data->options = _tmp46_;
	g_variant_unref (_tmp45_);
	greeter_compositor_access_portal_access_dialog (self, _ready_data->request_path, _ready_data->app_id, _ready_data->window_handle, _ready_data->title, _ready_data->sub_title, _ready_data->body, _ready_data->options, (GAsyncReadyCallback) _dbus_greeter_compositor_access_portal_access_dialog_ready, _ready_data);
	_error:
	;
}

static void
_dbus_greeter_compositor_access_portal_access_dialog_ready (GObject * source_object,
                                                            GAsyncResult * _res_,
                                                            gpointer _user_data_)
{
	GreeterCompositorAccessPortalAccessDialogReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint response = 0U;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	greeter_compositor_access_portal_access_dialog_finish ((GreeterCompositorAccessPortal*) source_object, _res_, &response, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (response));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (_ready_data->request_path);
	_g_free0 (_ready_data->app_id);
	_g_free0 (_ready_data->window_handle);
	_g_free0 (_ready_data->title);
	_g_free0 (_ready_data->sub_title);
	_g_free0 (_ready_data->body);
	_g_hash_table_unref0 (_ready_data->options);
	g_slice_free (GreeterCompositorAccessPortalAccessDialogReadyData, _ready_data);
}

static void
greeter_compositor_access_portal_dbus_interface_method_call (GDBusConnection* connection,
                                                             const gchar* sender,
                                                             const gchar* object_path,
                                                             const gchar* interface_name,
                                                             const gchar* method_name,
                                                             GVariant* parameters,
                                                             GDBusMethodInvocation* invocation,
                                                             gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "AccessDialog") == 0) {
		_dbus_greeter_compositor_access_portal_access_dialog (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
greeter_compositor_access_portal_dbus_interface_get_property (GDBusConnection* connection,
                                                              const gchar* sender,
                                                              const gchar* object_path,
                                                              const gchar* interface_name,
                                                              const gchar* property_name,
                                                              GError** error,
                                                              gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}

static gboolean
greeter_compositor_access_portal_dbus_interface_set_property (GDBusConnection* connection,
                                                              const gchar* sender,
                                                              const gchar* object_path,
                                                              const gchar* interface_name,
                                                              const gchar* property_name,
                                                              GVariant* value,
                                                              GError** error,
                                                              gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}

guint
greeter_compositor_access_portal_register_object (gpointer object,
                                                  GDBusConnection* connection,
                                                  const gchar* path,
                                                  GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_greeter_compositor_access_portal_dbus_interface_info), &_greeter_compositor_access_portal_dbus_interface_vtable, data, _greeter_compositor_access_portal_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_greeter_compositor_access_portal_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

void
greeter_compositor_request_close (GreeterCompositorRequest* self,
                                  GError** error)
{
	GreeterCompositorRequestIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = GREETER_COMPOSITOR_REQUEST_GET_INTERFACE (self);
	if (_iface_->close) {
		_iface_->close (self, error);
	}
}

static void
greeter_compositor_request_default_init (GreeterCompositorRequestIface * iface,
                                         gpointer iface_data)
{
}

static GType
greeter_compositor_request_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GreeterCompositorRequestIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) greeter_compositor_request_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType greeter_compositor_request_type_id;
	greeter_compositor_request_type_id = g_type_register_static (G_TYPE_INTERFACE, "GreeterCompositorRequest", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (greeter_compositor_request_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (greeter_compositor_request_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) greeter_compositor_request_proxy_get_type);
	g_type_set_qdata (greeter_compositor_request_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.impl.portal.Request");
	g_type_set_qdata (greeter_compositor_request_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_greeter_compositor_request_dbus_interface_info));
	g_type_set_qdata (greeter_compositor_request_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) greeter_compositor_request_register_object);
	return greeter_compositor_request_type_id;
}

GType
greeter_compositor_request_get_type (void)
{
	static volatile gsize greeter_compositor_request_type_id__once = 0;
	if (g_once_init_enter (&greeter_compositor_request_type_id__once)) {
		GType greeter_compositor_request_type_id;
		greeter_compositor_request_type_id = greeter_compositor_request_get_type_once ();
		g_once_init_leave (&greeter_compositor_request_type_id__once, greeter_compositor_request_type_id);
	}
	return greeter_compositor_request_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (GreeterCompositorRequestProxy, greeter_compositor_request_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (GREETER_COMPOSITOR_TYPE_REQUEST, greeter_compositor_request_proxy_greeter_compositor_request_interface_init) )
static void
greeter_compositor_request_proxy_class_init (GreeterCompositorRequestProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = greeter_compositor_request_proxy_g_signal;
}

static void
greeter_compositor_request_proxy_g_signal (GDBusProxy* proxy,
                                           const gchar* sender_name,
                                           const gchar* signal_name,
                                           GVariant* parameters)
{
}

static void
greeter_compositor_request_proxy_init (GreeterCompositorRequestProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_greeter_compositor_request_dbus_interface_info));
}

static void
greeter_compositor_request_proxy_close (GreeterCompositorRequest* self,
                                        GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_DBUS_ERROR;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.impl.portal.Request", "Close");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
greeter_compositor_request_proxy_greeter_compositor_request_interface_init (GreeterCompositorRequestIface* iface)
{
	iface->close = greeter_compositor_request_proxy_close;
}

static void
_dbus_greeter_compositor_request_close (GreeterCompositorRequest* self,
                                        GVariant* _parameters_,
                                        GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	greeter_compositor_request_close (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
greeter_compositor_request_dbus_interface_method_call (GDBusConnection* connection,
                                                       const gchar* sender,
                                                       const gchar* object_path,
                                                       const gchar* interface_name,
                                                       const gchar* method_name,
                                                       GVariant* parameters,
                                                       GDBusMethodInvocation* invocation,
                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "Close") == 0) {
		_dbus_greeter_compositor_request_close (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
greeter_compositor_request_dbus_interface_get_property (GDBusConnection* connection,
                                                        const gchar* sender,
                                                        const gchar* object_path,
                                                        const gchar* interface_name,
                                                        const gchar* property_name,
                                                        GError** error,
                                                        gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}

static gboolean
greeter_compositor_request_dbus_interface_set_property (GDBusConnection* connection,
                                                        const gchar* sender,
                                                        const gchar* object_path,
                                                        const gchar* interface_name,
                                                        const gchar* property_name,
                                                        GVariant* value,
                                                        GError** error,
                                                        gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}

guint
greeter_compositor_request_register_object (gpointer object,
                                            GDBusConnection* connection,
                                            const gchar* path,
                                            GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_greeter_compositor_request_dbus_interface_info), &_greeter_compositor_request_dbus_interface_vtable, data, _greeter_compositor_request_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_greeter_compositor_request_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

static inline gpointer
greeter_compositor_access_dialog_get_instance_private (GreeterCompositorAccessDialog* self)
{
	return G_STRUCT_MEMBER_P (self, GreeterCompositorAccessDialog_private_offset);
}

static void
__lambda40_ (void)
{
	GError* _inner_error0_ = NULL;
	{
		GreeterCompositorAccessPortal* _tmp0_ = NULL;
		GreeterCompositorAccessPortal* _tmp1_;
		GreeterCompositorAccessPortal* _tmp2_;
		_tmp1_ = (GreeterCompositorAccessPortal*) g_initable_new (GREETER_COMPOSITOR_TYPE_ACCESS_PORTAL_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", GREETER_COMPOSITOR_ACCESS_DIALOG_PANTHEON_PORTAL_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", GREETER_COMPOSITOR_ACCESS_DIALOG_FDO_PORTAL_PATH, "g-interface-name", "org.freedesktop.impl.portal.Access", NULL);
		_tmp0_ = (GreeterCompositorAccessPortal*) _tmp1_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp2_ = _tmp0_;
		_tmp0_ = NULL;
		_g_object_unref0 (greeter_compositor_access_dialog_portal);
		greeter_compositor_access_dialog_portal = _tmp2_;
		_g_object_unref0 (_tmp0_);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp3_ = e;
		_tmp4_ = _tmp3_->message;
		g_warning ("Dialogs.vala:50: can't reach portal session: %s", _tmp4_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
}

static void
___lambda40__gbus_name_appeared_callback (GDBusConnection* connection,
                                          const gchar* name,
                                          const gchar* name_owner,
                                          gpointer self)
{
	__lambda40_ ();
}

static void
__lambda41_ (void)
{
	_g_object_unref0 (greeter_compositor_access_dialog_portal);
	greeter_compositor_access_dialog_portal = NULL;
}

static void
___lambda41__gbus_name_vanished_callback (GDBusConnection* connection,
                                          const gchar* name,
                                          gpointer self)
{
	__lambda41_ ();
}

void
greeter_compositor_access_dialog_watch_portal (void)
{
	g_bus_watch_name_with_closures (G_BUS_TYPE_SESSION, GREETER_COMPOSITOR_ACCESS_DIALOG_PANTHEON_PORTAL_NAME, G_BUS_NAME_WATCHER_FLAGS_NONE, (GClosure*) ((___lambda40__gbus_name_appeared_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda40__gbus_name_appeared_callback, NULL, (GClosureNotify) NULL)), (GClosure*) ((___lambda41__gbus_name_vanished_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda41__gbus_name_vanished_callback, NULL, (GClosureNotify) NULL)));
}

GreeterCompositorAccessDialog*
greeter_compositor_access_dialog_construct (GType object_type,
                                            const gchar* title,
                                            const gchar* body,
                                            const gchar* icon)
{
	GreeterCompositorAccessDialog * self = NULL;
	g_return_val_if_fail (title != NULL, NULL);
	g_return_val_if_fail (body != NULL, NULL);
	g_return_val_if_fail (icon != NULL, NULL);
	self = (GreeterCompositorAccessDialog*) g_object_new (object_type, "title", title, "body", body, "icon", icon, NULL);
	return self;
}

GreeterCompositorAccessDialog*
greeter_compositor_access_dialog_new (const gchar* title,
                                      const gchar* body,
                                      const gchar* icon)
{
	return greeter_compositor_access_dialog_construct (GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, title, body, icon);
}

void
greeter_compositor_access_dialog_close (GreeterCompositorAccessDialog* self)
{
	const char* _tmp0_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->path;
	if (_tmp0_ != NULL) {
		{
			GreeterCompositorRequest* request = NULL;
			const char* _tmp1_;
			GreeterCompositorRequest* _tmp2_;
			GreeterCompositorRequest* _tmp3_;
			_tmp1_ = self->path;
			_tmp2_ = (GreeterCompositorRequest*) g_initable_new (GREETER_COMPOSITOR_TYPE_REQUEST_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", GREETER_COMPOSITOR_ACCESS_DIALOG_PANTHEON_PORTAL_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", (const gchar*) _tmp1_, "g-interface-name", "org.freedesktop.impl.portal.Request", NULL);
			request = (GreeterCompositorRequest*) _tmp2_;
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch0_g_error;
			}
			_tmp3_ = request;
			greeter_compositor_request_close (_tmp3_, &_inner_error0_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				_g_object_unref0 (request);
				goto __catch0_g_error;
			}
			_g_object_unref0 (request);
		}
		goto __finally0;
		__catch0_g_error:
		{
			GError* e = NULL;
			GError* _tmp4_;
			const gchar* _tmp5_;
			e = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp4_ = e;
			_tmp5_ = _tmp4_->message;
			g_warning ("Dialogs.vala:95: %s", _tmp5_);
			_g_error_free0 (e);
		}
		__finally0:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return;
		}
		_g_free0 (self->path);
		self->path = NULL;
	}
}

static void
greeter_compositor_access_dialog_real_on_response (GreeterCompositorAccessDialog* self,
                                                   GObject* obj,
                                                   GAsyncResult* res)
{
	guint ret = 0U;
	GError* _inner_error0_ = NULL;
	{
		GreeterCompositorAccessPortal* _tmp0_;
		guint _tmp1_ = 0U;
		_tmp0_ = greeter_compositor_access_dialog_portal;
		greeter_compositor_access_portal_access_dialog_finish (_tmp0_, res, &_tmp1_, &_inner_error0_);
		ret = _tmp1_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp2_ = e;
		_tmp3_ = _tmp2_->message;
		g_warning ("Dialogs.vala:108: %s", _tmp3_);
		ret = (guint) 2;
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
	g_signal_emit (self, greeter_compositor_access_dialog_signals[GREETER_COMPOSITOR_ACCESS_DIALOG_RESPONSE_SIGNAL], 0, ret);
	greeter_compositor_access_dialog_close (self);
}

void
greeter_compositor_access_dialog_on_response (GreeterCompositorAccessDialog* self,
                                              GObject* obj,
                                              GAsyncResult* res)
{
	GreeterCompositorAccessDialogClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = GREETER_COMPOSITOR_ACCESS_DIALOG_GET_CLASS (self);
	if (_klass_->on_response) {
		_klass_->on_response (self, obj, res);
	}
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

MetaWindow*
greeter_compositor_access_dialog_get_parent (GreeterCompositorAccessDialog* self)
{
	MetaWindow* result;
	MetaWindow* _tmp0_;
	MetaWindow* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_parent;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	result = _tmp1_;
	return result;
}

void
greeter_compositor_access_dialog_set_parent (GreeterCompositorAccessDialog* self,
                                             MetaWindow* value)
{
	MetaWindow* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_parent (self);
	if (old_value != value) {
		MetaWindow* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_parent);
		self->priv->_parent = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY]);
	}
	_g_object_unref0 (old_value);
}

const gchar*
greeter_compositor_access_dialog_get_title (GreeterCompositorAccessDialog* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_title;
	result = _tmp0_;
	return result;
}

static void
greeter_compositor_access_dialog_set_title (GreeterCompositorAccessDialog* self,
                                            const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_title (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_title);
		self->priv->_title = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY]);
	}
}

const gchar*
greeter_compositor_access_dialog_get_body (GreeterCompositorAccessDialog* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_body;
	result = _tmp0_;
	return result;
}

static void
greeter_compositor_access_dialog_set_body (GreeterCompositorAccessDialog* self,
                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_body (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_body);
		self->priv->_body = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY]);
	}
}

const gchar*
greeter_compositor_access_dialog_get_icon (GreeterCompositorAccessDialog* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_icon;
	result = _tmp0_;
	return result;
}

static void
greeter_compositor_access_dialog_set_icon (GreeterCompositorAccessDialog* self,
                                           const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_icon (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_icon);
		self->priv->_icon = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY]);
	}
}

const gchar*
greeter_compositor_access_dialog_get_accept_label (GreeterCompositorAccessDialog* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_accept_label;
	result = _tmp0_;
	return result;
}

void
greeter_compositor_access_dialog_set_accept_label (GreeterCompositorAccessDialog* self,
                                                   const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_accept_label (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_accept_label);
		self->priv->_accept_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY]);
	}
}

const gchar*
greeter_compositor_access_dialog_get_deny_label (GreeterCompositorAccessDialog* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_deny_label;
	result = _tmp0_;
	return result;
}

void
greeter_compositor_access_dialog_set_deny_label (GreeterCompositorAccessDialog* self,
                                                 const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = greeter_compositor_access_dialog_get_deny_label (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_deny_label);
		self->priv->_deny_label = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY]);
	}
}

static void
_g_free0_ (gpointer var)
{
	var = (g_free (var), NULL);
}

static void
_g_variant_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
}

static GVariant*
_variant_new1 (const gchar* value)
{
	return g_variant_ref_sink (g_variant_new_string (value));
}

static GVariant*
_variant_new2 (const gchar* value)
{
	return g_variant_ref_sink (g_variant_new_string (value));
}

static GVariant*
_variant_new3 (const gchar* value)
{
	return g_variant_ref_sink (g_variant_new_string (value));
}

static void
_greeter_compositor_access_dialog_on_response_gasync_ready_callback (GObject* source_object,
                                                                     GAsyncResult* res,
                                                                     gpointer self)
{
	greeter_compositor_access_dialog_on_response ((GreeterCompositorAccessDialog*) self, source_object, res);
	g_object_unref (self);
}

static void
greeter_compositor_access_dialog_real_show (GreeterCompositorAccessDialog* self)
{
	GreeterCompositorAccessPortal* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	char* _tmp5_;
	gchar* parent_handler = NULL;
	gchar* _tmp6_;
	gchar* app_id = NULL;
	gchar* _tmp7_;
	MetaWindow* _tmp8_;
	MetaWindow* _tmp9_;
	MetaWindow* _tmp10_;
	gboolean _tmp11_;
	GHashTable* options = NULL;
	GHashFunc _tmp27_;
	GEqualFunc _tmp28_;
	GHashTable* _tmp29_;
	GHashTable* _tmp30_;
	gchar* _tmp31_;
	const gchar* _tmp32_;
	GVariant* _tmp33_;
	GHashTable* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	GVariant* _tmp37_;
	GHashTable* _tmp38_;
	gchar* _tmp39_;
	const gchar* _tmp40_;
	GVariant* _tmp41_;
	GreeterCompositorAccessPortal* _tmp42_;
	const char* _tmp43_;
	const gchar* _tmp44_;
	const gchar* _tmp45_;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	GHashTable* _tmp48_;
	_tmp0_ = greeter_compositor_access_dialog_portal;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = g_strdup_printf ("/%i", (gint) g_random_int_range ((gint32) 0, (gint32) G_MAXINT));
	_tmp2_ = _tmp1_;
	_tmp3_ = g_strconcat (GREETER_COMPOSITOR_ACCESS_DIALOG_GALA_DIALOG_PATH, _tmp2_, NULL);
	_tmp4_ = _tmp3_;
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 (self->path);
	self->path = _tmp5_;
	_g_free0 (_tmp4_);
	_g_free0 (_tmp2_);
	_tmp6_ = g_strdup ("");
	parent_handler = _tmp6_;
	_tmp7_ = g_strdup ("");
	app_id = _tmp7_;
	_tmp8_ = greeter_compositor_access_dialog_get_parent (self);
	_tmp9_ = _tmp8_;
	_tmp10_ = _tmp9_;
	_tmp11_ = _tmp10_ != NULL;
	_g_object_unref0 (_tmp10_);
	if (_tmp11_) {
		MetaWindow* _tmp12_;
		MetaWindow* _tmp13_;
		MetaWindow* _tmp14_;
		gboolean _tmp15_;
		const gchar* _tmp20_ = NULL;
		MetaWindow* _tmp21_;
		MetaWindow* _tmp22_;
		MetaWindow* _tmp23_;
		const gchar* _tmp24_;
		const gchar* _tmp25_;
		gchar* _tmp26_;
		_tmp12_ = greeter_compositor_access_dialog_get_parent (self);
		_tmp13_ = _tmp12_;
		_tmp14_ = _tmp13_;
		_tmp15_ = meta_window_get_client_type (_tmp14_) == META_WINDOW_CLIENT_TYPE_X11;
		_g_object_unref0 (_tmp14_);
		if (_tmp15_) {
			MetaWindow* _tmp16_;
			MetaWindow* _tmp17_;
			MetaWindow* _tmp18_;
			gchar* _tmp19_;
			_tmp16_ = greeter_compositor_access_dialog_get_parent (self);
			_tmp17_ = _tmp16_;
			_tmp18_ = _tmp17_;
			_tmp19_ = g_strdup_printf ("x11:%x", (guint) meta_window_get_xwindow (_tmp18_));
			_g_free0 (parent_handler);
			parent_handler = _tmp19_;
			_g_object_unref0 (_tmp18_);
		}
		_tmp21_ = greeter_compositor_access_dialog_get_parent (self);
		_tmp22_ = _tmp21_;
		_tmp23_ = _tmp22_;
		_tmp24_ = meta_window_get_sandboxed_app_id (_tmp23_);
		_tmp25_ = _tmp24_;
		_g_object_unref0 (_tmp23_);
		_tmp20_ = _tmp25_;
		if (_tmp20_ == NULL) {
			_tmp20_ = "";
		}
		_tmp26_ = g_strdup (_tmp20_);
		_g_free0 (app_id);
		app_id = _tmp26_;
	}
	_tmp27_ = g_str_hash;
	_tmp28_ = g_str_equal;
	_tmp29_ = g_hash_table_new_full (_tmp27_, _tmp28_, _g_free0_, _g_variant_unref0_);
	options = _tmp29_;
	_tmp30_ = options;
	_tmp31_ = g_strdup ("grant_label");
	_tmp32_ = self->priv->_accept_label;
	_tmp33_ = _variant_new1 (_tmp32_);
	g_hash_table_insert (_tmp30_, _tmp31_, _tmp33_);
	_tmp34_ = options;
	_tmp35_ = g_strdup ("deny_label");
	_tmp36_ = self->priv->_deny_label;
	_tmp37_ = _variant_new2 (_tmp36_);
	g_hash_table_insert (_tmp34_, _tmp35_, _tmp37_);
	_tmp38_ = options;
	_tmp39_ = g_strdup ("icon");
	_tmp40_ = self->priv->_icon;
	_tmp41_ = _variant_new3 (_tmp40_);
	g_hash_table_insert (_tmp38_, _tmp39_, _tmp41_);
	_tmp42_ = greeter_compositor_access_dialog_portal;
	_tmp43_ = self->path;
	_tmp44_ = app_id;
	_tmp45_ = parent_handler;
	_tmp46_ = self->priv->_title;
	_tmp47_ = self->priv->_body;
	_tmp48_ = options;
	greeter_compositor_access_portal_access_dialog (_tmp42_, _tmp43_, _tmp44_, _tmp45_, _tmp46_, _tmp47_, "", _tmp48_, _greeter_compositor_access_dialog_on_response_gasync_ready_callback, g_object_ref (self));
	_g_hash_table_unref0 (options);
	_g_free0 (app_id);
	_g_free0 (parent_handler);
}

static void
greeter_compositor_access_dialog_class_init (GreeterCompositorAccessDialogClass * klass,
                                             gpointer klass_data)
{
	greeter_compositor_access_dialog_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &GreeterCompositorAccessDialog_private_offset);
	((GreeterCompositorAccessDialogClass *) klass)->on_response = (void (*) (GreeterCompositorAccessDialog*, GObject*, GAsyncResult*)) greeter_compositor_access_dialog_real_on_response;
	((GreeterCompositorAccessDialogClass *) klass)->show = greeter_compositor_access_dialog_real_show;
	G_OBJECT_CLASS (klass)->get_property = _vala_greeter_compositor_access_dialog_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_greeter_compositor_access_dialog_set_property;
	G_OBJECT_CLASS (klass)->finalize = greeter_compositor_access_dialog_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY] = g_param_spec_object ("parent", "parent", "parent", meta_window_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY] = g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY] = g_param_spec_string ("body", "body", "body", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY] = g_param_spec_string ("icon", "icon", "icon", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY] = g_param_spec_string ("accept-label", "accept-label", "accept-label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY, greeter_compositor_access_dialog_properties[GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY] = g_param_spec_string ("deny-label", "deny-label", "deny-label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	greeter_compositor_access_dialog_signals[GREETER_COMPOSITOR_ACCESS_DIALOG_RESPONSE_SIGNAL] = g_signal_new ("response", GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
	greeter_compositor_access_dialog_signals[GREETER_COMPOSITOR_ACCESS_DIALOG_SHOW_SIGNAL] = g_signal_new ("show", GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterCompositorAccessDialogClass, show), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}

static void
greeter_compositor_access_dialog_instance_init (GreeterCompositorAccessDialog * self,
                                                gpointer klass)
{
	self->priv = greeter_compositor_access_dialog_get_instance_private (self);
	self->path = NULL;
}

static void
greeter_compositor_access_dialog_finalize (GObject * obj)
{
	GreeterCompositorAccessDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialog);
	_g_object_unref0 (self->priv->_parent);
	_g_free0 (self->priv->_title);
	_g_free0 (self->priv->_body);
	_g_free0 (self->priv->_icon);
	_g_free0 (self->priv->_accept_label);
	_g_free0 (self->priv->_deny_label);
	_g_free0 (self->path);
	G_OBJECT_CLASS (greeter_compositor_access_dialog_parent_class)->finalize (obj);
}

static GType
greeter_compositor_access_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GreeterCompositorAccessDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) greeter_compositor_access_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GreeterCompositorAccessDialog), 0, (GInstanceInitFunc) greeter_compositor_access_dialog_instance_init, NULL };
	GType greeter_compositor_access_dialog_type_id;
	greeter_compositor_access_dialog_type_id = g_type_register_static (G_TYPE_OBJECT, "GreeterCompositorAccessDialog", &g_define_type_info, 0);
	GreeterCompositorAccessDialog_private_offset = g_type_add_instance_private (greeter_compositor_access_dialog_type_id, sizeof (GreeterCompositorAccessDialogPrivate));
	return greeter_compositor_access_dialog_type_id;
}

GType
greeter_compositor_access_dialog_get_type (void)
{
	static volatile gsize greeter_compositor_access_dialog_type_id__once = 0;
	if (g_once_init_enter (&greeter_compositor_access_dialog_type_id__once)) {
		GType greeter_compositor_access_dialog_type_id;
		greeter_compositor_access_dialog_type_id = greeter_compositor_access_dialog_get_type_once ();
		g_once_init_leave (&greeter_compositor_access_dialog_type_id__once, greeter_compositor_access_dialog_type_id);
	}
	return greeter_compositor_access_dialog_type_id__once;
}

static void
_vala_greeter_compositor_access_dialog_get_property (GObject * object,
                                                     guint property_id,
                                                     GValue * value,
                                                     GParamSpec * pspec)
{
	GreeterCompositorAccessDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialog);
	switch (property_id) {
		case GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY:
		g_value_take_object (value, greeter_compositor_access_dialog_get_parent (self));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY:
		g_value_set_string (value, greeter_compositor_access_dialog_get_title (self));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY:
		g_value_set_string (value, greeter_compositor_access_dialog_get_body (self));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY:
		g_value_set_string (value, greeter_compositor_access_dialog_get_icon (self));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY:
		g_value_set_string (value, greeter_compositor_access_dialog_get_accept_label (self));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY:
		g_value_set_string (value, greeter_compositor_access_dialog_get_deny_label (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_greeter_compositor_access_dialog_set_property (GObject * object,
                                                     guint property_id,
                                                     const GValue * value,
                                                     GParamSpec * pspec)
{
	GreeterCompositorAccessDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GREETER_COMPOSITOR_TYPE_ACCESS_DIALOG, GreeterCompositorAccessDialog);
	switch (property_id) {
		case GREETER_COMPOSITOR_ACCESS_DIALOG_PARENT_PROPERTY:
		greeter_compositor_access_dialog_set_parent (self, g_value_get_object (value));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_TITLE_PROPERTY:
		greeter_compositor_access_dialog_set_title (self, g_value_get_string (value));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_BODY_PROPERTY:
		greeter_compositor_access_dialog_set_body (self, g_value_get_string (value));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_ICON_PROPERTY:
		greeter_compositor_access_dialog_set_icon (self, g_value_get_string (value));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_ACCEPT_LABEL_PROPERTY:
		greeter_compositor_access_dialog_set_accept_label (self, g_value_get_string (value));
		break;
		case GREETER_COMPOSITOR_ACCESS_DIALOG_DENY_LABEL_PROPERTY:
		greeter_compositor_access_dialog_set_deny_label (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

