/* header-launchers-button.c generated by valac 0.56.19, the Vala compiler
 * generated from header-launchers-button.vala, do not modify */

#include "protonplus_core.h"
#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <gee.h>
#include <stdlib.h>
#include <string.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

enum  {
	PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_0_PROPERTY,
	PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_header_launchers_button_properties[PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
enum  {
	PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_LAUNCHER_SELECTED_SIGNAL,
	PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_NUM_SIGNALS
};
static guint proton_plus_widgets_header_launchers_button_signals[PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_NUM_SIGNALS] = {0};

struct _ProtonPlusWidgetsHeaderLaunchersButtonPrivate {
	ProtonPlusModelsLauncher* previous_launcher;
	GtkPopover* popover;
	GtkImage* button_image;
	GtkLabel* button_label;
	GtkListBox* list_box;
	GtkListBoxRow* previous_row;
};

static gint ProtonPlusWidgetsHeaderLaunchersButton_private_offset;
static gpointer proton_plus_widgets_header_launchers_button_parent_class = NULL;

static void proton_plus_widgets_header_launchers_button_list_box_row_activated (ProtonPlusWidgetsHeaderLaunchersButton* self,
                                                                         GtkListBoxRow* row);
static void _proton_plus_widgets_header_launchers_button_list_box_row_activated_gtk_list_box_row_activated (GtkListBox* _sender,
                                                                                                     GtkListBoxRow* row,
                                                                                                     gpointer self);
static void _proton_plus_widgets_header_launchers_button_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                     gpointer self);
static GtkListBoxRow* proton_plus_widgets_header_launchers_button_create_row (ProtonPlusWidgetsHeaderLaunchersButton* self,
                                                                       ProtonPlusModelsLauncher* launcher);
static void proton_plus_widgets_header_launchers_button_real_dispose (GObject* base);
static void proton_plus_widgets_header_launchers_button_finalize (GObject * obj);
static GType proton_plus_widgets_header_launchers_button_get_type_once (void);

static inline gpointer
proton_plus_widgets_header_launchers_button_get_instance_private (ProtonPlusWidgetsHeaderLaunchersButton* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsHeaderLaunchersButton_private_offset);
}

static void
_proton_plus_widgets_header_launchers_button_list_box_row_activated_gtk_list_box_row_activated (GtkListBox* _sender,
                                                                                                GtkListBoxRow* row,
                                                                                                gpointer self)
{
	proton_plus_widgets_header_launchers_button_list_box_row_activated ((ProtonPlusWidgetsHeaderLaunchersButton*) self, row);
}

static void
_proton_plus_widgets_header_launchers_button_button_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                                gpointer self)
{
	proton_plus_widgets_header_launchers_button_button_clicked ((ProtonPlusWidgetsHeaderLaunchersButton*) self);
}

ProtonPlusWidgetsHeaderLaunchersButton*
proton_plus_widgets_header_launchers_button_construct (GType object_type)
{
	ProtonPlusWidgetsHeaderLaunchersButton * self = NULL;
	GtkImage* _tmp0_;
	GtkLabel* _tmp1_;
	GtkBox* button_content = NULL;
	GtkBox* _tmp2_;
	GtkImage* _tmp3_;
	GtkLabel* _tmp4_;
	GtkListBox* _tmp5_;
	GtkListBox* _tmp6_;
	GtkListBox* _tmp7_;
	GtkListBox* _tmp8_;
	GtkListBox* _tmp9_;
	GtkListBox* _tmp10_;
	GtkListBox* _tmp11_;
	GtkListBox* _tmp12_;
	GtkPopover* _tmp13_;
	GtkPopover* _tmp14_;
	GtkListBox* _tmp15_;
	GtkPopover* _tmp16_;
	GtkPopover* _tmp17_;
	self = (ProtonPlusWidgetsHeaderLaunchersButton*) g_object_new (object_type, NULL);
	_tmp0_ = (GtkImage*) gtk_image_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->button_image);
	self->priv->button_image = _tmp0_;
	_tmp1_ = (GtkLabel*) gtk_label_new (NULL);
	g_object_ref_sink (_tmp1_);
	_g_object_unref0 (self->priv->button_label);
	self->priv->button_label = _tmp1_;
	_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
	g_object_ref_sink (_tmp2_);
	button_content = _tmp2_;
	_tmp3_ = self->priv->button_image;
	gtk_box_append (button_content, (GtkWidget*) _tmp3_);
	_tmp4_ = self->priv->button_label;
	gtk_box_append (button_content, (GtkWidget*) _tmp4_);
	_tmp5_ = (GtkListBox*) gtk_list_box_new ();
	g_object_ref_sink (_tmp5_);
	_g_object_unref0 (self->priv->list_box);
	self->priv->list_box = _tmp5_;
	_tmp6_ = self->priv->list_box;
	gtk_list_box_set_activate_on_single_click (_tmp6_, TRUE);
	_tmp7_ = self->priv->list_box;
	gtk_list_box_set_selection_mode (_tmp7_, GTK_SELECTION_SINGLE);
	_tmp8_ = self->priv->list_box;
	gtk_widget_add_css_class ((GtkWidget*) _tmp8_, "navigation-sidebar");
	_tmp9_ = self->priv->list_box;
	gtk_widget_set_hexpand ((GtkWidget*) _tmp9_, TRUE);
	_tmp10_ = self->priv->list_box;
	gtk_widget_set_vexpand ((GtkWidget*) _tmp10_, TRUE);
	_tmp11_ = self->priv->list_box;
	gtk_widget_add_css_class ((GtkWidget*) _tmp11_, "launchers-popover-list");
	_tmp12_ = self->priv->list_box;
	g_signal_connect_object (_tmp12_, "row-activated", (GCallback) _proton_plus_widgets_header_launchers_button_list_box_row_activated_gtk_list_box_row_activated, self, 0);
	_tmp13_ = (GtkPopover*) gtk_popover_new ();
	g_object_ref_sink (_tmp13_);
	_g_object_unref0 (self->priv->popover);
	self->priv->popover = _tmp13_;
	_tmp14_ = self->priv->popover;
	_tmp15_ = self->priv->list_box;
	gtk_popover_set_child (_tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = self->priv->popover;
	gtk_widget_set_parent ((GtkWidget*) _tmp16_, (GtkWidget*) self);
	_tmp17_ = self->priv->popover;
	proton_plus_widgets_window_register_popover_for_controller (_tmp17_, (GtkWidget*) self, NULL);
	g_signal_connect_object ((GtkButton*) self, "clicked", (GCallback) _proton_plus_widgets_header_launchers_button_button_clicked_gtk_button_clicked, self, 0);
	gtk_button_set_child ((GtkButton*) self, (GtkWidget*) button_content);
	gtk_widget_add_css_class ((GtkWidget*) self, "flat");
	_g_object_unref0 (button_content);
	return self;
}

ProtonPlusWidgetsHeaderLaunchersButton*
proton_plus_widgets_header_launchers_button_new (void)
{
	return proton_plus_widgets_header_launchers_button_construct (PROTON_PLUS_WIDGETS_HEADER_TYPE_LAUNCHERS_BUTTON);
}

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

void
proton_plus_widgets_header_launchers_button_initialize (ProtonPlusWidgetsHeaderLaunchersButton* self,
                                                        GeeLinkedList* launchers)
{
	GtkListBox* _tmp0_;
	GtkListBoxRow* first_row = NULL;
	GtkListBox* _tmp12_;
	GtkListBoxRow* _tmp13_;
	GtkListBoxRow* _tmp14_;
	GtkListBoxRow* _tmp15_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (launchers != NULL);
	_tmp0_ = self->priv->list_box;
	gtk_list_box_remove_all (_tmp0_);
	_g_object_unref0 (self->priv->previous_row);
	self->priv->previous_row = NULL;
	{
		GeeLinkedList* _launcher_list = NULL;
		gint _launcher_size = 0;
		GeeLinkedList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _launcher_index = 0;
		_launcher_list = launchers;
		_tmp1_ = _launcher_list;
		_tmp2_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_launcher_size = _tmp3_;
		_launcher_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusModelsLauncher* launcher = NULL;
			GeeLinkedList* _tmp6_;
			gpointer _tmp7_;
			GtkListBox* _tmp8_;
			ProtonPlusModelsLauncher* _tmp9_;
			GtkListBoxRow* _tmp10_;
			GtkListBoxRow* _tmp11_;
			_launcher_index = _launcher_index + 1;
			_tmp4_ = _launcher_index;
			_tmp5_ = _launcher_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _launcher_list;
			_tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _tmp6_, _launcher_index);
			launcher = (ProtonPlusModelsLauncher*) _tmp7_;
			_tmp8_ = self->priv->list_box;
			_tmp9_ = launcher;
			_tmp10_ = proton_plus_widgets_header_launchers_button_create_row (self, _tmp9_);
			_tmp11_ = _tmp10_;
			gtk_list_box_append (_tmp8_, (GtkWidget*) _tmp11_);
			_g_object_unref0 (_tmp11_);
			_g_object_unref0 (launcher);
		}
	}
	_tmp12_ = self->priv->list_box;
	_tmp13_ = gtk_list_box_get_row_at_index (_tmp12_, 0);
	_tmp14_ = _g_object_ref0 (_tmp13_);
	first_row = _tmp14_;
	_tmp15_ = first_row;
	if (_tmp15_ != NULL) {
		GtkListBox* _tmp16_;
		GtkListBoxRow* _tmp17_;
		_tmp16_ = self->priv->list_box;
		_tmp17_ = first_row;
		g_signal_emit_by_name (_tmp16_, "row-activated", _tmp17_);
	}
	_g_object_unref0 (first_row);
}

static void
proton_plus_widgets_header_launchers_button_real_dispose (GObject* base)
{
	ProtonPlusWidgetsHeaderLaunchersButton * self;
	GtkPopover* _tmp0_;
	self = (ProtonPlusWidgetsHeaderLaunchersButton*) base;
	_tmp0_ = self->priv->popover;
	gtk_widget_unparent ((GtkWidget*) _tmp0_);
	G_OBJECT_CLASS (proton_plus_widgets_header_launchers_button_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_button_get_type (), GtkButton));
}

void
proton_plus_widgets_header_launchers_button_button_clicked (ProtonPlusWidgetsHeaderLaunchersButton* self)
{
	GtkPopover* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->popover;
	if (gtk_widget_get_visible ((GtkWidget*) _tmp0_)) {
		GtkPopover* _tmp1_;
		_tmp1_ = self->priv->popover;
		gtk_popover_popdown (_tmp1_);
	} else {
		GtkListBoxRow* _tmp2_;
		GtkPopover* _tmp15_;
		_tmp2_ = self->priv->previous_row;
		if (_tmp2_ != NULL) {
			GtkListBox* _tmp3_;
			GtkListBoxRow* _tmp4_;
			GtkListBoxRow* _tmp5_;
			_tmp3_ = self->priv->list_box;
			_tmp4_ = self->priv->previous_row;
			gtk_list_box_select_row (_tmp3_, _tmp4_);
			_tmp5_ = self->priv->previous_row;
			gtk_widget_add_css_class ((GtkWidget*) _tmp5_, "launcher-selected");
		} else {
			GtkListBoxRow* first_row = NULL;
			GtkListBox* _tmp6_;
			GtkListBoxRow* _tmp7_;
			GtkListBoxRow* _tmp8_;
			GtkListBoxRow* _tmp9_;
			_tmp6_ = self->priv->list_box;
			_tmp7_ = gtk_list_box_get_row_at_index (_tmp6_, 0);
			_tmp8_ = _g_object_ref0 (_tmp7_);
			first_row = _tmp8_;
			_tmp9_ = first_row;
			if (_tmp9_ != NULL) {
				GtkListBox* _tmp10_;
				GtkListBoxRow* _tmp11_;
				GtkListBoxRow* _tmp12_;
				GtkListBoxRow* _tmp13_;
				GtkListBoxRow* _tmp14_;
				_tmp10_ = self->priv->list_box;
				_tmp11_ = first_row;
				gtk_list_box_select_row (_tmp10_, _tmp11_);
				_tmp12_ = first_row;
				gtk_widget_add_css_class ((GtkWidget*) _tmp12_, "launcher-selected");
				_tmp13_ = first_row;
				_tmp14_ = _g_object_ref0 (_tmp13_);
				_g_object_unref0 (self->priv->previous_row);
				self->priv->previous_row = _tmp14_;
			}
			_g_object_unref0 (first_row);
		}
		_tmp15_ = self->priv->popover;
		gtk_popover_popup (_tmp15_);
	}
}

static void
proton_plus_widgets_header_launchers_button_list_box_row_activated (ProtonPlusWidgetsHeaderLaunchersButton* self,
                                                                    GtkListBoxRow* row)
{
	GtkListBoxRow* _tmp0_;
	GtkListBox* _tmp2_;
	GtkListBoxRow* _tmp3_;
	ProtonPlusModelsLauncher* launcher = NULL;
	gconstpointer _tmp4_;
	ProtonPlusModelsLauncher* _tmp5_;
	ProtonPlusModelsLauncher* _tmp6_;
	ProtonPlusModelsLauncher* _tmp7_;
	ProtonPlusModelsLauncher* _tmp8_;
	ProtonPlusModelsLauncher* _tmp9_;
	GtkImage* _tmp10_;
	ProtonPlusModelsLauncher* _tmp11_;
	const gchar* _tmp12_;
	GtkLabel* _tmp13_;
	ProtonPlusModelsLauncher* _tmp14_;
	const gchar* _tmp15_;
	ProtonPlusModelsLauncher* _tmp16_;
	GtkPopover* _tmp17_;
	g_return_if_fail (self != NULL);
	if (row == NULL) {
		return;
	}
	_tmp0_ = self->priv->previous_row;
	if (_tmp0_ != NULL) {
		GtkListBoxRow* _tmp1_;
		_tmp1_ = self->priv->previous_row;
		gtk_widget_remove_css_class ((GtkWidget*) _tmp1_, "launcher-selected");
	}
	gtk_widget_add_css_class ((GtkWidget*) row, "launcher-selected");
	_tmp2_ = self->priv->list_box;
	gtk_list_box_select_row (_tmp2_, row);
	_tmp3_ = _g_object_ref0 (row);
	_g_object_unref0 (self->priv->previous_row);
	self->priv->previous_row = _tmp3_;
	_tmp4_ = g_object_get_data ((GObject*) row, "launcher");
	_tmp5_ = _g_object_ref0 ((ProtonPlusModelsLauncher*) _tmp4_);
	launcher = _tmp5_;
	_tmp6_ = self->priv->previous_launcher;
	_tmp7_ = launcher;
	if (_tmp6_ == _tmp7_) {
		_g_object_unref0 (launcher);
		return;
	}
	_tmp8_ = launcher;
	_tmp9_ = _g_object_ref0 (_tmp8_);
	_g_object_unref0 (self->priv->previous_launcher);
	self->priv->previous_launcher = _tmp9_;
	_tmp10_ = self->priv->button_image;
	_tmp11_ = launcher;
	_tmp12_ = _tmp11_->icon_path;
	gtk_image_set_from_resource (_tmp10_, _tmp12_);
	_tmp13_ = self->priv->button_label;
	_tmp14_ = launcher;
	_tmp15_ = _tmp14_->title;
	gtk_label_set_label (_tmp13_, _tmp15_);
	_tmp16_ = launcher;
	g_signal_emit (self, proton_plus_widgets_header_launchers_button_signals[PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_LAUNCHER_SELECTED_SIGNAL], 0, _tmp16_);
	_tmp17_ = self->priv->popover;
	gtk_popover_popdown (_tmp17_);
	_g_object_unref0 (launcher);
}

static GtkListBoxRow*
proton_plus_widgets_header_launchers_button_create_row (ProtonPlusWidgetsHeaderLaunchersButton* self,
                                                        ProtonPlusModelsLauncher* launcher)
{
	GtkImage* icon = NULL;
	const gchar* _tmp0_;
	GtkImage* _tmp1_;
	GtkLabel* title_label = NULL;
	const gchar* _tmp2_;
	GtkLabel* _tmp3_;
	GtkLabel* subtitle_label = NULL;
	gchar* _tmp4_;
	gchar* _tmp5_;
	GtkLabel* _tmp6_;
	GtkLabel* _tmp7_;
	GtkBox* labels_box = NULL;
	GtkBox* _tmp8_;
	GtkBox* content_box = NULL;
	GtkBox* _tmp9_;
	GtkListBoxRow* row = NULL;
	GtkListBoxRow* _tmp10_;
	ProtonPlusModelsLauncher* _tmp11_;
	const gchar* _tmp12_;
	GtkListBoxRow* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (launcher != NULL, NULL);
	_tmp0_ = launcher->icon_path;
	_tmp1_ = (GtkImage*) gtk_image_new_from_resource (_tmp0_);
	g_object_ref_sink (_tmp1_);
	icon = _tmp1_;
	gtk_image_set_pixel_size (icon, 48);
	_tmp2_ = launcher->title;
	_tmp3_ = (GtkLabel*) gtk_label_new (_tmp2_);
	g_object_ref_sink (_tmp3_);
	title_label = _tmp3_;
	gtk_widget_set_halign ((GtkWidget*) title_label, GTK_ALIGN_START);
	_tmp4_ = proton_plus_models_launcher_get_installation_type_title (launcher);
	_tmp5_ = _tmp4_;
	_tmp6_ = (GtkLabel*) gtk_label_new (_tmp5_);
	g_object_ref_sink (_tmp6_);
	_tmp7_ = _tmp6_;
	_g_free0 (_tmp5_);
	subtitle_label = _tmp7_;
	gtk_widget_add_css_class ((GtkWidget*) subtitle_label, "dimmed");
	gtk_widget_set_halign ((GtkWidget*) subtitle_label, GTK_ALIGN_START);
	_tmp8_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp8_);
	labels_box = _tmp8_;
	gtk_widget_set_valign ((GtkWidget*) labels_box, GTK_ALIGN_CENTER);
	gtk_widget_set_hexpand ((GtkWidget*) labels_box, TRUE);
	gtk_box_append (labels_box, (GtkWidget*) title_label);
	gtk_box_append (labels_box, (GtkWidget*) subtitle_label);
	_tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
	g_object_ref_sink (_tmp9_);
	content_box = _tmp9_;
	gtk_box_append (content_box, (GtkWidget*) icon);
	gtk_box_append (content_box, (GtkWidget*) labels_box);
	gtk_widget_add_css_class ((GtkWidget*) content_box, "p-12");
	_tmp10_ = (GtkListBoxRow*) gtk_list_box_row_new ();
	g_object_ref_sink (_tmp10_);
	row = _tmp10_;
	_tmp11_ = _g_object_ref0 (launcher);
	g_object_set_data_full ((GObject*) row, "launcher", _tmp11_, g_object_unref);
	gtk_widget_add_css_class ((GtkWidget*) row, "card");
	gtk_widget_set_overflow ((GtkWidget*) row, GTK_OVERFLOW_HIDDEN);
	_tmp12_ = launcher->directory;
	gtk_widget_set_tooltip_text ((GtkWidget*) row, _tmp12_);
	gtk_list_box_row_set_activatable (row, TRUE);
	gtk_list_box_row_set_child (row, (GtkWidget*) content_box);
	result = row;
	_g_object_unref0 (content_box);
	_g_object_unref0 (labels_box);
	_g_object_unref0 (subtitle_label);
	_g_object_unref0 (title_label);
	_g_object_unref0 (icon);
	return result;
}

static void
proton_plus_widgets_header_launchers_button_class_init (ProtonPlusWidgetsHeaderLaunchersButtonClass * klass,
                                                        gpointer klass_data)
{
	proton_plus_widgets_header_launchers_button_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsHeaderLaunchersButton_private_offset);
	((GObjectClass *) klass)->dispose = (void (*) (GObject*)) proton_plus_widgets_header_launchers_button_real_dispose;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_header_launchers_button_finalize;
	proton_plus_widgets_header_launchers_button_signals[PROTON_PLUS_WIDGETS_HEADER_LAUNCHERS_BUTTON_LAUNCHER_SELECTED_SIGNAL] = g_signal_new ("launcher-selected", PROTON_PLUS_WIDGETS_HEADER_TYPE_LAUNCHERS_BUTTON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, PROTON_PLUS_MODELS_TYPE_LAUNCHER);
}

static void
proton_plus_widgets_header_launchers_button_instance_init (ProtonPlusWidgetsHeaderLaunchersButton * self,
                                                           gpointer klass)
{
	self->priv = proton_plus_widgets_header_launchers_button_get_instance_private (self);
}

static void
proton_plus_widgets_header_launchers_button_finalize (GObject * obj)
{
	ProtonPlusWidgetsHeaderLaunchersButton * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_HEADER_TYPE_LAUNCHERS_BUTTON, ProtonPlusWidgetsHeaderLaunchersButton);
	_g_object_unref0 (self->priv->previous_launcher);
	_g_object_unref0 (self->priv->popover);
	_g_object_unref0 (self->priv->button_image);
	_g_object_unref0 (self->priv->button_label);
	_g_object_unref0 (self->priv->list_box);
	_g_object_unref0 (self->priv->previous_row);
	G_OBJECT_CLASS (proton_plus_widgets_header_launchers_button_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_header_launchers_button_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsHeaderLaunchersButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_header_launchers_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsHeaderLaunchersButton), 0, (GInstanceInitFunc) proton_plus_widgets_header_launchers_button_instance_init, NULL };
	GType proton_plus_widgets_header_launchers_button_type_id;
	proton_plus_widgets_header_launchers_button_type_id = g_type_register_static (gtk_button_get_type (), "ProtonPlusWidgetsHeaderLaunchersButton", &g_define_type_info, 0);
	ProtonPlusWidgetsHeaderLaunchersButton_private_offset = g_type_add_instance_private (proton_plus_widgets_header_launchers_button_type_id, sizeof (ProtonPlusWidgetsHeaderLaunchersButtonPrivate));
	return proton_plus_widgets_header_launchers_button_type_id;
}

GType
proton_plus_widgets_header_launchers_button_get_type (void)
{
	static volatile gsize proton_plus_widgets_header_launchers_button_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_header_launchers_button_type_id__once)) {
		GType proton_plus_widgets_header_launchers_button_type_id;
		proton_plus_widgets_header_launchers_button_type_id = proton_plus_widgets_header_launchers_button_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_header_launchers_button_type_id__once, proton_plus_widgets_header_launchers_button_type_id);
	}
	return proton_plus_widgets_header_launchers_button_type_id__once;
}

