/* warning-dialog.c generated by valac 0.56.19, the Vala compiler
 * generated from warning-dialog.vala, do not modify */

#include "protonplus_core.h"
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <adwaita.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

enum  {
	PROTON_PLUS_WIDGETS_MAIN_WARNING_DIALOG_0_PROPERTY,
	PROTON_PLUS_WIDGETS_MAIN_WARNING_DIALOG_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_main_warning_dialog_properties[PROTON_PLUS_WIDGETS_MAIN_WARNING_DIALOG_NUM_PROPERTIES];

static gpointer proton_plus_widgets_main_warning_dialog_parent_class = NULL;

static GType proton_plus_widgets_main_warning_dialog_get_type_once (void);

ProtonPlusWidgetsMainWarningDialog*
proton_plus_widgets_main_warning_dialog_construct (GType object_type,
                                                   const gchar* heading,
                                                   const gchar* body)
{
	ProtonPlusWidgetsMainWarningDialog * self = NULL;
	g_return_val_if_fail (heading != NULL, NULL);
	g_return_val_if_fail (body != NULL, NULL);
	self = (ProtonPlusWidgetsMainWarningDialog*) g_object_new (object_type, NULL);
	adw_alert_dialog_set_heading ((AdwAlertDialog*) self, heading);
	adw_alert_dialog_set_body ((AdwAlertDialog*) self, body);
	adw_alert_dialog_add_response ((AdwAlertDialog*) self, "ok", _ ("OK"));
	adw_alert_dialog_set_response_appearance ((AdwAlertDialog*) self, "ok", ADW_RESPONSE_DEFAULT);
	return self;
}

ProtonPlusWidgetsMainWarningDialog*
proton_plus_widgets_main_warning_dialog_new (const gchar* heading,
                                             const gchar* body)
{
	return proton_plus_widgets_main_warning_dialog_construct (PROTON_PLUS_WIDGETS_MAIN_TYPE_WARNING_DIALOG, heading, body);
}

static void
proton_plus_widgets_main_warning_dialog_class_init (ProtonPlusWidgetsMainWarningDialogClass * klass,
                                                    gpointer klass_data)
{
	proton_plus_widgets_main_warning_dialog_parent_class = g_type_class_peek_parent (klass);
}

static void
proton_plus_widgets_main_warning_dialog_instance_init (ProtonPlusWidgetsMainWarningDialog * self,
                                                       gpointer klass)
{
}

static GType
proton_plus_widgets_main_warning_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsMainWarningDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_main_warning_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsMainWarningDialog), 0, (GInstanceInitFunc) proton_plus_widgets_main_warning_dialog_instance_init, NULL };
	GType proton_plus_widgets_main_warning_dialog_type_id;
	proton_plus_widgets_main_warning_dialog_type_id = g_type_register_static (adw_alert_dialog_get_type (), "ProtonPlusWidgetsMainWarningDialog", &g_define_type_info, 0);
	return proton_plus_widgets_main_warning_dialog_type_id;
}

GType
proton_plus_widgets_main_warning_dialog_get_type (void)
{
	static volatile gsize proton_plus_widgets_main_warning_dialog_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_main_warning_dialog_type_id__once)) {
		GType proton_plus_widgets_main_warning_dialog_type_id;
		proton_plus_widgets_main_warning_dialog_type_id = proton_plus_widgets_main_warning_dialog_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_main_warning_dialog_type_id__once, proton_plus_widgets_main_warning_dialog_type_id);
	}
	return proton_plus_widgets_main_warning_dialog_type_id__once;
}

