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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <json-glib/json-glib.h>
#include <gio/gio.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 SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET (sway_notification_center_widgets_base_widget_get_type ())
#define SWAY_NOTIFICATION_CENTER_WIDGETS_BASE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidget))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_BASE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidgetClass))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_BASE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_BASE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_BASE_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidgetClass))

typedef struct _SwayNotificationCenterWidgetsBaseWidget SwayNotificationCenterWidgetsBaseWidget;
typedef struct _SwayNotificationCenterWidgetsBaseWidgetClass SwayNotificationCenterWidgetsBaseWidgetClass;
typedef struct _SwayNotificationCenterWidgetsBaseWidgetPrivate SwayNotificationCenterWidgetsBaseWidgetPrivate;

#define SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND (sway_notification_center_widgets_dnd_get_type ())
#define SWAY_NOTIFICATION_CENTER_WIDGETS_DND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDnd))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_DND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDndClass))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_DND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_DND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_DND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDndClass))

typedef struct _SwayNotificationCenterWidgetsDnd SwayNotificationCenterWidgetsDnd;
typedef struct _SwayNotificationCenterWidgetsDndClass SwayNotificationCenterWidgetsDndClass;
typedef struct _SwayNotificationCenterWidgetsDndPrivate SwayNotificationCenterWidgetsDndPrivate;
enum  {
	SWAY_NOTIFICATION_CENTER_WIDGETS_DND_0_PROPERTY,
	SWAY_NOTIFICATION_CENTER_WIDGETS_DND_WIDGET_NAME_PROPERTY,
	SWAY_NOTIFICATION_CENTER_WIDGETS_DND_NUM_PROPERTIES
};
static GParamSpec* sway_notification_center_widgets_dnd_properties[SWAY_NOTIFICATION_CENTER_WIDGETS_DND_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON (sway_notification_center_noti_daemon_get_type ())
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemon))
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemonClass))
#define SWAY_NOTIFICATION_CENTER_IS_NOTI_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON))
#define SWAY_NOTIFICATION_CENTER_IS_NOTI_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON))
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemonClass))

typedef struct _SwayNotificationCenterNotiDaemon SwayNotificationCenterNotiDaemon;
typedef struct _SwayNotificationCenterNotiDaemonClass SwayNotificationCenterNotiDaemonClass;
#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))

struct _SwayNotificationCenterWidgetsBaseWidget {
	GtkBox parent_instance;
	SwayNotificationCenterWidgetsBaseWidgetPrivate * priv;
};

struct _SwayNotificationCenterWidgetsBaseWidgetClass {
	GtkBoxClass parent_class;
	void (*on_cc_visibility_change) (SwayNotificationCenterWidgetsBaseWidget* self, gboolean value);
	const gchar* (*get_widget_name) (SwayNotificationCenterWidgetsBaseWidget* self);
};

struct _SwayNotificationCenterWidgetsDnd {
	SwayNotificationCenterWidgetsBaseWidget parent_instance;
	SwayNotificationCenterWidgetsDndPrivate * priv;
};

struct _SwayNotificationCenterWidgetsDndClass {
	SwayNotificationCenterWidgetsBaseWidgetClass parent_class;
};

struct _SwayNotificationCenterWidgetsDndPrivate {
	GtkLabel* title_widget;
	GtkSwitch* dnd_button;
	gchar* title;
};

static gint SwayNotificationCenterWidgetsDnd_private_offset;
static gpointer sway_notification_center_widgets_dnd_parent_class = NULL;
VALA_EXTERN SwayNotificationCenterNotiDaemon* sway_notification_center_noti_daemon;

VALA_EXTERN GType sway_notification_center_widgets_base_widget_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterWidgetsBaseWidget, g_object_unref)
VALA_EXTERN GType sway_notification_center_widgets_dnd_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterWidgetsDnd, g_object_unref)
VALA_EXTERN const gchar* sway_notification_center_widgets_base_widget_get_widget_name (SwayNotificationCenterWidgetsBaseWidget* self);
VALA_EXTERN SwayNotificationCenterWidgetsDnd* sway_notification_center_widgets_dnd_new (const gchar* suffix);
VALA_EXTERN SwayNotificationCenterWidgetsDnd* sway_notification_center_widgets_dnd_construct (GType object_type,
                                                                                  const gchar* suffix);
VALA_EXTERN SwayNotificationCenterWidgetsBaseWidget* sway_notification_center_widgets_base_widget_construct (GType object_type,
                                                                                                 const gchar* suffix);
VALA_EXTERN JsonObject* sway_notification_center_widgets_base_widget_get_config (SwayNotificationCenterWidgetsBaseWidget* self,
                                                                     GtkWidget* widget);
VALA_EXTERN gpointer sway_notification_center_widgets_base_widget_get_prop (SwayNotificationCenterWidgetsBaseWidget* self,
                                                                GType t_type,
                                                                GBoxedCopyFunc t_dup_func,
                                                                GDestroyNotify t_destroy_func,
                                                                JsonObject* config,
                                                                const gchar* value_key,
                                                                gboolean* found);
VALA_EXTERN GType sway_notification_center_noti_daemon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterNotiDaemon, g_object_unref)
VALA_EXTERN guint sway_notification_center_noti_daemon_register_object (void* object,
                                                            GDBusConnection* connection,
                                                            const gchar* path,
                                                            GError** error);
VALA_EXTERN gboolean sway_notification_center_noti_daemon_get_dnd (SwayNotificationCenterNotiDaemon* self);
static void sway_notification_center_widgets_dnd_switch_active_changed_cb (SwayNotificationCenterWidgetsDnd* self);
static void _sway_notification_center_widgets_dnd_switch_active_changed_cb_g_object_notify (GObject* _sender,
                                                                                     GParamSpec* pspec,
                                                                                     gpointer self);
static void __lambda50_ (SwayNotificationCenterWidgetsDnd* self,
                  gboolean dnd);
static void ___lambda50__sway_notification_center_noti_daemon_on_dnd_toggle (SwayNotificationCenterNotiDaemon* _sender,
                                                                      gboolean dnd,
                                                                      gpointer self);
VALA_EXTERN void sway_notification_center_noti_daemon_set_dnd (SwayNotificationCenterNotiDaemon* self,
                                                   gboolean value);
static void sway_notification_center_widgets_dnd_finalize (GObject * obj);
static GType sway_notification_center_widgets_dnd_get_type_once (void);
static void _vala_sway_notification_center_widgets_dnd_get_property (GObject * object,
                                                              guint property_id,
                                                              GValue * value,
                                                              GParamSpec * pspec);

static inline gpointer
sway_notification_center_widgets_dnd_get_instance_private (SwayNotificationCenterWidgetsDnd* self)
{
	return G_STRUCT_MEMBER_P (self, SwayNotificationCenterWidgetsDnd_private_offset);
}

static void
_sway_notification_center_widgets_dnd_switch_active_changed_cb_g_object_notify (GObject* _sender,
                                                                                GParamSpec* pspec,
                                                                                gpointer self)
{
	sway_notification_center_widgets_dnd_switch_active_changed_cb ((SwayNotificationCenterWidgetsDnd*) self);
}

static void
__lambda50_ (SwayNotificationCenterWidgetsDnd* self,
             gboolean dnd)
{
	GtkSwitch* _tmp0_;
	guint _tmp1_;
	GQuark _tmp2_;
	GtkSwitch* _tmp3_;
	GtkSwitch* _tmp4_;
	_tmp0_ = self->priv->dnd_button;
	g_signal_parse_name ("notify::active", G_TYPE_OBJECT, &_tmp1_, &_tmp2_, TRUE);
	g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, _tmp2_, NULL, (GCallback) _sway_notification_center_widgets_dnd_switch_active_changed_cb_g_object_notify, self);
	_tmp3_ = self->priv->dnd_button;
	gtk_switch_set_active (_tmp3_, dnd);
	_tmp4_ = self->priv->dnd_button;
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, G_TYPE_OBJECT, GObject), "notify::active", (GCallback) _sway_notification_center_widgets_dnd_switch_active_changed_cb_g_object_notify, self, 0);
}

static void
___lambda50__sway_notification_center_noti_daemon_on_dnd_toggle (SwayNotificationCenterNotiDaemon* _sender,
                                                                 gboolean dnd,
                                                                 gpointer self)
{
	__lambda50_ ((SwayNotificationCenterWidgetsDnd*) self, dnd);
}

SwayNotificationCenterWidgetsDnd*
sway_notification_center_widgets_dnd_construct (GType object_type,
                                                const gchar* suffix)
{
	SwayNotificationCenterWidgetsDnd * self = NULL;
	JsonObject* config = NULL;
	JsonObject* _tmp0_;
	JsonObject* _tmp1_;
	const gchar* _tmp7_;
	GtkLabel* _tmp8_;
	GtkLabel* _tmp9_;
	GtkLabel* _tmp10_;
	GtkLabel* _tmp11_;
	SwayNotificationCenterNotiDaemon* _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	GtkSwitch* _tmp15_ = NULL;
	GtkSwitch* _tmp16_;
	SwayNotificationCenterNotiDaemon* _tmp17_;
	GtkSwitch* _tmp18_;
	GtkSwitch* _tmp19_;
	GtkSwitch* _tmp20_;
	GtkSwitch* _tmp21_;
	g_return_val_if_fail (suffix != NULL, NULL);
	self = (SwayNotificationCenterWidgetsDnd*) sway_notification_center_widgets_base_widget_construct (object_type, suffix);
	_tmp0_ = sway_notification_center_widgets_base_widget_get_config (G_TYPE_CHECK_INSTANCE_CAST (self, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidget), G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
	config = _tmp0_;
	_tmp1_ = config;
	if (_tmp1_ != NULL) {
		gchar* title = NULL;
		JsonObject* _tmp2_;
		gpointer _tmp3_;
		const gchar* _tmp4_;
		_tmp2_ = config;
		_tmp3_ = sway_notification_center_widgets_base_widget_get_prop (G_TYPE_CHECK_INSTANCE_CAST (self, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidget), G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp2_, "text", NULL);
		title = (gchar*) _tmp3_;
		_tmp4_ = title;
		if (_tmp4_ != NULL) {
			const gchar* _tmp5_;
			gchar* _tmp6_;
			_tmp5_ = title;
			_tmp6_ = g_strdup (_tmp5_);
			_g_free0 (self->priv->title);
			self->priv->title = _tmp6_;
		}
		_g_free0 (title);
	}
	_tmp7_ = self->priv->title;
	_tmp8_ = (GtkLabel*) gtk_label_new (_tmp7_);
	if (_tmp8_) {
		g_object_set_data ((GObject *) _tmp8_, "vala-creation-function", "SwayNotificationCenter.Widgets.Dnd.new");
	}
	g_object_ref_sink (_tmp8_);
	_g_object_unref0 (self->priv->title_widget);
	self->priv->title_widget = _tmp8_;
	_tmp9_ = self->priv->title_widget;
	gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE);
	_tmp10_ = self->priv->title_widget;
	gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START);
	_tmp11_ = self->priv->title_widget;
	gtk_box_append (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
	_tmp12_ = sway_notification_center_noti_daemon;
	_tmp13_ = sway_notification_center_noti_daemon_get_dnd (_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = (GtkSwitch*) gtk_switch_new ();
	gtk_switch_set_active (_tmp15_, _tmp14_);
	g_object_ref_sink (_tmp15_);
	_g_object_unref0 (self->priv->dnd_button);
	self->priv->dnd_button = _tmp15_;
	_tmp16_ = self->priv->dnd_button;
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, G_TYPE_OBJECT, GObject), "notify::active", (GCallback) _sway_notification_center_widgets_dnd_switch_active_changed_cb_g_object_notify, self, 0);
	_tmp17_ = sway_notification_center_noti_daemon;
	g_signal_connect_object (_tmp17_, "on-dnd-toggle", (GCallback) ___lambda50__sway_notification_center_noti_daemon_on_dnd_toggle, self, 0);
	_tmp18_ = self->priv->dnd_button;
	gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE);
	_tmp19_ = self->priv->dnd_button;
	gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER);
	_tmp20_ = self->priv->dnd_button;
	gtk_widget_add_css_class (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), "control-center-dnd");
	_tmp21_ = self->priv->dnd_button;
	gtk_box_append (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget));
	_json_object_unref0 (config);
	return self;
}

SwayNotificationCenterWidgetsDnd*
sway_notification_center_widgets_dnd_new (const gchar* suffix)
{
	return sway_notification_center_widgets_dnd_construct (SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, suffix);
}

static void
sway_notification_center_widgets_dnd_switch_active_changed_cb (SwayNotificationCenterWidgetsDnd* self)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	GtkSwitch* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_WIDGETS_IS_DND (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	_tmp1_ = self->priv->dnd_button;
	_tmp2_ = gtk_switch_get_active (_tmp1_);
	_tmp3_ = _tmp2_;
	sway_notification_center_noti_daemon_set_dnd (_tmp0_, _tmp3_);
}

static const gchar*
sway_notification_center_widgets_dnd_real_get_widget_name (SwayNotificationCenterWidgetsBaseWidget* base)
{
	const gchar* result;
	SwayNotificationCenterWidgetsDnd* self;
	self = G_TYPE_CHECK_INSTANCE_CAST (base, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDnd);
	result = "dnd";
	return result;
}

static void
sway_notification_center_widgets_dnd_class_init (SwayNotificationCenterWidgetsDndClass * klass,
                                                 gpointer klass_data)
{
	sway_notification_center_widgets_dnd_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SwayNotificationCenterWidgetsDnd_private_offset);
	SWAY_NOTIFICATION_CENTER_WIDGETS_BASE_WIDGET_CLASS (klass)->get_widget_name = (const gchar* (*) (SwayNotificationCenterWidgetsBaseWidget*)) sway_notification_center_widgets_dnd_real_get_widget_name;
	G_OBJECT_CLASS (klass)->get_property = _vala_sway_notification_center_widgets_dnd_get_property;
	G_OBJECT_CLASS (klass)->finalize = sway_notification_center_widgets_dnd_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), SWAY_NOTIFICATION_CENTER_WIDGETS_DND_WIDGET_NAME_PROPERTY, sway_notification_center_widgets_dnd_properties[SWAY_NOTIFICATION_CENTER_WIDGETS_DND_WIDGET_NAME_PROPERTY] = g_param_spec_string ("widget-name", "widget-name", "widget-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

static void
sway_notification_center_widgets_dnd_instance_init (SwayNotificationCenterWidgetsDnd * self,
                                                    gpointer klass)
{
	gchar* _tmp0_;
	self->priv = sway_notification_center_widgets_dnd_get_instance_private (self);
	_tmp0_ = g_strdup ("Do Not Disturb");
	self->priv->title = _tmp0_;
}

static void
sway_notification_center_widgets_dnd_finalize (GObject * obj)
{
	SwayNotificationCenterWidgetsDnd * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDnd);
	_g_object_unref0 (self->priv->title_widget);
	_g_object_unref0 (self->priv->dnd_button);
	_g_free0 (self->priv->title);
	G_OBJECT_CLASS (sway_notification_center_widgets_dnd_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
sway_notification_center_widgets_dnd_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SwayNotificationCenterWidgetsDndClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sway_notification_center_widgets_dnd_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SwayNotificationCenterWidgetsDnd), 0, (GInstanceInitFunc) sway_notification_center_widgets_dnd_instance_init, NULL };
	GType sway_notification_center_widgets_dnd_type_id;
	sway_notification_center_widgets_dnd_type_id = g_type_register_static (SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, "SwayNotificationCenterWidgetsDnd", &g_define_type_info, 0);
	SwayNotificationCenterWidgetsDnd_private_offset = g_type_add_instance_private (sway_notification_center_widgets_dnd_type_id, sizeof (SwayNotificationCenterWidgetsDndPrivate));
	return sway_notification_center_widgets_dnd_type_id;
}

GType
sway_notification_center_widgets_dnd_get_type (void)
{
	static gsize sway_notification_center_widgets_dnd_type_id__once = 0;
	if (g_once_init_enter (&sway_notification_center_widgets_dnd_type_id__once)) {
		GType sway_notification_center_widgets_dnd_type_id;
		sway_notification_center_widgets_dnd_type_id = sway_notification_center_widgets_dnd_get_type_once ();
		g_once_init_leave (&sway_notification_center_widgets_dnd_type_id__once, sway_notification_center_widgets_dnd_type_id);
	}
	return sway_notification_center_widgets_dnd_type_id__once;
}

static void
_vala_sway_notification_center_widgets_dnd_get_property (GObject * object,
                                                         guint property_id,
                                                         GValue * value,
                                                         GParamSpec * pspec)
{
	SwayNotificationCenterWidgetsDnd * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_DND, SwayNotificationCenterWidgetsDnd);
	switch (property_id) {
		case SWAY_NOTIFICATION_CENTER_WIDGETS_DND_WIDGET_NAME_PROPERTY:
		g_value_set_string (value, sway_notification_center_widgets_base_widget_get_widget_name (G_TYPE_CHECK_INSTANCE_CAST (self, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_BASE_WIDGET, SwayNotificationCenterWidgetsBaseWidget)));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

