/* InhibitShortcutsDialog.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from InhibitShortcutsDialog.vala, do not modify */

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

#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <meta/meta-inhibit-shortcuts-dialog.h>
#include "gala.h"
#include <meta/window.h>
#include <glib/gi18n-lib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#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 GALA_TYPE_ACCESS_DIALOG (gala_access_dialog_get_type ())
#define GALA_ACCESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GALA_TYPE_ACCESS_DIALOG, GalaAccessDialog))
#define GALA_ACCESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GALA_TYPE_ACCESS_DIALOG, GalaAccessDialogClass))
#define GALA_IS_ACCESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GALA_TYPE_ACCESS_DIALOG))
#define GALA_IS_ACCESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GALA_TYPE_ACCESS_DIALOG))
#define GALA_ACCESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GALA_TYPE_ACCESS_DIALOG, GalaAccessDialogClass))

typedef struct _GalaAccessDialog GalaAccessDialog;
typedef struct _GalaAccessDialogClass GalaAccessDialogClass;
typedef struct _GalaAccessDialogPrivate GalaAccessDialogPrivate;

#define GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG (gala_inhibit_shortcuts_dialog_get_type ())
#define GALA_INHIBIT_SHORTCUTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialog))
#define GALA_INHIBIT_SHORTCUTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialogClass))
#define GALA_IS_INHIBIT_SHORTCUTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG))
#define GALA_IS_INHIBIT_SHORTCUTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG))
#define GALA_INHIBIT_SHORTCUTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialogClass))

typedef struct _GalaInhibitShortcutsDialog GalaInhibitShortcutsDialog;
typedef struct _GalaInhibitShortcutsDialogClass GalaInhibitShortcutsDialogClass;
typedef struct _GalaInhibitShortcutsDialogPrivate GalaInhibitShortcutsDialogPrivate;
enum  {
	GALA_INHIBIT_SHORTCUTS_DIALOG_0_PROPERTY,
	GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY,
	GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY,
	GALA_INHIBIT_SHORTCUTS_DIALOG_NUM_PROPERTIES
};
static GParamSpec* gala_inhibit_shortcuts_dialog_properties[GALA_INHIBIT_SHORTCUTS_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GALA_TYPE_SHELL_CLIENTS_MANAGER (gala_shell_clients_manager_get_type ())
#define GALA_SHELL_CLIENTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GALA_TYPE_SHELL_CLIENTS_MANAGER, GalaShellClientsManager))
#define GALA_SHELL_CLIENTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GALA_TYPE_SHELL_CLIENTS_MANAGER, GalaShellClientsManagerClass))
#define GALA_IS_SHELL_CLIENTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GALA_TYPE_SHELL_CLIENTS_MANAGER))
#define GALA_IS_SHELL_CLIENTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GALA_TYPE_SHELL_CLIENTS_MANAGER))
#define GALA_SHELL_CLIENTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GALA_TYPE_SHELL_CLIENTS_MANAGER, GalaShellClientsManagerClass))

typedef struct _GalaShellClientsManager GalaShellClientsManager;
typedef struct _GalaShellClientsManagerClass GalaShellClientsManagerClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GalaAccessDialog {
	GObject parent_instance;
	GalaAccessDialogPrivate * priv;
	char* path;
};

struct _GalaAccessDialogClass {
	GObjectClass parent_class;
	void (*on_response) (GalaAccessDialog* self, guint response_id);
	void (*show) (GalaAccessDialog* self);
};

struct _GalaInhibitShortcutsDialog {
	GalaAccessDialog parent_instance;
	GalaInhibitShortcutsDialogPrivate * priv;
};

struct _GalaInhibitShortcutsDialogClass {
	GalaAccessDialogClass parent_class;
};

struct _GalaInhibitShortcutsDialogPrivate {
	GalaApp* _app;
};

static gint GalaInhibitShortcutsDialog_private_offset;
static gpointer gala_inhibit_shortcuts_dialog_parent_class = NULL;
static MetaInhibitShortcutsDialogInterface * gala_inhibit_shortcuts_dialog_meta_inhibit_shortcuts_dialog_parent_iface = NULL;

VALA_EXTERN GType gala_access_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GalaAccessDialog, g_object_unref)
VALA_EXTERN GType gala_inhibit_shortcuts_dialog_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GalaInhibitShortcutsDialog, g_object_unref)
VALA_EXTERN void gala_access_dialog_show (GalaAccessDialog* self);
VALA_EXTERN void gala_access_dialog_on_response (GalaAccessDialog* self,
                                     guint response_id);
VALA_EXTERN GalaInhibitShortcutsDialog* gala_inhibit_shortcuts_dialog_new (GalaApp* app,
                                                               MetaWindow* window);
VALA_EXTERN GalaInhibitShortcutsDialog* gala_inhibit_shortcuts_dialog_construct (GType object_type,
                                                                     GalaApp* app,
                                                                     MetaWindow* window);
static void gala_inhibit_shortcuts_dialog_real_show (MetaInhibitShortcutsDialog* base);
VALA_EXTERN GalaApp* gala_inhibit_shortcuts_dialog_get_app (GalaInhibitShortcutsDialog* self);
VALA_EXTERN GType gala_shell_clients_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GalaShellClientsManager, g_object_unref)
VALA_EXTERN GalaShellClientsManager* gala_shell_clients_manager_get_instance (void);
VALA_EXTERN gboolean gala_shell_clients_manager_is_shell_window (GalaShellClientsManager* self,
                                                     MetaWindow* window);
static void gala_inhibit_shortcuts_dialog_real_hide (MetaInhibitShortcutsDialog* base);
VALA_EXTERN void gala_access_dialog_close (GalaAccessDialog* self);
static void gala_inhibit_shortcuts_dialog_real_on_response (GalaAccessDialog* base,
                                                     guint response_id);
VALA_EXTERN MetaWindow* gala_access_dialog_get_parent (GalaAccessDialog* self);
VALA_EXTERN void gala_access_dialog_set_parent (GalaAccessDialog* self,
                                    MetaWindow* value);
static void gala_inhibit_shortcuts_dialog_set_app (GalaInhibitShortcutsDialog* self,
                                            GalaApp* value);
static GObject * gala_inhibit_shortcuts_dialog_constructor (GType type,
                                                     guint n_construct_properties,
                                                     GObjectConstructParam * construct_properties);
VALA_EXTERN void gala_access_dialog_set_icon (GalaAccessDialog* self,
                                  const gchar* value);
VALA_EXTERN void gala_access_dialog_set_title (GalaAccessDialog* self,
                                   const gchar* value);
VALA_EXTERN void gala_access_dialog_set_body (GalaAccessDialog* self,
                                  const gchar* value);
VALA_EXTERN void gala_access_dialog_set_accept_label (GalaAccessDialog* self,
                                          const gchar* value);
VALA_EXTERN void gala_access_dialog_set_deny_label (GalaAccessDialog* self,
                                        const gchar* value);
static void gala_inhibit_shortcuts_dialog_finalize (GObject * obj);
static GType gala_inhibit_shortcuts_dialog_get_type_once (void);
static void _vala_gala_inhibit_shortcuts_dialog_get_property (GObject * object,
                                                       guint property_id,
                                                       GValue * value,
                                                       GParamSpec * pspec);
static void _vala_gala_inhibit_shortcuts_dialog_set_property (GObject * object,
                                                       guint property_id,
                                                       const GValue * value,
                                                       GParamSpec * pspec);

static inline gpointer
gala_inhibit_shortcuts_dialog_get_instance_private (GalaInhibitShortcutsDialog* self)
{
	return G_STRUCT_MEMBER_P (self, GalaInhibitShortcutsDialog_private_offset);
}

GalaInhibitShortcutsDialog*
gala_inhibit_shortcuts_dialog_construct (GType object_type,
                                         GalaApp* app,
                                         MetaWindow* window)
{
	GalaInhibitShortcutsDialog * self = NULL;
	g_return_val_if_fail (app != NULL, NULL);
	g_return_val_if_fail (window != NULL, NULL);
	self = (GalaInhibitShortcutsDialog*) g_object_new (object_type, "app", app, "window", window, NULL);
	return self;
}

GalaInhibitShortcutsDialog*
gala_inhibit_shortcuts_dialog_new (GalaApp* app,
                                   MetaWindow* window)
{
	return gala_inhibit_shortcuts_dialog_construct (GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, app, window);
}

static void
gala_inhibit_shortcuts_dialog_real_show (MetaInhibitShortcutsDialog* base)
{
	GalaInhibitShortcutsDialog * self;
	const char* _tmp0_;
	gboolean _tmp1_ = FALSE;
	GalaApp* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	self = (GalaInhibitShortcutsDialog*) base;
	_tmp0_ = ((GalaAccessDialog*) self)->path;
	if (_tmp0_ != NULL) {
		return;
	}
	_tmp2_ = self->priv->_app;
	_tmp3_ = gala_app_get_id (_tmp2_);
	_tmp4_ = _tmp3_;
	if (g_strcmp0 (_tmp4_, "io.elementary.settings.desktop") == 0) {
		_tmp1_ = TRUE;
	} else {
		GalaShellClientsManager* _tmp5_;
		MetaWindow* _tmp6_;
		MetaWindow* _tmp7_;
		MetaWindow* _tmp8_;
		_tmp5_ = gala_shell_clients_manager_get_instance ();
		g_object_get ((MetaInhibitShortcutsDialog*) self, "window", &_tmp6_, NULL);
		_tmp7_ = _tmp6_;
		_tmp8_ = _tmp7_;
		_tmp1_ = gala_shell_clients_manager_is_shell_window (_tmp5_, _tmp8_);
		_g_object_unref0 (_tmp8_);
	}
	if (_tmp1_) {
		gala_access_dialog_on_response ((GalaAccessDialog*) self, (guint) 0);
		return;
	}
	GALA_ACCESS_DIALOG_CLASS (gala_inhibit_shortcuts_dialog_parent_class)->show (G_TYPE_CHECK_INSTANCE_CAST (self, GALA_TYPE_ACCESS_DIALOG, GalaAccessDialog));
}

static void
gala_inhibit_shortcuts_dialog_real_hide (MetaInhibitShortcutsDialog* base)
{
	GalaInhibitShortcutsDialog * self;
	const char* _tmp0_;
	self = (GalaInhibitShortcutsDialog*) base;
	_tmp0_ = ((GalaAccessDialog*) self)->path;
	if (_tmp0_ != NULL) {
		gala_access_dialog_close ((GalaAccessDialog*) self);
	}
}

static void
gala_inhibit_shortcuts_dialog_real_on_response (GalaAccessDialog* base,
                                                guint response_id)
{
	GalaInhibitShortcutsDialog * self;
	self = (GalaInhibitShortcutsDialog*) base;
	if (response_id == ((guint) 0)) {
		g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, GALA_TYPE_ACCESS_DIALOG, GalaAccessDialog), "response", (guint) META_INHIBIT_SHORTCUTS_DIALOG_RESPONSE_ALLOW);
	} else {
		g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, GALA_TYPE_ACCESS_DIALOG, GalaAccessDialog), "response", (guint) META_INHIBIT_SHORTCUTS_DIALOG_RESPONSE_DENY);
	}
}

static MetaWindow*
gala_inhibit_shortcuts_dialog_real_get_window (MetaInhibitShortcutsDialog* base)
{
	MetaWindow* result;
	GalaInhibitShortcutsDialog* self;
	MetaWindow* _tmp0_;
	MetaWindow* _tmp1_;
	self = (GalaInhibitShortcutsDialog*) base;
	_tmp0_ = gala_access_dialog_get_parent ((GalaAccessDialog*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static void
gala_inhibit_shortcuts_dialog_real_set_window (MetaInhibitShortcutsDialog* base,
                                               MetaWindow* value)
{
	GalaInhibitShortcutsDialog* self;
	self = (GalaInhibitShortcutsDialog*) base;
	gala_access_dialog_set_parent ((GalaAccessDialog*) self, value);
	g_object_notify_by_pspec ((GObject *) self, gala_inhibit_shortcuts_dialog_properties[GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY]);
}

GalaApp*
gala_inhibit_shortcuts_dialog_get_app (GalaInhibitShortcutsDialog* self)
{
	GalaApp* result;
	GalaApp* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_app;
	result = _tmp0_;
	return result;
}

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

static void
gala_inhibit_shortcuts_dialog_set_app (GalaInhibitShortcutsDialog* self,
                                       GalaApp* value)
{
	GalaApp* old_value;
	g_return_if_fail (self != NULL);
	old_value = gala_inhibit_shortcuts_dialog_get_app (self);
	if (old_value != value) {
		GalaApp* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_app);
		self->priv->_app = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, gala_inhibit_shortcuts_dialog_properties[GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY]);
	}
}

static GObject *
gala_inhibit_shortcuts_dialog_constructor (GType type,
                                           guint n_construct_properties,
                                           GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	GalaInhibitShortcutsDialog * self;
	gchar* window_title = NULL;
	GalaApp* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	parent_class = G_OBJECT_CLASS (gala_inhibit_shortcuts_dialog_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialog);
	gala_access_dialog_set_icon ((GalaAccessDialog*) self, "preferences-desktop-keyboard");
	_tmp0_ = self->priv->_app;
	_tmp1_ = gala_app_get_name (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = g_strdup (_tmp2_);
	window_title = _tmp3_;
	_tmp4_ = window_title;
	if (_tmp4_ != NULL) {
		const gchar* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		_tmp5_ = window_title;
		_tmp6_ = g_strdup_printf (_ ("“%s” wants to inhibit system shortcuts"), _tmp5_);
		_tmp7_ = _tmp6_;
		gala_access_dialog_set_title ((GalaAccessDialog*) self, _tmp7_);
		_g_free0 (_tmp7_);
	} else {
		gala_access_dialog_set_title ((GalaAccessDialog*) self, _ ("An application wants to inhibit system shortcuts"));
	}
	gala_access_dialog_set_body ((GalaAccessDialog*) self, _ ("All system shortcuts will be redirected to the application."));
	gala_access_dialog_set_accept_label ((GalaAccessDialog*) self, _ ("Allow"));
	gala_access_dialog_set_deny_label ((GalaAccessDialog*) self, _ ("Deny"));
	_g_free0 (window_title);
	return obj;
}

static void
gala_inhibit_shortcuts_dialog_class_init (GalaInhibitShortcutsDialogClass * klass,
                                          gpointer klass_data)
{
	gala_inhibit_shortcuts_dialog_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &GalaInhibitShortcutsDialog_private_offset);
	((GalaAccessDialogClass *) klass)->show = (void (*) (GalaAccessDialog*)) gala_inhibit_shortcuts_dialog_real_show;
	((GalaAccessDialogClass *) klass)->on_response = (void (*) (GalaAccessDialog*, guint)) gala_inhibit_shortcuts_dialog_real_on_response;
	G_OBJECT_CLASS (klass)->get_property = _vala_gala_inhibit_shortcuts_dialog_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gala_inhibit_shortcuts_dialog_set_property;
	G_OBJECT_CLASS (klass)->constructor = gala_inhibit_shortcuts_dialog_constructor;
	G_OBJECT_CLASS (klass)->finalize = gala_inhibit_shortcuts_dialog_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY, gala_inhibit_shortcuts_dialog_properties[GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY] = g_param_spec_object ("window", "window", "window", meta_window_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY, gala_inhibit_shortcuts_dialog_properties[GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY] = g_param_spec_object ("app", "app", "app", GALA_TYPE_APP, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}

static void
gala_inhibit_shortcuts_dialog_meta_inhibit_shortcuts_dialog_interface_init (MetaInhibitShortcutsDialogInterface * iface,
                                                                            gpointer iface_data)
{
	gala_inhibit_shortcuts_dialog_meta_inhibit_shortcuts_dialog_parent_iface = g_type_interface_peek_parent (iface);
	iface->show = (void (*) (MetaInhibitShortcutsDialog*)) gala_inhibit_shortcuts_dialog_real_show;
	iface->hide = (void (*) (MetaInhibitShortcutsDialog*)) gala_inhibit_shortcuts_dialog_real_hide;
}

static void
gala_inhibit_shortcuts_dialog_instance_init (GalaInhibitShortcutsDialog * self,
                                             gpointer klass)
{
	self->priv = gala_inhibit_shortcuts_dialog_get_instance_private (self);
}

static void
gala_inhibit_shortcuts_dialog_finalize (GObject * obj)
{
	GalaInhibitShortcutsDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialog);
	_g_object_unref0 (self->priv->_app);
	G_OBJECT_CLASS (gala_inhibit_shortcuts_dialog_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
gala_inhibit_shortcuts_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GalaInhibitShortcutsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gala_inhibit_shortcuts_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GalaInhibitShortcutsDialog), 0, (GInstanceInitFunc) gala_inhibit_shortcuts_dialog_instance_init, NULL };
	static const GInterfaceInfo meta_inhibit_shortcuts_dialog_info = { (GInterfaceInitFunc) gala_inhibit_shortcuts_dialog_meta_inhibit_shortcuts_dialog_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType gala_inhibit_shortcuts_dialog_type_id;
	gala_inhibit_shortcuts_dialog_type_id = g_type_register_static (GALA_TYPE_ACCESS_DIALOG, "GalaInhibitShortcutsDialog", &g_define_type_info, 0);
	g_type_add_interface_static (gala_inhibit_shortcuts_dialog_type_id, meta_inhibit_shortcuts_dialog_get_type (), &meta_inhibit_shortcuts_dialog_info);
	GalaInhibitShortcutsDialog_private_offset = g_type_add_instance_private (gala_inhibit_shortcuts_dialog_type_id, sizeof (GalaInhibitShortcutsDialogPrivate));
	return gala_inhibit_shortcuts_dialog_type_id;
}

GType
gala_inhibit_shortcuts_dialog_get_type (void)
{
	static gsize gala_inhibit_shortcuts_dialog_type_id__once = 0;
	if (g_once_init_enter (&gala_inhibit_shortcuts_dialog_type_id__once)) {
		GType gala_inhibit_shortcuts_dialog_type_id;
		gala_inhibit_shortcuts_dialog_type_id = gala_inhibit_shortcuts_dialog_get_type_once ();
		g_once_init_leave (&gala_inhibit_shortcuts_dialog_type_id__once, gala_inhibit_shortcuts_dialog_type_id);
	}
	return gala_inhibit_shortcuts_dialog_type_id__once;
}

static void
_vala_gala_inhibit_shortcuts_dialog_get_property (GObject * object,
                                                  guint property_id,
                                                  GValue * value,
                                                  GParamSpec * pspec)
{
	GalaInhibitShortcutsDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialog);
	switch (property_id) {
		case GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY:
		g_value_take_object (value, gala_inhibit_shortcuts_dialog_real_get_window ((MetaInhibitShortcutsDialog*) self));
		break;
		case GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY:
		g_value_set_object (value, gala_inhibit_shortcuts_dialog_get_app (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_gala_inhibit_shortcuts_dialog_set_property (GObject * object,
                                                  guint property_id,
                                                  const GValue * value,
                                                  GParamSpec * pspec)
{
	GalaInhibitShortcutsDialog * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GALA_TYPE_INHIBIT_SHORTCUTS_DIALOG, GalaInhibitShortcutsDialog);
	switch (property_id) {
		case GALA_INHIBIT_SHORTCUTS_DIALOG_WINDOW_PROPERTY:
		gala_inhibit_shortcuts_dialog_real_set_window ((MetaInhibitShortcutsDialog*) self, g_value_get_object (value));
		break;
		case GALA_INHIBIT_SHORTCUTS_DIALOG_APP_PROPERTY:
		gala_inhibit_shortcuts_dialog_set_app (self, g_value_get_object (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

