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

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <pulse/pulseaudio.h>
#include <gee.h>
#include <gdk/gdk.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 SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW (sway_notification_center_widgets_sink_input_row_get_type ())
#define SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW, SwayNotificationCenterWidgetsSinkInputRow))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW, SwayNotificationCenterWidgetsSinkInputRowClass))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_SINK_INPUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_SINK_INPUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW, SwayNotificationCenterWidgetsSinkInputRowClass))

typedef struct _SwayNotificationCenterWidgetsSinkInputRow SwayNotificationCenterWidgetsSinkInputRow;
typedef struct _SwayNotificationCenterWidgetsSinkInputRowClass SwayNotificationCenterWidgetsSinkInputRowClass;
typedef struct _SwayNotificationCenterWidgetsSinkInputRowPrivate SwayNotificationCenterWidgetsSinkInputRowPrivate;

#define SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT (sway_notification_center_widgets_pulse_sink_input_get_type ())
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_SINK_INPUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT, SwayNotificationCenterWidgetsPulseSinkInput))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_SINK_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT, SwayNotificationCenterWidgetsPulseSinkInputClass))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_SINK_INPUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_SINK_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_SINK_INPUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_SINK_INPUT, SwayNotificationCenterWidgetsPulseSinkInputClass))

typedef struct _SwayNotificationCenterWidgetsPulseSinkInput SwayNotificationCenterWidgetsPulseSinkInput;
typedef struct _SwayNotificationCenterWidgetsPulseSinkInputClass SwayNotificationCenterWidgetsPulseSinkInputClass;

#define SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON (sway_notification_center_widgets_pulse_daemon_get_type ())
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON, SwayNotificationCenterWidgetsPulseDaemon))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON, SwayNotificationCenterWidgetsPulseDaemonClass))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON))
#define SWAY_NOTIFICATION_CENTER_WIDGETS_PULSE_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_PULSE_DAEMON, SwayNotificationCenterWidgetsPulseDaemonClass))

typedef struct _SwayNotificationCenterWidgetsPulseDaemon SwayNotificationCenterWidgetsPulseDaemon;
typedef struct _SwayNotificationCenterWidgetsPulseDaemonClass SwayNotificationCenterWidgetsPulseDaemonClass;
enum  {
	SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW_0_PROPERTY,
	SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW_NUM_PROPERTIES
};
static GParamSpec* sway_notification_center_widgets_sink_input_row_properties[SWAY_NOTIFICATION_CENTER_WIDGETS_SINK_INPUT_ROW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block37Data Block37Data;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _SwayNotificationCenterWidgetsPulseSinkInputPrivate SwayNotificationCenterWidgetsPulseSinkInputPrivate;

struct _SwayNotificationCenterWidgetsSinkInputRow {
	GtkListBoxRow parent_instance;
	SwayNotificationCenterWidgetsSinkInputRowPrivate * priv;
	SwayNotificationCenterWidgetsPulseSinkInput* sink_input;
};

struct _SwayNotificationCenterWidgetsSinkInputRowClass {
	GtkListBoxRowClass parent_class;
};

struct _SwayNotificationCenterWidgetsSinkInputRowPrivate {
	GtkBox* container;
	GtkImage* icon;
	GtkLabel* label;
	GtkScale* scale;
	SwayNotificationCenterWidgetsPulseDaemon* client;
	gboolean show_per_app_icon;
	gboolean show_per_app_label;
};

struct _Block37Data {
	int _ref_count_;
	SwayNotificationCenterWidgetsSinkInputRow* self;
	SwayNotificationCenterWidgetsPulseSinkInput* sink_input;
	SwayNotificationCenterWidgetsPulseDaemon* client;
};

struct _SwayNotificationCenterWidgetsPulseSinkInput {
	GObject parent_instance;
	SwayNotificationCenterWidgetsPulseSinkInputPrivate * priv;
	guint32 index;
	guint32 sink_index;
	guint32 client_index;
	gchar* name;
	gchar* application_binary;
	gchar* application_icon_name;
	gchar* media_name;
	gboolean is_muted;
	gdouble volume;
	pa_cvolume cvolume;
	pa_channel_map channel_map;
	GeeLinkedList* volume_operations;
	gboolean active;
};

struct _SwayNotificationCenterWidgetsPulseSinkInputClass {
	GObjectClass parent_class;
};

static gint SwayNotificationCenterWidgetsSinkInputRow_private_offset;
static gpointer sway_notification_center_widgets_sink_input_row_parent_class = NULL;

VALA_EXTERN GType sway_notification_center_widgets_sink_input_row_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterWidgetsSinkInputRow, g_object_unref)
VALA_EXTERN GType sway_notification_center_widgets_pulse_sink_input_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterWidgetsPulseSinkInput, g_object_unref)
VALA_EXTERN GType sway_notification_center_widgets_pulse_daemon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterWidgetsPulseDaemon, g_object_unref)
VALA_EXTERN SwayNotificationCenterWidgetsSinkInputRow* sway_notification_center_widgets_sink_input_row_new (SwayNotificationCenterWidgetsPulseSinkInput* sink_input,
                                                                                                SwayNotificationCenterWidgetsPulseDaemon* client,
                                                                                                gint icon_size,
                                                                                                gboolean show_per_app_icon,
                                                                                                gboolean show_per_app_label);
VALA_EXTERN SwayNotificationCenterWidgetsSinkInputRow* sway_notification_center_widgets_sink_input_row_construct (GType object_type,
                                                                                                      SwayNotificationCenterWidgetsPulseSinkInput* sink_input,
                                                                                                      SwayNotificationCenterWidgetsPulseDaemon* client,
                                                                                                      gint icon_size,
                                                                                                      gboolean show_per_app_icon,
                                                                                                      gboolean show_per_app_label);
static Block37Data* block37_data_ref (Block37Data* _data37_);
static void block37_data_unref (void * _userdata_);
VALA_EXTERN void sway_notification_center_widgets_sink_input_row_update (SwayNotificationCenterWidgetsSinkInputRow* self,
                                                             SwayNotificationCenterWidgetsPulseSinkInput* sink_input);
static void __lambda82_ (Block37Data* _data37_);
VALA_EXTERN void sway_notification_center_widgets_pulse_daemon_set_sink_input_volume (SwayNotificationCenterWidgetsPulseDaemon* self,
                                                                          SwayNotificationCenterWidgetsPulseSinkInput* sink_input,
                                                                          gdouble volume);
static void ___lambda82__gtk_range_value_changed (GtkRange* _sender,
                                           gpointer self);
static void sway_notification_center_widgets_sink_input_row_finalize (GObject * obj);
static GType sway_notification_center_widgets_sink_input_row_get_type_once (void);

static inline gpointer
sway_notification_center_widgets_sink_input_row_get_instance_private (SwayNotificationCenterWidgetsSinkInputRow* self)
{
	return G_STRUCT_MEMBER_P (self, SwayNotificationCenterWidgetsSinkInputRow_private_offset);
}

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

static Block37Data*
block37_data_ref (Block37Data* _data37_)
{
	g_atomic_int_inc (&_data37_->_ref_count_);
	return _data37_;
}

static void
block37_data_unref (void * _userdata_)
{
	Block37Data* _data37_;
	_data37_ = (Block37Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data37_->_ref_count_)) {
		SwayNotificationCenterWidgetsSinkInputRow* self;
		self = _data37_->self;
		_g_object_unref0 (_data37_->sink_input);
		_g_object_unref0 (_data37_->client);
		_g_object_unref0 (self);
		g_slice_free (Block37Data, _data37_);
	}
}

static void
__lambda82_ (Block37Data* _data37_)
{
	SwayNotificationCenterWidgetsSinkInputRow* self;
	GtkScale* _tmp0_;
	GtkScale* _tmp1_;
	GtkScale* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	self = _data37_->self;
	_tmp0_ = self->priv->scale;
	sway_notification_center_widgets_pulse_daemon_set_sink_input_volume (_data37_->client, _data37_->sink_input, (gdouble) ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange))));
	_tmp1_ = self->priv->scale;
	_tmp2_ = self->priv->scale;
	_tmp3_ = g_strdup_printf ("%i", (gint) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange)));
	_tmp4_ = _tmp3_;
	gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), _tmp4_);
	_g_free0 (_tmp4_);
}

static void
___lambda82__gtk_range_value_changed (GtkRange* _sender,
                                      gpointer self)
{
	__lambda82_ (self);
}

SwayNotificationCenterWidgetsSinkInputRow*
sway_notification_center_widgets_sink_input_row_construct (GType object_type,
                                                           SwayNotificationCenterWidgetsPulseSinkInput* sink_input,
                                                           SwayNotificationCenterWidgetsPulseDaemon* client,
                                                           gint icon_size,
                                                           gboolean show_per_app_icon,
                                                           gboolean show_per_app_label)
{
	SwayNotificationCenterWidgetsSinkInputRow * self = NULL;
	Block37Data* _data37_;
	SwayNotificationCenterWidgetsPulseSinkInput* _tmp0_;
	SwayNotificationCenterWidgetsPulseDaemon* _tmp1_;
	GtkScale* _tmp2_;
	GtkScale* _tmp3_;
	GtkImage* _tmp4_;
	GtkBox* _tmp5_;
	GtkBox* _tmp10_;
	GtkScale* _tmp11_;
	GtkBox* _tmp12_;
	GtkScale* _tmp13_;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_SINK_INPUT (sink_input), NULL);
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_DAEMON (client), NULL);
	_data37_ = g_slice_new0 (Block37Data);
	_data37_->_ref_count_ = 1;
	_tmp0_ = _g_object_ref0 (sink_input);
	_g_object_unref0 (_data37_->sink_input);
	_data37_->sink_input = _tmp0_;
	_tmp1_ = _g_object_ref0 (client);
	_g_object_unref0 (_data37_->client);
	_data37_->client = _tmp1_;
	self = (SwayNotificationCenterWidgetsSinkInputRow*) g_object_new (object_type, NULL);
	_data37_->self = g_object_ref (self);
	self->priv->client = _data37_->client;
	self->priv->show_per_app_icon = show_per_app_icon;
	self->priv->show_per_app_label = show_per_app_label;
	gtk_list_box_row_set_activatable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow), FALSE);
	sway_notification_center_widgets_sink_input_row_update (self, _data37_->sink_input);
	_tmp2_ = self->priv->scale;
	gtk_scale_set_draw_value (_tmp2_, FALSE);
	_tmp3_ = self->priv->scale;
	gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE);
	_tmp4_ = self->priv->icon;
	gtk_image_set_pixel_size (_tmp4_, icon_size);
	_tmp5_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
	if (_tmp5_) {
		g_object_set_data ((GObject *) _tmp5_, "vala-creation-function", "SwayNotificationCenter.Widgets.SinkInputRow.new");
	}
	g_object_ref_sink (_tmp5_);
	_g_object_unref0 (self->priv->container);
	self->priv->container = _tmp5_;
	if (show_per_app_icon) {
		GtkBox* _tmp6_;
		GtkImage* _tmp7_;
		_tmp6_ = self->priv->container;
		_tmp7_ = self->priv->icon;
		gtk_box_append (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget));
	}
	if (show_per_app_label) {
		GtkBox* _tmp8_;
		GtkLabel* _tmp9_;
		_tmp8_ = self->priv->container;
		_tmp9_ = self->priv->label;
		gtk_box_append (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget));
	}
	_tmp10_ = self->priv->container;
	_tmp11_ = self->priv->scale;
	gtk_box_append (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget));
	_tmp12_ = self->priv->container;
	gtk_list_box_row_set_child (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_list_box_row_get_type (), GtkListBoxRow), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget));
	_tmp13_ = self->priv->scale;
	g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) ___lambda82__gtk_range_value_changed, block37_data_ref (_data37_), (GClosureNotify) block37_data_unref, 0);
	block37_data_unref (_data37_);
	_data37_ = NULL;
	return self;
}

SwayNotificationCenterWidgetsSinkInputRow*
sway_notification_center_widgets_sink_input_row_new (SwayNotificationCenterWidgetsPulseSinkInput* sink_input,
                                                     SwayNotificationCenterWidgetsPulseDaemon* client,
                                                     gint icon_size,
                                                     gboolean show_per_app_icon,
                                                     gboolean show_per_app_label)
{
	return sway_notification_center_widgets_sink_input_row_construct (SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW, sink_input, client, icon_size, show_per_app_icon, show_per_app_label);
}

void
sway_notification_center_widgets_sink_input_row_update (SwayNotificationCenterWidgetsSinkInputRow* self,
                                                        SwayNotificationCenterWidgetsPulseSinkInput* sink_input)
{
	GtkScale* _tmp16_;
	GtkScale* _tmp17_;
	GtkScale* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_WIDGETS_IS_SINK_INPUT_ROW (self));
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_WIDGETS_IS_PULSE_SINK_INPUT (sink_input));
	self->sink_input = sink_input;
	if (self->priv->show_per_app_icon) {
		gchar* icon_name = NULL;
		const gchar* _tmp0_;
		GtkIconTheme* theme = NULL;
		GdkDisplay* _tmp5_;
		GtkIconTheme* _tmp6_;
		GtkIconTheme* _tmp7_;
		GtkIconTheme* _tmp8_;
		const gchar* _tmp9_;
		_tmp0_ = sink_input->application_icon_name;
		if (_tmp0_ != NULL) {
			const gchar* _tmp1_;
			gchar* _tmp2_;
			_tmp1_ = sink_input->application_icon_name;
			_tmp2_ = g_strdup (_tmp1_);
			_g_free0 (icon_name);
			icon_name = _tmp2_;
		} else {
			const gchar* _tmp3_;
			gchar* _tmp4_;
			_tmp3_ = sink_input->application_binary;
			_tmp4_ = g_strdup (_tmp3_);
			_g_free0 (icon_name);
			icon_name = _tmp4_;
		}
		_tmp5_ = gdk_display_get_default ();
		_tmp6_ = gtk_icon_theme_get_for_display (_tmp5_);
		_tmp7_ = _g_object_ref0 (_tmp6_);
		theme = _tmp7_;
		_tmp8_ = theme;
		_tmp9_ = icon_name;
		if (gtk_icon_theme_has_icon (_tmp8_, _tmp9_)) {
			GtkImage* _tmp10_;
			const gchar* _tmp11_;
			_tmp10_ = self->priv->icon;
			_tmp11_ = icon_name;
			gtk_image_set_from_icon_name (_tmp10_, _tmp11_);
		} else {
			GtkImage* _tmp12_;
			_tmp12_ = self->priv->icon;
			gtk_image_set_from_icon_name (_tmp12_, "application-x-executable");
		}
		_g_object_unref0 (theme);
		_g_free0 (icon_name);
	}
	if (self->priv->show_per_app_label) {
		GtkLabel* _tmp13_;
		SwayNotificationCenterWidgetsPulseSinkInput* _tmp14_;
		const gchar* _tmp15_;
		_tmp13_ = self->priv->label;
		_tmp14_ = self->sink_input;
		_tmp15_ = _tmp14_->name;
		gtk_label_set_text (_tmp13_, _tmp15_);
	}
	_tmp16_ = self->priv->scale;
	gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_range_get_type (), GtkRange), sink_input->volume);
	_tmp17_ = self->priv->scale;
	_tmp18_ = self->priv->scale;
	_tmp19_ = g_strdup_printf ("%i", (gint) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_range_get_type (), GtkRange)));
	_tmp20_ = _tmp19_;
	gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), _tmp20_);
	_g_free0 (_tmp20_);
}

static void
sway_notification_center_widgets_sink_input_row_class_init (SwayNotificationCenterWidgetsSinkInputRowClass * klass,
                                                            gpointer klass_data)
{
	sway_notification_center_widgets_sink_input_row_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SwayNotificationCenterWidgetsSinkInputRow_private_offset);
	G_OBJECT_CLASS (klass)->finalize = sway_notification_center_widgets_sink_input_row_finalize;
}

static void
sway_notification_center_widgets_sink_input_row_instance_init (SwayNotificationCenterWidgetsSinkInputRow * self,
                                                               gpointer klass)
{
	GtkImage* _tmp0_;
	GtkLabel* _tmp1_;
	GtkScale* _tmp2_;
	self->priv = sway_notification_center_widgets_sink_input_row_get_instance_private (self);
	_tmp0_ = (GtkImage*) gtk_image_new ();
	if (_tmp0_) {
		g_object_set_data ((GObject *) _tmp0_, "vala-creation-function", "");
	}
	g_object_ref_sink (_tmp0_);
	self->priv->icon = _tmp0_;
	_tmp1_ = (GtkLabel*) gtk_label_new (NULL);
	if (_tmp1_) {
		g_object_set_data ((GObject *) _tmp1_, "vala-creation-function", "");
	}
	g_object_ref_sink (_tmp1_);
	self->priv->label = _tmp1_;
	_tmp2_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) 0, (gdouble) 100, (gdouble) 1);
	if (_tmp2_) {
		g_object_set_data ((GObject *) _tmp2_, "vala-creation-function", "");
	}
	g_object_ref_sink (_tmp2_);
	self->priv->scale = _tmp2_;
}

static void
sway_notification_center_widgets_sink_input_row_finalize (GObject * obj)
{
	SwayNotificationCenterWidgetsSinkInputRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SWAY_NOTIFICATION_CENTER_WIDGETS_TYPE_SINK_INPUT_ROW, SwayNotificationCenterWidgetsSinkInputRow);
	_g_object_unref0 (self->priv->container);
	_g_object_unref0 (self->priv->icon);
	_g_object_unref0 (self->priv->label);
	_g_object_unref0 (self->priv->scale);
	G_OBJECT_CLASS (sway_notification_center_widgets_sink_input_row_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
sway_notification_center_widgets_sink_input_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SwayNotificationCenterWidgetsSinkInputRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sway_notification_center_widgets_sink_input_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SwayNotificationCenterWidgetsSinkInputRow), 0, (GInstanceInitFunc) sway_notification_center_widgets_sink_input_row_instance_init, NULL };
	GType sway_notification_center_widgets_sink_input_row_type_id;
	sway_notification_center_widgets_sink_input_row_type_id = g_type_register_static (gtk_list_box_row_get_type (), "SwayNotificationCenterWidgetsSinkInputRow", &g_define_type_info, 0);
	SwayNotificationCenterWidgetsSinkInputRow_private_offset = g_type_add_instance_private (sway_notification_center_widgets_sink_input_row_type_id, sizeof (SwayNotificationCenterWidgetsSinkInputRowPrivate));
	return sway_notification_center_widgets_sink_input_row_type_id;
}

GType
sway_notification_center_widgets_sink_input_row_get_type (void)
{
	static gsize sway_notification_center_widgets_sink_input_row_type_id__once = 0;
	if (g_once_init_enter (&sway_notification_center_widgets_sink_input_row_type_id__once)) {
		GType sway_notification_center_widgets_sink_input_row_type_id;
		sway_notification_center_widgets_sink_input_row_type_id = sway_notification_center_widgets_sink_input_row_get_type_once ();
		g_once_init_leave (&sway_notification_center_widgets_sink_input_row_type_id__once, sway_notification_center_widgets_sink_input_row_type_id);
	}
	return sway_notification_center_widgets_sink_input_row_type_id__once;
}

