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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <libsoup/soup.h>
#include <handy.h>
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <json-glib/json-glib.h>
#include <gee.h>

#define TOOTLE_WIDGETS_TYPE_STATUS (tootle_widgets_status_get_type ())
#define TOOTLE_WIDGETS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatus))
#define TOOTLE_WIDGETS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatusClass))
#define TOOTLE_WIDGETS_IS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_TYPE_STATUS))
#define TOOTLE_WIDGETS_IS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_TYPE_STATUS))
#define TOOTLE_WIDGETS_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatusClass))

typedef struct _TootleWidgetsStatus TootleWidgetsStatus;
typedef struct _TootleWidgetsStatusClass TootleWidgetsStatusClass;
typedef struct _TootleWidgetsStatusPrivate TootleWidgetsStatusPrivate;

#define TOOTLE_WIDGETS_TYPE_RICH_LABEL (tootle_widgets_rich_label_get_type ())
#define TOOTLE_WIDGETS_RICH_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_TYPE_RICH_LABEL, TootleWidgetsRichLabel))
#define TOOTLE_WIDGETS_RICH_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_TYPE_RICH_LABEL, TootleWidgetsRichLabelClass))
#define TOOTLE_WIDGETS_IS_RICH_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_TYPE_RICH_LABEL))
#define TOOTLE_WIDGETS_IS_RICH_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_TYPE_RICH_LABEL))
#define TOOTLE_WIDGETS_RICH_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_TYPE_RICH_LABEL, TootleWidgetsRichLabelClass))

typedef struct _TootleWidgetsRichLabel TootleWidgetsRichLabel;
typedef struct _TootleWidgetsRichLabelClass TootleWidgetsRichLabelClass;

#define TOOTLE_WIDGETS_TYPE_AVATAR (tootle_widgets_avatar_get_type ())
#define TOOTLE_WIDGETS_AVATAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_TYPE_AVATAR, TootleWidgetsAvatar))
#define TOOTLE_WIDGETS_AVATAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_TYPE_AVATAR, TootleWidgetsAvatarClass))
#define TOOTLE_WIDGETS_IS_AVATAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_TYPE_AVATAR))
#define TOOTLE_WIDGETS_IS_AVATAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_TYPE_AVATAR))
#define TOOTLE_WIDGETS_AVATAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_TYPE_AVATAR, TootleWidgetsAvatarClass))

typedef struct _TootleWidgetsAvatar TootleWidgetsAvatar;
typedef struct _TootleWidgetsAvatarClass TootleWidgetsAvatarClass;

#define TOOTLE_WIDGETS_TYPE_MARKUP_VIEW (tootle_widgets_markup_view_get_type ())
#define TOOTLE_WIDGETS_MARKUP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_TYPE_MARKUP_VIEW, TootleWidgetsMarkupView))
#define TOOTLE_WIDGETS_MARKUP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_TYPE_MARKUP_VIEW, TootleWidgetsMarkupViewClass))
#define TOOTLE_WIDGETS_IS_MARKUP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_TYPE_MARKUP_VIEW))
#define TOOTLE_WIDGETS_IS_MARKUP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_TYPE_MARKUP_VIEW))
#define TOOTLE_WIDGETS_MARKUP_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_TYPE_MARKUP_VIEW, TootleWidgetsMarkupViewClass))

typedef struct _TootleWidgetsMarkupView TootleWidgetsMarkupView;
typedef struct _TootleWidgetsMarkupViewClass TootleWidgetsMarkupViewClass;

#define TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX (tootle_widgets_attachment_box_get_type ())
#define TOOTLE_WIDGETS_ATTACHMENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX, TootleWidgetsAttachmentBox))
#define TOOTLE_WIDGETS_ATTACHMENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX, TootleWidgetsAttachmentBoxClass))
#define TOOTLE_WIDGETS_ATTACHMENT_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX))
#define TOOTLE_WIDGETS_ATTACHMENT_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX))
#define TOOTLE_WIDGETS_ATTACHMENT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX, TootleWidgetsAttachmentBoxClass))

typedef struct _TootleWidgetsAttachmentBox TootleWidgetsAttachmentBox;
typedef struct _TootleWidgetsAttachmentBoxClass TootleWidgetsAttachmentBoxClass;

#define TOOTLE_TYPE_ENTITY (tootle_entity_get_type ())
#define TOOTLE_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_ENTITY, TootleEntity))
#define TOOTLE_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_ENTITY, TootleEntityClass))
#define TOOTLE_IS_ENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_ENTITY))
#define TOOTLE_IS_ENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_ENTITY))
#define TOOTLE_ENTITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_ENTITY, TootleEntityClass))

typedef struct _TootleEntity TootleEntity;
typedef struct _TootleEntityClass TootleEntityClass;

#define TOOTLE_API_TYPE_STATUS (tootle_api_status_get_type ())
#define TOOTLE_API_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_API_TYPE_STATUS, TootleAPIStatus))
#define TOOTLE_API_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_API_TYPE_STATUS, TootleAPIStatusClass))
#define TOOTLE_API_IS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_API_TYPE_STATUS))
#define TOOTLE_API_IS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_API_TYPE_STATUS))
#define TOOTLE_API_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_API_TYPE_STATUS, TootleAPIStatusClass))

typedef struct _TootleAPIStatus TootleAPIStatus;
typedef struct _TootleAPIStatusClass TootleAPIStatusClass;
typedef enum  {
	TOOTLE_API_NOTIFICATION_TYPE_MENTION,
	TOOTLE_API_NOTIFICATION_TYPE_REBLOG,
	TOOTLE_API_NOTIFICATION_TYPE_REBLOG_REMOTE_USER,
	TOOTLE_API_NOTIFICATION_TYPE_FAVOURITE,
	TOOTLE_API_NOTIFICATION_TYPE_FOLLOW,
	TOOTLE_API_NOTIFICATION_TYPE_FOLLOW_REQUEST,
	TOOTLE_API_NOTIFICATION_TYPE_WATCHLIST
} TootleAPINotificationType;

#define TOOTLE_API_TYPE_NOTIFICATION_TYPE (tootle_api_notification_type_get_type ())
typedef enum  {
	TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE,
	TOOTLE_WIDGETS_STATUS_THREAD_ROLE_START,
	TOOTLE_WIDGETS_STATUS_THREAD_ROLE_MIDDLE,
	TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END
} TootleWidgetsStatusThreadRole;

#define TOOTLE_WIDGETS_STATUS_TYPE_THREAD_ROLE (tootle_widgets_status_thread_role_get_type ())
enum  {
	TOOTLE_WIDGETS_STATUS_0_PROPERTY,
	TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY,
	TOOTLE_WIDGETS_STATUS_KIND_PROPERTY,
	TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY,
	TOOTLE_WIDGETS_STATUS_SPOILER_TEXT_PROPERTY,
	TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY,
	TOOTLE_WIDGETS_STATUS_DATE_PROPERTY,
	TOOTLE_WIDGETS_STATUS_TITLE_TEXT_PROPERTY,
	TOOTLE_WIDGETS_STATUS_SUBTITLE_TEXT_PROPERTY,
	TOOTLE_WIDGETS_STATUS_AVATAR_URL_PROPERTY,
	TOOTLE_WIDGETS_STATUS_NUM_PROPERTIES
};
static GParamSpec* tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) ((var == NULL) ? NULL : (var = (g_free (var), NULL)))

#define TOOTLE_TYPE_WIDGETIZABLE (tootle_widgetizable_get_type ())
#define TOOTLE_WIDGETIZABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_WIDGETIZABLE, TootleWidgetizable))
#define TOOTLE_IS_WIDGETIZABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_WIDGETIZABLE))
#define TOOTLE_WIDGETIZABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TOOTLE_TYPE_WIDGETIZABLE, TootleWidgetizableIface))

typedef struct _TootleWidgetizable TootleWidgetizable;
typedef struct _TootleWidgetizableIface TootleWidgetizableIface;

#define TOOTLE_API_TYPE_ACCOUNT (tootle_api_account_get_type ())
#define TOOTLE_API_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccount))
#define TOOTLE_API_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccountClass))
#define TOOTLE_API_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_API_TYPE_ACCOUNT))
#define TOOTLE_API_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_API_TYPE_ACCOUNT))
#define TOOTLE_API_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_API_TYPE_ACCOUNT, TootleAPIAccountClass))

typedef struct _TootleAPIAccount TootleAPIAccount;
typedef struct _TootleAPIAccountClass TootleAPIAccountClass;

#define TOOTLE_TYPE_INSTANCE_ACCOUNT (tootle_instance_account_get_type ())
#define TOOTLE_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccount))
#define TOOTLE_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccountClass))
#define TOOTLE_IS_INSTANCE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT))
#define TOOTLE_IS_INSTANCE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_INSTANCE_ACCOUNT))
#define TOOTLE_INSTANCE_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_INSTANCE_ACCOUNT, TootleInstanceAccountClass))

typedef struct _TootleInstanceAccount TootleInstanceAccount;
typedef struct _TootleInstanceAccountClass TootleInstanceAccountClass;

#define TOOTLE_TYPE_REQUEST (tootle_request_get_type ())
#define TOOTLE_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_REQUEST, TootleRequest))
#define TOOTLE_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_REQUEST, TootleRequestClass))
#define TOOTLE_IS_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_REQUEST))
#define TOOTLE_IS_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_REQUEST))
#define TOOTLE_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_REQUEST, TootleRequestClass))

typedef struct _TootleRequest TootleRequest;
typedef struct _TootleRequestClass TootleRequestClass;
typedef void (*TootleNetworkSuccessCallback) (SoupSession* session, SoupMessage* msg, gpointer user_data, GError** error);

#define TOOTLE_TYPE_STREAMS (tootle_streams_get_type ())
#define TOOTLE_STREAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_STREAMS, TootleStreams))
#define TOOTLE_STREAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_STREAMS, TootleStreamsClass))
#define TOOTLE_IS_STREAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_STREAMS))
#define TOOTLE_IS_STREAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_STREAMS))
#define TOOTLE_STREAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_STREAMS, TootleStreamsClass))

typedef struct _TootleStreams TootleStreams;
typedef struct _TootleStreamsClass TootleStreamsClass;

#define TOOTLE_DIALOGS_TYPE_COMPOSE (tootle_dialogs_compose_get_type ())
#define TOOTLE_DIALOGS_COMPOSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_DIALOGS_TYPE_COMPOSE, TootleDialogsCompose))
#define TOOTLE_DIALOGS_COMPOSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_DIALOGS_TYPE_COMPOSE, TootleDialogsComposeClass))
#define TOOTLE_DIALOGS_IS_COMPOSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_DIALOGS_TYPE_COMPOSE))
#define TOOTLE_DIALOGS_IS_COMPOSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_DIALOGS_TYPE_COMPOSE))
#define TOOTLE_DIALOGS_COMPOSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_DIALOGS_TYPE_COMPOSE, TootleDialogsComposeClass))

typedef struct _TootleDialogsCompose TootleDialogsCompose;
typedef struct _TootleDialogsComposeClass TootleDialogsComposeClass;
#define _g_param_spec_unref0(var) ((var == NULL) ? NULL : (var = (g_param_spec_unref (var), NULL)))
typedef struct _Block24Data Block24Data;
typedef struct _Block25Data Block25Data;

#define TOOTLE_TYPE_NETWORK (tootle_network_get_type ())
#define TOOTLE_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_NETWORK, TootleNetwork))
#define TOOTLE_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_NETWORK, TootleNetworkClass))
#define TOOTLE_IS_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_NETWORK))
#define TOOTLE_IS_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_NETWORK))
#define TOOTLE_NETWORK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_NETWORK, TootleNetworkClass))

typedef struct _TootleNetwork TootleNetwork;
typedef struct _TootleNetworkClass TootleNetworkClass;
#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))

#define TOOTLE_TYPE_APPLICATION (tootle_application_get_type ())
#define TOOTLE_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_TYPE_APPLICATION, TootleApplication))
#define TOOTLE_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_TYPE_APPLICATION, TootleApplicationClass))
#define TOOTLE_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_TYPE_APPLICATION))
#define TOOTLE_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_TYPE_APPLICATION))
#define TOOTLE_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_TYPE_APPLICATION, TootleApplicationClass))

typedef struct _TootleApplication TootleApplication;
typedef struct _TootleApplicationClass TootleApplicationClass;

#define TOOTLE_DIALOGS_TYPE_MAIN_WINDOW (tootle_dialogs_main_window_get_type ())
#define TOOTLE_DIALOGS_MAIN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_DIALOGS_TYPE_MAIN_WINDOW, TootleDialogsMainWindow))
#define TOOTLE_DIALOGS_MAIN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_DIALOGS_TYPE_MAIN_WINDOW, TootleDialogsMainWindowClass))
#define TOOTLE_DIALOGS_IS_MAIN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_DIALOGS_TYPE_MAIN_WINDOW))
#define TOOTLE_DIALOGS_IS_MAIN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_DIALOGS_TYPE_MAIN_WINDOW))
#define TOOTLE_DIALOGS_MAIN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_DIALOGS_TYPE_MAIN_WINDOW, TootleDialogsMainWindowClass))

typedef struct _TootleDialogsMainWindow TootleDialogsMainWindow;
typedef struct _TootleDialogsMainWindowClass TootleDialogsMainWindowClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef enum  {
	TOOTLE_API_VISIBILITY_PUBLIC,
	TOOTLE_API_VISIBILITY_UNLISTED,
	TOOTLE_API_VISIBILITY_PRIVATE,
	TOOTLE_API_VISIBILITY_DIRECT
} TootleAPIVisibility;

#define TOOTLE_API_TYPE_VISIBILITY (tootle_api_visibility_get_type ())

#define TOOTLE_API_TYPE_ATTACHMENT (tootle_api_attachment_get_type ())
#define TOOTLE_API_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_API_TYPE_ATTACHMENT, TootleAPIAttachment))
#define TOOTLE_API_ATTACHMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_API_TYPE_ATTACHMENT, TootleAPIAttachmentClass))
#define TOOTLE_API_IS_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_API_TYPE_ATTACHMENT))
#define TOOTLE_API_IS_ATTACHMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_API_TYPE_ATTACHMENT))
#define TOOTLE_API_ATTACHMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_API_TYPE_ATTACHMENT, TootleAPIAttachmentClass))

typedef struct _TootleAPIAttachment TootleAPIAttachment;
typedef struct _TootleAPIAttachmentClass TootleAPIAttachmentClass;
enum  {
	TOOTLE_WIDGETS_STATUS_OPEN_SIGNAL,
	TOOTLE_WIDGETS_STATUS_NUM_SIGNALS
};
static guint tootle_widgets_status_signals[TOOTLE_WIDGETS_STATUS_NUM_SIGNALS] = {0};

struct _TootleWidgetsStatus {
	GtkListBoxRow parent_instance;
	TootleWidgetsStatusPrivate * priv;
	GtkGrid* grid;
	GtkImage* header_icon;
	TootleWidgetsRichLabel* header_label;
	GtkImage* thread_line;
	TootleWidgetsAvatar* avatar;
	TootleWidgetsRichLabel* name_label;
	GtkLabel* handle_label;
	GtkBox* indicators;
	GtkLabel* date_label;
	GtkImage* pin_indicator;
	GtkImage* indicator;
	GtkBox* content_column;
	GtkStack* spoiler_stack;
	GtkBox* content_box;
	TootleWidgetsMarkupView* content;
	TootleWidgetsAttachmentBox* attachments;
	GtkButton* spoiler_button;
	TootleWidgetsRichLabel* spoiler_label;
	GtkBox* actions;
	GtkButton* reply_button;
	GtkImage* reply_button_icon;
	GtkToggleButton* reblog_button;
	GtkImage* reblog_icon;
	GtkToggleButton* favorite_button;
	GtkToggleButton* bookmark_button;
	GtkButton* menu_button;
};

struct _TootleWidgetsStatusClass {
	GtkListBoxRowClass parent_class;
	void (*on_open) (TootleWidgetsStatus* self);
	void (*on_kind_changed) (TootleWidgetsStatus* self);
};

struct _TootleWidgetsStatusPrivate {
	TootleAPIStatus* _status;
	TootleAPINotificationType* _kind;
	TootleWidgetsStatusThreadRole _thread_role;
	gboolean _reveal_spoiler;
};

typedef enum  {
	TOOTLE_OOPSIE_USER,
	TOOTLE_OOPSIE_PARSING,
	TOOTLE_OOPSIE_INSTANCE,
	TOOTLE_OOPSIE_INTERNAL
} TootleOopsie;
#define TOOTLE_OOPSIE tootle_oopsie_quark ()
struct _TootleWidgetizableIface {
	GTypeInterface parent_iface;
	GtkWidget* (*to_widget) (TootleWidgetizable* self, GError** error);
	void (*open) (TootleWidgetizable* self);
	void (*resolve_open) (TootleWidgetizable* self, TootleInstanceAccount* account);
};

struct _Block24Data {
	int _ref_count_;
	TootleWidgetsStatus* self;
	GtkToggleButton* button;
	gchar* prop;
	gchar* on;
	gchar* off;
};

struct _Block25Data {
	int _ref_count_;
	Block24Data * _data24_;
	gchar* act;
	TootleRequest* req;
};

static gint TootleWidgetsStatus_private_offset;
static gpointer tootle_widgets_status_parent_class = NULL;
extern TootleStreams* tootle_streams;
extern TootleNetwork* tootle_network;
extern TootleApplication* tootle_app;
extern TootleDialogsMainWindow* tootle_window;

GType tootle_widgets_status_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsStatus, g_object_unref)
GType tootle_widgets_rich_label_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsRichLabel, g_object_unref)
GType tootle_widgets_avatar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsAvatar, g_object_unref)
GType tootle_widgets_markup_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsMarkupView, g_object_unref)
GType tootle_widgets_attachment_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsAttachmentBox, g_object_unref)
GType tootle_entity_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleEntity, g_object_unref)
GType tootle_api_status_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAPIStatus, g_object_unref)
GType tootle_api_notification_type_get_type (void) G_GNUC_CONST ;
GType tootle_widgets_status_thread_role_get_type (void) G_GNUC_CONST ;
void tootle_widgets_status_on_open (TootleWidgetsStatus* self);
void tootle_widgets_status_on_kind_changed (TootleWidgetsStatus* self);
static void _tootle_widgets_status_on_kind_changed_g_object_notify (GObject* _sender,
                                                             GParamSpec* pspec,
                                                             gpointer self);
void tootle_widgets_status_thread_role_connect_posts (TootleWidgetsStatus* prev,
                                                      TootleWidgetsStatus* curr);
void tootle_widgets_status_set_thread_role (TootleWidgetsStatus* self,
                                            TootleWidgetsStatusThreadRole value);
TootleWidgetsStatusThreadRole tootle_widgets_status_get_thread_role (TootleWidgetsStatus* self);
static void tootle_widgets_status_real_on_open (TootleWidgetsStatus* self);
TootleAPIStatus* tootle_widgets_status_get_status (TootleWidgetsStatus* self);
const gchar* tootle_api_status_get_id (TootleAPIStatus* self);
void tootle_widgets_status_on_avatar_clicked (TootleWidgetsStatus* self);
GQuark tootle_oopsie_quark (void);
GType tootle_api_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAPIAccount, g_object_unref)
GType tootle_instance_account_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleInstanceAccount, g_object_unref)
GType tootle_widgetizable_get_type (void) G_GNUC_CONST ;
void tootle_widgetizable_open (TootleWidgetizable* self);
TootleWidgetsStatus* tootle_widgets_status_new (TootleAPIStatus* status,
                                                TootleAPINotificationType* kind);
TootleWidgetsStatus* tootle_widgets_status_construct (GType object_type,
                                                      TootleAPIStatus* status,
                                                      TootleAPINotificationType* kind);
void tootle_widgets_status_toggle_spoiler (TootleWidgetsStatus* self);
gboolean tootle_widgets_status_get_reveal_spoiler (TootleWidgetsStatus* self);
void tootle_widgets_status_set_reveal_spoiler (TootleWidgetsStatus* self,
                                               gboolean value);
static void _tootle_widgets_status_toggle_spoiler_gtk_button_clicked (GtkButton* _sender,
                                                               gpointer self);
static void tootle_widgets_status_real_on_kind_changed (TootleWidgetsStatus* self);
TootleAPINotificationType* tootle_widgets_status_get_kind (TootleWidgetsStatus* self);
gchar* tootle_api_notification_type_get_icon (TootleAPINotificationType self);
gchar* tootle_api_notification_type_get_desc (TootleAPINotificationType self,
                                              TootleAPIAccount* account);
TootleAPIAccount* tootle_api_status_get_account (TootleAPIStatus* self);
TootleAPIStatus* tootle_api_status_get_formal (TootleAPIStatus* self);
static void _tootle_widgets_status_on_avatar_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                  gpointer self);
void tootle_widgets_status_open_menu (TootleWidgetsStatus* self);
static void __lambda42_ (TootleWidgetsStatus* self);
gboolean tootle_desktop_open_uri (const gchar* _uri);
gchar* tootle_api_status_get_url (TootleAPIStatus* self);
static void ___lambda42__gtk_menu_item_activate (GtkMenuItem* _sender,
                                          gpointer self);
static void __lambda43_ (TootleWidgetsStatus* self);
void tootle_desktop_copy (const gchar* str);
static void ___lambda43__gtk_menu_item_activate (GtkMenuItem* _sender,
                                          gpointer self);
static void __lambda44_ (TootleWidgetsStatus* self);
gchar* tootle_html_utils_remove_tags (const gchar* content);
const gchar* tootle_api_status_get_content (TootleAPIStatus* self);
static void ___lambda44__gtk_menu_item_activate (GtkMenuItem* _sender,
                                          gpointer self);
gboolean tootle_api_status_is_owned (TootleAPIStatus* self);
gboolean tootle_api_status_get_pinned (TootleAPIStatus* self);
static void ___lambda45_ (TootleWidgetsStatus* self);
GType tootle_request_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleRequest, g_object_unref)
TootleRequest* tootle_api_status_action (TootleAPIStatus* self,
                                         const gchar* action);
static void ____lambda45__gtk_menu_item_activate (GtkMenuItem* _sender,
                                           gpointer self);
static void ___lambda46_ (TootleWidgetsStatus* self);
TootleRequest* tootle_api_status_annihilate (TootleAPIStatus* self);
TootleRequest* tootle_request_then (TootleRequest* self,
                                    TootleNetworkSuccessCallback cb,
                                    gpointer cb_target,
                                    GDestroyNotify cb_target_destroy_notify);
static void __lambda47_ (TootleWidgetsStatus* self,
                  SoupSession* sess,
                  SoupMessage* mess,
                  GError** error);
GType tootle_streams_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleStreams, g_object_unref)
void tootle_streams_force_delete (TootleStreams* self,
                                  const gchar* id);
static void ___lambda47__tootle_network_success_callback (SoupSession* session,
                                                   SoupMessage* msg,
                                                   gpointer self,
                                                   GError** error);
TootleRequest* tootle_request_exec (TootleRequest* self);
static void ____lambda46__gtk_menu_item_activate (GtkMenuItem* _sender,
                                           gpointer self);
static void ___lambda55_ (TootleWidgetsStatus* self);
TootleDialogsCompose* tootle_dialogs_compose_new_redraft (TootleAPIStatus* status);
TootleDialogsCompose* tootle_dialogs_compose_construct_redraft (GType object_type,
                                                                TootleAPIStatus* status);
GType tootle_dialogs_compose_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleDialogsCompose, g_object_unref)
static void ____lambda55__gtk_menu_item_activate (GtkMenuItem* _sender,
                                           gpointer self);
void tootle_widgets_status_expand_root (TootleWidgetsStatus* self);
void tootle_widgets_markup_view_set_selectable (TootleWidgetsMarkupView* self,
                                                gboolean value);
void tootle_widgets_status_install_thread_line (TootleWidgetsStatus* self);
void tootle_widgets_status_bind_toggleable_prop (TootleWidgetsStatus* self,
                                                 GtkToggleButton* button,
                                                 const gchar* prop,
                                                 const gchar* on,
                                                 const gchar* off);
static Block24Data* block24_data_ref (Block24Data* _data24_);
static void block24_data_unref (void * _userdata_);
static void __lambda65_ (Block24Data* _data24_);
static Block25Data* block25_data_ref (Block25Data* _data25_);
static void block25_data_unref (void * _userdata_);
void tootle_request_await (TootleRequest* self,
                           GAsyncReadyCallback _callback_,
                           gpointer _user_data_);
TootleRequest* tootle_request_await_finish (TootleRequest* self,
                                            GAsyncResult* _res_,
                                            GError** error);
static void __lambda66_ (Block25Data* _data25_,
                  GObject* obj,
                  GAsyncResult* res);
GType tootle_network_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleNetwork, g_object_unref)
JsonNode* tootle_network_parse_node (TootleNetwork* self,
                                     SoupMessage* msg,
                                     GError** error);
TootleAPIStatus* tootle_api_status_from (JsonNode* node,
                                         GError** error);
static void _vala_JsonNode_free (JsonNode* self);
GType tootle_application_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleApplication, g_object_unref)
void tootle_application_inform (TootleApplication* self,
                                GtkMessageType type,
                                const gchar* text,
                                const gchar* msg,
                                GtkWindow* win);
GType tootle_dialogs_main_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleDialogsMainWindow, g_object_unref)
static void ___lambda66__gasync_ready_callback (GObject* source_object,
                                         GAsyncResult* res,
                                         gpointer self);
static void ___lambda65__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                             gpointer self);
void tootle_widgets_status_set_status (TootleWidgetsStatus* self,
                                       TootleAPIStatus* value);
void tootle_widgets_status_set_kind (TootleWidgetsStatus* self,
                                     TootleAPINotificationType* value);
static TootleAPINotificationType* _tootle_api_notification_type_dup (TootleAPINotificationType* self);
gchar* tootle_widgets_status_get_spoiler_text (TootleWidgetsStatus* self);
const gchar* tootle_api_status_get_spoiler_text (TootleAPIStatus* self);
gchar* tootle_widgets_status_get_date (TootleWidgetsStatus* self);
gchar* tootle_date_time_humanize (const gchar* iso8601);
const gchar* tootle_api_status_get_created_at (TootleAPIStatus* self);
gchar* tootle_widgets_status_get_title_text (TootleWidgetsStatus* self);
const gchar* tootle_api_account_get_display_name (TootleAPIAccount* self);
gchar* tootle_widgets_status_get_subtitle_text (TootleWidgetsStatus* self);
gchar* tootle_api_account_get_handle (TootleAPIAccount* self);
gchar* tootle_widgets_status_get_avatar_url (TootleWidgetsStatus* self);
const gchar* tootle_api_account_get_avatar (TootleAPIAccount* self);
static GObject * tootle_widgets_status_constructor (GType type,
                                             guint n_construct_properties,
                                             GObjectConstructParam * construct_properties);
static void _tootle_widgets_status_on_open_tootle_widgets_status_open (TootleWidgetsStatus* _sender,
                                                                gpointer self);
TootleAPIStatus* tootle_api_status_get_reblog (TootleAPIStatus* self);
static void _tootle_widgets_status___lambda67_ (TootleWidgetsStatus* self);
TootleDialogsCompose* tootle_dialogs_compose_new_reply (TootleAPIStatus* to);
TootleDialogsCompose* tootle_dialogs_compose_construct_reply (GType object_type,
                                                              TootleAPIStatus* to);
static void __tootle_widgets_status___lambda67__gtk_button_clicked (GtkButton* _sender,
                                                             gpointer self);
const gchar* tootle_api_status_get_in_reply_to_id (TootleAPIStatus* self);
static gboolean _tootle_widgets_status___lambda68_ (TootleWidgetsStatus* self,
                                             GBinding* b,
                                             GValue* src,
                                             GValue* target);
static gboolean __tootle_widgets_status___lambda68__gbinding_transform_func (GBinding* binding,
                                                                      GValue* from_value,
                                                                      GValue* to_value,
                                                                      gpointer self);
static gboolean _tootle_widgets_status___lambda69_ (TootleWidgetsStatus* self,
                                             GBinding* b,
                                             GValue* src,
                                             GValue* target);
static gboolean __tootle_widgets_status___lambda69__gbinding_transform_func (GBinding* binding,
                                                                      GValue* from_value,
                                                                      GValue* to_value,
                                                                      gpointer self);
GType tootle_api_visibility_get_type (void) G_GNUC_CONST ;
TootleAPIVisibility tootle_api_status_get_visibility (TootleAPIStatus* self);
gchar* tootle_api_visibility_get_icon (TootleAPIVisibility self);
GType tootle_api_attachment_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleAPIAttachment, g_object_unref)
gboolean tootle_widgets_attachment_box_populate (TootleWidgetsAttachmentBox* self,
                                                 GeeArrayList* list);
GeeArrayList* tootle_api_status_get_media_attachments (TootleAPIStatus* self);
static void _tootle_widgets_status_open_menu_gtk_button_clicked (GtkButton* _sender,
                                                          gpointer self);
static void tootle_widgets_status_finalize (GObject * obj);
static GType tootle_widgets_status_get_type_once (void);
static void _vala_tootle_widgets_status_get_property (GObject * object,
                                               guint property_id,
                                               GValue * value,
                                               GParamSpec * pspec);
static void _vala_tootle_widgets_status_set_property (GObject * object,
                                               guint property_id,
                                               const GValue * value,
                                               GParamSpec * pspec);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
tootle_widgets_status_get_instance_private (TootleWidgetsStatus* self)
{
	return G_STRUCT_MEMBER_P (self, TootleWidgetsStatus_private_offset);
}

static void
_tootle_widgets_status_on_kind_changed_g_object_notify (GObject* _sender,
                                                        GParamSpec* pspec,
                                                        gpointer self)
{
	tootle_widgets_status_on_kind_changed ((TootleWidgetsStatus*) self);
}

void
tootle_widgets_status_thread_role_connect_posts (TootleWidgetsStatus* prev,
                                                 TootleWidgetsStatus* curr)
{
	TootleWidgetsStatusThreadRole _tmp0_;
	TootleWidgetsStatusThreadRole _tmp1_;
	g_return_if_fail (curr != NULL);
	if (prev == NULL) {
		tootle_widgets_status_set_thread_role (curr, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE);
		return;
	}
	_tmp0_ = tootle_widgets_status_get_thread_role (prev);
	_tmp1_ = _tmp0_;
	switch (_tmp1_) {
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE:
		{
			tootle_widgets_status_set_thread_role (prev, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_START);
			tootle_widgets_status_set_thread_role (curr, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END);
			break;
		}
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END:
		{
			tootle_widgets_status_set_thread_role (prev, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_MIDDLE);
			tootle_widgets_status_set_thread_role (curr, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END);
			break;
		}
		default:
		break;
	}
}

static GType
tootle_widgets_status_thread_role_get_type_once (void)
{
	static const GEnumValue values[] = {{TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE, "TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE", "none"}, {TOOTLE_WIDGETS_STATUS_THREAD_ROLE_START, "TOOTLE_WIDGETS_STATUS_THREAD_ROLE_START", "start"}, {TOOTLE_WIDGETS_STATUS_THREAD_ROLE_MIDDLE, "TOOTLE_WIDGETS_STATUS_THREAD_ROLE_MIDDLE", "middle"}, {TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END, "TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END", "end"}, {0, NULL, NULL}};
	GType tootle_widgets_status_thread_role_type_id;
	tootle_widgets_status_thread_role_type_id = g_enum_register_static ("TootleWidgetsStatusThreadRole", values);
	return tootle_widgets_status_thread_role_type_id;
}

GType
tootle_widgets_status_thread_role_get_type (void)
{
	static volatile gsize tootle_widgets_status_thread_role_type_id__volatile = 0;
	if (g_once_init_enter (&tootle_widgets_status_thread_role_type_id__volatile)) {
		GType tootle_widgets_status_thread_role_type_id;
		tootle_widgets_status_thread_role_type_id = tootle_widgets_status_thread_role_get_type_once ();
		g_once_init_leave (&tootle_widgets_status_thread_role_type_id__volatile, tootle_widgets_status_thread_role_type_id);
	}
	return tootle_widgets_status_thread_role_type_id__volatile;
}

static void
tootle_widgets_status_real_on_open (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_id (_tmp0_);
	_tmp2_ = _tmp1_;
	if (g_strcmp0 (_tmp2_, "") == 0) {
		tootle_widgets_status_on_avatar_clicked (self);
	} else {
		TootleAPIStatus* _tmp3_;
		_tmp3_ = self->priv->_status;
		tootle_widgetizable_open ((TootleWidgetizable*) _tmp3_);
	}
}

void
tootle_widgets_status_on_open (TootleWidgetsStatus* self)
{
	TootleWidgetsStatusClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = TOOTLE_WIDGETS_STATUS_GET_CLASS (self);
	if (_klass_->on_open) {
		_klass_->on_open (self);
	}
}

TootleWidgetsStatus*
tootle_widgets_status_construct (GType object_type,
                                 TootleAPIStatus* status,
                                 TootleAPINotificationType* kind)
{
	TootleWidgetsStatus * self = NULL;
	g_return_val_if_fail (status != NULL, NULL);
	self = (TootleWidgetsStatus*) g_object_new (object_type, "status", status, "kind", kind, NULL);
	_g_object_unref0 (status);
	return self;
}

TootleWidgetsStatus*
tootle_widgets_status_new (TootleAPIStatus* status,
                           TootleAPINotificationType* kind)
{
	return tootle_widgets_status_construct (TOOTLE_WIDGETS_TYPE_STATUS, status, kind);
}

void
tootle_widgets_status_toggle_spoiler (TootleWidgetsStatus* self)
{
	gboolean _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_reveal_spoiler;
	tootle_widgets_status_set_reveal_spoiler (self, !_tmp0_);
}

static void
_tootle_widgets_status_toggle_spoiler_gtk_button_clicked (GtkButton* _sender,
                                                          gpointer self)
{
	tootle_widgets_status_toggle_spoiler ((TootleWidgetsStatus*) self);
}

static void
tootle_widgets_status_real_on_kind_changed (TootleWidgetsStatus* self)
{
	GtkImage* _tmp0_;
	TootleWidgetsRichLabel* _tmp1_;
	TootleAPINotificationType* _tmp2_;
	TootleAPINotificationType* _tmp3_;
	GtkImage* _tmp4_;
	TootleAPINotificationType* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	TootleWidgetsRichLabel* _tmp8_;
	TootleAPINotificationType* _tmp9_;
	TootleAPIStatus* _tmp10_;
	TootleAPIAccount* _tmp11_;
	TootleAPIAccount* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	_tmp0_ = self->header_icon;
	_tmp1_ = self->header_label;
	_tmp2_ = self->priv->_kind;
	gtk_widget_set_visible ((GtkWidget*) _tmp1_, _tmp2_ != NULL);
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, _tmp2_ != NULL);
	_tmp3_ = self->priv->_kind;
	if (_tmp3_ == NULL) {
		return;
	}
	_tmp4_ = self->header_icon;
	_tmp5_ = self->priv->_kind;
	_tmp6_ = tootle_api_notification_type_get_icon (*_tmp5_);
	_tmp7_ = _tmp6_;
	g_object_set (_tmp4_, "icon-name", _tmp7_, NULL);
	_g_free0 (_tmp7_);
	_tmp8_ = self->header_label;
	_tmp9_ = self->priv->_kind;
	_tmp10_ = self->priv->_status;
	_tmp11_ = tootle_api_status_get_account (_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = tootle_api_notification_type_get_desc (*_tmp9_, _tmp12_);
	_tmp14_ = _tmp13_;
	gtk_label_set_label ((GtkLabel*) _tmp8_, _tmp14_);
	_g_free0 (_tmp14_);
}

void
tootle_widgets_status_on_kind_changed (TootleWidgetsStatus* self)
{
	TootleWidgetsStatusClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = TOOTLE_WIDGETS_STATUS_GET_CLASS (self);
	if (_klass_->on_kind_changed) {
		_klass_->on_kind_changed (self);
	}
}

void
tootle_widgets_status_on_avatar_clicked (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleAPIAccount* _tmp3_;
	TootleAPIAccount* _tmp4_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_account (_tmp2_);
	_tmp4_ = _tmp3_;
	tootle_widgetizable_open ((TootleWidgetizable*) _tmp4_);
}

static void
_tootle_widgets_status_on_avatar_clicked_gtk_button_clicked (GtkButton* _sender,
                                                             gpointer self)
{
	tootle_widgets_status_on_avatar_clicked ((TootleWidgetsStatus*) self);
}

static void
__lambda42_ (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_url (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = _tmp4_;
	tootle_desktop_open_uri (_tmp5_);
	_g_free0 (_tmp5_);
}

static void
___lambda42__gtk_menu_item_activate (GtkMenuItem* _sender,
                                     gpointer self)
{
	__lambda42_ ((TootleWidgetsStatus*) self);
}

static void
__lambda43_ (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_url (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = _tmp4_;
	tootle_desktop_copy (_tmp5_);
	_g_free0 (_tmp5_);
}

static void
___lambda43__gtk_menu_item_activate (GtkMenuItem* _sender,
                                     gpointer self)
{
	__lambda43_ ((TootleWidgetsStatus*) self);
}

static void
__lambda44_ (TootleWidgetsStatus* self)
{
	gchar* sanitized = NULL;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_content (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_html_utils_remove_tags (_tmp4_);
	sanitized = _tmp5_;
	tootle_desktop_copy (sanitized);
	_g_free0 (sanitized);
}

static void
___lambda44__gtk_menu_item_activate (GtkMenuItem* _sender,
                                     gpointer self)
{
	__lambda44_ ((TootleWidgetsStatus*) self);
}

static void
___lambda45_ (TootleWidgetsStatus* self)
{
	const gchar* _tmp0_ = NULL;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleAPIStatus* _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	TootleAPIStatus* _tmp6_;
	TootleRequest* _tmp7_;
	TootleRequest* _tmp8_;
	_tmp1_ = self->priv->_status;
	_tmp2_ = tootle_api_status_get_formal (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = tootle_api_status_get_pinned (_tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_) {
		_tmp0_ = "unpin";
	} else {
		_tmp0_ = "pin";
	}
	_tmp6_ = self->priv->_status;
	_tmp7_ = tootle_api_status_action (_tmp6_, _tmp0_);
	_tmp8_ = _tmp7_;
	_g_object_unref0 (_tmp8_);
}

static void
____lambda45__gtk_menu_item_activate (GtkMenuItem* _sender,
                                      gpointer self)
{
	___lambda45_ ((TootleWidgetsStatus*) self);
}

static void
__lambda47_ (TootleWidgetsStatus* self,
             SoupSession* sess,
             SoupMessage* mess,
             GError** error)
{
	TootleStreams* _tmp0_;
	TootleAPIStatus* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	g_return_if_fail (sess != NULL);
	g_return_if_fail (mess != NULL);
	_tmp0_ = tootle_streams;
	_tmp1_ = self->priv->_status;
	_tmp2_ = tootle_api_status_get_id (_tmp1_);
	_tmp3_ = _tmp2_;
	tootle_streams_force_delete (_tmp0_, _tmp3_);
}

static void
___lambda47__tootle_network_success_callback (SoupSession* session,
                                              SoupMessage* msg,
                                              gpointer self,
                                              GError** error)
{
	__lambda47_ ((TootleWidgetsStatus*) self, session, msg, error);
}

static void
___lambda46_ (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleRequest* _tmp1_;
	TootleRequest* _tmp2_;
	TootleRequest* _tmp3_;
	TootleRequest* _tmp4_;
	TootleRequest* _tmp5_;
	TootleRequest* _tmp6_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_annihilate (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_request_then (_tmp2_, ___lambda47__tootle_network_success_callback, g_object_ref (self), g_object_unref);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_request_exec (_tmp4_);
	_tmp6_ = _tmp5_;
	_g_object_unref0 (_tmp6_);
	_g_object_unref0 (_tmp4_);
	_g_object_unref0 (_tmp2_);
}

static void
____lambda46__gtk_menu_item_activate (GtkMenuItem* _sender,
                                      gpointer self)
{
	___lambda46_ ((TootleWidgetsStatus*) self);
}

static void
___lambda55_ (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleDialogsCompose* _tmp3_;
	TootleDialogsCompose* _tmp4_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_dialogs_compose_new_redraft (_tmp2_);
	g_object_ref_sink (_tmp3_);
	_tmp4_ = _tmp3_;
	_g_object_unref0 (_tmp4_);
}

static void
____lambda55__gtk_menu_item_activate (GtkMenuItem* _sender,
                                      gpointer self)
{
	___lambda55_ ((TootleWidgetsStatus*) self);
}

void
tootle_widgets_status_open_menu (TootleWidgetsStatus* self)
{
	GtkMenu* menu = NULL;
	GtkMenu* _tmp0_;
	GtkMenuItem* item_open_link = NULL;
	GtkMenuItem* _tmp1_;
	GtkMenuItem* _tmp2_;
	GtkMenuItem* item_copy_link = NULL;
	GtkMenuItem* _tmp3_;
	GtkMenuItem* _tmp4_;
	GtkMenuItem* item_copy = NULL;
	GtkMenuItem* _tmp5_;
	GtkMenuItem* _tmp6_;
	GtkMenu* _tmp7_;
	GtkMenuItem* _tmp8_;
	GtkMenu* _tmp9_;
	GtkSeparatorMenuItem* _tmp10_;
	GtkSeparatorMenuItem* _tmp11_;
	GtkMenu* _tmp12_;
	GtkMenuItem* _tmp13_;
	GtkMenu* _tmp14_;
	GtkMenuItem* _tmp15_;
	TootleAPIStatus* _tmp16_;
	GtkMenu* _tmp36_;
	GtkMenu* _tmp37_;
	GtkButton* _tmp38_;
	g_return_if_fail (self != NULL);
	_tmp0_ = (GtkMenu*) gtk_menu_new ();
	g_object_ref_sink (_tmp0_);
	menu = _tmp0_;
	_tmp1_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_ ("Open in Browser"));
	g_object_ref_sink (_tmp1_);
	item_open_link = _tmp1_;
	_tmp2_ = item_open_link;
	g_signal_connect_object (_tmp2_, "activate", (GCallback) ___lambda42__gtk_menu_item_activate, self, 0);
	_tmp3_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_ ("Copy Link"));
	g_object_ref_sink (_tmp3_);
	item_copy_link = _tmp3_;
	_tmp4_ = item_copy_link;
	g_signal_connect_object (_tmp4_, "activate", (GCallback) ___lambda43__gtk_menu_item_activate, self, 0);
	_tmp5_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_ ("Copy Text"));
	g_object_ref_sink (_tmp5_);
	item_copy = _tmp5_;
	_tmp6_ = item_copy;
	g_signal_connect_object (_tmp6_, "activate", (GCallback) ___lambda44__gtk_menu_item_activate, self, 0);
	_tmp7_ = menu;
	_tmp8_ = item_open_link;
	gtk_container_add ((GtkContainer*) _tmp7_, (GtkWidget*) _tmp8_);
	_tmp9_ = menu;
	_tmp10_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
	g_object_ref_sink (_tmp10_);
	_tmp11_ = _tmp10_;
	gtk_container_add ((GtkContainer*) _tmp9_, (GtkWidget*) _tmp11_);
	_g_object_unref0 (_tmp11_);
	_tmp12_ = menu;
	_tmp13_ = item_copy_link;
	gtk_container_add ((GtkContainer*) _tmp12_, (GtkWidget*) _tmp13_);
	_tmp14_ = menu;
	_tmp15_ = item_copy;
	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = self->priv->_status;
	if (tootle_api_status_is_owned (_tmp16_)) {
		GtkMenu* _tmp17_;
		GtkSeparatorMenuItem* _tmp18_;
		GtkSeparatorMenuItem* _tmp19_;
		const gchar* _tmp20_ = NULL;
		TootleAPIStatus* _tmp21_;
		gboolean _tmp22_;
		gboolean _tmp23_;
		GtkMenuItem* item_pin = NULL;
		GtkMenuItem* _tmp24_;
		GtkMenuItem* _tmp25_;
		GtkMenu* _tmp26_;
		GtkMenuItem* _tmp27_;
		GtkMenuItem* item_delete = NULL;
		GtkMenuItem* _tmp28_;
		GtkMenuItem* _tmp29_;
		GtkMenu* _tmp30_;
		GtkMenuItem* _tmp31_;
		GtkMenuItem* item_redraft = NULL;
		GtkMenuItem* _tmp32_;
		GtkMenuItem* _tmp33_;
		GtkMenu* _tmp34_;
		GtkMenuItem* _tmp35_;
		_tmp17_ = menu;
		_tmp18_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
		g_object_ref_sink (_tmp18_);
		_tmp19_ = _tmp18_;
		gtk_container_add ((GtkContainer*) _tmp17_, (GtkWidget*) _tmp19_);
		_g_object_unref0 (_tmp19_);
		_tmp21_ = self->priv->_status;
		_tmp22_ = tootle_api_status_get_pinned (_tmp21_);
		_tmp23_ = _tmp22_;
		if (_tmp23_) {
			_tmp20_ = _ ("Unpin from Profile");
		} else {
			_tmp20_ = _ ("Pin on Profile");
		}
		_tmp24_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_tmp20_);
		g_object_ref_sink (_tmp24_);
		item_pin = _tmp24_;
		_tmp25_ = item_pin;
		g_signal_connect_object (_tmp25_, "activate", (GCallback) ____lambda45__gtk_menu_item_activate, self, 0);
		_tmp26_ = menu;
		_tmp27_ = item_pin;
		gtk_container_add ((GtkContainer*) _tmp26_, (GtkWidget*) _tmp27_);
		_tmp28_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_ ("Delete"));
		g_object_ref_sink (_tmp28_);
		item_delete = _tmp28_;
		_tmp29_ = item_delete;
		g_signal_connect_object (_tmp29_, "activate", (GCallback) ____lambda46__gtk_menu_item_activate, self, 0);
		_tmp30_ = menu;
		_tmp31_ = item_delete;
		gtk_container_add ((GtkContainer*) _tmp30_, (GtkWidget*) _tmp31_);
		_tmp32_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_ ("Redraft"));
		g_object_ref_sink (_tmp32_);
		item_redraft = _tmp32_;
		_tmp33_ = item_redraft;
		g_signal_connect_object (_tmp33_, "activate", (GCallback) ____lambda55__gtk_menu_item_activate, self, 0);
		_tmp34_ = menu;
		_tmp35_ = item_redraft;
		gtk_container_add ((GtkContainer*) _tmp34_, (GtkWidget*) _tmp35_);
		_g_object_unref0 (item_redraft);
		_g_object_unref0 (item_delete);
		_g_object_unref0 (item_pin);
	}
	_tmp36_ = menu;
	gtk_widget_show_all ((GtkWidget*) _tmp36_);
	_tmp37_ = menu;
	_tmp38_ = self->menu_button;
	gtk_menu_popup_at_widget (_tmp37_, (GtkWidget*) _tmp38_, GDK_GRAVITY_SOUTH_EAST, GDK_GRAVITY_SOUTH_EAST, NULL);
	_g_object_unref0 (item_copy);
	_g_object_unref0 (item_copy_link);
	_g_object_unref0 (item_open_link);
	_g_object_unref0 (menu);
}

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

static gpointer
_g_param_spec_ref0 (gpointer self)
{
	return self ? g_param_spec_ref (self) : NULL;
}

void
tootle_widgets_status_expand_root (TootleWidgetsStatus* self)
{
	TootleWidgetsMarkupView* _tmp0_;
	TootleWidgetsMarkupView* _tmp1_;
	GtkStyleContext* _tmp2_;
	GtkContainer* parent = NULL;
	GtkBox* _tmp3_;
	GtkContainer* _tmp4_;
	GtkContainer* _tmp5_;
	GParamSpec* left_attach = NULL;
	GParamSpec* _tmp6_;
	GParamSpec* _tmp7_;
	GParamSpec* width = NULL;
	GParamSpec* _tmp8_;
	GParamSpec* _tmp9_;
	GtkBox* _tmp10_;
	GValue _tmp11_ = {0};
	GtkBox* _tmp12_;
	GValue _tmp13_ = {0};
	g_return_if_fail (self != NULL);
	gtk_list_box_row_set_activatable ((GtkListBoxRow*) self, FALSE);
	_tmp0_ = self->content;
	tootle_widgets_markup_view_set_selectable (_tmp0_, TRUE);
	_tmp1_ = self->content;
	_tmp2_ = gtk_widget_get_style_context ((GtkWidget*) _tmp1_);
	gtk_style_context_add_class (_tmp2_, "ttl-large-body");
	_tmp3_ = self->content_column;
	_tmp4_ = gtk_widget_get_parent ((GtkWidget*) _tmp3_);
	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp4_) : NULL);
	parent = _tmp5_;
	_tmp6_ = gtk_container_class_find_child_property (GTK_CONTAINER_CLASS (GTK_CONTAINER_GET_CLASS (parent)), "left-attach");
	_tmp7_ = _g_param_spec_ref0 (_tmp6_);
	left_attach = _tmp7_;
	_tmp8_ = gtk_container_class_find_child_property (GTK_CONTAINER_CLASS (GTK_CONTAINER_GET_CLASS (parent)), "width");
	_tmp9_ = _g_param_spec_ref0 (_tmp8_);
	width = _tmp9_;
	_tmp10_ = self->content_column;
	g_value_init (&_tmp11_, G_TYPE_INT);
	g_value_set_int (&_tmp11_, 0);
	G_TYPE_INSTANCE_GET_CLASS (parent, gtk_container_get_type (), GtkContainerClass)->set_child_property (parent, (GtkWidget*) _tmp10_, (guint) 1, &_tmp11_, left_attach);
	G_IS_VALUE (&_tmp11_) ? (g_value_unset (&_tmp11_), NULL) : NULL;
	_tmp12_ = self->content_column;
	g_value_init (&_tmp13_, G_TYPE_INT);
	g_value_set_int (&_tmp13_, 2);
	G_TYPE_INSTANCE_GET_CLASS (parent, gtk_container_get_type (), GtkContainerClass)->set_child_property (parent, (GtkWidget*) _tmp12_, (guint) 3, &_tmp13_, width);
	G_IS_VALUE (&_tmp13_) ? (g_value_unset (&_tmp13_), NULL) : NULL;
	_g_param_spec_unref0 (width);
	_g_param_spec_unref0 (left_attach);
	_g_object_unref0 (parent);
}

void
tootle_widgets_status_install_thread_line (TootleWidgetsStatus* self)
{
	GtkImage* l = NULL;
	GtkImage* _tmp0_;
	GtkImage* _tmp1_;
	TootleWidgetsStatusThreadRole _tmp2_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->thread_line;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	l = _tmp1_;
	_tmp2_ = self->priv->_thread_role;
	switch (_tmp2_) {
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE:
		{
			GtkImage* _tmp3_;
			_tmp3_ = l;
			gtk_widget_set_visible ((GtkWidget*) _tmp3_, FALSE);
			break;
		}
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_START:
		{
			GtkImage* _tmp4_;
			GtkImage* _tmp5_;
			GtkImage* _tmp6_;
			_tmp4_ = l;
			gtk_widget_set_valign ((GtkWidget*) _tmp4_, GTK_ALIGN_FILL);
			_tmp5_ = l;
			gtk_widget_set_margin_top ((GtkWidget*) _tmp5_, 24);
			_tmp6_ = l;
			gtk_widget_set_visible ((GtkWidget*) _tmp6_, TRUE);
			break;
		}
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_MIDDLE:
		{
			GtkImage* _tmp7_;
			GtkImage* _tmp8_;
			GtkImage* _tmp9_;
			_tmp7_ = l;
			gtk_widget_set_valign ((GtkWidget*) _tmp7_, GTK_ALIGN_FILL);
			_tmp8_ = l;
			gtk_widget_set_margin_top ((GtkWidget*) _tmp8_, 0);
			_tmp9_ = l;
			gtk_widget_set_visible ((GtkWidget*) _tmp9_, TRUE);
			break;
		}
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_END:
		{
			GtkImage* _tmp10_;
			GtkImage* _tmp11_;
			GtkImage* _tmp12_;
			_tmp10_ = l;
			gtk_widget_set_valign ((GtkWidget*) _tmp10_, GTK_ALIGN_START);
			_tmp11_ = l;
			gtk_widget_set_margin_top ((GtkWidget*) _tmp11_, 0);
			_tmp12_ = l;
			gtk_widget_set_visible ((GtkWidget*) _tmp12_, TRUE);
			break;
		}
		default:
		break;
	}
	_g_object_unref0 (l);
}

static Block24Data*
block24_data_ref (Block24Data* _data24_)
{
	g_atomic_int_inc (&_data24_->_ref_count_);
	return _data24_;
}

static void
block24_data_unref (void * _userdata_)
{
	Block24Data* _data24_;
	_data24_ = (Block24Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data24_->_ref_count_)) {
		TootleWidgetsStatus* self;
		self = _data24_->self;
		_g_object_unref0 (_data24_->button);
		_g_free0 (_data24_->prop);
		_g_free0 (_data24_->on);
		_g_free0 (_data24_->off);
		_g_object_unref0 (self);
		g_slice_free (Block24Data, _data24_);
	}
}

static Block25Data*
block25_data_ref (Block25Data* _data25_)
{
	g_atomic_int_inc (&_data25_->_ref_count_);
	return _data25_;
}

static void
block25_data_unref (void * _userdata_)
{
	Block25Data* _data25_;
	_data25_ = (Block25Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data25_->_ref_count_)) {
		TootleWidgetsStatus* self;
		self = _data25_->_data24_->self;
		_g_object_unref0 (_data25_->req);
		_g_free0 (_data25_->act);
		block24_data_unref (_data25_->_data24_);
		_data25_->_data24_ = NULL;
		g_slice_free (Block25Data, _data25_);
	}
}

static void
_vala_JsonNode_free (JsonNode* self)
{
	g_boxed_free (json_node_get_type (), self);
}

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

static void
__lambda66_ (Block25Data* _data25_,
             GObject* obj,
             GAsyncResult* res)
{
	Block24Data* _data24_;
	TootleWidgetsStatus* self;
	GError* _inner_error0_ = NULL;
	_data24_ = _data25_->_data24_;
	self = _data24_->self;
	g_return_if_fail (res != NULL);
	{
		TootleRequest* msg = NULL;
		TootleRequest* _tmp0_;
		TootleRequest* _tmp1_;
		JsonNode* node = NULL;
		TootleNetwork* _tmp2_;
		TootleRequest* _tmp3_;
		JsonNode* _tmp4_;
		TootleAPIStatus* entity = NULL;
		JsonNode* _tmp5_;
		TootleAPIStatus* _tmp6_;
		GValue new_val = {0};
		GValue _tmp7_ = {0};
		TootleAPIStatus* _tmp8_;
		TootleAPIStatus* _tmp9_;
		TootleAPIStatus* _tmp10_;
		TootleAPIStatus* _tmp11_;
		TootleAPIStatus* _tmp12_;
		TootleAPIStatus* _tmp13_;
		GValue _tmp14_ = {0};
		_tmp0_ = _data25_->req;
		_tmp1_ = tootle_request_await_finish (_tmp0_, res, &_inner_error0_);
		msg = _tmp1_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp2_ = tootle_network;
		_tmp3_ = msg;
		_tmp4_ = tootle_network_parse_node (_tmp2_, (SoupMessage*) _tmp3_, &_inner_error0_);
		node = _tmp4_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_object_unref0 (msg);
			goto __catch0_g_error;
		}
		_tmp5_ = node;
		_tmp6_ = tootle_api_status_from (_tmp5_, &_inner_error0_);
		entity = _tmp6_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			__vala_JsonNode_free0 (node);
			_g_object_unref0 (msg);
			goto __catch0_g_error;
		}
		g_value_init (&_tmp7_, G_TYPE_BOOLEAN);
		new_val = _tmp7_;
		_tmp8_ = entity;
		_tmp9_ = tootle_api_status_get_formal (_tmp8_);
		_tmp10_ = _tmp9_;
		g_object_get_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, G_TYPE_OBJECT, GObject), _data24_->prop, &new_val);
		_tmp11_ = self->priv->_status;
		_tmp12_ = tootle_api_status_get_formal (_tmp11_);
		_tmp13_ = _tmp12_;
		g_value_init (&_tmp14_, G_TYPE_BOOLEAN);
		g_value_set_boolean (&_tmp14_, g_value_get_boolean (&new_val));
		g_object_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, G_TYPE_OBJECT, GObject), _data24_->prop, &_tmp14_);
		G_IS_VALUE (&_tmp14_) ? (g_value_unset (&_tmp14_), NULL) : NULL;
		G_IS_VALUE (&new_val) ? (g_value_unset (&new_val), NULL) : NULL;
		_g_object_unref0 (entity);
		__vala_JsonNode_free0 (node);
		_g_object_unref0 (msg);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp15_;
		const gchar* _tmp16_;
		gchar* _tmp17_;
		gchar* _tmp18_;
		GError* _tmp19_;
		const gchar* _tmp20_;
		TootleApplication* _tmp21_;
		GError* _tmp22_;
		const gchar* _tmp23_;
		TootleDialogsMainWindow* _tmp24_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp15_ = _data25_->act;
		_tmp16_ = string_to_string (_tmp15_);
		_tmp17_ = g_strconcat ("Couldn't perform action \"", _tmp16_, "\" on a Status:", NULL);
		_tmp18_ = _tmp17_;
		g_warning ("Status.vala:317: %s", _tmp18_);
		_g_free0 (_tmp18_);
		_tmp19_ = e;
		_tmp20_ = _tmp19_->message;
		g_warning ("Status.vala:318: %s", _tmp20_);
		_tmp21_ = tootle_app;
		_tmp22_ = e;
		_tmp23_ = _tmp22_->message;
		_tmp24_ = tootle_window;
		tootle_application_inform (_tmp21_, GTK_MESSAGE_WARNING, _ ("Network Error"), _tmp23_, (GtkWindow*) _tmp24_);
		_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;
	}
	gtk_widget_set_sensitive ((GtkWidget*) _data24_->button, TRUE);
}

static void
___lambda66__gasync_ready_callback (GObject* source_object,
                                    GAsyncResult* res,
                                    gpointer self)
{
	__lambda66_ (self, source_object, res);
	block25_data_unref (self);
}

static void
__lambda65_ (Block24Data* _data24_)
{
	TootleWidgetsStatus* self;
	Block25Data* _data25_;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_;
	gboolean _tmp2_;
	GValue val = {0};
	GValue _tmp5_ = {0};
	TootleAPIStatus* _tmp6_;
	TootleAPIStatus* _tmp7_;
	TootleAPIStatus* _tmp8_;
	const gchar* _tmp9_ = NULL;
	gchar* _tmp10_;
	TootleAPIStatus* _tmp11_;
	const gchar* _tmp12_;
	TootleRequest* _tmp13_;
	TootleRequest* _tmp14_;
	self = _data24_->self;
	_data25_ = g_slice_new0 (Block25Data);
	_data25_->_ref_count_ = 1;
	_data25_->_data24_ = block24_data_ref (_data24_);
	g_object_get ((GtkWidget*) _data24_->button, "has-focus", &_tmp1_, NULL);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		gboolean _tmp3_;
		gboolean _tmp4_;
		_tmp3_ = gtk_widget_get_sensitive ((GtkWidget*) _data24_->button);
		_tmp4_ = _tmp3_;
		_tmp0_ = _tmp4_;
	} else {
		_tmp0_ = FALSE;
	}
	if (!_tmp0_) {
		block25_data_unref (_data25_);
		_data25_ = NULL;
		return;
	}
	gtk_widget_set_sensitive ((GtkWidget*) _data24_->button, FALSE);
	g_value_init (&_tmp5_, G_TYPE_BOOLEAN);
	val = _tmp5_;
	_tmp6_ = self->priv->_status;
	_tmp7_ = tootle_api_status_get_formal (_tmp6_);
	_tmp8_ = _tmp7_;
	g_object_get_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, G_TYPE_OBJECT, GObject), _data24_->prop, &val);
	if (g_value_get_boolean (&val)) {
		_tmp9_ = _data24_->off;
	} else {
		_tmp9_ = _data24_->on;
	}
	_tmp10_ = g_strdup (_tmp9_);
	_data25_->act = _tmp10_;
	_tmp11_ = self->priv->_status;
	_tmp12_ = _data25_->act;
	_tmp13_ = tootle_api_status_action (_tmp11_, _tmp12_);
	_data25_->req = _tmp13_;
	_tmp14_ = _data25_->req;
	tootle_request_await (_tmp14_, ___lambda66__gasync_ready_callback, block25_data_ref (_data25_));
	G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL;
	block25_data_unref (_data25_);
	_data25_ = NULL;
}

static void
___lambda65__gtk_toggle_button_toggled (GtkToggleButton* _sender,
                                        gpointer self)
{
	__lambda65_ (self);
}

void
tootle_widgets_status_bind_toggleable_prop (TootleWidgetsStatus* self,
                                            GtkToggleButton* button,
                                            const gchar* prop,
                                            const gchar* on,
                                            const gchar* off)
{
	Block24Data* _data24_;
	GtkToggleButton* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	GValue init_val = {0};
	GValue _tmp4_ = {0};
	TootleAPIStatus* _tmp5_;
	TootleAPIStatus* _tmp6_;
	TootleAPIStatus* _tmp7_;
	TootleAPIStatus* _tmp8_;
	TootleAPIStatus* _tmp9_;
	TootleAPIStatus* _tmp10_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (button != NULL);
	g_return_if_fail (prop != NULL);
	g_return_if_fail (on != NULL);
	g_return_if_fail (off != NULL);
	_data24_ = g_slice_new0 (Block24Data);
	_data24_->_ref_count_ = 1;
	_data24_->self = g_object_ref (self);
	_tmp0_ = _g_object_ref0 (button);
	_g_object_unref0 (_data24_->button);
	_data24_->button = _tmp0_;
	_tmp1_ = g_strdup (prop);
	_g_free0 (_data24_->prop);
	_data24_->prop = _tmp1_;
	_tmp2_ = g_strdup (on);
	_g_free0 (_data24_->on);
	_data24_->on = _tmp2_;
	_tmp3_ = g_strdup (off);
	_g_free0 (_data24_->off);
	_data24_->off = _tmp3_;
	g_value_init (&_tmp4_, G_TYPE_BOOLEAN);
	init_val = _tmp4_;
	_tmp5_ = self->priv->_status;
	_tmp6_ = tootle_api_status_get_formal (_tmp5_);
	_tmp7_ = _tmp6_;
	g_object_get_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, G_TYPE_OBJECT, GObject), _data24_->prop, &init_val);
	gtk_toggle_button_set_active (_data24_->button, g_value_get_boolean (&init_val));
	_tmp8_ = self->priv->_status;
	_tmp9_ = tootle_api_status_get_formal (_tmp8_);
	_tmp10_ = _tmp9_;
	g_object_bind_property_with_closures ((GObject*) _tmp10_, _data24_->prop, (GObject*) _data24_->button, "active", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	g_signal_connect_data (_data24_->button, "toggled", (GCallback) ___lambda65__gtk_toggle_button_toggled, block24_data_ref (_data24_), (GClosureNotify) block24_data_unref, 0);
	G_IS_VALUE (&init_val) ? (g_value_unset (&init_val), NULL) : NULL;
	block24_data_unref (_data24_);
	_data24_ = NULL;
}

TootleAPIStatus*
tootle_widgets_status_get_status (TootleWidgetsStatus* self)
{
	TootleAPIStatus* result;
	TootleAPIStatus* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	result = _tmp0_;
	return result;
}

void
tootle_widgets_status_set_status (TootleWidgetsStatus* self,
                                  TootleAPIStatus* value)
{
	TootleAPIStatus* old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_widgets_status_get_status (self);
	if (old_value != value) {
		TootleAPIStatus* _tmp0_;
		_tmp0_ = _g_object_ref0 (value);
		_g_object_unref0 (self->priv->_status);
		self->priv->_status = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY]);
	}
}

TootleAPINotificationType*
tootle_widgets_status_get_kind (TootleWidgetsStatus* self)
{
	TootleAPINotificationType* result;
	TootleAPINotificationType* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_kind;
	result = _tmp0_;
	return result;
}

static TootleAPINotificationType*
_tootle_api_notification_type_dup (TootleAPINotificationType* self)
{
	TootleAPINotificationType* dup;
	dup = g_new0 (TootleAPINotificationType, 1);
	memcpy (dup, self, sizeof (TootleAPINotificationType));
	return dup;
}

static gpointer
__tootle_api_notification_type_dup0 (gpointer self)
{
	return self ? _tootle_api_notification_type_dup (self) : NULL;
}

void
tootle_widgets_status_set_kind (TootleWidgetsStatus* self,
                                TootleAPINotificationType* value)
{
	TootleAPINotificationType* old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_widgets_status_get_kind (self);
	if (old_value != value) {
		TootleAPINotificationType* _tmp0_;
		_tmp0_ = __tootle_api_notification_type_dup0 (value);
		_g_free0 (self->priv->_kind);
		self->priv->_kind = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_KIND_PROPERTY]);
	}
}

TootleWidgetsStatusThreadRole
tootle_widgets_status_get_thread_role (TootleWidgetsStatus* self)
{
	TootleWidgetsStatusThreadRole result;
	TootleWidgetsStatusThreadRole _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = self->priv->_thread_role;
	result = _tmp0_;
	return result;
}

void
tootle_widgets_status_set_thread_role (TootleWidgetsStatus* self,
                                       TootleWidgetsStatusThreadRole value)
{
	TootleWidgetsStatusThreadRole old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_widgets_status_get_thread_role (self);
	if (old_value != value) {
		self->priv->_thread_role = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY]);
	}
}

gchar*
tootle_widgets_status_get_spoiler_text (TootleWidgetsStatus* self)
{
	gchar* result;
	gchar* text = NULL;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gboolean _tmp6_ = FALSE;
	const gchar* _tmp7_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_spoiler_text (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = g_strdup (_tmp4_);
	text = _tmp5_;
	_tmp7_ = text;
	if (_tmp7_ == NULL) {
		_tmp6_ = TRUE;
	} else {
		const gchar* _tmp8_;
		_tmp8_ = text;
		_tmp6_ = g_strcmp0 (_tmp8_, "") == 0;
	}
	if (_tmp6_) {
		gchar* _tmp9_;
		_tmp9_ = g_strdup (_ ("Click to show sensitive content"));
		result = _tmp9_;
		_g_free0 (text);
		return result;
	} else {
		result = text;
		return result;
	}
}

gboolean
tootle_widgets_status_get_reveal_spoiler (TootleWidgetsStatus* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_reveal_spoiler;
	return result;
}

void
tootle_widgets_status_set_reveal_spoiler (TootleWidgetsStatus* self,
                                          gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = tootle_widgets_status_get_reveal_spoiler (self);
	if (old_value != value) {
		self->priv->_reveal_spoiler = value;
		g_object_notify_by_pspec ((GObject *) self, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY]);
	}
}

gchar*
tootle_widgets_status_get_date (TootleWidgetsStatus* self)
{
	gchar* result;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_created_at (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_date_time_humanize (_tmp4_);
	result = _tmp5_;
	return result;
}

gchar*
tootle_widgets_status_get_title_text (TootleWidgetsStatus* self)
{
	gchar* result;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleAPIAccount* _tmp3_;
	TootleAPIAccount* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_account (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_api_account_get_display_name (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = g_strdup (_tmp6_);
	result = _tmp7_;
	return result;
}

gchar*
tootle_widgets_status_get_subtitle_text (TootleWidgetsStatus* self)
{
	gchar* result;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleAPIAccount* _tmp3_;
	TootleAPIAccount* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_account (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_api_account_get_handle (_tmp4_);
	_tmp6_ = _tmp5_;
	result = _tmp6_;
	return result;
}

gchar*
tootle_widgets_status_get_avatar_url (TootleWidgetsStatus* self)
{
	gchar* result;
	TootleAPIStatus* _tmp0_;
	TootleAPIStatus* _tmp1_;
	TootleAPIStatus* _tmp2_;
	TootleAPIAccount* _tmp3_;
	TootleAPIAccount* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_api_status_get_formal (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = tootle_api_status_get_account (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = tootle_api_account_get_avatar (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = g_strdup (_tmp6_);
	result = _tmp7_;
	return result;
}

static void
_tootle_widgets_status_on_open_tootle_widgets_status_open (TootleWidgetsStatus* _sender,
                                                           gpointer self)
{
	tootle_widgets_status_on_open ((TootleWidgetsStatus*) self);
}

static void
_tootle_widgets_status___lambda67_ (TootleWidgetsStatus* self)
{
	TootleAPIStatus* _tmp0_;
	TootleDialogsCompose* _tmp1_;
	TootleDialogsCompose* _tmp2_;
	_tmp0_ = self->priv->_status;
	_tmp1_ = tootle_dialogs_compose_new_reply (_tmp0_);
	g_object_ref_sink (_tmp1_);
	_tmp2_ = _tmp1_;
	_g_object_unref0 (_tmp2_);
}

static void
__tootle_widgets_status___lambda67__gtk_button_clicked (GtkButton* _sender,
                                                        gpointer self)
{
	_tootle_widgets_status___lambda67_ ((TootleWidgetsStatus*) self);
}

static gboolean
_tootle_widgets_status___lambda68_ (TootleWidgetsStatus* self,
                                    GBinding* b,
                                    GValue* src,
                                    GValue* target)
{
	gboolean result = FALSE;
	g_return_val_if_fail (b != NULL, FALSE);
	g_return_val_if_fail (src != NULL, FALSE);
	g_return_val_if_fail (target != NULL, FALSE);
	g_value_set_boolean (target, !g_value_get_boolean (src));
	result = TRUE;
	return result;
}

static gboolean
__tootle_widgets_status___lambda68__gbinding_transform_func (GBinding* binding,
                                                             GValue* from_value,
                                                             GValue* to_value,
                                                             gpointer self)
{
	gboolean result;
	result = _tootle_widgets_status___lambda68_ ((TootleWidgetsStatus*) self, binding, from_value, to_value);
	return result;
}

static gboolean
_tootle_widgets_status___lambda69_ (TootleWidgetsStatus* self,
                                    GBinding* b,
                                    GValue* src,
                                    GValue* target)
{
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_;
	gchar* name = NULL;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gboolean result = FALSE;
	g_return_val_if_fail (b != NULL, FALSE);
	g_return_val_if_fail (src != NULL, FALSE);
	g_return_val_if_fail (target != NULL, FALSE);
	_tmp1_ = self->priv->_reveal_spoiler;
	if (_tmp1_) {
		_tmp0_ = "content";
	} else {
		_tmp0_ = "spoiler";
	}
	_tmp2_ = g_strdup (_tmp0_);
	name = _tmp2_;
	_tmp3_ = name;
	g_value_set_string (target, _tmp3_);
	result = TRUE;
	_g_free0 (name);
	return result;
}

static gboolean
__tootle_widgets_status___lambda69__gbinding_transform_func (GBinding* binding,
                                                             GValue* from_value,
                                                             GValue* to_value,
                                                             gpointer self)
{
	gboolean result;
	result = _tootle_widgets_status___lambda69_ ((TootleWidgetsStatus*) self, binding, from_value, to_value);
	return result;
}

static void
_tootle_widgets_status_open_menu_gtk_button_clicked (GtkButton* _sender,
                                                     gpointer self)
{
	tootle_widgets_status_open_menu ((TootleWidgetsStatus*) self);
}

static GObject *
tootle_widgets_status_constructor (GType type,
                                   guint n_construct_properties,
                                   GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	TootleWidgetsStatus * self;
	TootleAPINotificationType* _tmp0_;
	GtkToggleButton* _tmp5_;
	GtkToggleButton* _tmp6_;
	GtkToggleButton* _tmp7_;
	GtkButton* _tmp8_;
	TootleAPIStatus* _tmp9_;
	TootleAPIStatus* _tmp10_;
	TootleAPIStatus* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	TootleWidgetsRichLabel* _tmp16_;
	TootleAPIStatus* _tmp17_;
	TootleAPIStatus* _tmp18_;
	TootleAPIStatus* _tmp19_;
	TootleWidgetsMarkupView* _tmp20_;
	TootleWidgetsRichLabel* _tmp21_;
	GtkLabel* _tmp22_;
	GtkLabel* _tmp23_;
	TootleAPIStatus* _tmp24_;
	TootleAPIStatus* _tmp25_;
	TootleAPIStatus* _tmp26_;
	GtkImage* _tmp27_;
	TootleAPIStatus* _tmp28_;
	TootleAPIStatus* _tmp29_;
	TootleAPIStatus* _tmp30_;
	TootleWidgetsAvatar* _tmp31_;
	TootleAPIStatus* _tmp32_;
	TootleAPIStatus* _tmp33_;
	TootleAPIStatus* _tmp34_;
	GtkStack* _tmp35_;
	TootleAPIStatus* _tmp36_;
	TootleAPIStatus* _tmp37_;
	TootleAPIStatus* _tmp38_;
	TootleAPIVisibility _tmp39_;
	TootleAPIVisibility _tmp40_;
	TootleAPIStatus* _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp53_;
	gboolean _tmp56_ = FALSE;
	TootleWidgetsAttachmentBox* _tmp57_;
	TootleAPIStatus* _tmp58_;
	TootleAPIStatus* _tmp59_;
	TootleAPIStatus* _tmp60_;
	GeeArrayList* _tmp61_;
	GeeArrayList* _tmp62_;
	GtkButton* _tmp67_;
	parent_class = G_OBJECT_CLASS (tootle_widgets_status_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatus);
	g_signal_connect_object ((GObject*) self, "notify::kind", (GCallback) _tootle_widgets_status_on_kind_changed_g_object_notify, self, 0);
	g_signal_connect_object (self, "open", (GCallback) _tootle_widgets_status_on_open_tootle_widgets_status_open, self, 0);
	_tmp0_ = self->priv->_kind;
	if (_tmp0_ == NULL) {
		TootleAPIStatus* _tmp1_;
		TootleAPIStatus* _tmp2_;
		TootleAPIStatus* _tmp3_;
		_tmp1_ = self->priv->_status;
		_tmp2_ = tootle_api_status_get_reblog (_tmp1_);
		_tmp3_ = _tmp2_;
		if (_tmp3_ != NULL) {
			TootleAPINotificationType _tmp4_;
			_tmp4_ = TOOTLE_API_NOTIFICATION_TYPE_REBLOG_REMOTE_USER;
			tootle_widgets_status_set_kind (self, &_tmp4_);
		}
	}
	_tmp5_ = self->favorite_button;
	tootle_widgets_status_bind_toggleable_prop (self, _tmp5_, "favourited", "favourite", "unfavourite");
	_tmp6_ = self->reblog_button;
	tootle_widgets_status_bind_toggleable_prop (self, _tmp6_, "reblogged", "reblog", "unreblog");
	_tmp7_ = self->bookmark_button;
	tootle_widgets_status_bind_toggleable_prop (self, _tmp7_, "bookmarked", "bookmark", "unbookmark");
	_tmp8_ = self->reply_button;
	g_signal_connect_object (_tmp8_, "clicked", (GCallback) __tootle_widgets_status___lambda67__gtk_button_clicked, self, 0);
	_tmp9_ = self->priv->_status;
	_tmp10_ = tootle_api_status_get_formal (_tmp9_);
	_tmp11_ = _tmp10_;
	_tmp12_ = tootle_api_status_get_in_reply_to_id (_tmp11_);
	_tmp13_ = _tmp12_;
	if (_tmp13_ != NULL) {
		GtkImage* _tmp14_;
		_tmp14_ = self->reply_button_icon;
		g_object_set (_tmp14_, "icon-name", "mail-reply-all-symbolic", NULL);
	} else {
		GtkImage* _tmp15_;
		_tmp15_ = self->reply_button_icon;
		g_object_set (_tmp15_, "icon-name", "mail-reply-sender-symbolic", NULL);
	}
	_tmp16_ = self->spoiler_label;
	g_object_bind_property_with_closures ((GObject*) self, "spoiler-text", (GObject*) _tmp16_, "text", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp17_ = self->priv->_status;
	_tmp18_ = tootle_api_status_get_formal (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = self->content;
	g_object_bind_property_with_closures ((GObject*) _tmp19_, "content", (GObject*) _tmp20_, "content", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp21_ = self->name_label;
	g_object_bind_property_with_closures ((GObject*) self, "title_text", (GObject*) _tmp21_, "text", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp22_ = self->handle_label;
	g_object_bind_property_with_closures ((GObject*) self, "subtitle_text", (GObject*) _tmp22_, "label", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp23_ = self->date_label;
	g_object_bind_property_with_closures ((GObject*) self, "date", (GObject*) _tmp23_, "label", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp24_ = self->priv->_status;
	_tmp25_ = tootle_api_status_get_formal (_tmp24_);
	_tmp26_ = _tmp25_;
	_tmp27_ = self->pin_indicator;
	g_object_bind_property_with_closures ((GObject*) _tmp26_, "pinned", (GObject*) _tmp27_, "visible", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp28_ = self->priv->_status;
	_tmp29_ = tootle_api_status_get_formal (_tmp28_);
	_tmp30_ = _tmp29_;
	_tmp31_ = self->avatar;
	g_object_bind_property_with_closures ((GObject*) _tmp30_, "account", (GObject*) _tmp31_, "account", G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp32_ = self->priv->_status;
	_tmp33_ = tootle_api_status_get_formal (_tmp32_);
	_tmp34_ = _tmp33_;
	g_object_bind_property_with_closures ((GObject*) _tmp34_, "has-spoiler", (GObject*) self, "reveal-spoiler", G_BINDING_SYNC_CREATE, (GClosure*) ((__tootle_widgets_status___lambda68__gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) __tootle_widgets_status___lambda68__gbinding_transform_func, g_object_ref (self), (GClosureNotify) g_object_unref)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp35_ = self->spoiler_stack;
	g_object_bind_property_with_closures ((GObject*) self, "reveal-spoiler", (GObject*) _tmp35_, "visible-child-name", G_BINDING_SYNC_CREATE, (GClosure*) ((__tootle_widgets_status___lambda69__gbinding_transform_func == NULL) ? NULL : g_cclosure_new ((GCallback) __tootle_widgets_status___lambda69__gbinding_transform_func, g_object_ref (self), (GClosureNotify) g_object_unref)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp36_ = self->priv->_status;
	_tmp37_ = tootle_api_status_get_formal (_tmp36_);
	_tmp38_ = _tmp37_;
	_tmp39_ = tootle_api_status_get_visibility (_tmp38_);
	_tmp40_ = _tmp39_;
	if (_tmp40_ == TOOTLE_API_VISIBILITY_DIRECT) {
		GtkImage* _tmp41_;
		TootleAPIStatus* _tmp42_;
		TootleAPIStatus* _tmp43_;
		TootleAPIStatus* _tmp44_;
		TootleAPIVisibility _tmp45_;
		TootleAPIVisibility _tmp46_;
		gchar* _tmp47_;
		gchar* _tmp48_;
		GtkToggleButton* _tmp49_;
		GtkToggleButton* _tmp50_;
		_tmp41_ = self->reblog_icon;
		_tmp42_ = self->priv->_status;
		_tmp43_ = tootle_api_status_get_formal (_tmp42_);
		_tmp44_ = _tmp43_;
		_tmp45_ = tootle_api_status_get_visibility (_tmp44_);
		_tmp46_ = _tmp45_;
		_tmp47_ = tootle_api_visibility_get_icon (_tmp46_);
		_tmp48_ = _tmp47_;
		g_object_set (_tmp41_, "icon-name", _tmp48_, NULL);
		_g_free0 (_tmp48_);
		_tmp49_ = self->reblog_button;
		gtk_widget_set_sensitive ((GtkWidget*) _tmp49_, FALSE);
		_tmp50_ = self->reblog_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp50_, _ ("This post can't be boosted"));
	}
	_tmp51_ = self->priv->_status;
	_tmp52_ = tootle_api_status_get_id (_tmp51_);
	_tmp53_ = _tmp52_;
	if (g_strcmp0 (_tmp53_, "") == 0) {
		GtkBox* _tmp54_;
		GtkLabel* _tmp55_;
		_tmp54_ = self->actions;
		gtk_widget_destroy ((GtkWidget*) _tmp54_);
		_tmp55_ = self->date_label;
		gtk_widget_destroy ((GtkWidget*) _tmp55_);
	}
	_tmp57_ = self->attachments;
	_tmp58_ = self->priv->_status;
	_tmp59_ = tootle_api_status_get_formal (_tmp58_);
	_tmp60_ = _tmp59_;
	_tmp61_ = tootle_api_status_get_media_attachments (_tmp60_);
	_tmp62_ = _tmp61_;
	if (!tootle_widgets_attachment_box_populate (_tmp57_, _tmp62_)) {
		_tmp56_ = TRUE;
	} else {
		TootleAPIStatus* _tmp63_;
		const gchar* _tmp64_;
		const gchar* _tmp65_;
		_tmp63_ = self->priv->_status;
		_tmp64_ = tootle_api_status_get_id (_tmp63_);
		_tmp65_ = _tmp64_;
		_tmp56_ = g_strcmp0 (_tmp65_, "") == 0;
	}
	if (_tmp56_) {
		TootleWidgetsAttachmentBox* _tmp66_;
		_tmp66_ = self->attachments;
		gtk_widget_destroy ((GtkWidget*) _tmp66_);
	}
	_tmp67_ = self->menu_button;
	g_signal_connect_object (_tmp67_, "clicked", (GCallback) _tootle_widgets_status_open_menu_gtk_button_clicked, self, 0);
	return obj;
}

static void
tootle_widgets_status_class_init (TootleWidgetsStatusClass * klass,
                                  gpointer klass_data)
{
	tootle_widgets_status_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &TootleWidgetsStatus_private_offset);
	((TootleWidgetsStatusClass *) klass)->on_open = (void (*) (TootleWidgetsStatus*)) tootle_widgets_status_real_on_open;
	((TootleWidgetsStatusClass *) klass)->on_kind_changed = (void (*) (TootleWidgetsStatus*)) tootle_widgets_status_real_on_kind_changed;
	G_OBJECT_CLASS (klass)->get_property = _vala_tootle_widgets_status_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_tootle_widgets_status_set_property;
	G_OBJECT_CLASS (klass)->constructor = tootle_widgets_status_constructor;
	G_OBJECT_CLASS (klass)->finalize = tootle_widgets_status_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY] = g_param_spec_object ("status", "status", "status", TOOTLE_API_TYPE_STATUS, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_KIND_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_KIND_PROPERTY] = g_param_spec_enum ("kind", "kind", "kind", TOOTLE_API_TYPE_NOTIFICATION_TYPE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY] = g_param_spec_enum ("thread-role", "thread-role", "thread-role", TOOTLE_WIDGETS_STATUS_TYPE_THREAD_ROLE, TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_SPOILER_TEXT_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_SPOILER_TEXT_PROPERTY] = g_param_spec_string ("spoiler-text", "spoiler-text", "spoiler-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY] = g_param_spec_boolean ("reveal-spoiler", "reveal-spoiler", "reveal-spoiler", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_DATE_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_DATE_PROPERTY] = g_param_spec_string ("date", "date", "date", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_TITLE_TEXT_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_TITLE_TEXT_PROPERTY] = g_param_spec_string ("title-text", "title-text", "title-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_SUBTITLE_TEXT_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_SUBTITLE_TEXT_PROPERTY] = g_param_spec_string ("subtitle-text", "subtitle-text", "subtitle-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), TOOTLE_WIDGETS_STATUS_AVATAR_URL_PROPERTY, tootle_widgets_status_properties[TOOTLE_WIDGETS_STATUS_AVATAR_URL_PROPERTY] = g_param_spec_string ("avatar-url", "avatar-url", "avatar-url", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/com/github/bleakgrey/tootle/ui/widgets/status.ui");
	tootle_widgets_status_signals[TOOTLE_WIDGETS_STATUS_OPEN_SIGNAL] = g_signal_new ("open", TOOTLE_WIDGETS_TYPE_STATUS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "grid", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, grid));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "header_icon", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, header_icon));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "header_label", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, header_label));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "thread_line", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, thread_line));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "avatar", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, avatar));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "name_label", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, name_label));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "handle_label", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, handle_label));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "indicators", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, indicators));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "date_label", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, date_label));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "pin_indicator", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, pin_indicator));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "indicator", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, indicator));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "content_column", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, content_column));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spoiler_stack", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, spoiler_stack));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "content_box", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, content_box));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "content", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, content));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "attachments", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, attachments));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spoiler_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, spoiler_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "spoiler_label", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, spoiler_label));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "actions", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, actions));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "reply_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, reply_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "reply_button_icon", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, reply_button_icon));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "reblog_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, reblog_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "reblog_icon", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, reblog_icon));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "favorite_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, favorite_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bookmark_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, bookmark_button));
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "menu_button", FALSE, G_STRUCT_OFFSET (TootleWidgetsStatus, menu_button));
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "toggle_spoiler", G_CALLBACK(_tootle_widgets_status_toggle_spoiler_gtk_button_clicked));
	gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_avatar_clicked", G_CALLBACK(_tootle_widgets_status_on_avatar_clicked_gtk_button_clicked));
}

static void
tootle_widgets_status_instance_init (TootleWidgetsStatus * self,
                                     gpointer klass)
{
	self->priv = tootle_widgets_status_get_instance_private (self);
	self->priv->_thread_role = TOOTLE_WIDGETS_STATUS_THREAD_ROLE_NONE;
	self->priv->_reveal_spoiler = FALSE;
	g_type_ensure (TOOTLE_WIDGETS_TYPE_RICH_LABEL);
	g_type_ensure (TOOTLE_WIDGETS_TYPE_AVATAR);
	g_type_ensure (TOOTLE_WIDGETS_TYPE_RICH_LABEL);
	g_type_ensure (TOOTLE_WIDGETS_TYPE_MARKUP_VIEW);
	g_type_ensure (TOOTLE_WIDGETS_ATTACHMENT_TYPE_BOX);
	g_type_ensure (TOOTLE_WIDGETS_TYPE_RICH_LABEL);
	gtk_widget_init_template (GTK_WIDGET (self));
}

static void
tootle_widgets_status_finalize (GObject * obj)
{
	TootleWidgetsStatus * self;
	guint _tmp0_;
	GQuark _tmp1_;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatus);
	g_signal_parse_name ("notify::kind", G_TYPE_OBJECT, &_tmp0_, &_tmp1_, TRUE);
	g_signal_handlers_disconnect_matched ((GObject*) self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, _tmp1_, NULL, (GCallback) _tootle_widgets_status_on_kind_changed_g_object_notify, self);
	_g_object_unref0 (self->priv->_status);
	_g_free0 (self->priv->_kind);
	G_OBJECT_CLASS (tootle_widgets_status_parent_class)->finalize (obj);
}

static GType
tootle_widgets_status_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (TootleWidgetsStatusClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tootle_widgets_status_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TootleWidgetsStatus), 0, (GInstanceInitFunc) tootle_widgets_status_instance_init, NULL };
	GType tootle_widgets_status_type_id;
	tootle_widgets_status_type_id = g_type_register_static (gtk_list_box_row_get_type (), "TootleWidgetsStatus", &g_define_type_info, 0);
	TootleWidgetsStatus_private_offset = g_type_add_instance_private (tootle_widgets_status_type_id, sizeof (TootleWidgetsStatusPrivate));
	return tootle_widgets_status_type_id;
}

GType
tootle_widgets_status_get_type (void)
{
	static volatile gsize tootle_widgets_status_type_id__volatile = 0;
	if (g_once_init_enter (&tootle_widgets_status_type_id__volatile)) {
		GType tootle_widgets_status_type_id;
		tootle_widgets_status_type_id = tootle_widgets_status_get_type_once ();
		g_once_init_leave (&tootle_widgets_status_type_id__volatile, tootle_widgets_status_type_id);
	}
	return tootle_widgets_status_type_id__volatile;
}

static void
_vala_tootle_widgets_status_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec)
{
	TootleWidgetsStatus * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatus);
	switch (property_id) {
		case TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY:
		g_value_set_object (value, tootle_widgets_status_get_status (self));
		break;
		case TOOTLE_WIDGETS_STATUS_KIND_PROPERTY:
		g_value_set_enum (value, tootle_widgets_status_get_kind (self));
		break;
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY:
		g_value_set_enum (value, tootle_widgets_status_get_thread_role (self));
		break;
		case TOOTLE_WIDGETS_STATUS_SPOILER_TEXT_PROPERTY:
		g_value_take_string (value, tootle_widgets_status_get_spoiler_text (self));
		break;
		case TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY:
		g_value_set_boolean (value, tootle_widgets_status_get_reveal_spoiler (self));
		break;
		case TOOTLE_WIDGETS_STATUS_DATE_PROPERTY:
		g_value_take_string (value, tootle_widgets_status_get_date (self));
		break;
		case TOOTLE_WIDGETS_STATUS_TITLE_TEXT_PROPERTY:
		g_value_take_string (value, tootle_widgets_status_get_title_text (self));
		break;
		case TOOTLE_WIDGETS_STATUS_SUBTITLE_TEXT_PROPERTY:
		g_value_take_string (value, tootle_widgets_status_get_subtitle_text (self));
		break;
		case TOOTLE_WIDGETS_STATUS_AVATAR_URL_PROPERTY:
		g_value_take_string (value, tootle_widgets_status_get_avatar_url (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_tootle_widgets_status_set_property (GObject * object,
                                          guint property_id,
                                          const GValue * value,
                                          GParamSpec * pspec)
{
	TootleWidgetsStatus * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TOOTLE_WIDGETS_TYPE_STATUS, TootleWidgetsStatus);
	switch (property_id) {
		case TOOTLE_WIDGETS_STATUS_STATUS_PROPERTY:
		tootle_widgets_status_set_status (self, g_value_get_object (value));
		break;
		case TOOTLE_WIDGETS_STATUS_KIND_PROPERTY:
		tootle_widgets_status_set_kind (self, g_value_get_enum (value));
		break;
		case TOOTLE_WIDGETS_STATUS_THREAD_ROLE_PROPERTY:
		tootle_widgets_status_set_thread_role (self, g_value_get_enum (value));
		break;
		case TOOTLE_WIDGETS_STATUS_REVEAL_SPOILER_PROPERTY:
		tootle_widgets_status_set_reveal_spoiler (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

