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

/*
    GtkBuilderWindow.vala
    Copyright (C) 2010 Maia Kozheva <sikon@ubuntu.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

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

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define STEADYFLOW_UI_TYPE_IGTK_BUILDER_CONTAINER (steadyflow_ui_igtk_builder_container_get_type ())
#define STEADYFLOW_UI_IGTK_BUILDER_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STEADYFLOW_UI_TYPE_IGTK_BUILDER_CONTAINER, SteadyflowUIIGtkBuilderContainer))
#define STEADYFLOW_UI_IS_IGTK_BUILDER_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STEADYFLOW_UI_TYPE_IGTK_BUILDER_CONTAINER))
#define STEADYFLOW_UI_IGTK_BUILDER_CONTAINER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), STEADYFLOW_UI_TYPE_IGTK_BUILDER_CONTAINER, SteadyflowUIIGtkBuilderContainerIface))

typedef struct _SteadyflowUIIGtkBuilderContainer SteadyflowUIIGtkBuilderContainer;
typedef struct _SteadyflowUIIGtkBuilderContainerIface SteadyflowUIIGtkBuilderContainerIface;

#define STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW (steadyflow_ui_gtk_builder_window_get_type ())
#define STEADYFLOW_UI_GTK_BUILDER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW, SteadyflowUIGtkBuilderWindow))
#define STEADYFLOW_UI_GTK_BUILDER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW, SteadyflowUIGtkBuilderWindowClass))
#define STEADYFLOW_UI_IS_GTK_BUILDER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW))
#define STEADYFLOW_UI_IS_GTK_BUILDER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW))
#define STEADYFLOW_UI_GTK_BUILDER_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW, SteadyflowUIGtkBuilderWindowClass))

typedef struct _SteadyflowUIGtkBuilderWindow SteadyflowUIGtkBuilderWindow;
typedef struct _SteadyflowUIGtkBuilderWindowClass SteadyflowUIGtkBuilderWindowClass;
typedef struct _SteadyflowUIGtkBuilderWindowPrivate SteadyflowUIGtkBuilderWindowPrivate;
enum  {
	STEADYFLOW_UI_GTK_BUILDER_WINDOW_0_PROPERTY,
	STEADYFLOW_UI_GTK_BUILDER_WINDOW_NUM_PROPERTIES
};
static GParamSpec* steadyflow_ui_gtk_builder_window_properties[STEADYFLOW_UI_GTK_BUILDER_WINDOW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _SteadyflowUIIGtkBuilderContainerIface {
	GTypeInterface parent_iface;
	GtkBuilder* (*get_builder) (SteadyflowUIIGtkBuilderContainer* self);
};

struct _SteadyflowUIGtkBuilderWindow {
	GtkWindow parent_instance;
	SteadyflowUIGtkBuilderWindowPrivate * priv;
};

struct _SteadyflowUIGtkBuilderWindowClass {
	GtkWindowClass parent_class;
};

struct _SteadyflowUIGtkBuilderWindowPrivate {
	GtkBuilder* builder;
};

static gint SteadyflowUIGtkBuilderWindow_private_offset;
static gpointer steadyflow_ui_gtk_builder_window_parent_class = NULL;
static SteadyflowUIIGtkBuilderContainerIface * steadyflow_ui_gtk_builder_window_steadyflow_ui_igtk_builder_container_parent_iface = NULL;

VALA_EXTERN GType steadyflow_ui_igtk_builder_container_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType steadyflow_ui_gtk_builder_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SteadyflowUIGtkBuilderWindow, g_object_unref)
VALA_EXTERN SteadyflowUIGtkBuilderWindow* steadyflow_ui_gtk_builder_window_construct (GType object_type,
                                                                          const gchar* file_id,
                                                                          GError** error);
VALA_EXTERN GtkBuilder* steadyflow_ui_igtk_builder_container_init_builder (SteadyflowUIIGtkBuilderContainer* self,
                                                               GtkContainer* container,
                                                               const gchar* file_id);
static GtkBuilder* steadyflow_ui_gtk_builder_window_real_get_builder (SteadyflowUIIGtkBuilderContainer* base);
VALA_EXTERN GtkBuilder* steadyflow_ui_igtk_builder_container_get_builder (SteadyflowUIIGtkBuilderContainer* self);
static void steadyflow_ui_gtk_builder_window_finalize (GObject * obj);
static GType steadyflow_ui_gtk_builder_window_get_type_once (void);

static inline gpointer
steadyflow_ui_gtk_builder_window_get_instance_private (SteadyflowUIGtkBuilderWindow* self)
{
	return G_STRUCT_MEMBER_P (self, SteadyflowUIGtkBuilderWindow_private_offset);
}

SteadyflowUIGtkBuilderWindow*
steadyflow_ui_gtk_builder_window_construct (GType object_type,
                                            const gchar* file_id,
                                            GError** error)
{
	SteadyflowUIGtkBuilderWindow * self = NULL;
	GtkBuilder* _tmp0_;
	g_return_val_if_fail (file_id != NULL, NULL);
	self = (SteadyflowUIGtkBuilderWindow*) g_object_new (object_type, NULL);
	_tmp0_ = steadyflow_ui_igtk_builder_container_init_builder ((SteadyflowUIIGtkBuilderContainer*) self, (GtkContainer*) self, file_id);
	_g_object_unref0 (self->priv->builder);
	self->priv->builder = _tmp0_;
	return self;
}

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

static GtkBuilder*
steadyflow_ui_gtk_builder_window_real_get_builder (SteadyflowUIIGtkBuilderContainer* base)
{
	SteadyflowUIGtkBuilderWindow * self;
	GtkBuilder* _tmp0_;
	GtkBuilder* _tmp1_;
	GtkBuilder* result;
	self = (SteadyflowUIGtkBuilderWindow*) base;
	_tmp0_ = self->priv->builder;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
steadyflow_ui_gtk_builder_window_class_init (SteadyflowUIGtkBuilderWindowClass * klass,
                                             gpointer klass_data)
{
	steadyflow_ui_gtk_builder_window_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SteadyflowUIGtkBuilderWindow_private_offset);
	G_OBJECT_CLASS (klass)->finalize = steadyflow_ui_gtk_builder_window_finalize;
}

static void
steadyflow_ui_gtk_builder_window_steadyflow_ui_igtk_builder_container_interface_init (SteadyflowUIIGtkBuilderContainerIface * iface,
                                                                                      gpointer iface_data)
{
	steadyflow_ui_gtk_builder_window_steadyflow_ui_igtk_builder_container_parent_iface = g_type_interface_peek_parent (iface);
	iface->get_builder = (GtkBuilder* (*) (SteadyflowUIIGtkBuilderContainer*)) steadyflow_ui_gtk_builder_window_real_get_builder;
}

static void
steadyflow_ui_gtk_builder_window_instance_init (SteadyflowUIGtkBuilderWindow * self,
                                                gpointer klass)
{
	self->priv = steadyflow_ui_gtk_builder_window_get_instance_private (self);
}

static void
steadyflow_ui_gtk_builder_window_finalize (GObject * obj)
{
	SteadyflowUIGtkBuilderWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, STEADYFLOW_UI_TYPE_GTK_BUILDER_WINDOW, SteadyflowUIGtkBuilderWindow);
	_g_object_unref0 (self->priv->builder);
	G_OBJECT_CLASS (steadyflow_ui_gtk_builder_window_parent_class)->finalize (obj);
}

static GType
steadyflow_ui_gtk_builder_window_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SteadyflowUIGtkBuilderWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) steadyflow_ui_gtk_builder_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SteadyflowUIGtkBuilderWindow), 0, (GInstanceInitFunc) steadyflow_ui_gtk_builder_window_instance_init, NULL };
	static const GInterfaceInfo steadyflow_ui_igtk_builder_container_info = { (GInterfaceInitFunc) steadyflow_ui_gtk_builder_window_steadyflow_ui_igtk_builder_container_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType steadyflow_ui_gtk_builder_window_type_id;
	steadyflow_ui_gtk_builder_window_type_id = g_type_register_static (gtk_window_get_type (), "SteadyflowUIGtkBuilderWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
	g_type_add_interface_static (steadyflow_ui_gtk_builder_window_type_id, STEADYFLOW_UI_TYPE_IGTK_BUILDER_CONTAINER, &steadyflow_ui_igtk_builder_container_info);
	SteadyflowUIGtkBuilderWindow_private_offset = g_type_add_instance_private (steadyflow_ui_gtk_builder_window_type_id, sizeof (SteadyflowUIGtkBuilderWindowPrivate));
	return steadyflow_ui_gtk_builder_window_type_id;
}

GType
steadyflow_ui_gtk_builder_window_get_type (void)
{
	static volatile gsize steadyflow_ui_gtk_builder_window_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_ui_gtk_builder_window_type_id__once)) {
		GType steadyflow_ui_gtk_builder_window_type_id;
		steadyflow_ui_gtk_builder_window_type_id = steadyflow_ui_gtk_builder_window_get_type_once ();
		g_once_init_leave (&steadyflow_ui_gtk_builder_window_type_id__once, steadyflow_ui_gtk_builder_window_type_id);
	}
	return steadyflow_ui_gtk_builder_window_type_id__once;
}

