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

/*
 * Copyright 2019-2023 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <pango/pango.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 TASKS_WIDGETS_TYPE_SCHEDULED_ROW (tasks_widgets_scheduled_row_get_type ())
#define TASKS_WIDGETS_SCHEDULED_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASKS_WIDGETS_TYPE_SCHEDULED_ROW, TasksWidgetsScheduledRow))
#define TASKS_WIDGETS_SCHEDULED_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TASKS_WIDGETS_TYPE_SCHEDULED_ROW, TasksWidgetsScheduledRowClass))
#define TASKS_WIDGETS_IS_SCHEDULED_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASKS_WIDGETS_TYPE_SCHEDULED_ROW))
#define TASKS_WIDGETS_IS_SCHEDULED_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TASKS_WIDGETS_TYPE_SCHEDULED_ROW))
#define TASKS_WIDGETS_SCHEDULED_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TASKS_WIDGETS_TYPE_SCHEDULED_ROW, TasksWidgetsScheduledRowClass))

typedef struct _TasksWidgetsScheduledRow TasksWidgetsScheduledRow;
typedef struct _TasksWidgetsScheduledRowClass TasksWidgetsScheduledRowClass;
typedef struct _TasksWidgetsScheduledRowPrivate TasksWidgetsScheduledRowPrivate;
enum  {
	TASKS_WIDGETS_SCHEDULED_ROW_0_PROPERTY,
	TASKS_WIDGETS_SCHEDULED_ROW_NUM_PROPERTIES
};
static GParamSpec* tasks_widgets_scheduled_row_properties[TASKS_WIDGETS_SCHEDULED_ROW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _TasksWidgetsScheduledRow {
	GtkListBoxRow parent_instance;
	TasksWidgetsScheduledRowPrivate * priv;
};

struct _TasksWidgetsScheduledRowClass {
	GtkListBoxRowClass parent_class;
};

static gpointer tasks_widgets_scheduled_row_parent_class = NULL;

VALA_EXTERN GType tasks_widgets_scheduled_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (TasksWidgetsScheduledRow, g_object_unref)
VALA_EXTERN TasksWidgetsScheduledRow* tasks_widgets_scheduled_row_new (void);
VALA_EXTERN TasksWidgetsScheduledRow* tasks_widgets_scheduled_row_construct (GType object_type);
static GObject * tasks_widgets_scheduled_row_constructor (GType type,
                                                   guint n_construct_properties,
                                                   GObjectConstructParam * construct_properties);
static GType tasks_widgets_scheduled_row_get_type_once (void);

TasksWidgetsScheduledRow*
tasks_widgets_scheduled_row_construct (GType object_type)
{
	TasksWidgetsScheduledRow * self = NULL;
	self = (TasksWidgetsScheduledRow*) g_object_new (object_type, NULL);
	return self;
}

TasksWidgetsScheduledRow*
tasks_widgets_scheduled_row_new (void)
{
	return tasks_widgets_scheduled_row_construct (TASKS_WIDGETS_TYPE_SCHEDULED_ROW);
}

static GObject *
tasks_widgets_scheduled_row_constructor (GType type,
                                         guint n_construct_properties,
                                         GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	TasksWidgetsScheduledRow * self;
	GtkImage* icon = NULL;
	GtkImage* _tmp0_;
	GtkLabel* display_name_label = NULL;
	GtkLabel* _tmp1_ = NULL;
	GtkBox* box = NULL;
	GtkBox* _tmp2_ = NULL;
	GtkBox* _tmp3_;
	GtkImage* _tmp4_;
	GtkBox* _tmp5_;
	GtkLabel* _tmp6_;
	GtkBox* _tmp7_;
	parent_class = G_OBJECT_CLASS (tasks_widgets_scheduled_row_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TASKS_WIDGETS_TYPE_SCHEDULED_ROW, TasksWidgetsScheduledRow);
	_tmp0_ = (GtkImage*) gtk_image_new_from_icon_name ("appointment");
	g_object_ref_sink (_tmp0_);
	icon = _tmp0_;
	_tmp1_ = (GtkLabel*) gtk_label_new (_ ("Scheduled"));
	gtk_label_set_ellipsize (_tmp1_, PANGO_ELLIPSIZE_MIDDLE);
	gtk_widget_set_halign ((GtkWidget*) _tmp1_, GTK_ALIGN_START);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp1_, TRUE);
	gtk_widget_set_margin_end ((GtkWidget*) _tmp1_, 9);
	g_object_ref_sink (_tmp1_);
	display_name_label = _tmp1_;
	_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
	gtk_widget_set_margin_end ((GtkWidget*) _tmp2_, 6);
	g_object_ref_sink (_tmp2_);
	box = _tmp2_;
	_tmp3_ = box;
	_tmp4_ = icon;
	gtk_box_append (_tmp3_, (GtkWidget*) _tmp4_);
	_tmp5_ = box;
	_tmp6_ = display_name_label;
	gtk_box_append (_tmp5_, (GtkWidget*) _tmp6_);
	_tmp7_ = box;
	gtk_list_box_row_set_child ((GtkListBoxRow*) self, (GtkWidget*) _tmp7_);
	_g_object_unref0 (box);
	_g_object_unref0 (display_name_label);
	_g_object_unref0 (icon);
	return obj;
}

static void
tasks_widgets_scheduled_row_class_init (TasksWidgetsScheduledRowClass * klass,
                                        gpointer klass_data)
{
	tasks_widgets_scheduled_row_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = tasks_widgets_scheduled_row_constructor;
}

static void
tasks_widgets_scheduled_row_instance_init (TasksWidgetsScheduledRow * self,
                                           gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
tasks_widgets_scheduled_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (TasksWidgetsScheduledRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tasks_widgets_scheduled_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TasksWidgetsScheduledRow), 0, (GInstanceInitFunc) tasks_widgets_scheduled_row_instance_init, NULL };
	GType tasks_widgets_scheduled_row_type_id;
	tasks_widgets_scheduled_row_type_id = g_type_register_static (gtk_list_box_row_get_type (), "TasksWidgetsScheduledRow", &g_define_type_info, 0);
	return tasks_widgets_scheduled_row_type_id;
}

GType
tasks_widgets_scheduled_row_get_type (void)
{
	static gsize tasks_widgets_scheduled_row_type_id__once = 0;
	if (g_once_init_enter (&tasks_widgets_scheduled_row_type_id__once)) {
		GType tasks_widgets_scheduled_row_type_id;
		tasks_widgets_scheduled_row_type_id = tasks_widgets_scheduled_row_get_type_once ();
		g_once_init_leave (&tasks_widgets_scheduled_row_type_id__once, tasks_widgets_scheduled_row_type_id);
	}
	return tasks_widgets_scheduled_row_type_id__once;
}

