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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <adwaita.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <libsoup/soup.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 TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE (tuba_views_admin_timeline_pagination_timeline_get_type ())
#define TUBA_VIEWS_ADMIN_TIMELINE_PAGINATION_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE, TubaViewsAdminTimelinePaginationTimeline))
#define TUBA_VIEWS_ADMIN_TIMELINE_PAGINATION_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE, TubaViewsAdminTimelinePaginationTimelineClass))
#define TUBA_VIEWS_ADMIN_TIMELINE_IS_PAGINATION_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE))
#define TUBA_VIEWS_ADMIN_TIMELINE_IS_PAGINATION_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE))
#define TUBA_VIEWS_ADMIN_TIMELINE_PAGINATION_TIMELINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE, TubaViewsAdminTimelinePaginationTimelineClass))

typedef struct _TubaViewsAdminTimelinePaginationTimeline TubaViewsAdminTimelinePaginationTimeline;
typedef struct _TubaViewsAdminTimelinePaginationTimelineClass TubaViewsAdminTimelinePaginationTimelineClass;
typedef struct _TubaViewsAdminTimelinePaginationTimelinePrivate TubaViewsAdminTimelinePaginationTimelinePrivate;

#define TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW (tuba_views_admin_timeline_domain_allow_get_type ())
#define TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW, TubaViewsAdminTimelineDomainAllow))
#define TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW, TubaViewsAdminTimelineDomainAllowClass))
#define TUBA_VIEWS_ADMIN_TIMELINE_IS_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW))
#define TUBA_VIEWS_ADMIN_TIMELINE_IS_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW))
#define TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW, TubaViewsAdminTimelineDomainAllowClass))

typedef struct _TubaViewsAdminTimelineDomainAllow TubaViewsAdminTimelineDomainAllow;
typedef struct _TubaViewsAdminTimelineDomainAllowClass TubaViewsAdminTimelineDomainAllowClass;
typedef struct _TubaViewsAdminTimelineDomainAllowPrivate TubaViewsAdminTimelineDomainAllowPrivate;
enum  {
	TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW_0_PROPERTY,
	TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW_NUM_PROPERTIES
};
static GParamSpec* tuba_views_admin_timeline_domain_allow_properties[TUBA_VIEWS_ADMIN_TIMELINE_DOMAIN_ALLOW_NUM_PROPERTIES];

#define TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW (tuba_widgets_admin_domain_allow_get_type ())
#define TUBA_WIDGETS_ADMIN_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW, TubaWidgetsAdminDomainAllow))
#define TUBA_WIDGETS_ADMIN_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW, TubaWidgetsAdminDomainAllowClass))
#define TUBA_WIDGETS_ADMIN_IS_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW))
#define TUBA_WIDGETS_ADMIN_IS_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW))
#define TUBA_WIDGETS_ADMIN_DOMAIN_ALLOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_WIDGETS_ADMIN_TYPE_DOMAIN_ALLOW, TubaWidgetsAdminDomainAllowClass))

typedef struct _TubaWidgetsAdminDomainAllow TubaWidgetsAdminDomainAllow;
typedef struct _TubaWidgetsAdminDomainAllowClass TubaWidgetsAdminDomainAllowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block114Data Block114Data;

#define TUBA_TYPE_REQUEST (tuba_request_get_type ())
#define TUBA_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_TYPE_REQUEST, TubaRequest))
#define TUBA_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_TYPE_REQUEST, TubaRequestClass))
#define TUBA_IS_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_TYPE_REQUEST))
#define TUBA_IS_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_TYPE_REQUEST))
#define TUBA_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_TYPE_REQUEST, TubaRequestClass))

typedef struct _TubaRequest TubaRequest;
typedef struct _TubaRequestClass TubaRequestClass;

#define TUBA_TYPE_ENTITY (tuba_entity_get_type ())
#define TUBA_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_TYPE_ENTITY, TubaEntity))
#define TUBA_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_TYPE_ENTITY, TubaEntityClass))
#define TUBA_IS_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_TYPE_ENTITY))
#define TUBA_IS_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_TYPE_ENTITY))
#define TUBA_ENTITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_TYPE_ENTITY, TubaEntityClass))

typedef struct _TubaEntity TubaEntity;
typedef struct _TubaEntityClass TubaEntityClass;

#define TUBA_API_TYPE_ACCOUNT (tuba_api_account_get_type ())
#define TUBA_API_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_API_TYPE_ACCOUNT, TubaAPIAccount))
#define TUBA_API_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_API_TYPE_ACCOUNT, TubaAPIAccountClass))
#define TUBA_API_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_API_TYPE_ACCOUNT))
#define TUBA_API_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_API_TYPE_ACCOUNT))
#define TUBA_API_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_API_TYPE_ACCOUNT, TubaAPIAccountClass))

typedef struct _TubaAPIAccount TubaAPIAccount;
typedef struct _TubaAPIAccountClass TubaAPIAccountClass;

#define TUBA_TYPE_INSTANCE_ACCOUNT (tuba_instance_account_get_type ())
#define TUBA_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_TYPE_INSTANCE_ACCOUNT, TubaInstanceAccount))
#define TUBA_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_TYPE_INSTANCE_ACCOUNT, TubaInstanceAccountClass))
#define TUBA_IS_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_TYPE_INSTANCE_ACCOUNT))
#define TUBA_IS_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_TYPE_INSTANCE_ACCOUNT))
#define TUBA_INSTANCE_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_TYPE_INSTANCE_ACCOUNT, TubaInstanceAccountClass))

typedef struct _TubaInstanceAccount TubaInstanceAccount;
typedef struct _TubaInstanceAccountClass TubaInstanceAccountClass;

#define TUBA_TYPE_ACCOUNT_STORE (tuba_account_store_get_type ())
#define TUBA_ACCOUNT_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_TYPE_ACCOUNT_STORE, TubaAccountStore))
#define TUBA_ACCOUNT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_TYPE_ACCOUNT_STORE, TubaAccountStoreClass))
#define TUBA_IS_ACCOUNT_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_TYPE_ACCOUNT_STORE))
#define TUBA_IS_ACCOUNT_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_TYPE_ACCOUNT_STORE))
#define TUBA_ACCOUNT_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_TYPE_ACCOUNT_STORE, TubaAccountStoreClass))

typedef struct _TubaAccountStore TubaAccountStore;
typedef struct _TubaAccountStoreClass TubaAccountStoreClass;
typedef void (*TubaNetworkSuccessCallback) (GInputStream* in_stream, SoupMessageHeaders* response_headers, gpointer user_data, GError** error);
typedef void (*TubaNetworkErrorCallback) (gint32 code, const gchar* reason, gpointer user_data);

#define TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW (tuba_api_admin_domain_allow_get_type ())
#define TUBA_API_ADMIN_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW, TubaAPIAdminDomainAllow))
#define TUBA_API_ADMIN_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW, TubaAPIAdminDomainAllowClass))
#define TUBA_API_ADMIN_IS_DOMAIN_ALLOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW))
#define TUBA_API_ADMIN_IS_DOMAIN_ALLOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW))
#define TUBA_API_ADMIN_DOMAIN_ALLOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW, TubaAPIAdminDomainAllowClass))

typedef struct _TubaAPIAdminDomainAllow TubaAPIAdminDomainAllow;
typedef struct _TubaAPIAdminDomainAllowClass TubaAPIAdminDomainAllowClass;

struct _TubaViewsAdminTimelinePaginationTimeline {
	GtkBox parent_instance;
	TubaViewsAdminTimelinePaginationTimelinePrivate * priv;
	GtkListBox* content;
};

struct _TubaViewsAdminTimelinePaginationTimelineClass {
	GtkBoxClass parent_class;
	gboolean (*request) (TubaViewsAdminTimelinePaginationTimeline* self);
	GtkWidget* (*on_create_model_widget) (TubaViewsAdminTimelinePaginationTimeline* self, GObject* obj);
	void (*on_content_item_activated) (TubaViewsAdminTimelinePaginationTimeline* self, GtkListBoxRow* row);
};

struct _TubaViewsAdminTimelineDomainAllow {
	TubaViewsAdminTimelinePaginationTimeline parent_instance;
	TubaViewsAdminTimelineDomainAllowPrivate * priv;
};

struct _TubaViewsAdminTimelineDomainAllowClass {
	TubaViewsAdminTimelinePaginationTimelineClass parent_class;
};

struct _Block114Data {
	int _ref_count_;
	TubaViewsAdminTimelineDomainAllow* self;
	AdwAlertDialog* dlg;
	TubaWidgetsAdminDomainAllow* widget;
	gchar* domain_allow_id;
};

static gpointer tuba_views_admin_timeline_domain_allow_parent_class = NULL;
VALA_EXTERN TubaAccountStore* tuba_accounts;

VALA_EXTERN GType tuba_views_admin_timeline_pagination_timeline_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaViewsAdminTimelinePaginationTimeline, g_object_unref)
VALA_EXTERN GType tuba_views_admin_timeline_domain_allow_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaViewsAdminTimelineDomainAllow, g_object_unref)
VALA_EXTERN GtkWidget* tuba_views_admin_timeline_pagination_timeline_on_create_model_widget (TubaViewsAdminTimelinePaginationTimeline* self,
                                                                                 GObject* obj);
static GtkWidget* tuba_views_admin_timeline_domain_allow_real_on_create_model_widget (TubaViewsAdminTimelinePaginationTimeline* base,
                                                                               GObject* obj);
VALA_EXTERN GType tuba_widgets_admin_domain_allow_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaWidgetsAdminDomainAllow, g_object_unref)
static void tuba_views_admin_timeline_domain_allow_on_remove (TubaViewsAdminTimelineDomainAllow* self,
                                                       TubaWidgetsAdminDomainAllow* widget,
                                                       const gchar* domain_allow_id);
static void _tuba_views_admin_timeline_domain_allow_on_remove_tuba_widgets_admin_domain_allow_removed (TubaWidgetsAdminDomainAllow* _sender,
                                                                                                const gchar* domain_allow_id,
                                                                                                gpointer self);
static Block114Data* block114_data_ref (Block114Data* _data114_);
static void block114_data_unref (void * _userdata_);
static void __lambda254_ (Block114Data* _data114_,
                   GObject* obj,
                   GAsyncResult* res);
VALA_EXTERN TubaRequest* tuba_request_new_DELETE (const gchar* url);
VALA_EXTERN TubaRequest* tuba_request_construct_DELETE (GType object_type,
                                            const gchar* url);
VALA_EXTERN GType tuba_request_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaRequest, g_object_unref)
VALA_EXTERN GType tuba_entity_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaEntity, g_object_unref)
VALA_EXTERN GType tuba_api_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaAPIAccount, g_object_unref)
VALA_EXTERN GType tuba_instance_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaInstanceAccount, g_object_unref)
VALA_EXTERN TubaRequest* tuba_request_with_account (TubaRequest* self,
                                        TubaInstanceAccount* account);
VALA_EXTERN GType tuba_account_store_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaAccountStore, g_object_unref)
VALA_EXTERN TubaInstanceAccount* tuba_account_store_get_active (TubaAccountStore* self);
VALA_EXTERN TubaRequest* tuba_request_then (TubaRequest* self,
                                TubaNetworkSuccessCallback cb,
                                gpointer cb_target,
                                GDestroyNotify cb_target_destroy_notify);
static void ___lambda255_ (Block114Data* _data114_,
                    GError** error);
VALA_EXTERN void tuba_views_admin_timeline_pagination_timeline_request_idle (TubaViewsAdminTimelinePaginationTimeline* self);
static void ____lambda255__tuba_network_success_callback (GInputStream* in_stream,
                                                   SoupMessageHeaders* response_headers,
                                                   gpointer self,
                                                   GError** error);
VALA_EXTERN TubaRequest* tuba_request_on_error (TubaRequest* self,
                                    TubaNetworkErrorCallback cb,
                                    gpointer cb_target,
                                    GDestroyNotify cb_target_destroy_notify);
static void ___lambda256_ (Block114Data* _data114_,
                    gint32 code,
                    const gchar* message);
static void ____lambda256__tuba_network_error_callback (gint32 code,
                                                 const gchar* reason,
                                                 gpointer self);
VALA_EXTERN TubaRequest* tuba_request_exec (TubaRequest* self);
static void ___lambda254__gasync_ready_callback (GObject* source_object,
                                          GAsyncResult* res,
                                          gpointer self);
VALA_EXTERN TubaViewsAdminTimelineDomainAllow* tuba_views_admin_timeline_domain_allow_new (void);
VALA_EXTERN TubaViewsAdminTimelineDomainAllow* tuba_views_admin_timeline_domain_allow_construct (GType object_type);
VALA_EXTERN TubaViewsAdminTimelinePaginationTimeline* tuba_views_admin_timeline_pagination_timeline_new (void);
VALA_EXTERN TubaViewsAdminTimelinePaginationTimeline* tuba_views_admin_timeline_pagination_timeline_construct (GType object_type);
static GObject * tuba_views_admin_timeline_domain_allow_constructor (GType type,
                                                              guint n_construct_properties,
                                                              GObjectConstructParam * construct_properties);
VALA_EXTERN void tuba_views_admin_timeline_pagination_timeline_set_url (TubaViewsAdminTimelinePaginationTimeline* self,
                                                            const gchar* value);
VALA_EXTERN GType tuba_api_admin_domain_allow_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TubaAPIAdminDomainAllow, g_object_unref)
VALA_EXTERN void tuba_views_admin_timeline_pagination_timeline_set_accepts (TubaViewsAdminTimelinePaginationTimeline* self,
                                                                GType value);
static void tuba_views_admin_timeline_domain_allow_finalize (GObject * obj);
static GType tuba_views_admin_timeline_domain_allow_get_type_once (void);

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

static void
_tuba_views_admin_timeline_domain_allow_on_remove_tuba_widgets_admin_domain_allow_removed (TubaWidgetsAdminDomainAllow* _sender,
                                                                                           const gchar* domain_allow_id,
                                                                                           gpointer self)
{
	tuba_views_admin_timeline_domain_allow_on_remove ((TubaViewsAdminTimelineDomainAllow*) self, _sender, domain_allow_id);
}

static GtkWidget*
tuba_views_admin_timeline_domain_allow_real_on_create_model_widget (TubaViewsAdminTimelinePaginationTimeline* base,
                                                                    GObject* obj)
{
	TubaViewsAdminTimelineDomainAllow * self;
	GtkWidget* widget = NULL;
	GtkWidget* _tmp0_;
	TubaWidgetsAdminDomainAllow* action_row = NULL;
	GtkWidget* _tmp1_;
	TubaWidgetsAdminDomainAllow* _tmp2_;
	TubaWidgetsAdminDomainAllow* _tmp3_;
	GtkWidget* result;
	self = (TubaViewsAdminTimelineDomainAllow*) base;
	g_return_val_if_fail (obj != NULL, NULL);
	_tmp0_ = TUBA_VIEWS_ADMIN_TIMELINE_PAGINATION_TIMELINE_CLASS (tuba_views_admin_timeline_domain_allow_parent_class)->on_create_model_widget (G_TYPE_CHECK_INSTANCE_CAST (self, TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE, TubaViewsAdminTimelinePaginationTimeline), obj);
	widget = _tmp0_;
	_tmp1_ = widget;
	_tmp2_ = _g_object_ref0 (TUBA_WIDGETS_ADMIN_IS_DOMAIN_ALLOW (_tmp1_) ? ((TubaWidgetsAdminDomainAllow*) _tmp1_) : NULL);
	action_row = _tmp2_;
	_tmp3_ = action_row;
	if (_tmp3_ != NULL) {
		TubaWidgetsAdminDomainAllow* _tmp4_;
		_tmp4_ = action_row;
		g_signal_connect_object (_tmp4_, "removed", (GCallback) _tuba_views_admin_timeline_domain_allow_on_remove_tuba_widgets_admin_domain_allow_removed, self, 0);
	}
	result = widget;
	_g_object_unref0 (action_row);
	return result;
}

static Block114Data*
block114_data_ref (Block114Data* _data114_)
{
	g_atomic_int_inc (&_data114_->_ref_count_);
	return _data114_;
}

static void
block114_data_unref (void * _userdata_)
{
	Block114Data* _data114_;
	_data114_ = (Block114Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data114_->_ref_count_)) {
		TubaViewsAdminTimelineDomainAllow* self;
		self = _data114_->self;
		_g_object_unref0 (_data114_->dlg);
		_g_object_unref0 (_data114_->widget);
		_g_free0 (_data114_->domain_allow_id);
		_g_object_unref0 (self);
		g_slice_free (Block114Data, _data114_);
	}
}

static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}

static void
___lambda255_ (Block114Data* _data114_,
               GError** error)
{
	TubaViewsAdminTimelineDomainAllow* self;
	self = _data114_->self;
	gtk_widget_set_sensitive ((GtkWidget*) _data114_->widget, TRUE);
	tuba_views_admin_timeline_pagination_timeline_request_idle ((TubaViewsAdminTimelinePaginationTimeline*) self);
}

static void
____lambda255__tuba_network_success_callback (GInputStream* in_stream,
                                              SoupMessageHeaders* response_headers,
                                              gpointer self,
                                              GError** error)
{
	___lambda255_ (self, error);
}

static void
___lambda256_ (Block114Data* _data114_,
               gint32 code,
               const gchar* message)
{
	TubaViewsAdminTimelineDomainAllow* self;
	self = _data114_->self;
	g_return_if_fail (message != NULL);
	gtk_widget_set_sensitive ((GtkWidget*) _data114_->widget, TRUE);
	g_signal_emit_by_name ((TubaViewsAdminTimelinePaginationTimeline*) self, "on-error", (gint) code, message);
}

static void
____lambda256__tuba_network_error_callback (gint32 code,
                                            const gchar* reason,
                                            gpointer self)
{
	___lambda256_ (self, code, reason);
}

static void
__lambda254_ (Block114Data* _data114_,
              GObject* obj,
              GAsyncResult* res)
{
	TubaViewsAdminTimelineDomainAllow* self;
	const gchar* _tmp0_;
	self = _data114_->self;
	g_return_if_fail (res != NULL);
	_tmp0_ = adw_alert_dialog_choose_finish (_data114_->dlg, res);
	if (g_strcmp0 (_tmp0_, "yes") == 0) {
		const gchar* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		TubaRequest* _tmp4_;
		TubaRequest* _tmp5_;
		TubaAccountStore* _tmp6_;
		TubaInstanceAccount* _tmp7_;
		TubaInstanceAccount* _tmp8_;
		TubaRequest* _tmp9_;
		TubaRequest* _tmp10_;
		TubaRequest* _tmp11_;
		TubaRequest* _tmp12_;
		TubaRequest* _tmp13_;
		TubaRequest* _tmp14_;
		TubaRequest* _tmp15_;
		TubaRequest* _tmp16_;
		gtk_widget_set_sensitive ((GtkWidget*) _data114_->widget, FALSE);
		_tmp1_ = string_to_string (_data114_->domain_allow_id);
		_tmp2_ = g_strconcat ("/api/v1/admin/domain_allows/", _tmp1_, NULL);
		_tmp3_ = _tmp2_;
		_tmp4_ = tuba_request_new_DELETE (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = tuba_accounts;
		_tmp7_ = tuba_account_store_get_active (_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = tuba_request_with_account (_tmp5_, _tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = tuba_request_then (_tmp10_, ____lambda255__tuba_network_success_callback, block114_data_ref (_data114_), block114_data_unref);
		_tmp12_ = _tmp11_;
		_tmp13_ = tuba_request_on_error (_tmp12_, ____lambda256__tuba_network_error_callback, block114_data_ref (_data114_), block114_data_unref);
		_tmp14_ = _tmp13_;
		_tmp15_ = tuba_request_exec (_tmp14_);
		_tmp16_ = _tmp15_;
		_g_object_unref0 (_tmp16_);
		_g_object_unref0 (_tmp14_);
		_g_object_unref0 (_tmp12_);
		_g_object_unref0 (_tmp10_);
		_g_object_unref0 (_tmp5_);
		_g_free0 (_tmp3_);
	}
}

static void
___lambda254__gasync_ready_callback (GObject* source_object,
                                     GAsyncResult* res,
                                     gpointer self)
{
	__lambda254_ (self, source_object, res);
	block114_data_unref (self);
}

static void
tuba_views_admin_timeline_domain_allow_on_remove (TubaViewsAdminTimelineDomainAllow* self,
                                                  TubaWidgetsAdminDomainAllow* widget,
                                                  const gchar* domain_allow_id)
{
	Block114Data* _data114_;
	TubaWidgetsAdminDomainAllow* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	AdwAlertDialog* _tmp6_;
	AdwAlertDialog* _tmp7_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (widget != NULL);
	g_return_if_fail (domain_allow_id != NULL);
	_data114_ = g_slice_new0 (Block114Data);
	_data114_->_ref_count_ = 1;
	_data114_->self = g_object_ref (self);
	_tmp0_ = _g_object_ref0 (widget);
	_g_object_unref0 (_data114_->widget);
	_data114_->widget = _tmp0_;
	_tmp1_ = g_strdup (domain_allow_id);
	_g_free0 (_data114_->domain_allow_id);
	_data114_->domain_allow_id = _tmp1_;
	_tmp2_ = adw_preferences_row_get_title ((AdwPreferencesRow*) _data114_->widget);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strdup_printf (_ ("Remove Federation with %s?"), _tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = (AdwAlertDialog*) adw_alert_dialog_new (_tmp5_, NULL);
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	_g_free0 (_tmp5_);
	_data114_->dlg = _tmp7_;
	adw_alert_dialog_add_response (_data114_->dlg, "no", _ ("Cancel"));
	adw_alert_dialog_set_response_appearance (_data114_->dlg, "no", ADW_RESPONSE_DEFAULT);
	adw_alert_dialog_add_response (_data114_->dlg, "yes", _ ("Remove"));
	adw_alert_dialog_set_response_appearance (_data114_->dlg, "yes", ADW_RESPONSE_DESTRUCTIVE);
	adw_alert_dialog_choose (_data114_->dlg, (GtkWidget*) self, NULL, ___lambda254__gasync_ready_callback, block114_data_ref (_data114_));
	block114_data_unref (_data114_);
	_data114_ = NULL;
}

TubaViewsAdminTimelineDomainAllow*
tuba_views_admin_timeline_domain_allow_construct (GType object_type)
{
	TubaViewsAdminTimelineDomainAllow * self = NULL;
	self = (TubaViewsAdminTimelineDomainAllow*) tuba_views_admin_timeline_pagination_timeline_construct (object_type);
	return self;
}

TubaViewsAdminTimelineDomainAllow*
tuba_views_admin_timeline_domain_allow_new (void)
{
	return tuba_views_admin_timeline_domain_allow_construct (TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW);
}

static GObject *
tuba_views_admin_timeline_domain_allow_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	TubaViewsAdminTimelineDomainAllow * self;
	parent_class = G_OBJECT_CLASS (tuba_views_admin_timeline_domain_allow_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW, TubaViewsAdminTimelineDomainAllow);
	tuba_views_admin_timeline_pagination_timeline_set_url ((TubaViewsAdminTimelinePaginationTimeline*) self, "/api/v1/admin/domain_allows");
	tuba_views_admin_timeline_pagination_timeline_set_accepts ((TubaViewsAdminTimelinePaginationTimeline*) self, TUBA_API_ADMIN_TYPE_DOMAIN_ALLOW);
	return obj;
}

static void
tuba_views_admin_timeline_domain_allow_class_init (TubaViewsAdminTimelineDomainAllowClass * klass,
                                                   gpointer klass_data)
{
	tuba_views_admin_timeline_domain_allow_parent_class = g_type_class_peek_parent (klass);
	((TubaViewsAdminTimelinePaginationTimelineClass *) klass)->on_create_model_widget = (GtkWidget* (*) (TubaViewsAdminTimelinePaginationTimeline*, GObject*)) tuba_views_admin_timeline_domain_allow_real_on_create_model_widget;
	G_OBJECT_CLASS (klass)->constructor = tuba_views_admin_timeline_domain_allow_constructor;
	G_OBJECT_CLASS (klass)->finalize = tuba_views_admin_timeline_domain_allow_finalize;
}

static void
tuba_views_admin_timeline_domain_allow_instance_init (TubaViewsAdminTimelineDomainAllow * self,
                                                      gpointer klass)
{
}

static void
tuba_views_admin_timeline_domain_allow_finalize (GObject * obj)
{
	TubaViewsAdminTimelineDomainAllow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TUBA_VIEWS_ADMIN_TIMELINE_TYPE_DOMAIN_ALLOW, TubaViewsAdminTimelineDomainAllow);
	g_debug ("DomainAllow.vala:3: Destroying DomainAllow");
	G_OBJECT_CLASS (tuba_views_admin_timeline_domain_allow_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
tuba_views_admin_timeline_domain_allow_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (TubaViewsAdminTimelineDomainAllowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tuba_views_admin_timeline_domain_allow_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TubaViewsAdminTimelineDomainAllow), 0, (GInstanceInitFunc) tuba_views_admin_timeline_domain_allow_instance_init, NULL };
	GType tuba_views_admin_timeline_domain_allow_type_id;
	tuba_views_admin_timeline_domain_allow_type_id = g_type_register_static (TUBA_VIEWS_ADMIN_TIMELINE_TYPE_PAGINATION_TIMELINE, "TubaViewsAdminTimelineDomainAllow", &g_define_type_info, 0);
	return tuba_views_admin_timeline_domain_allow_type_id;
}

GType
tuba_views_admin_timeline_domain_allow_get_type (void)
{
	static gsize tuba_views_admin_timeline_domain_allow_type_id__once = 0;
	if (g_once_init_enter (&tuba_views_admin_timeline_domain_allow_type_id__once)) {
		GType tuba_views_admin_timeline_domain_allow_type_id;
		tuba_views_admin_timeline_domain_allow_type_id = tuba_views_admin_timeline_domain_allow_get_type_once ();
		g_once_init_leave (&tuba_views_admin_timeline_domain_allow_type_id__once, tuba_views_admin_timeline_domain_allow_type_id);
	}
	return tuba_views_admin_timeline_domain_allow_type_id__once;
}

