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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <handy.h>
#include <glib/gi18n-lib.h>

#define TOOTLE_VIEWS_TYPE_BASE (tootle_views_base_get_type ())
#define TOOTLE_VIEWS_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_BASE, TootleViewsBase))
#define TOOTLE_VIEWS_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_BASE, TootleViewsBaseClass))
#define TOOTLE_VIEWS_IS_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_BASE))
#define TOOTLE_VIEWS_IS_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_BASE))
#define TOOTLE_VIEWS_BASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_BASE, TootleViewsBaseClass))

typedef struct _TootleViewsBase TootleViewsBase;
typedef struct _TootleViewsBaseClass TootleViewsBaseClass;
typedef struct _TootleViewsBasePrivate TootleViewsBasePrivate;

#define TOOTLE_VIEWS_TYPE_TABBED_BASE (tootle_views_tabbed_base_get_type ())
#define TOOTLE_VIEWS_TABBED_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_TABBED_BASE, TootleViewsTabbedBase))
#define TOOTLE_VIEWS_TABBED_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_TABBED_BASE, TootleViewsTabbedBaseClass))
#define TOOTLE_VIEWS_IS_TABBED_BASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_TABBED_BASE))
#define TOOTLE_VIEWS_IS_TABBED_BASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_TABBED_BASE))
#define TOOTLE_VIEWS_TABBED_BASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_TABBED_BASE, TootleViewsTabbedBaseClass))

typedef struct _TootleViewsTabbedBase TootleViewsTabbedBase;
typedef struct _TootleViewsTabbedBaseClass TootleViewsTabbedBaseClass;
typedef struct _TootleViewsTabbedBasePrivate TootleViewsTabbedBasePrivate;

#define TOOTLE_VIEWS_TYPE_MAIN (tootle_views_main_get_type ())
#define TOOTLE_VIEWS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_MAIN, TootleViewsMain))
#define TOOTLE_VIEWS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_MAIN, TootleViewsMainClass))
#define TOOTLE_VIEWS_IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_MAIN))
#define TOOTLE_VIEWS_IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_MAIN))
#define TOOTLE_VIEWS_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_MAIN, TootleViewsMainClass))

typedef struct _TootleViewsMain TootleViewsMain;
typedef struct _TootleViewsMainClass TootleViewsMainClass;
typedef struct _TootleViewsMainPrivate TootleViewsMainPrivate;

#define TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON (tootle_widgets_accounts_button_get_type ())
#define TOOTLE_WIDGETS_ACCOUNTS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON, TootleWidgetsAccountsButton))
#define TOOTLE_WIDGETS_ACCOUNTS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON, TootleWidgetsAccountsButtonClass))
#define TOOTLE_WIDGETS_IS_ACCOUNTS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON))
#define TOOTLE_WIDGETS_IS_ACCOUNTS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON))
#define TOOTLE_WIDGETS_ACCOUNTS_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_WIDGETS_TYPE_ACCOUNTS_BUTTON, TootleWidgetsAccountsButtonClass))

typedef struct _TootleWidgetsAccountsButton TootleWidgetsAccountsButton;
typedef struct _TootleWidgetsAccountsButtonClass TootleWidgetsAccountsButtonClass;
enum  {
	TOOTLE_VIEWS_MAIN_0_PROPERTY,
	TOOTLE_VIEWS_MAIN_NUM_PROPERTIES
};
static GParamSpec* tootle_views_main_properties[TOOTLE_VIEWS_MAIN_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TOOTLE_VIEWS_TYPE_TIMELINE (tootle_views_timeline_get_type ())
#define TOOTLE_VIEWS_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_TIMELINE, TootleViewsTimeline))
#define TOOTLE_VIEWS_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_TIMELINE, TootleViewsTimelineClass))
#define TOOTLE_VIEWS_IS_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_TIMELINE))
#define TOOTLE_VIEWS_IS_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_TIMELINE))
#define TOOTLE_VIEWS_TIMELINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_TIMELINE, TootleViewsTimelineClass))

typedef struct _TootleViewsTimeline TootleViewsTimeline;
typedef struct _TootleViewsTimelineClass TootleViewsTimelineClass;

#define TOOTLE_VIEWS_TYPE_HOME (tootle_views_home_get_type ())
#define TOOTLE_VIEWS_HOME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_HOME, TootleViewsHome))
#define TOOTLE_VIEWS_HOME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_HOME, TootleViewsHomeClass))
#define TOOTLE_VIEWS_IS_HOME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_HOME))
#define TOOTLE_VIEWS_IS_HOME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_HOME))
#define TOOTLE_VIEWS_HOME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_HOME, TootleViewsHomeClass))

typedef struct _TootleViewsHome TootleViewsHome;
typedef struct _TootleViewsHomeClass TootleViewsHomeClass;

#define TOOTLE_VIEWS_TYPE_NOTIFICATIONS (tootle_views_notifications_get_type ())
#define TOOTLE_VIEWS_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_NOTIFICATIONS, TootleViewsNotifications))
#define TOOTLE_VIEWS_NOTIFICATIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_NOTIFICATIONS, TootleViewsNotificationsClass))
#define TOOTLE_VIEWS_IS_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_NOTIFICATIONS))
#define TOOTLE_VIEWS_IS_NOTIFICATIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_NOTIFICATIONS))
#define TOOTLE_VIEWS_NOTIFICATIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_NOTIFICATIONS, TootleViewsNotificationsClass))

typedef struct _TootleViewsNotifications TootleViewsNotifications;
typedef struct _TootleViewsNotificationsClass TootleViewsNotificationsClass;

#define TOOTLE_VIEWS_TYPE_FEDERATED (tootle_views_federated_get_type ())
#define TOOTLE_VIEWS_FEDERATED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_FEDERATED, TootleViewsFederated))
#define TOOTLE_VIEWS_FEDERATED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_FEDERATED, TootleViewsFederatedClass))
#define TOOTLE_VIEWS_IS_FEDERATED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_FEDERATED))
#define TOOTLE_VIEWS_IS_FEDERATED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_FEDERATED))
#define TOOTLE_VIEWS_FEDERATED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_FEDERATED, TootleViewsFederatedClass))

typedef struct _TootleViewsFederated TootleViewsFederated;
typedef struct _TootleViewsFederatedClass TootleViewsFederatedClass;

#define TOOTLE_VIEWS_TYPE_LOCAL (tootle_views_local_get_type ())
#define TOOTLE_VIEWS_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOOTLE_VIEWS_TYPE_LOCAL, TootleViewsLocal))
#define TOOTLE_VIEWS_LOCAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOOTLE_VIEWS_TYPE_LOCAL, TootleViewsLocalClass))
#define TOOTLE_VIEWS_IS_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOOTLE_VIEWS_TYPE_LOCAL))
#define TOOTLE_VIEWS_IS_LOCAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOOTLE_VIEWS_TYPE_LOCAL))
#define TOOTLE_VIEWS_LOCAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TOOTLE_VIEWS_TYPE_LOCAL, TootleViewsLocalClass))

typedef struct _TootleViewsLocal TootleViewsLocal;
typedef struct _TootleViewsLocalClass TootleViewsLocalClass;

struct _TootleViewsBase {
	GtkBox parent_instance;
	TootleViewsBasePrivate * priv;
	HdyHeaderBar* header;
	GtkButton* back_button;
	GtkScrolledWindow* scrolled;
	GtkBox* view;
	HdyClamp* clamp;
	GtkBox* column_view;
	GtkStack* states;
	GtkBox* content_box;
	GtkListBox* content_list;
	GtkButton* status_button;
};

struct _TootleViewsBaseClass {
	GtkBoxClass parent_class;
	void (*build_header) (TootleViewsBase* self);
	void (*clear) (TootleViewsBase* self);
	void (*on_bottom_reached) (TootleViewsBase* self);
	void (*on_shown) (TootleViewsBase* self);
	void (*on_hidden) (TootleViewsBase* self);
	void (*on_content_changed) (TootleViewsBase* self);
	void (*on_error) (TootleViewsBase* self, gint32 code, const gchar* reason);
	void (*on_content_item_activated) (TootleViewsBase* self, GtkListBoxRow* row);
};

struct _TootleViewsTabbedBase {
	TootleViewsBase parent_instance;
	TootleViewsTabbedBasePrivate * priv;
	HdyViewSwitcherTitle* switcher_title;
	HdyViewSwitcherBar* switcher_bar;
	GtkStack* stack;
};

struct _TootleViewsTabbedBaseClass {
	TootleViewsBaseClass parent_class;
};

struct _TootleViewsMain {
	TootleViewsTabbedBase parent_instance;
	TootleViewsMainPrivate * priv;
	TootleWidgetsAccountsButton* account_button;
	GtkButton* compose_button;
	GtkButton* search_button;
};

struct _TootleViewsMainClass {
	TootleViewsTabbedBaseClass parent_class;
};

static gpointer tootle_views_main_parent_class = NULL;

GType tootle_views_base_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsBase, g_object_unref)
GType tootle_views_tabbed_base_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsTabbedBase, g_object_unref)
GType tootle_views_main_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsMain, g_object_unref)
GType tootle_widgets_accounts_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleWidgetsAccountsButton, g_object_unref)
void tootle_views_base_build_header (TootleViewsBase* self);
TootleViewsMain* tootle_views_main_new (void);
TootleViewsMain* tootle_views_main_construct (GType object_type);
TootleViewsTabbedBase* tootle_views_tabbed_base_new (void);
TootleViewsTabbedBase* tootle_views_tabbed_base_construct (GType object_type);
void tootle_views_tabbed_base_add_tab (TootleViewsTabbedBase* self,
                                       TootleViewsBase* view);
TootleViewsHome* tootle_views_home_new (void);
TootleViewsHome* tootle_views_home_construct (GType object_type);
GType tootle_views_timeline_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsTimeline, g_object_unref)
GType tootle_views_home_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsHome, g_object_unref)
TootleViewsNotifications* tootle_views_notifications_new (void);
TootleViewsNotifications* tootle_views_notifications_construct (GType object_type);
GType tootle_views_notifications_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsNotifications, g_object_unref)
TootleViewsLocal* tootle_views_local_new (void);
TootleViewsLocal* tootle_views_local_construct (GType object_type);
GType tootle_views_federated_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsFederated, g_object_unref)
GType tootle_views_local_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TootleViewsLocal, g_object_unref)
TootleViewsFederated* tootle_views_federated_new (void);
TootleViewsFederated* tootle_views_federated_construct (GType object_type);
static void tootle_views_main_real_build_header (TootleViewsBase* base);
TootleWidgetsAccountsButton* tootle_widgets_accounts_button_new (void);
TootleWidgetsAccountsButton* tootle_widgets_accounts_button_construct (GType object_type);
static void tootle_views_main_finalize (GObject * obj);
static GType tootle_views_main_get_type_once (void);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

TootleViewsMain*
tootle_views_main_construct (GType object_type)
{
	TootleViewsMain * self = NULL;
	TootleViewsHome* _tmp0_;
	TootleViewsHome* _tmp1_;
	TootleViewsNotifications* _tmp2_;
	TootleViewsNotifications* _tmp3_;
	TootleViewsLocal* _tmp4_;
	TootleViewsLocal* _tmp5_;
	TootleViewsFederated* _tmp6_;
	TootleViewsFederated* _tmp7_;
	self = (TootleViewsMain*) tootle_views_tabbed_base_construct (object_type);
	_tmp0_ = tootle_views_home_new ();
	g_object_ref_sink (_tmp0_);
	_tmp1_ = _tmp0_;
	tootle_views_tabbed_base_add_tab ((TootleViewsTabbedBase*) self, (TootleViewsBase*) _tmp1_);
	_g_object_unref0 (_tmp1_);
	_tmp2_ = tootle_views_notifications_new ();
	g_object_ref_sink (_tmp2_);
	_tmp3_ = _tmp2_;
	tootle_views_tabbed_base_add_tab ((TootleViewsTabbedBase*) self, (TootleViewsBase*) _tmp3_);
	_g_object_unref0 (_tmp3_);
	_tmp4_ = tootle_views_local_new ();
	g_object_ref_sink (_tmp4_);
	_tmp5_ = _tmp4_;
	tootle_views_tabbed_base_add_tab ((TootleViewsTabbedBase*) self, (TootleViewsBase*) _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = tootle_views_federated_new ();
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	tootle_views_tabbed_base_add_tab ((TootleViewsTabbedBase*) self, (TootleViewsBase*) _tmp7_);
	_g_object_unref0 (_tmp7_);
	return self;
}

TootleViewsMain*
tootle_views_main_new (void)
{
	return tootle_views_main_construct (TOOTLE_VIEWS_TYPE_MAIN);
}

static void
tootle_views_main_real_build_header (TootleViewsBase* base)
{
	TootleViewsMain * self;
	GtkButton* _tmp0_;
	TootleWidgetsAccountsButton* _tmp1_;
	TootleWidgetsAccountsButton* _tmp2_;
	HdyHeaderBar* _tmp3_;
	TootleWidgetsAccountsButton* _tmp4_;
	GtkButton* _tmp5_;
	GtkButton* _tmp6_;
	GtkButton* _tmp7_;
	GtkButton* _tmp8_;
	HdyHeaderBar* _tmp9_;
	GtkButton* _tmp10_;
	GtkButton* _tmp11_;
	GtkButton* _tmp12_;
	GtkButton* _tmp13_;
	GtkButton* _tmp14_;
	HdyHeaderBar* _tmp15_;
	GtkButton* _tmp16_;
	self = (TootleViewsMain*) base;
	TOOTLE_VIEWS_BASE_CLASS (tootle_views_main_parent_class)->build_header ((TootleViewsBase*) G_TYPE_CHECK_INSTANCE_CAST (self, TOOTLE_VIEWS_TYPE_TABBED_BASE, TootleViewsTabbedBase));
	_tmp0_ = ((TootleViewsBase*) self)->back_button;
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, FALSE);
	_tmp1_ = tootle_widgets_accounts_button_new ();
	g_object_ref_sink (_tmp1_);
	_g_object_unref0 (self->account_button);
	self->account_button = _tmp1_;
	_tmp2_ = self->account_button;
	gtk_widget_show ((GtkWidget*) _tmp2_);
	_tmp3_ = ((TootleViewsBase*) self)->header;
	_tmp4_ = self->account_button;
	hdy_header_bar_pack_start (_tmp3_, (GtkWidget*) _tmp4_);
	_tmp5_ = (GtkButton*) gtk_button_new_from_icon_name ("document-edit-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
	g_object_ref_sink (_tmp5_);
	_g_object_unref0 (self->compose_button);
	self->compose_button = _tmp5_;
	_tmp6_ = self->compose_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp6_, _ ("Compose"));
	_tmp7_ = self->compose_button;
	gtk_actionable_set_action_name ((GtkActionable*) _tmp7_, "app.compose");
	_tmp8_ = self->compose_button;
	gtk_widget_show ((GtkWidget*) _tmp8_);
	_tmp9_ = ((TootleViewsBase*) self)->header;
	_tmp10_ = self->compose_button;
	hdy_header_bar_pack_start (_tmp9_, (GtkWidget*) _tmp10_);
	_tmp11_ = (GtkButton*) gtk_button_new_from_icon_name ("edit-find-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
	g_object_ref_sink (_tmp11_);
	_g_object_unref0 (self->search_button);
	self->search_button = _tmp11_;
	_tmp12_ = self->search_button;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp12_, _ ("Search"));
	_tmp13_ = self->search_button;
	gtk_actionable_set_action_name ((GtkActionable*) _tmp13_, "app.search");
	_tmp14_ = self->search_button;
	gtk_widget_show ((GtkWidget*) _tmp14_);
	_tmp15_ = ((TootleViewsBase*) self)->header;
	_tmp16_ = self->search_button;
	hdy_header_bar_pack_end (_tmp15_, (GtkWidget*) _tmp16_);
}

static void
tootle_views_main_class_init (TootleViewsMainClass * klass,
                              gpointer klass_data)
{
	tootle_views_main_parent_class = g_type_class_peek_parent (klass);
	((TootleViewsBaseClass *) klass)->build_header = (void (*) (TootleViewsBase*)) tootle_views_main_real_build_header;
	G_OBJECT_CLASS (klass)->finalize = tootle_views_main_finalize;
}

static void
tootle_views_main_instance_init (TootleViewsMain * self,
                                 gpointer klass)
{
}

static void
tootle_views_main_finalize (GObject * obj)
{
	TootleViewsMain * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TOOTLE_VIEWS_TYPE_MAIN, TootleViewsMain);
	_g_object_unref0 (self->account_button);
	_g_object_unref0 (self->compose_button);
	_g_object_unref0 (self->search_button);
	G_OBJECT_CLASS (tootle_views_main_parent_class)->finalize (obj);
}

static GType
tootle_views_main_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (TootleViewsMainClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tootle_views_main_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TootleViewsMain), 0, (GInstanceInitFunc) tootle_views_main_instance_init, NULL };
	GType tootle_views_main_type_id;
	tootle_views_main_type_id = g_type_register_static (TOOTLE_VIEWS_TYPE_TABBED_BASE, "TootleViewsMain", &g_define_type_info, 0);
	return tootle_views_main_type_id;
}

GType
tootle_views_main_get_type (void)
{
	static volatile gsize tootle_views_main_type_id__volatile = 0;
	if (g_once_init_enter (&tootle_views_main_type_id__volatile)) {
		GType tootle_views_main_type_id;
		tootle_views_main_type_id = tootle_views_main_get_type_once ();
		g_once_init_leave (&tootle_views_main_type_id__volatile, tootle_views_main_type_id);
	}
	return tootle_views_main_type_id__volatile;
}

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;
}

