/* games-row.c generated by valac 0.56.19, the Vala compiler
 * generated from games-row.vala, do not modify */

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

enum  {
	PROTON_PLUS_WIDGETS_GAMES_GAME_SELECTION_CELL_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_GAME_SELECTION_CELL_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_game_selection_cell_properties[PROTON_PLUS_WIDGETS_GAMES_GAME_SELECTION_CELL_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_GAMES_GAME_TITLE_CELL_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_GAME_TITLE_CELL_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_game_title_cell_properties[PROTON_PLUS_WIDGETS_GAMES_GAME_TITLE_CELL_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_game_text_cell_properties[PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_WIDGETS_GAMES_GAME_ACTIONS_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_GAME_ACTIONS_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_game_actions_properties[PROTON_PLUS_WIDGETS_GAMES_GAME_ACTIONS_NUM_PROPERTIES];
enum  {
	PROTON_PLUS_WIDGETS_GAMES_GAME_ROW_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_GAME_ROW_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_game_row_properties[PROTON_PLUS_WIDGETS_GAMES_GAME_ROW_NUM_PROPERTIES];

struct _ProtonPlusWidgetsGamesGameSelectionCellPrivate {
	GtkCheckButton* check_button;
	GtkImage* navigation_image;
	GBinding* selected_binding;
	ProtonPlusWidgetsGamesGameListItem* item;
	ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus;
	gpointer vertical_focus_target;
	ProtonPlusWidgetsGamesGamePeerFocusRequest row_focus;
	gpointer row_focus_target;
};

struct _ProtonPlusWidgetsGamesGameTitleCellPrivate {
	GtkLabel* label;
	ProtonPlusWidgetsGamesGameListItem* item;
	ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus;
	gpointer vertical_focus_target;
	ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus;
	gpointer selection_focus_target;
	ProtonPlusWidgetsGamesGamePeerFocusRequest actions_focus;
	gpointer actions_focus_target;
	ProtonPlusWidgetsGamesGameActivationRequest activation_request;
	gpointer activation_request_target;
};

struct _ProtonPlusWidgetsGamesGameTextCellPrivate {
	GtkLabel* label;
	ProtonPlusWidgetsGamesGameTextCellKind kind;
	ProtonPlusWidgetsGamesGameListItem* item;
	gulong tool_title_handler;
};

struct _ProtonPlusWidgetsGamesGameActionsPrivate {
	GtkButton* launch_button;
	ProtonPlusWidgetsGamesExtraButton* extra_button;
	ProtonPlusWidgetsGamesGameActionTarget* target;
	ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus;
	gpointer vertical_focus_target;
	ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus;
	gpointer selection_focus_target;
	gboolean selection_mode;
};

struct _ProtonPlusWidgetsGamesGameRowPrivate {
	GtkCheckButton* select_check_button;
	GtkLabel* title_label;
	GtkLabel* tool_label;
	GtkLabel* prefix_label;
	ProtonPlusWidgetsGamesGameActions* actions;
	GtkImage* navigation_image;
	GBinding* selected_binding;
	ProtonPlusWidgetsGamesGameListItem* item;
	gulong tool_title_handler;
	ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus;
	gpointer vertical_focus_target;
	ProtonPlusWidgetsGamesGameActivationRequest activation_request;
	gpointer activation_request_target;
};

static gint ProtonPlusWidgetsGamesGameSelectionCell_private_offset;
static gpointer proton_plus_widgets_games_game_selection_cell_parent_class = NULL;
static ProtonPlusUtilsControllerDirectionalFocusIface * proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_directional_focus_parent_iface = NULL;
static ProtonPlusUtilsControllerActivationHandlerIface * proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_activation_handler_parent_iface = NULL;
static gint ProtonPlusWidgetsGamesGameTitleCell_private_offset;
static gpointer proton_plus_widgets_games_game_title_cell_parent_class = NULL;
static ProtonPlusUtilsControllerDirectionalFocusIface * proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_directional_focus_parent_iface = NULL;
static ProtonPlusUtilsControllerActivationHandlerIface * proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_activation_handler_parent_iface = NULL;
static gint ProtonPlusWidgetsGamesGameTextCell_private_offset;
static gpointer proton_plus_widgets_games_game_text_cell_parent_class = NULL;
static gint ProtonPlusWidgetsGamesGameActions_private_offset;
static gpointer proton_plus_widgets_games_game_actions_parent_class = NULL;
static ProtonPlusUtilsControllerDirectionalFocusIface * proton_plus_widgets_games_game_actions_proton_plus_utils_controller_directional_focus_parent_iface = NULL;
static ProtonPlusUtilsControllerActivationHandlerIface * proton_plus_widgets_games_game_actions_proton_plus_utils_controller_activation_handler_parent_iface = NULL;
static gint ProtonPlusWidgetsGamesGameRow_private_offset;
static gpointer proton_plus_widgets_games_game_row_parent_class = NULL;
static ProtonPlusUtilsControllerDirectionalFocusIface * proton_plus_widgets_games_game_row_proton_plus_utils_controller_directional_focus_parent_iface = NULL;
static ProtonPlusUtilsControllerActivationHandlerIface * proton_plus_widgets_games_game_row_proton_plus_utils_controller_activation_handler_parent_iface = NULL;

static void proton_plus_widgets_games_game_selection_cell_update_accessibility (ProtonPlusWidgetsGamesGameSelectionCell* self);
static gboolean proton_plus_widgets_games_game_selection_cell_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                                        GObject* focused_object,
                                                                                        ProtonPlusUtilsControllerNavigationDirection direction);
static gboolean proton_plus_widgets_games_game_selection_cell_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                                 GObject* focused);
static void proton_plus_widgets_games_game_selection_cell_finalize (GObject * obj);
static GType proton_plus_widgets_games_game_selection_cell_get_type_once (void);
static gboolean proton_plus_widgets_games_game_title_cell_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                                    GObject* focused_object,
                                                                                    ProtonPlusUtilsControllerNavigationDirection direction);
static gboolean proton_plus_widgets_games_game_title_cell_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                             GObject* focused);
static void proton_plus_widgets_games_game_title_cell_finalize (GObject * obj);
static GType proton_plus_widgets_games_game_title_cell_get_type_once (void);
static void proton_plus_widgets_games_game_text_cell_refresh (ProtonPlusWidgetsGamesGameTextCell* self);
static void _proton_plus_widgets_games_game_text_cell_refresh_g_object_notify (GObject* _sender,
                                                                        GParamSpec* pspec,
                                                                        gpointer self);
static void proton_plus_widgets_games_game_text_cell_finalize (GObject * obj);
static GType proton_plus_widgets_games_game_text_cell_get_type_once (void);
static void __lambda192_ (ProtonPlusWidgetsGamesGameActions* self);
static void ___lambda192__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static gboolean* _bool_dup (gboolean* self);
static void proton_plus_widgets_games_game_actions_refresh_visibility (ProtonPlusWidgetsGamesGameActions* self);
static gboolean proton_plus_widgets_games_game_actions_focus_action (ProtonPlusWidgetsGamesGameActions* self,
                                                              GtkWidget* focused,
                                                              gboolean forward);
static gboolean proton_plus_widgets_games_game_actions_focus_candidate (ProtonPlusWidgetsGamesGameActions* self,
                                                                 GtkWidget* candidate);
static gboolean proton_plus_widgets_games_game_actions_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                                 GObject* focused_object,
                                                                                 ProtonPlusUtilsControllerNavigationDirection direction);
static GtkWidget* proton_plus_widgets_games_game_actions_find_action_ancestor (ProtonPlusWidgetsGamesGameActions* self,
                                                                        GtkWidget* focused);
static gboolean proton_plus_widgets_games_game_actions_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                          GObject* focused_object);
static void proton_plus_widgets_games_game_actions_finalize (GObject * obj);
static GType proton_plus_widgets_games_game_actions_get_type_once (void);
static GtkLabel* proton_plus_widgets_games_game_row_compact_label (gboolean expand);
static gboolean proton_plus_widgets_games_game_row_on_vertical_focus (ProtonPlusWidgetsGamesGameRow* self,
                                                               ProtonPlusWidgetsGamesGameListItem* item,
                                                               gint delta,
                                                               ProtonPlusWidgetsGamesGameFocusLane lane);
static gboolean _proton_plus_widgets_games_game_row_on_vertical_focus_proton_plus_widgets_games_game_vertical_focus_request (ProtonPlusWidgetsGamesGameListItem* item,
                                                                                                                      gint delta,
                                                                                                                      ProtonPlusWidgetsGamesGameFocusLane lane,
                                                                                                                      gpointer self);
static gboolean proton_plus_widgets_games_game_row_focus_selection (ProtonPlusWidgetsGamesGameRow* self,
                                                             ProtonPlusWidgetsGamesGameListItem* item);
static gboolean _proton_plus_widgets_games_game_row_focus_selection_proton_plus_widgets_games_game_peer_focus_request (ProtonPlusWidgetsGamesGameListItem* item,
                                                                                                                gpointer self);
static void proton_plus_widgets_games_game_row_refresh_tool_title (ProtonPlusWidgetsGamesGameRow* self);
static void _proton_plus_widgets_games_game_row_refresh_tool_title_g_object_notify (GObject* _sender,
                                                                             GParamSpec* pspec,
                                                                             gpointer self);
static void proton_plus_widgets_games_game_row_update_accessibility (ProtonPlusWidgetsGamesGameRow* self,
                                                              gboolean selection_mode);
static gboolean proton_plus_widgets_games_game_row_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                             GObject* focused_object,
                                                                             ProtonPlusUtilsControllerNavigationDirection direction);
static gboolean proton_plus_widgets_games_game_row_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                      GObject* focused_object);
static void proton_plus_widgets_games_game_row_finalize (GObject * obj);
static GType proton_plus_widgets_games_game_row_get_type_once (void);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);

static GType
proton_plus_widgets_games_game_text_cell_kind_get_type_once (void)
{
	static const GEnumValue values[] = {{PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TITLE, "PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TITLE", "title"}, {PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_PREFIX, "PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_PREFIX", "prefix"}, {PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TOOL, "PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TOOL", "tool"}, {0, NULL, NULL}};
	GType proton_plus_widgets_games_game_text_cell_kind_type_id;
	proton_plus_widgets_games_game_text_cell_kind_type_id = g_enum_register_static ("ProtonPlusWidgetsGamesGameTextCellKind", values);
	return proton_plus_widgets_games_game_text_cell_kind_type_id;
}

GType
proton_plus_widgets_games_game_text_cell_kind_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_text_cell_kind_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_text_cell_kind_type_id__once)) {
		GType proton_plus_widgets_games_game_text_cell_kind_type_id;
		proton_plus_widgets_games_game_text_cell_kind_type_id = proton_plus_widgets_games_game_text_cell_kind_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_text_cell_kind_type_id__once, proton_plus_widgets_games_game_text_cell_kind_type_id);
	}
	return proton_plus_widgets_games_game_text_cell_kind_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_game_selection_cell_get_instance_private (ProtonPlusWidgetsGamesGameSelectionCell* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesGameSelectionCell_private_offset);
}

ProtonPlusWidgetsGamesGameSelectionCell*
proton_plus_widgets_games_game_selection_cell_construct (GType object_type,
                                                         ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                                         gpointer vertical_focus_target,
                                                         ProtonPlusWidgetsGamesGamePeerFocusRequest row_focus,
                                                         gpointer row_focus_target)
{
	ProtonPlusWidgetsGamesGameSelectionCell * self = NULL;
	gchar* _tmp0_;
	GtkCheckButton* _tmp1_ = NULL;
	GtkCheckButton* _tmp2_;
	GtkImage* navigation_spacer = NULL;
	GtkImage* _tmp3_ = NULL;
	GtkCheckButton* _tmp4_;
	gchar* _tmp5_;
	GtkImage* _tmp6_ = NULL;
	GtkImage* _tmp7_;
	self = (ProtonPlusWidgetsGamesGameSelectionCell*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, NULL);
	self->priv->vertical_focus = vertical_focus;
	self->priv->vertical_focus_target = vertical_focus_target;
	self->priv->row_focus = row_focus;
	self->priv->row_focus_target = row_focus_target;
	gtk_widget_set_focusable ((GtkWidget*) self, TRUE);
	gtk_widget_set_halign ((GtkWidget*) self, GTK_ALIGN_START);
	gtk_widget_set_valign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	gtk_widget_set_margin_start ((GtkWidget*) self, 9);
	gtk_widget_set_margin_top ((GtkWidget*) self, 4);
	gtk_widget_set_margin_bottom ((GtkWidget*) self, 4);
	_tmp0_ = g_strdup (_ ("Select game"));
	_tmp1_ = (GtkCheckButton*) gtk_check_button_new ();
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp1_, _tmp0_);
	_g_free0 (_tmp0_);
	gtk_widget_set_focusable ((GtkWidget*) _tmp1_, FALSE);
	g_object_ref_sink (_tmp1_);
	_g_object_unref0 (self->priv->check_button);
	self->priv->check_button = _tmp1_;
	_tmp2_ = self->priv->check_button;
	gtk_accessible_update_property ((GtkAccessible*) _tmp2_, GTK_ACCESSIBLE_PROPERTY_LABEL, _ ("Select game"), -1, -1);
	_tmp3_ = (GtkImage*) gtk_image_new_from_icon_name ("go-next-symbolic");
	gtk_widget_set_opacity ((GtkWidget*) _tmp3_, 0.0);
	gtk_widget_set_can_target ((GtkWidget*) _tmp3_, FALSE);
	g_object_ref_sink (_tmp3_);
	navigation_spacer = _tmp3_;
	_tmp4_ = self->priv->check_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp4_);
	_tmp5_ = g_strdup (_ ("Modify Game"));
	_tmp6_ = (GtkImage*) gtk_image_new_from_icon_name ("go-next-symbolic");
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp6_, _tmp5_);
	_g_free0 (_tmp5_);
	g_object_ref_sink (_tmp6_);
	_g_object_unref0 (self->priv->navigation_image);
	self->priv->navigation_image = _tmp6_;
	_tmp7_ = self->priv->navigation_image;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp7_);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) navigation_spacer);
	_g_object_unref0 (navigation_spacer);
	return self;
}

ProtonPlusWidgetsGamesGameSelectionCell*
proton_plus_widgets_games_game_selection_cell_new (ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                                   gpointer vertical_focus_target,
                                                   ProtonPlusWidgetsGamesGamePeerFocusRequest row_focus,
                                                   gpointer row_focus_target)
{
	return proton_plus_widgets_games_game_selection_cell_construct (PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_SELECTION_CELL, vertical_focus, vertical_focus_target, row_focus, row_focus_target);
}

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

void
proton_plus_widgets_games_game_selection_cell_bind (ProtonPlusWidgetsGamesGameSelectionCell* self,
                                                    ProtonPlusWidgetsGamesGameListItem* item)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkCheckButton* _tmp1_;
	GBinding* _tmp2_;
	GBinding* _tmp3_;
	GtkCheckButton* _tmp4_;
	ProtonPlusModelsGame* _tmp5_;
	ProtonPlusModelsGame* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	proton_plus_widgets_games_game_selection_cell_unbind (self);
	_tmp0_ = _g_object_ref0 (item);
	_g_object_unref0 (self->priv->item);
	self->priv->item = _tmp0_;
	_tmp1_ = self->priv->check_button;
	_tmp2_ = g_object_bind_property_with_closures ((GObject*) item, "selected", (GObject*) _tmp1_, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (self->priv->selected_binding);
	self->priv->selected_binding = _tmp3_;
	_tmp4_ = self->priv->check_button;
	_tmp5_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp6_ = _tmp5_;
	_tmp7_ = proton_plus_models_game_get_name (_tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = g_strdup_printf (_ ("Select %s"), _tmp8_);
	_tmp10_ = _tmp9_;
	gtk_accessible_update_property ((GtkAccessible*) _tmp4_, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp10_, -1, -1);
	_g_free0 (_tmp10_);
	proton_plus_widgets_games_game_selection_cell_update_accessibility (self);
}

void
proton_plus_widgets_games_game_selection_cell_unbind (ProtonPlusWidgetsGamesGameSelectionCell* self)
{
	GBinding* _tmp0_ = NULL;
	GBinding* _tmp1_;
	GtkCheckButton* _tmp3_;
	GtkCheckButton* _tmp4_;
	g_return_if_fail (self != NULL);
	_tmp1_ = self->priv->selected_binding;
	_tmp0_ = _tmp1_;
	if (_tmp0_ != NULL) {
		GBinding* _tmp2_;
		_tmp2_ = _g_object_ref0 (_tmp0_);
		g_binding_unbind (_tmp2_);
	}
	_g_object_unref0 (self->priv->selected_binding);
	self->priv->selected_binding = NULL;
	_g_object_unref0 (self->priv->item);
	self->priv->item = NULL;
	_tmp3_ = self->priv->check_button;
	gtk_check_button_set_active (_tmp3_, FALSE);
	_tmp4_ = self->priv->check_button;
	gtk_accessible_update_property ((GtkAccessible*) _tmp4_, GTK_ACCESSIBLE_PROPERTY_LABEL, _ ("Select game"), -1, -1);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION);
}

ProtonPlusWidgetsGamesGameListItem*
proton_plus_widgets_games_game_selection_cell_get_item (ProtonPlusWidgetsGamesGameSelectionCell* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->item;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	result = _tmp1_;
	return result;
}

static gboolean
proton_plus_widgets_games_game_selection_cell_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                               GObject* focused_object,
                                                                               ProtonPlusUtilsControllerNavigationDirection direction)
{
	ProtonPlusWidgetsGamesGameSelectionCell * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameSelectionCell*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_UP) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp1_;
		gpointer _tmp1__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp2_;
		_tmp1_ = self->priv->vertical_focus;
		_tmp1__target = self->priv->vertical_focus_target;
		_tmp2_ = self->priv->item;
		result = _tmp1_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), -1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SELECTION, _tmp1__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_DOWN) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp3_;
		gpointer _tmp3__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp4_;
		_tmp3_ = self->priv->vertical_focus;
		_tmp3__target = self->priv->vertical_focus_target;
		_tmp4_ = self->priv->item;
		result = _tmp3_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), 1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SELECTION, _tmp3__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_RIGHT) {
		ProtonPlusWidgetsGamesGamePeerFocusRequest _tmp5_;
		gpointer _tmp5__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp6_;
		_tmp5_ = self->priv->row_focus;
		_tmp5__target = self->priv->row_focus_target;
		_tmp6_ = self->priv->item;
		result = _tmp5_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp5__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_LEFT) {
		result = gtk_widget_grab_focus ((GtkWidget*) self);
		return result;
	}
	result = FALSE;
	return result;
}

void
proton_plus_widgets_games_game_selection_cell_set_selection_mode (ProtonPlusWidgetsGamesGameSelectionCell* self,
                                                                  gboolean selection_mode)
{
	gdouble _tmp0_ = 0.0;
	GtkImage* _tmp1_;
	GtkImage* _tmp2_;
	g_return_if_fail (self != NULL);
	if (selection_mode) {
		_tmp0_ = 0.0;
	} else {
		_tmp0_ = 1.0;
	}
	_tmp1_ = self->priv->navigation_image;
	gtk_widget_set_opacity ((GtkWidget*) _tmp1_, _tmp0_);
	_tmp2_ = self->priv->navigation_image;
	gtk_widget_set_can_target ((GtkWidget*) _tmp2_, !selection_mode);
}

static gboolean
proton_plus_widgets_games_game_selection_cell_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                        GObject* focused)
{
	ProtonPlusWidgetsGamesGameSelectionCell * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameSelectionCell*) base;
	g_return_val_if_fail (focused != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->item;
	_tmp2_ = self->priv->item;
	_tmp3_ = proton_plus_widgets_games_game_list_item_get_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp4_ = _tmp3_;
	proton_plus_widgets_games_game_list_item_set_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), !_tmp4_);
	result = TRUE;
	return result;
}

static void
proton_plus_widgets_games_game_selection_cell_update_accessibility (ProtonPlusWidgetsGamesGameSelectionCell* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusModelsGame* _tmp2_;
	ProtonPlusModelsGame* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	ProtonPlusWidgetsGamesGameListItem* _tmp6_;
	ProtonPlusModelsGame* _tmp7_;
	ProtonPlusModelsGame* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->item;
	_tmp2_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_game_get_name (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = self->priv->item;
	_tmp7_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp8_ = _tmp7_;
	_tmp9_ = proton_plus_models_game_get_name (_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = g_strdup_printf (_ ("Toggle selection for %s"), _tmp10_);
	_tmp12_ = _tmp11_;
	gtk_accessible_update_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp5_, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION, _tmp12_, -1, -1);
	_g_free0 (_tmp12_);
}

static void
proton_plus_widgets_games_game_selection_cell_class_init (ProtonPlusWidgetsGamesGameSelectionCellClass * klass,
                                                          gpointer klass_data)
{
	proton_plus_widgets_games_game_selection_cell_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesGameSelectionCell_private_offset);
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_game_selection_cell_finalize;
}

static void
proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_directional_focus_interface_init (ProtonPlusUtilsControllerDirectionalFocusIface * iface,
                                                                                                             gpointer iface_data)
{
	proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_directional_focus_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_focus_direction = (gboolean (*) (ProtonPlusUtilsControllerDirectionalFocus*, GObject*, ProtonPlusUtilsControllerNavigationDirection)) proton_plus_widgets_games_game_selection_cell_real_controller_focus_direction;
}

static void
proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_activation_handler_interface_init (ProtonPlusUtilsControllerActivationHandlerIface * iface,
                                                                                                              gpointer iface_data)
{
	proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_activation_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_activate = (gboolean (*) (ProtonPlusUtilsControllerActivationHandler*, GObject*)) proton_plus_widgets_games_game_selection_cell_real_controller_activate;
}

static void
proton_plus_widgets_games_game_selection_cell_instance_init (ProtonPlusWidgetsGamesGameSelectionCell * self,
                                                             gpointer klass)
{
	self->priv = proton_plus_widgets_games_game_selection_cell_get_instance_private (self);
}

static void
proton_plus_widgets_games_game_selection_cell_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesGameSelectionCell * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_SELECTION_CELL, ProtonPlusWidgetsGamesGameSelectionCell);
	_g_object_unref0 (self->priv->check_button);
	_g_object_unref0 (self->priv->navigation_image);
	_g_object_unref0 (self->priv->selected_binding);
	_g_object_unref0 (self->priv->item);
	G_OBJECT_CLASS (proton_plus_widgets_games_game_selection_cell_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_game_selection_cell_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesGameSelectionCellClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_game_selection_cell_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesGameSelectionCell), 0, (GInstanceInitFunc) proton_plus_widgets_games_game_selection_cell_instance_init, NULL };
	static const GInterfaceInfo proton_plus_utils_controller_directional_focus_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_directional_focus_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo proton_plus_utils_controller_activation_handler_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_selection_cell_proton_plus_utils_controller_activation_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType proton_plus_widgets_games_game_selection_cell_type_id;
	proton_plus_widgets_games_game_selection_cell_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsGamesGameSelectionCell", &g_define_type_info, 0);
	g_type_add_interface_static (proton_plus_widgets_games_game_selection_cell_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_DIRECTIONAL_FOCUS, &proton_plus_utils_controller_directional_focus_info);
	g_type_add_interface_static (proton_plus_widgets_games_game_selection_cell_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_ACTIVATION_HANDLER, &proton_plus_utils_controller_activation_handler_info);
	ProtonPlusWidgetsGamesGameSelectionCell_private_offset = g_type_add_instance_private (proton_plus_widgets_games_game_selection_cell_type_id, sizeof (ProtonPlusWidgetsGamesGameSelectionCellPrivate));
	return proton_plus_widgets_games_game_selection_cell_type_id;
}

GType
proton_plus_widgets_games_game_selection_cell_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_selection_cell_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_selection_cell_type_id__once)) {
		GType proton_plus_widgets_games_game_selection_cell_type_id;
		proton_plus_widgets_games_game_selection_cell_type_id = proton_plus_widgets_games_game_selection_cell_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_selection_cell_type_id__once, proton_plus_widgets_games_game_selection_cell_type_id);
	}
	return proton_plus_widgets_games_game_selection_cell_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_game_title_cell_get_instance_private (ProtonPlusWidgetsGamesGameTitleCell* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesGameTitleCell_private_offset);
}

ProtonPlusWidgetsGamesGameTitleCell*
proton_plus_widgets_games_game_title_cell_construct (GType object_type,
                                                     ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                                     gpointer vertical_focus_target,
                                                     ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus,
                                                     gpointer selection_focus_target,
                                                     ProtonPlusWidgetsGamesGamePeerFocusRequest actions_focus,
                                                     gpointer actions_focus_target,
                                                     ProtonPlusWidgetsGamesGameActivationRequest activation_request,
                                                     gpointer activation_request_target)
{
	ProtonPlusWidgetsGamesGameTitleCell * self = NULL;
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* _tmp1_;
	self = (ProtonPlusWidgetsGamesGameTitleCell*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, NULL);
	self->priv->vertical_focus = vertical_focus;
	self->priv->vertical_focus_target = vertical_focus_target;
	self->priv->selection_focus = selection_focus;
	self->priv->selection_focus_target = selection_focus_target;
	self->priv->actions_focus = actions_focus;
	self->priv->actions_focus_target = actions_focus_target;
	self->priv->activation_request = activation_request;
	self->priv->activation_request_target = activation_request_target;
	gtk_widget_set_focusable ((GtkWidget*) self, TRUE);
	gtk_widget_set_margin_start ((GtkWidget*) self, 6);
	gtk_widget_set_margin_end ((GtkWidget*) self, 6);
	gtk_widget_set_valign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	_tmp0_ = (GtkLabel*) gtk_label_new (NULL);
	gtk_label_set_xalign (_tmp0_, (gfloat) 0);
	gtk_widget_set_halign ((GtkWidget*) _tmp0_, GTK_ALIGN_FILL);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp0_, TRUE);
	gtk_label_set_ellipsize (_tmp0_, PANGO_ELLIPSIZE_END);
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->label);
	self->priv->label = _tmp0_;
	_tmp1_ = self->priv->label;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp1_);
	return self;
}

ProtonPlusWidgetsGamesGameTitleCell*
proton_plus_widgets_games_game_title_cell_new (ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                               gpointer vertical_focus_target,
                                               ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus,
                                               gpointer selection_focus_target,
                                               ProtonPlusWidgetsGamesGamePeerFocusRequest actions_focus,
                                               gpointer actions_focus_target,
                                               ProtonPlusWidgetsGamesGameActivationRequest activation_request,
                                               gpointer activation_request_target)
{
	return proton_plus_widgets_games_game_title_cell_construct (PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_TITLE_CELL, vertical_focus, vertical_focus_target, selection_focus, selection_focus_target, actions_focus, actions_focus_target, activation_request, activation_request_target);
}

void
proton_plus_widgets_games_game_title_cell_bind (ProtonPlusWidgetsGamesGameTitleCell* self,
                                                ProtonPlusWidgetsGamesGameListItem* item)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkLabel* _tmp1_;
	ProtonPlusModelsGame* _tmp2_;
	ProtonPlusModelsGame* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	GtkLabel* _tmp6_;
	ProtonPlusModelsGame* _tmp7_;
	ProtonPlusModelsGame* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	ProtonPlusModelsGame* _tmp11_;
	ProtonPlusModelsGame* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	ProtonPlusModelsGame* _tmp15_;
	ProtonPlusModelsGame* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	proton_plus_widgets_games_game_title_cell_unbind (self);
	_tmp0_ = _g_object_ref0 (item);
	_g_object_unref0 (self->priv->item);
	self->priv->item = _tmp0_;
	_tmp1_ = self->priv->label;
	_tmp2_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_game_get_name (_tmp3_);
	_tmp5_ = _tmp4_;
	gtk_label_set_label (_tmp1_, _tmp5_);
	_tmp6_ = self->priv->label;
	_tmp7_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp8_ = _tmp7_;
	_tmp9_ = proton_plus_models_game_get_name (_tmp8_);
	_tmp10_ = _tmp9_;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp6_, _tmp10_);
	_tmp11_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp12_ = _tmp11_;
	_tmp13_ = proton_plus_models_game_get_name (_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp16_ = _tmp15_;
	_tmp17_ = proton_plus_models_game_get_name (_tmp16_);
	_tmp18_ = _tmp17_;
	_tmp19_ = g_strdup_printf (_ ("Modify %s"), _tmp18_);
	_tmp20_ = _tmp19_;
	gtk_accessible_update_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp14_, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION, _tmp20_, -1, -1);
	_g_free0 (_tmp20_);
}

void
proton_plus_widgets_games_game_title_cell_unbind (ProtonPlusWidgetsGamesGameTitleCell* self)
{
	GtkLabel* _tmp0_;
	GtkLabel* _tmp1_;
	g_return_if_fail (self != NULL);
	_g_object_unref0 (self->priv->item);
	self->priv->item = NULL;
	_tmp0_ = self->priv->label;
	gtk_label_set_label (_tmp0_, "");
	_tmp1_ = self->priv->label;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp1_, NULL);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION);
}

ProtonPlusWidgetsGamesGameListItem*
proton_plus_widgets_games_game_title_cell_get_item (ProtonPlusWidgetsGamesGameTitleCell* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->item;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	result = _tmp1_;
	return result;
}

void
proton_plus_widgets_games_game_title_cell_set_selection_mode (ProtonPlusWidgetsGamesGameTitleCell* self,
                                                              gboolean selection_mode)
{
	g_return_if_fail (self != NULL);
	gtk_widget_set_focusable ((GtkWidget*) self, !selection_mode);
}

static gboolean
proton_plus_widgets_games_game_title_cell_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                           GObject* focused_object,
                                                                           ProtonPlusUtilsControllerNavigationDirection direction)
{
	ProtonPlusWidgetsGamesGameTitleCell * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameTitleCell*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_UP) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp1_;
		gpointer _tmp1__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp2_;
		_tmp1_ = self->priv->vertical_focus;
		_tmp1__target = self->priv->vertical_focus_target;
		_tmp2_ = self->priv->item;
		result = _tmp1_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), -1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_ROW, _tmp1__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_DOWN) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp3_;
		gpointer _tmp3__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp4_;
		_tmp3_ = self->priv->vertical_focus;
		_tmp3__target = self->priv->vertical_focus_target;
		_tmp4_ = self->priv->item;
		result = _tmp3_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), 1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_ROW, _tmp3__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_LEFT) {
		ProtonPlusWidgetsGamesGamePeerFocusRequest _tmp5_;
		gpointer _tmp5__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp6_;
		_tmp5_ = self->priv->selection_focus;
		_tmp5__target = self->priv->selection_focus_target;
		_tmp6_ = self->priv->item;
		result = _tmp5_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp5__target);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_RIGHT) {
		ProtonPlusWidgetsGamesGamePeerFocusRequest _tmp7_;
		gpointer _tmp7__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp8_;
		_tmp7_ = self->priv->actions_focus;
		_tmp7__target = self->priv->actions_focus_target;
		_tmp8_ = self->priv->item;
		result = _tmp7_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp7__target);
		return result;
	}
	result = FALSE;
	return result;
}

static gboolean
proton_plus_widgets_games_game_title_cell_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                    GObject* focused)
{
	ProtonPlusWidgetsGamesGameTitleCell * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameActivationRequest _tmp1_;
	gpointer _tmp1__target;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameTitleCell*) base;
	g_return_val_if_fail (focused != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->activation_request;
	_tmp1__target = self->priv->activation_request_target;
	_tmp2_ = self->priv->item;
	_tmp1_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp1__target);
	result = TRUE;
	return result;
}

static void
proton_plus_widgets_games_game_title_cell_class_init (ProtonPlusWidgetsGamesGameTitleCellClass * klass,
                                                      gpointer klass_data)
{
	proton_plus_widgets_games_game_title_cell_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesGameTitleCell_private_offset);
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_game_title_cell_finalize;
}

static void
proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_directional_focus_interface_init (ProtonPlusUtilsControllerDirectionalFocusIface * iface,
                                                                                                         gpointer iface_data)
{
	proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_directional_focus_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_focus_direction = (gboolean (*) (ProtonPlusUtilsControllerDirectionalFocus*, GObject*, ProtonPlusUtilsControllerNavigationDirection)) proton_plus_widgets_games_game_title_cell_real_controller_focus_direction;
}

static void
proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_activation_handler_interface_init (ProtonPlusUtilsControllerActivationHandlerIface * iface,
                                                                                                          gpointer iface_data)
{
	proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_activation_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_activate = (gboolean (*) (ProtonPlusUtilsControllerActivationHandler*, GObject*)) proton_plus_widgets_games_game_title_cell_real_controller_activate;
}

static void
proton_plus_widgets_games_game_title_cell_instance_init (ProtonPlusWidgetsGamesGameTitleCell * self,
                                                         gpointer klass)
{
	self->priv = proton_plus_widgets_games_game_title_cell_get_instance_private (self);
}

static void
proton_plus_widgets_games_game_title_cell_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesGameTitleCell * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_TITLE_CELL, ProtonPlusWidgetsGamesGameTitleCell);
	_g_object_unref0 (self->priv->label);
	_g_object_unref0 (self->priv->item);
	G_OBJECT_CLASS (proton_plus_widgets_games_game_title_cell_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_game_title_cell_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesGameTitleCellClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_game_title_cell_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesGameTitleCell), 0, (GInstanceInitFunc) proton_plus_widgets_games_game_title_cell_instance_init, NULL };
	static const GInterfaceInfo proton_plus_utils_controller_directional_focus_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_directional_focus_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo proton_plus_utils_controller_activation_handler_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_title_cell_proton_plus_utils_controller_activation_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType proton_plus_widgets_games_game_title_cell_type_id;
	proton_plus_widgets_games_game_title_cell_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsGamesGameTitleCell", &g_define_type_info, 0);
	g_type_add_interface_static (proton_plus_widgets_games_game_title_cell_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_DIRECTIONAL_FOCUS, &proton_plus_utils_controller_directional_focus_info);
	g_type_add_interface_static (proton_plus_widgets_games_game_title_cell_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_ACTIVATION_HANDLER, &proton_plus_utils_controller_activation_handler_info);
	ProtonPlusWidgetsGamesGameTitleCell_private_offset = g_type_add_instance_private (proton_plus_widgets_games_game_title_cell_type_id, sizeof (ProtonPlusWidgetsGamesGameTitleCellPrivate));
	return proton_plus_widgets_games_game_title_cell_type_id;
}

GType
proton_plus_widgets_games_game_title_cell_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_title_cell_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_title_cell_type_id__once)) {
		GType proton_plus_widgets_games_game_title_cell_type_id;
		proton_plus_widgets_games_game_title_cell_type_id = proton_plus_widgets_games_game_title_cell_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_title_cell_type_id__once, proton_plus_widgets_games_game_title_cell_type_id);
	}
	return proton_plus_widgets_games_game_title_cell_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_game_text_cell_get_instance_private (ProtonPlusWidgetsGamesGameTextCell* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesGameTextCell_private_offset);
}

ProtonPlusWidgetsGamesGameTextCell*
proton_plus_widgets_games_game_text_cell_construct (GType object_type,
                                                    ProtonPlusWidgetsGamesGameTextCellKind kind)
{
	ProtonPlusWidgetsGamesGameTextCell * self = NULL;
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* _tmp1_;
	self = (ProtonPlusWidgetsGamesGameTextCell*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, NULL);
	self->priv->kind = kind;
	gtk_widget_set_margin_start ((GtkWidget*) self, 6);
	gtk_widget_set_margin_end ((GtkWidget*) self, 6);
	gtk_widget_set_valign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	_tmp0_ = (GtkLabel*) gtk_label_new (NULL);
	gtk_label_set_xalign (_tmp0_, (gfloat) 0);
	gtk_widget_set_halign ((GtkWidget*) _tmp0_, GTK_ALIGN_FILL);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp0_, TRUE);
	gtk_label_set_ellipsize (_tmp0_, PANGO_ELLIPSIZE_END);
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->label);
	self->priv->label = _tmp0_;
	_tmp1_ = self->priv->label;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp1_);
	return self;
}

ProtonPlusWidgetsGamesGameTextCell*
proton_plus_widgets_games_game_text_cell_new (ProtonPlusWidgetsGamesGameTextCellKind kind)
{
	return proton_plus_widgets_games_game_text_cell_construct (PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_TEXT_CELL, kind);
}

static void
_proton_plus_widgets_games_game_text_cell_refresh_g_object_notify (GObject* _sender,
                                                                   GParamSpec* pspec,
                                                                   gpointer self)
{
	proton_plus_widgets_games_game_text_cell_refresh ((ProtonPlusWidgetsGamesGameTextCell*) self);
}

void
proton_plus_widgets_games_game_text_cell_bind (ProtonPlusWidgetsGamesGameTextCell* self,
                                               ProtonPlusWidgetsGamesGameListItem* item)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	proton_plus_widgets_games_game_text_cell_unbind (self);
	_tmp0_ = _g_object_ref0 (item);
	_g_object_unref0 (self->priv->item);
	self->priv->item = _tmp0_;
	if (self->priv->kind == PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TOOL) {
		gulong _tmp1_;
		_tmp1_ = g_signal_connect_object ((GObject*) item, "notify::tool-title", (GCallback) _proton_plus_widgets_games_game_text_cell_refresh_g_object_notify, self, 0);
		self->priv->tool_title_handler = _tmp1_;
	}
	proton_plus_widgets_games_game_text_cell_refresh (self);
}

void
proton_plus_widgets_games_game_text_cell_unbind (ProtonPlusWidgetsGamesGameTextCell* self)
{
	gboolean _tmp0_ = FALSE;
	GtkLabel* _tmp3_;
	GtkLabel* _tmp4_;
	g_return_if_fail (self != NULL);
	if (self->priv->tool_title_handler != ((gulong) 0)) {
		ProtonPlusWidgetsGamesGameListItem* _tmp1_;
		_tmp1_ = self->priv->item;
		_tmp0_ = _tmp1_ != NULL;
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		ProtonPlusWidgetsGamesGameListItem* _tmp2_;
		_tmp2_ = self->priv->item;
		g_signal_handler_disconnect ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), self->priv->tool_title_handler);
		self->priv->tool_title_handler = (gulong) 0;
	}
	_g_object_unref0 (self->priv->item);
	self->priv->item = NULL;
	_tmp3_ = self->priv->label;
	gtk_label_set_label (_tmp3_, "");
	_tmp4_ = self->priv->label;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp4_, NULL);
}

static void
proton_plus_widgets_games_game_text_cell_refresh (ProtonPlusWidgetsGamesGameTextCell* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		return;
	}
	switch (self->priv->kind) {
		case PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TITLE:
		{
			GtkLabel* _tmp1_;
			ProtonPlusWidgetsGamesGameListItem* _tmp2_;
			ProtonPlusModelsGame* _tmp3_;
			ProtonPlusModelsGame* _tmp4_;
			const gchar* _tmp5_;
			const gchar* _tmp6_;
			GtkLabel* _tmp7_;
			ProtonPlusWidgetsGamesGameListItem* _tmp8_;
			ProtonPlusModelsGame* _tmp9_;
			ProtonPlusModelsGame* _tmp10_;
			const gchar* _tmp11_;
			const gchar* _tmp12_;
			_tmp1_ = self->priv->label;
			_tmp2_ = self->priv->item;
			_tmp3_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
			_tmp4_ = _tmp3_;
			_tmp5_ = proton_plus_models_game_get_name (_tmp4_);
			_tmp6_ = _tmp5_;
			gtk_label_set_label (_tmp1_, _tmp6_);
			_tmp7_ = self->priv->label;
			_tmp8_ = self->priv->item;
			_tmp9_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
			_tmp10_ = _tmp9_;
			_tmp11_ = proton_plus_models_game_get_name (_tmp10_);
			_tmp12_ = _tmp11_;
			gtk_widget_set_tooltip_text ((GtkWidget*) _tmp7_, _tmp12_);
			break;
		}
		case PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_PREFIX:
		{
			GtkLabel* _tmp13_;
			ProtonPlusWidgetsGamesGameListItem* _tmp14_;
			ProtonPlusModelsGame* _tmp15_;
			ProtonPlusModelsGame* _tmp16_;
			guint _tmp17_;
			guint _tmp18_;
			gchar* _tmp19_;
			gchar* _tmp20_;
			GtkLabel* _tmp21_;
			_tmp13_ = self->priv->label;
			_tmp14_ = self->priv->item;
			_tmp15_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
			_tmp16_ = _tmp15_;
			_tmp17_ = proton_plus_models_game_get_prefix (_tmp16_);
			_tmp18_ = _tmp17_;
			_tmp19_ = g_strdup_printf ("%u", _tmp18_);
			_tmp20_ = _tmp19_;
			gtk_label_set_label (_tmp13_, _tmp20_);
			_g_free0 (_tmp20_);
			_tmp21_ = self->priv->label;
			gtk_widget_set_tooltip_text ((GtkWidget*) _tmp21_, NULL);
			break;
		}
		case PROTON_PLUS_WIDGETS_GAMES_GAME_TEXT_CELL_KIND_TOOL:
		{
			GtkLabel* _tmp22_;
			ProtonPlusWidgetsGamesGameListItem* _tmp23_;
			const gchar* _tmp24_;
			const gchar* _tmp25_;
			GtkLabel* _tmp26_;
			ProtonPlusWidgetsGamesGameListItem* _tmp27_;
			const gchar* _tmp28_;
			const gchar* _tmp29_;
			_tmp22_ = self->priv->label;
			_tmp23_ = self->priv->item;
			_tmp24_ = proton_plus_widgets_games_game_list_item_get_tool_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
			_tmp25_ = _tmp24_;
			gtk_label_set_label (_tmp22_, _tmp25_);
			_tmp26_ = self->priv->label;
			_tmp27_ = self->priv->item;
			_tmp28_ = proton_plus_widgets_games_game_list_item_get_tool_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
			_tmp29_ = _tmp28_;
			gtk_widget_set_tooltip_text ((GtkWidget*) _tmp26_, _tmp29_);
			break;
		}
		default:
		break;
	}
}

static void
proton_plus_widgets_games_game_text_cell_class_init (ProtonPlusWidgetsGamesGameTextCellClass * klass,
                                                     gpointer klass_data)
{
	proton_plus_widgets_games_game_text_cell_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesGameTextCell_private_offset);
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_game_text_cell_finalize;
}

static void
proton_plus_widgets_games_game_text_cell_instance_init (ProtonPlusWidgetsGamesGameTextCell * self,
                                                        gpointer klass)
{
	self->priv = proton_plus_widgets_games_game_text_cell_get_instance_private (self);
	self->priv->tool_title_handler = (gulong) 0;
}

static void
proton_plus_widgets_games_game_text_cell_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesGameTextCell * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_TEXT_CELL, ProtonPlusWidgetsGamesGameTextCell);
	_g_object_unref0 (self->priv->label);
	_g_object_unref0 (self->priv->item);
	G_OBJECT_CLASS (proton_plus_widgets_games_game_text_cell_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_game_text_cell_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesGameTextCellClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_game_text_cell_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesGameTextCell), 0, (GInstanceInitFunc) proton_plus_widgets_games_game_text_cell_instance_init, NULL };
	GType proton_plus_widgets_games_game_text_cell_type_id;
	proton_plus_widgets_games_game_text_cell_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsGamesGameTextCell", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesGameTextCell_private_offset = g_type_add_instance_private (proton_plus_widgets_games_game_text_cell_type_id, sizeof (ProtonPlusWidgetsGamesGameTextCellPrivate));
	return proton_plus_widgets_games_game_text_cell_type_id;
}

GType
proton_plus_widgets_games_game_text_cell_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_text_cell_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_text_cell_type_id__once)) {
		GType proton_plus_widgets_games_game_text_cell_type_id;
		proton_plus_widgets_games_game_text_cell_type_id = proton_plus_widgets_games_game_text_cell_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_text_cell_type_id__once, proton_plus_widgets_games_game_text_cell_type_id);
	}
	return proton_plus_widgets_games_game_text_cell_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_game_actions_get_instance_private (ProtonPlusWidgetsGamesGameActions* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesGameActions_private_offset);
}

static void
__lambda192_ (ProtonPlusWidgetsGamesGameActions* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_ = NULL;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	ProtonPlusWidgetsGamesGameListItem* _tmp3_;
	ProtonPlusModelsGame* _tmp4_ = NULL;
	ProtonPlusModelsGamesSteam* steam_game = NULL;
	ProtonPlusModelsGamesSteam* _tmp7_;
	ProtonPlusModelsGamesSteam* _tmp8_;
	_tmp1_ = self->priv->target;
	_tmp2_ = proton_plus_widgets_games_game_action_target_get_item (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp0_ = _tmp3_;
	_tmp4_ = NULL;
	if (_tmp0_ != NULL) {
		ProtonPlusModelsGame* _tmp5_;
		ProtonPlusModelsGame* _tmp6_;
		_tmp5_ = proton_plus_widgets_games_game_list_item_get_game (_tmp0_);
		_tmp6_ = _tmp5_;
		_tmp4_ = _tmp6_;
	}
	_tmp7_ = _g_object_ref0 (PROTON_PLUS_MODELS_GAMES_IS_STEAM (_tmp4_) ? ((ProtonPlusModelsGamesSteam*) _tmp4_) : NULL);
	steam_game = _tmp7_;
	_tmp8_ = steam_game;
	if (_tmp8_ != NULL) {
		ProtonPlusModelsGamesSteam* _tmp9_;
		guint _tmp10_;
		guint _tmp11_;
		gchar* _tmp12_;
		gchar* _tmp13_;
		gchar* _tmp14_;
		gchar* _tmp15_;
		_tmp9_ = steam_game;
		_tmp10_ = proton_plus_models_games_steam_get_appid (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteam));
		_tmp11_ = _tmp10_;
		_tmp12_ = g_strdup_printf ("%u", _tmp11_);
		_tmp13_ = _tmp12_;
		_tmp14_ = g_strconcat ("steam://run/", _tmp13_, NULL);
		_tmp15_ = _tmp14_;
		proton_plus_utils_system_open_uri (_tmp15_);
		_g_free0 (_tmp15_);
		_g_free0 (_tmp13_);
	}
	_g_object_unref0 (steam_game);
}

static void
___lambda192__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda192_ ((ProtonPlusWidgetsGamesGameActions*) self);
}

ProtonPlusWidgetsGamesGameActions*
proton_plus_widgets_games_game_actions_construct (GType object_type,
                                                  ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                                  gpointer vertical_focus_target,
                                                  ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus,
                                                  gpointer selection_focus_target)
{
	ProtonPlusWidgetsGamesGameActions * self = NULL;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp0_;
	gchar* _tmp1_;
	gchar** _tmp2_;
	GtkButton* _tmp3_ = NULL;
	GtkButton* _tmp4_;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp5_;
	ProtonPlusWidgetsGamesExtraButton* _tmp6_;
	GtkButton* _tmp7_;
	ProtonPlusWidgetsGamesExtraButton* _tmp8_;
	GtkMenuButton* _tmp9_;
	GtkMenuButton* _tmp10_;
	self = (ProtonPlusWidgetsGamesGameActions*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, "spacing", 6, NULL);
	self->priv->vertical_focus = vertical_focus;
	self->priv->vertical_focus_target = vertical_focus_target;
	self->priv->selection_focus = selection_focus;
	self->priv->selection_focus_target = selection_focus_target;
	gtk_widget_set_halign ((GtkWidget*) self, GTK_ALIGN_START);
	gtk_widget_set_valign ((GtkWidget*) self, GTK_ALIGN_CENTER);
	_tmp0_ = proton_plus_widgets_games_game_action_target_new ();
	_g_object_unref0 (self->priv->target);
	self->priv->target = _tmp0_;
	_tmp1_ = g_strdup ("flat");
	_tmp2_ = g_new0 (gchar*, 1 + 1);
	_tmp2_[0] = _tmp1_;
	_tmp3_ = (GtkButton*) gtk_button_new_from_icon_name ("media-playback-start-symbolic");
	gtk_widget_set_css_classes ((GtkWidget*) _tmp3_, _tmp2_);
	_tmp2_ = (_vala_array_free (_tmp2_, 1, (GDestroyNotify) g_free), NULL);
	g_object_ref_sink (_tmp3_);
	_g_object_unref0 (self->priv->launch_button);
	self->priv->launch_button = _tmp3_;
	_tmp4_ = self->priv->launch_button;
	g_signal_connect_object (_tmp4_, "clicked", (GCallback) ___lambda192__gtk_button_clicked, self, 0);
	_tmp5_ = self->priv->target;
	_tmp6_ = proton_plus_widgets_games_extra_button_new (_tmp5_);
	_g_object_unref0 (self->priv->extra_button);
	self->priv->extra_button = _tmp6_;
	_tmp7_ = self->priv->launch_button;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp7_);
	_tmp8_ = self->priv->extra_button;
	_tmp9_ = proton_plus_widgets_games_extra_button_get_button (_tmp8_);
	_tmp10_ = _tmp9_;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp10_);
	return self;
}

ProtonPlusWidgetsGamesGameActions*
proton_plus_widgets_games_game_actions_new (ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                            gpointer vertical_focus_target,
                                            ProtonPlusWidgetsGamesGamePeerFocusRequest selection_focus,
                                            gpointer selection_focus_target)
{
	return proton_plus_widgets_games_game_actions_construct (PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_ACTIONS, vertical_focus, vertical_focus_target, selection_focus, selection_focus_target);
}

static gboolean*
_bool_dup (gboolean* self)
{
	gboolean* dup;
	dup = g_new0 (gboolean, 1);
	memcpy (dup, self, sizeof (gboolean));
	return dup;
}

static gpointer
__bool_dup0 (gpointer self)
{
	return self ? _bool_dup (self) : NULL;
}

void
proton_plus_widgets_games_game_actions_bind (ProtonPlusWidgetsGamesGameActions* self,
                                             ProtonPlusWidgetsGamesGameListItem* item)
{
	ProtonPlusWidgetsGamesGameActionTarget* _tmp0_;
	gboolean _tmp1_ = FALSE;
	ProtonPlusModelsGamesSteam* _tmp2_ = NULL;
	ProtonPlusModelsGame* _tmp3_;
	ProtonPlusModelsGame* _tmp4_;
	const gchar* _tmp5_ = NULL;
	ProtonPlusModelsGamesSteam* _tmp8_ = NULL;
	ProtonPlusModelsGame* _tmp9_;
	ProtonPlusModelsGame* _tmp10_;
	const gchar* _tmp11_ = NULL;
	ProtonPlusModelsGamesSteam* _tmp14_ = NULL;
	ProtonPlusModelsGame* _tmp15_;
	ProtonPlusModelsGame* _tmp16_;
	gboolean* _tmp17_ = NULL;
	gboolean* _tmp21_ = NULL;
	gboolean* _tmp22_;
	ProtonPlusWidgetsGamesGameActionAvailability* availability = NULL;
	ProtonPlusModelsGame* _tmp25_;
	ProtonPlusModelsGame* _tmp26_;
	gboolean _tmp27_;
	gboolean _tmp28_;
	gboolean _tmp29_;
	gboolean _tmp30_;
	gboolean _tmp31_;
	gboolean _tmp32_;
	gboolean _tmp33_;
	gboolean _tmp34_;
	ProtonPlusWidgetsGamesGameActionAvailability* _tmp35_;
	GtkButton* _tmp36_;
	gboolean _tmp37_;
	gboolean _tmp38_;
	GtkButton* _tmp39_;
	ProtonPlusModelsGame* _tmp40_;
	ProtonPlusModelsGame* _tmp41_;
	const gchar* _tmp42_;
	const gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	GtkButton* _tmp46_;
	ProtonPlusModelsGame* _tmp47_;
	ProtonPlusModelsGame* _tmp48_;
	const gchar* _tmp49_;
	const gchar* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	ProtonPlusWidgetsGamesExtraButton* _tmp53_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	proton_plus_widgets_games_game_actions_unbind (self);
	_tmp0_ = self->priv->target;
	proton_plus_widgets_games_game_action_target_bind (_tmp0_, item);
	if (proton_plus_globals_PROTONTRICKS_INSTALLED) {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = proton_plus_globals_PROTONTRICKS_FLATPAK_INSTALLED;
	}
	_tmp3_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp4_ = _tmp3_;
	_tmp2_ = PROTON_PLUS_MODELS_GAMES_IS_STEAM (_tmp4_) ? ((ProtonPlusModelsGamesSteam*) _tmp4_) : NULL;
	_tmp5_ = NULL;
	if (_tmp2_ != NULL) {
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		_tmp6_ = proton_plus_models_games_steam_get_awacy_status (_tmp2_);
		_tmp7_ = _tmp6_;
		_tmp5_ = _tmp7_;
	}
	_tmp9_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp10_ = _tmp9_;
	_tmp8_ = PROTON_PLUS_MODELS_GAMES_IS_STEAM (_tmp10_) ? ((ProtonPlusModelsGamesSteam*) _tmp10_) : NULL;
	_tmp11_ = NULL;
	if (_tmp8_ != NULL) {
		const gchar* _tmp12_;
		const gchar* _tmp13_;
		_tmp12_ = proton_plus_models_games_steam_get_awacy_name (_tmp8_);
		_tmp13_ = _tmp12_;
		_tmp11_ = _tmp13_;
	}
	_tmp15_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp16_ = _tmp15_;
	_tmp14_ = PROTON_PLUS_MODELS_GAMES_IS_STEAM (_tmp16_) ? ((ProtonPlusModelsGamesSteam*) _tmp16_) : NULL;
	_tmp17_ = NULL;
	if (_tmp14_ != NULL) {
		gboolean _tmp18_;
		gboolean _tmp19_;
		gboolean* _tmp20_;
		_tmp18_ = proton_plus_models_games_steam_get_awacy_lookup_complete (_tmp14_);
		_tmp19_ = _tmp18_;
		_tmp20_ = __bool_dup0 (&_tmp19_);
		_g_free0 (_tmp17_);
		_tmp17_ = _tmp20_;
	}
	_tmp22_ = __bool_dup0 (_tmp17_);
	_tmp21_ = _tmp22_;
	if (_tmp21_ == NULL) {
		gboolean _tmp23_;
		gboolean* _tmp24_;
		_tmp23_ = FALSE;
		_tmp24_ = __bool_dup0 (&_tmp23_);
		_g_free0 (_tmp21_);
		_tmp21_ = _tmp24_;
	}
	_tmp25_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp26_ = _tmp25_;
	_tmp27_ = proton_plus_widgets_games_game_list_item_get_is_non_steam (item);
	_tmp28_ = _tmp27_;
	_tmp29_ = proton_plus_widgets_games_game_list_item_get_is_native (item);
	_tmp30_ = _tmp29_;
	_tmp31_ = proton_plus_widgets_games_game_list_item_get_has_install_directory (item);
	_tmp32_ = _tmp31_;
	_tmp33_ = proton_plus_widgets_games_game_list_item_get_has_prefix_directory (item);
	_tmp34_ = _tmp33_;
	_tmp35_ = proton_plus_widgets_games_game_action_availability_evaluate (PROTON_PLUS_MODELS_GAMES_IS_STEAM (_tmp26_), _tmp28_, _tmp30_, _tmp32_, _tmp34_, _tmp1_, _tmp5_, _tmp11_ != NULL, *_tmp21_);
	availability = _tmp35_;
	_tmp36_ = self->priv->launch_button;
	_tmp37_ = proton_plus_widgets_games_game_action_availability_get_show_launch (availability);
	_tmp38_ = _tmp37_;
	gtk_widget_set_visible ((GtkWidget*) _tmp36_, _tmp38_);
	_tmp39_ = self->priv->launch_button;
	_tmp40_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp41_ = _tmp40_;
	_tmp42_ = proton_plus_models_game_get_name (_tmp41_);
	_tmp43_ = _tmp42_;
	_tmp44_ = g_strdup_printf (_ ("Launch %s"), _tmp43_);
	_tmp45_ = _tmp44_;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp39_, _tmp45_);
	_g_free0 (_tmp45_);
	_tmp46_ = self->priv->launch_button;
	_tmp47_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp48_ = _tmp47_;
	_tmp49_ = proton_plus_models_game_get_name (_tmp48_);
	_tmp50_ = _tmp49_;
	_tmp51_ = g_strdup_printf (_ ("Launch %s"), _tmp50_);
	_tmp52_ = _tmp51_;
	gtk_accessible_update_property ((GtkAccessible*) _tmp46_, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp52_, -1, -1);
	_g_free0 (_tmp52_);
	_tmp53_ = self->priv->extra_button;
	proton_plus_widgets_games_extra_button_bind (_tmp53_, item);
	proton_plus_widgets_games_game_actions_refresh_visibility (self);
	_g_object_unref0 (availability);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp17_);
}

void
proton_plus_widgets_games_game_actions_unbind (ProtonPlusWidgetsGamesGameActions* self)
{
	ProtonPlusWidgetsGamesExtraButton* _tmp0_;
	GtkButton* _tmp1_;
	GtkButton* _tmp2_;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->extra_button;
	proton_plus_widgets_games_extra_button_unbind (_tmp0_);
	_tmp1_ = self->priv->launch_button;
	gtk_widget_set_visible ((GtkWidget*) _tmp1_, FALSE);
	_tmp2_ = self->priv->launch_button;
	gtk_accessible_reset_property ((GtkAccessible*) _tmp2_, GTK_ACCESSIBLE_PROPERTY_LABEL);
	_tmp3_ = self->priv->target;
	proton_plus_widgets_games_game_action_target_unbind (_tmp3_);
	gtk_widget_set_visible ((GtkWidget*) self, FALSE);
}

ProtonPlusWidgetsGamesGameListItem*
proton_plus_widgets_games_game_actions_get_item (ProtonPlusWidgetsGamesGameActions* self)
{
	ProtonPlusWidgetsGamesGameActionTarget* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	ProtonPlusWidgetsGamesGameListItem* _tmp3_;
	ProtonPlusWidgetsGamesGameListItem* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->target;
	_tmp1_ = proton_plus_widgets_games_game_action_target_get_item (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	result = _tmp3_;
	return result;
}

void
proton_plus_widgets_games_game_actions_set_selection_mode (ProtonPlusWidgetsGamesGameActions* self,
                                                           gboolean selection_mode)
{
	g_return_if_fail (self != NULL);
	self->priv->selection_mode = selection_mode;
	proton_plus_widgets_games_game_actions_refresh_visibility (self);
}

gboolean
proton_plus_widgets_games_game_actions_focus_first_action (ProtonPlusWidgetsGamesGameActions* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = proton_plus_widgets_games_game_actions_focus_action (self, NULL, TRUE);
	return result;
}

gboolean
proton_plus_widgets_games_game_actions_focus_lane (ProtonPlusWidgetsGamesGameActions* self,
                                                   ProtonPlusWidgetsGamesGameFocusLane lane)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	if (lane == PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_FIRST_ACTION) {
		result = proton_plus_widgets_games_game_actions_focus_first_action (self);
		return result;
	}
	if (lane == PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_PRIMARY_ACTION) {
		GtkButton* _tmp0_;
		_tmp0_ = self->priv->launch_button;
		result = proton_plus_widgets_games_game_actions_focus_candidate (self, (GtkWidget*) _tmp0_);
		return result;
	}
	if (lane == PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SECONDARY_ACTION) {
		ProtonPlusWidgetsGamesExtraButton* _tmp1_;
		GtkMenuButton* _tmp2_;
		GtkMenuButton* _tmp3_;
		_tmp1_ = self->priv->extra_button;
		_tmp2_ = proton_plus_widgets_games_extra_button_get_button (_tmp1_);
		_tmp3_ = _tmp2_;
		result = proton_plus_widgets_games_game_actions_focus_candidate (self, (GtkWidget*) _tmp3_);
		return result;
	}
	result = FALSE;
	return result;
}

static gboolean
proton_plus_widgets_games_game_actions_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                        GObject* focused_object,
                                                                        ProtonPlusUtilsControllerNavigationDirection direction)
{
	ProtonPlusWidgetsGamesGameActions * self;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	GtkWidget* focused = NULL;
	GtkWidget* _tmp3_;
	GtkWidget* _tmp4_;
	GtkWidget* action = NULL;
	GtkWidget* _tmp5_;
	GtkWidget* _tmp6_;
	ProtonPlusWidgetsGamesGameFocusLane lane = 0;
	GtkWidget* _tmp7_;
	ProtonPlusWidgetsGamesExtraButton* _tmp8_;
	GtkMenuButton* _tmp9_;
	GtkMenuButton* _tmp10_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameActions*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->target;
	_tmp1_ = proton_plus_widgets_games_game_action_target_get_item (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (focused_object, gtk_widget_get_type ()) ? ((GtkWidget*) focused_object) : NULL);
	focused = _tmp3_;
	_tmp4_ = focused;
	if (_tmp4_ == NULL) {
		result = FALSE;
		_g_object_unref0 (focused);
		return result;
	}
	_tmp5_ = focused;
	_tmp6_ = proton_plus_widgets_games_game_actions_find_action_ancestor (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
	action = _tmp6_;
	_tmp7_ = action;
	_tmp8_ = self->priv->extra_button;
	_tmp9_ = proton_plus_widgets_games_extra_button_get_button (_tmp8_);
	_tmp10_ = _tmp9_;
	lane = proton_plus_widgets_games_game_controller_navigation_policy_action_lane (_tmp7_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget));
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_UP) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp11_;
		gpointer _tmp11__target;
		ProtonPlusWidgetsGamesGameActionTarget* _tmp12_;
		ProtonPlusWidgetsGamesGameListItem* _tmp13_;
		ProtonPlusWidgetsGamesGameListItem* _tmp14_;
		_tmp11_ = self->priv->vertical_focus;
		_tmp11__target = self->priv->vertical_focus_target;
		_tmp12_ = self->priv->target;
		_tmp13_ = proton_plus_widgets_games_game_action_target_get_item (_tmp12_);
		_tmp14_ = _tmp13_;
		result = _tmp11_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), -1, lane, _tmp11__target);
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_DOWN) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp15_;
		gpointer _tmp15__target;
		ProtonPlusWidgetsGamesGameActionTarget* _tmp16_;
		ProtonPlusWidgetsGamesGameListItem* _tmp17_;
		ProtonPlusWidgetsGamesGameListItem* _tmp18_;
		_tmp15_ = self->priv->vertical_focus;
		_tmp15__target = self->priv->vertical_focus_target;
		_tmp16_ = self->priv->target;
		_tmp17_ = proton_plus_widgets_games_game_action_target_get_item (_tmp16_);
		_tmp18_ = _tmp17_;
		result = _tmp15_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), 1, lane, _tmp15__target);
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_RIGHT) {
		GtkWidget* _tmp19_;
		GtkWidget* _tmp20_;
		_tmp19_ = focused;
		if (proton_plus_widgets_games_game_actions_focus_action (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), TRUE)) {
			result = TRUE;
			_g_object_unref0 (action);
			_g_object_unref0 (focused);
			return result;
		}
		_tmp20_ = focused;
		result = gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget));
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_LEFT) {
		GtkWidget* _tmp21_;
		ProtonPlusWidgetsGamesGamePeerFocusRequest _tmp22_;
		gpointer _tmp22__target;
		ProtonPlusWidgetsGamesGameActionTarget* _tmp23_;
		ProtonPlusWidgetsGamesGameListItem* _tmp24_;
		ProtonPlusWidgetsGamesGameListItem* _tmp25_;
		_tmp21_ = focused;
		if (proton_plus_widgets_games_game_actions_focus_action (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE)) {
			result = TRUE;
			_g_object_unref0 (action);
			_g_object_unref0 (focused);
			return result;
		}
		_tmp22_ = self->priv->selection_focus;
		_tmp22__target = self->priv->selection_focus_target;
		_tmp23_ = self->priv->target;
		_tmp24_ = proton_plus_widgets_games_game_action_target_get_item (_tmp23_);
		_tmp25_ = _tmp24_;
		result = _tmp22_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp22__target);
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	result = FALSE;
	_g_object_unref0 (action);
	_g_object_unref0 (focused);
	return result;
}

static gboolean
proton_plus_widgets_games_game_actions_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                                 GObject* focused_object)
{
	ProtonPlusWidgetsGamesGameActions * self;
	ProtonPlusWidgetsGamesGameActionTarget* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	GtkWidget* focused = NULL;
	GtkWidget* _tmp3_;
	GtkWidget* _tmp4_;
	GtkWidget* action = NULL;
	GtkWidget* _tmp5_;
	GtkWidget* _tmp6_;
	GtkWidget* _tmp7_;
	GtkButton* _tmp8_;
	GtkWidget* _tmp10_;
	ProtonPlusWidgetsGamesExtraButton* _tmp11_;
	GtkMenuButton* _tmp12_;
	GtkMenuButton* _tmp13_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameActions*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->target;
	_tmp1_ = proton_plus_widgets_games_game_action_target_get_item (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (focused_object, gtk_widget_get_type ()) ? ((GtkWidget*) focused_object) : NULL);
	focused = _tmp3_;
	_tmp4_ = focused;
	if (_tmp4_ == NULL) {
		result = FALSE;
		_g_object_unref0 (focused);
		return result;
	}
	_tmp5_ = focused;
	_tmp6_ = proton_plus_widgets_games_game_actions_find_action_ancestor (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget));
	action = _tmp6_;
	_tmp7_ = action;
	_tmp8_ = self->priv->launch_button;
	if (_tmp7_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)) {
		GtkButton* _tmp9_;
		_tmp9_ = self->priv->launch_button;
		g_signal_emit_by_name (_tmp9_, "activate");
		result = TRUE;
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	_tmp10_ = action;
	_tmp11_ = self->priv->extra_button;
	_tmp12_ = proton_plus_widgets_games_extra_button_get_button (_tmp11_);
	_tmp13_ = _tmp12_;
	if (_tmp10_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget)) {
		ProtonPlusWidgetsGamesExtraButton* _tmp14_;
		GtkMenuButton* _tmp15_;
		GtkMenuButton* _tmp16_;
		_tmp14_ = self->priv->extra_button;
		_tmp15_ = proton_plus_widgets_games_extra_button_get_button (_tmp14_);
		_tmp16_ = _tmp15_;
		gtk_menu_button_popup (_tmp16_);
		result = TRUE;
		_g_object_unref0 (action);
		_g_object_unref0 (focused);
		return result;
	}
	result = FALSE;
	_g_object_unref0 (action);
	_g_object_unref0 (focused);
	return result;
}

static gboolean
proton_plus_widgets_games_game_actions_focus_candidate (ProtonPlusWidgetsGamesGameActions* self,
                                                        GtkWidget* candidate)
{
	gboolean _tmp0_ = FALSE;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (candidate != NULL, FALSE);
	if (proton_plus_widgets_games_game_controller_navigation_policy_can_attempt_action_focus (gtk_widget_get_mapped (candidate), gtk_widget_is_visible (candidate), gtk_widget_is_sensitive (candidate))) {
		_tmp0_ = gtk_widget_grab_focus (candidate);
	} else {
		_tmp0_ = FALSE;
	}
	result = _tmp0_;
	return result;
}

static gboolean
proton_plus_widgets_games_game_actions_focus_action (ProtonPlusWidgetsGamesGameActions* self,
                                                     GtkWidget* focused,
                                                     gboolean forward)
{
	GtkWidget* action = NULL;
	GtkWidget* _tmp0_;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_;
	GtkWidget* candidate = NULL;
	GtkWidget* _tmp11_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = proton_plus_widgets_games_game_actions_find_action_ancestor (self, focused);
	action = _tmp0_;
	_tmp2_ = action;
	if (_tmp2_ == NULL) {
		GtkWidget* _tmp3_ = NULL;
		if (forward) {
			GtkWidget* _tmp4_;
			_tmp4_ = gtk_widget_get_first_child ((GtkWidget*) self);
			_tmp3_ = _tmp4_;
		} else {
			GtkWidget* _tmp5_;
			_tmp5_ = gtk_widget_get_last_child ((GtkWidget*) self);
			_tmp3_ = _tmp5_;
		}
		_tmp1_ = _tmp3_;
	} else {
		GtkWidget* _tmp6_ = NULL;
		if (forward) {
			GtkWidget* _tmp7_;
			GtkWidget* _tmp8_;
			_tmp7_ = action;
			_tmp8_ = gtk_widget_get_next_sibling (_tmp7_);
			_tmp6_ = _tmp8_;
		} else {
			GtkWidget* _tmp9_;
			GtkWidget* _tmp10_;
			_tmp9_ = action;
			_tmp10_ = gtk_widget_get_prev_sibling (_tmp9_);
			_tmp6_ = _tmp10_;
		}
		_tmp1_ = _tmp6_;
	}
	_tmp11_ = _g_object_ref0 (_tmp1_);
	candidate = _tmp11_;
	while (TRUE) {
		GtkWidget* _tmp12_;
		GtkWidget* _tmp13_;
		GtkWidget* _tmp14_ = NULL;
		GtkWidget* _tmp19_;
		_tmp12_ = candidate;
		if (!(_tmp12_ != NULL)) {
			break;
		}
		_tmp13_ = candidate;
		if (proton_plus_widgets_games_game_actions_focus_candidate (self, _tmp13_)) {
			result = TRUE;
			_g_object_unref0 (candidate);
			_g_object_unref0 (action);
			return result;
		}
		if (forward) {
			GtkWidget* _tmp15_;
			GtkWidget* _tmp16_;
			_tmp15_ = candidate;
			_tmp16_ = gtk_widget_get_next_sibling (_tmp15_);
			_tmp14_ = _tmp16_;
		} else {
			GtkWidget* _tmp17_;
			GtkWidget* _tmp18_;
			_tmp17_ = candidate;
			_tmp18_ = gtk_widget_get_prev_sibling (_tmp17_);
			_tmp14_ = _tmp18_;
		}
		_tmp19_ = _g_object_ref0 (_tmp14_);
		_g_object_unref0 (candidate);
		candidate = _tmp19_;
	}
	result = FALSE;
	_g_object_unref0 (candidate);
	_g_object_unref0 (action);
	return result;
}

static GtkWidget*
proton_plus_widgets_games_game_actions_find_action_ancestor (ProtonPlusWidgetsGamesGameActions* self,
                                                             GtkWidget* focused)
{
	GtkWidget* current = NULL;
	GtkWidget* _tmp0_;
	GtkWidget* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = _g_object_ref0 (focused);
	current = _tmp0_;
	while (TRUE) {
		gboolean _tmp1_ = FALSE;
		GtkWidget* _tmp2_;
		GtkWidget* _tmp4_;
		GtkWidget* _tmp5_;
		GtkWidget* _tmp6_;
		GtkWidget* _tmp7_;
		GtkWidget* _tmp8_;
		_tmp2_ = current;
		if (_tmp2_ != NULL) {
			GtkWidget* _tmp3_;
			_tmp3_ = current;
			_tmp1_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget);
		} else {
			_tmp1_ = FALSE;
		}
		if (!_tmp1_) {
			break;
		}
		_tmp4_ = current;
		_tmp5_ = gtk_widget_get_parent (_tmp4_);
		if (_tmp5_ == G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)) {
			result = current;
			return result;
		}
		_tmp6_ = current;
		_tmp7_ = gtk_widget_get_parent (_tmp6_);
		_tmp8_ = _g_object_ref0 (_tmp7_);
		_g_object_unref0 (current);
		current = _tmp8_;
	}
	result = NULL;
	_g_object_unref0 (current);
	return result;
}

static void
proton_plus_widgets_games_game_actions_refresh_visibility (ProtonPlusWidgetsGamesGameActions* self)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	g_return_if_fail (self != NULL);
	if (!self->priv->selection_mode) {
		ProtonPlusWidgetsGamesGameActionTarget* _tmp2_;
		ProtonPlusWidgetsGamesGameListItem* _tmp3_;
		ProtonPlusWidgetsGamesGameListItem* _tmp4_;
		_tmp2_ = self->priv->target;
		_tmp3_ = proton_plus_widgets_games_game_action_target_get_item (_tmp2_);
		_tmp4_ = _tmp3_;
		_tmp1_ = _tmp4_ != NULL;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		gboolean _tmp5_ = FALSE;
		GtkButton* _tmp6_;
		_tmp6_ = self->priv->launch_button;
		if (gtk_widget_get_visible ((GtkWidget*) _tmp6_)) {
			_tmp5_ = TRUE;
		} else {
			ProtonPlusWidgetsGamesExtraButton* _tmp7_;
			GtkMenuButton* _tmp8_;
			GtkMenuButton* _tmp9_;
			_tmp7_ = self->priv->extra_button;
			_tmp8_ = proton_plus_widgets_games_extra_button_get_button (_tmp7_);
			_tmp9_ = _tmp8_;
			_tmp5_ = gtk_widget_get_visible ((GtkWidget*) _tmp9_);
		}
		_tmp0_ = _tmp5_;
	} else {
		_tmp0_ = FALSE;
	}
	gtk_widget_set_visible ((GtkWidget*) self, _tmp0_);
}

static void
proton_plus_widgets_games_game_actions_class_init (ProtonPlusWidgetsGamesGameActionsClass * klass,
                                                   gpointer klass_data)
{
	proton_plus_widgets_games_game_actions_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesGameActions_private_offset);
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_game_actions_finalize;
}

static void
proton_plus_widgets_games_game_actions_proton_plus_utils_controller_directional_focus_interface_init (ProtonPlusUtilsControllerDirectionalFocusIface * iface,
                                                                                                      gpointer iface_data)
{
	proton_plus_widgets_games_game_actions_proton_plus_utils_controller_directional_focus_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_focus_direction = (gboolean (*) (ProtonPlusUtilsControllerDirectionalFocus*, GObject*, ProtonPlusUtilsControllerNavigationDirection)) proton_plus_widgets_games_game_actions_real_controller_focus_direction;
}

static void
proton_plus_widgets_games_game_actions_proton_plus_utils_controller_activation_handler_interface_init (ProtonPlusUtilsControllerActivationHandlerIface * iface,
                                                                                                       gpointer iface_data)
{
	proton_plus_widgets_games_game_actions_proton_plus_utils_controller_activation_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_activate = (gboolean (*) (ProtonPlusUtilsControllerActivationHandler*, GObject*)) proton_plus_widgets_games_game_actions_real_controller_activate;
}

static void
proton_plus_widgets_games_game_actions_instance_init (ProtonPlusWidgetsGamesGameActions * self,
                                                      gpointer klass)
{
	self->priv = proton_plus_widgets_games_game_actions_get_instance_private (self);
	self->priv->selection_mode = FALSE;
}

static void
proton_plus_widgets_games_game_actions_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesGameActions * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_ACTIONS, ProtonPlusWidgetsGamesGameActions);
	_g_object_unref0 (self->priv->launch_button);
	_g_object_unref0 (self->priv->extra_button);
	_g_object_unref0 (self->priv->target);
	G_OBJECT_CLASS (proton_plus_widgets_games_game_actions_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_game_actions_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesGameActionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_game_actions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesGameActions), 0, (GInstanceInitFunc) proton_plus_widgets_games_game_actions_instance_init, NULL };
	static const GInterfaceInfo proton_plus_utils_controller_directional_focus_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_actions_proton_plus_utils_controller_directional_focus_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo proton_plus_utils_controller_activation_handler_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_actions_proton_plus_utils_controller_activation_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType proton_plus_widgets_games_game_actions_type_id;
	proton_plus_widgets_games_game_actions_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsGamesGameActions", &g_define_type_info, 0);
	g_type_add_interface_static (proton_plus_widgets_games_game_actions_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_DIRECTIONAL_FOCUS, &proton_plus_utils_controller_directional_focus_info);
	g_type_add_interface_static (proton_plus_widgets_games_game_actions_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_ACTIVATION_HANDLER, &proton_plus_utils_controller_activation_handler_info);
	ProtonPlusWidgetsGamesGameActions_private_offset = g_type_add_instance_private (proton_plus_widgets_games_game_actions_type_id, sizeof (ProtonPlusWidgetsGamesGameActionsPrivate));
	return proton_plus_widgets_games_game_actions_type_id;
}

GType
proton_plus_widgets_games_game_actions_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_actions_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_actions_type_id__once)) {
		GType proton_plus_widgets_games_game_actions_type_id;
		proton_plus_widgets_games_game_actions_type_id = proton_plus_widgets_games_game_actions_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_actions_type_id__once, proton_plus_widgets_games_game_actions_type_id);
	}
	return proton_plus_widgets_games_game_actions_type_id__once;
}

static inline gpointer
proton_plus_widgets_games_game_row_get_instance_private (ProtonPlusWidgetsGamesGameRow* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesGameRow_private_offset);
}

static gboolean
_proton_plus_widgets_games_game_row_on_vertical_focus_proton_plus_widgets_games_game_vertical_focus_request (ProtonPlusWidgetsGamesGameListItem* item,
                                                                                                             gint delta,
                                                                                                             ProtonPlusWidgetsGamesGameFocusLane lane,
                                                                                                             gpointer self)
{
	gboolean result;
	result = proton_plus_widgets_games_game_row_on_vertical_focus ((ProtonPlusWidgetsGamesGameRow*) self, item, delta, lane);
	return result;
}

static gboolean
_proton_plus_widgets_games_game_row_focus_selection_proton_plus_widgets_games_game_peer_focus_request (ProtonPlusWidgetsGamesGameListItem* item,
                                                                                                       gpointer self)
{
	gboolean result;
	result = proton_plus_widgets_games_game_row_focus_selection ((ProtonPlusWidgetsGamesGameRow*) self, item);
	return result;
}

ProtonPlusWidgetsGamesGameRow*
proton_plus_widgets_games_game_row_construct (GType object_type,
                                              ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                              gpointer vertical_focus_target,
                                              ProtonPlusWidgetsGamesGameActivationRequest activation_request,
                                              gpointer activation_request_target)
{
	ProtonPlusWidgetsGamesGameRow * self = NULL;
	gchar* _tmp0_;
	GtkCheckButton* _tmp1_ = NULL;
	GtkCheckButton* _tmp2_;
	GtkLabel* _tmp3_;
	GtkLabel* _tmp4_;
	GtkLabel* _tmp5_;
	GtkLabel* _tmp6_;
	GtkLabel* _tmp7_;
	GtkBox* title_line = NULL;
	GtkBox* _tmp8_;
	GtkCheckButton* _tmp9_;
	GtkLabel* _tmp10_;
	gchar* _tmp11_;
	GtkImage* _tmp12_ = NULL;
	GtkImage* _tmp13_;
	GtkBox* details_line = NULL;
	GtkBox* _tmp14_;
	GtkLabel* _tmp15_;
	GtkLabel* _tmp16_;
	ProtonPlusWidgetsGamesGameActions* _tmp17_;
	ProtonPlusWidgetsGamesGameActions* _tmp18_;
	ProtonPlusWidgetsGamesGameActions* _tmp19_;
	self = (ProtonPlusWidgetsGamesGameRow*) g_object_new (object_type, "orientation", GTK_ORIENTATION_VERTICAL, "spacing", 4, NULL);
	self->priv->vertical_focus = vertical_focus;
	self->priv->vertical_focus_target = vertical_focus_target;
	self->priv->activation_request = activation_request;
	self->priv->activation_request_target = activation_request_target;
	gtk_widget_set_focusable ((GtkWidget*) self, TRUE);
	gtk_widget_set_hexpand ((GtkWidget*) self, TRUE);
	gtk_widget_set_margin_top ((GtkWidget*) self, 10);
	gtk_widget_set_margin_bottom ((GtkWidget*) self, 10);
	gtk_widget_set_margin_start ((GtkWidget*) self, 12);
	gtk_widget_set_margin_end ((GtkWidget*) self, 12);
	_tmp0_ = g_strdup (_ ("Select game"));
	_tmp1_ = (GtkCheckButton*) gtk_check_button_new ();
	gtk_widget_set_valign ((GtkWidget*) _tmp1_, GTK_ALIGN_CENTER);
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp1_, _tmp0_);
	_g_free0 (_tmp0_);
	gtk_widget_set_focusable ((GtkWidget*) _tmp1_, FALSE);
	g_object_ref_sink (_tmp1_);
	_g_object_unref0 (self->priv->select_check_button);
	self->priv->select_check_button = _tmp1_;
	_tmp2_ = self->priv->select_check_button;
	gtk_accessible_update_property ((GtkAccessible*) _tmp2_, GTK_ACCESSIBLE_PROPERTY_LABEL, _ ("Select game"), -1, -1);
	_tmp3_ = proton_plus_widgets_games_game_row_compact_label (TRUE);
	_g_object_unref0 (self->priv->title_label);
	self->priv->title_label = _tmp3_;
	_tmp4_ = self->priv->title_label;
	gtk_widget_add_css_class ((GtkWidget*) _tmp4_, "heading");
	_tmp5_ = proton_plus_widgets_games_game_row_compact_label (TRUE);
	_g_object_unref0 (self->priv->tool_label);
	self->priv->tool_label = _tmp5_;
	_tmp6_ = proton_plus_widgets_games_game_row_compact_label (FALSE);
	_g_object_unref0 (self->priv->prefix_label);
	self->priv->prefix_label = _tmp6_;
	_tmp7_ = self->priv->prefix_label;
	gtk_widget_add_css_class ((GtkWidget*) _tmp7_, "dim-label");
	_tmp8_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
	g_object_ref_sink (_tmp8_);
	title_line = _tmp8_;
	_tmp9_ = self->priv->select_check_button;
	gtk_box_append (title_line, (GtkWidget*) _tmp9_);
	_tmp10_ = self->priv->title_label;
	gtk_box_append (title_line, (GtkWidget*) _tmp10_);
	_tmp11_ = g_strdup (_ ("Modify Game"));
	_tmp12_ = (GtkImage*) gtk_image_new_from_icon_name ("go-next-symbolic");
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp12_, _tmp11_);
	_g_free0 (_tmp11_);
	g_object_ref_sink (_tmp12_);
	_g_object_unref0 (self->priv->navigation_image);
	self->priv->navigation_image = _tmp12_;
	_tmp13_ = self->priv->navigation_image;
	gtk_box_append (title_line, (GtkWidget*) _tmp13_);
	_tmp14_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
	g_object_ref_sink (_tmp14_);
	details_line = _tmp14_;
	gtk_widget_set_margin_start ((GtkWidget*) details_line, 30);
	_tmp15_ = self->priv->tool_label;
	gtk_box_append (details_line, (GtkWidget*) _tmp15_);
	_tmp16_ = self->priv->prefix_label;
	gtk_box_append (details_line, (GtkWidget*) _tmp16_);
	_tmp17_ = proton_plus_widgets_games_game_actions_new (_proton_plus_widgets_games_game_row_on_vertical_focus_proton_plus_widgets_games_game_vertical_focus_request, self, _proton_plus_widgets_games_game_row_focus_selection_proton_plus_widgets_games_game_peer_focus_request, self);
	g_object_ref_sink (_tmp17_);
	_g_object_unref0 (self->priv->actions);
	self->priv->actions = _tmp17_;
	_tmp18_ = self->priv->actions;
	gtk_widget_set_margin_start ((GtkWidget*) _tmp18_, 30);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) title_line);
	gtk_box_append ((GtkBox*) self, (GtkWidget*) details_line);
	_tmp19_ = self->priv->actions;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp19_);
	_g_object_unref0 (details_line);
	_g_object_unref0 (title_line);
	return self;
}

ProtonPlusWidgetsGamesGameRow*
proton_plus_widgets_games_game_row_new (ProtonPlusWidgetsGamesGameVerticalFocusRequest vertical_focus,
                                        gpointer vertical_focus_target,
                                        ProtonPlusWidgetsGamesGameActivationRequest activation_request,
                                        gpointer activation_request_target)
{
	return proton_plus_widgets_games_game_row_construct (PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_ROW, vertical_focus, vertical_focus_target, activation_request, activation_request_target);
}

static GtkLabel*
proton_plus_widgets_games_game_row_compact_label (gboolean expand)
{
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* result;
	_tmp0_ = (GtkLabel*) gtk_label_new (NULL);
	gtk_label_set_xalign (_tmp0_, (gfloat) 0);
	gtk_widget_set_halign ((GtkWidget*) _tmp0_, GTK_ALIGN_FILL);
	gtk_widget_set_hexpand ((GtkWidget*) _tmp0_, expand);
	gtk_label_set_ellipsize (_tmp0_, PANGO_ELLIPSIZE_END);
	g_object_ref_sink (_tmp0_);
	result = _tmp0_;
	return result;
}

static void
_proton_plus_widgets_games_game_row_refresh_tool_title_g_object_notify (GObject* _sender,
                                                                        GParamSpec* pspec,
                                                                        gpointer self)
{
	proton_plus_widgets_games_game_row_refresh_tool_title ((ProtonPlusWidgetsGamesGameRow*) self);
}

void
proton_plus_widgets_games_game_row_bind (ProtonPlusWidgetsGamesGameRow* self,
                                         ProtonPlusWidgetsGamesGameListItem* item)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkCheckButton* _tmp1_;
	GBinding* _tmp2_;
	GBinding* _tmp3_;
	GtkCheckButton* _tmp4_;
	ProtonPlusModelsGame* _tmp5_;
	ProtonPlusModelsGame* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gulong _tmp11_;
	GtkLabel* _tmp12_;
	ProtonPlusModelsGame* _tmp13_;
	ProtonPlusModelsGame* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	GtkLabel* _tmp17_;
	ProtonPlusModelsGame* _tmp18_;
	ProtonPlusModelsGame* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	GtkLabel* _tmp22_;
	ProtonPlusModelsGame* _tmp23_;
	ProtonPlusModelsGame* _tmp24_;
	guint _tmp25_;
	guint _tmp26_;
	gchar* _tmp27_;
	gchar* _tmp28_;
	GtkLabel* _tmp29_;
	ProtonPlusWidgetsGamesGameActions* _tmp30_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (item != NULL);
	proton_plus_widgets_games_game_row_unbind (self);
	_tmp0_ = _g_object_ref0 (item);
	_g_object_unref0 (self->priv->item);
	self->priv->item = _tmp0_;
	_tmp1_ = self->priv->select_check_button;
	_tmp2_ = g_object_bind_property_with_closures ((GObject*) item, "selected", (GObject*) _tmp1_, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (self->priv->selected_binding);
	self->priv->selected_binding = _tmp3_;
	_tmp4_ = self->priv->select_check_button;
	_tmp5_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp6_ = _tmp5_;
	_tmp7_ = proton_plus_models_game_get_name (_tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = g_strdup_printf (_ ("Select %s"), _tmp8_);
	_tmp10_ = _tmp9_;
	gtk_accessible_update_property ((GtkAccessible*) _tmp4_, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp10_, -1, -1);
	_g_free0 (_tmp10_);
	_tmp11_ = g_signal_connect_object ((GObject*) item, "notify::tool-title", (GCallback) _proton_plus_widgets_games_game_row_refresh_tool_title_g_object_notify, self, 0);
	self->priv->tool_title_handler = _tmp11_;
	_tmp12_ = self->priv->title_label;
	_tmp13_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp14_ = _tmp13_;
	_tmp15_ = proton_plus_models_game_get_name (_tmp14_);
	_tmp16_ = _tmp15_;
	gtk_label_set_label (_tmp12_, _tmp16_);
	_tmp17_ = self->priv->title_label;
	_tmp18_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp19_ = _tmp18_;
	_tmp20_ = proton_plus_models_game_get_name (_tmp19_);
	_tmp21_ = _tmp20_;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp17_, _tmp21_);
	_tmp22_ = self->priv->prefix_label;
	_tmp23_ = proton_plus_widgets_games_game_list_item_get_game (item);
	_tmp24_ = _tmp23_;
	_tmp25_ = proton_plus_models_game_get_prefix (_tmp24_);
	_tmp26_ = _tmp25_;
	_tmp27_ = g_strdup_printf ("%u", _tmp26_);
	_tmp28_ = _tmp27_;
	gtk_label_set_label (_tmp22_, _tmp28_);
	_g_free0 (_tmp28_);
	_tmp29_ = self->priv->prefix_label;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp29_, NULL);
	proton_plus_widgets_games_game_row_refresh_tool_title (self);
	_tmp30_ = self->priv->actions;
	proton_plus_widgets_games_game_actions_bind (_tmp30_, item);
	proton_plus_widgets_games_game_row_update_accessibility (self, FALSE);
}

void
proton_plus_widgets_games_game_row_unbind (ProtonPlusWidgetsGamesGameRow* self)
{
	GBinding* _tmp0_ = NULL;
	GBinding* _tmp1_;
	gboolean _tmp3_ = FALSE;
	ProtonPlusWidgetsGamesGameActions* _tmp6_;
	GtkLabel* _tmp7_;
	GtkLabel* _tmp8_;
	GtkLabel* _tmp9_;
	GtkCheckButton* _tmp10_;
	GtkCheckButton* _tmp11_;
	g_return_if_fail (self != NULL);
	_tmp1_ = self->priv->selected_binding;
	_tmp0_ = _tmp1_;
	if (_tmp0_ != NULL) {
		GBinding* _tmp2_;
		_tmp2_ = _g_object_ref0 (_tmp0_);
		g_binding_unbind (_tmp2_);
	}
	_g_object_unref0 (self->priv->selected_binding);
	self->priv->selected_binding = NULL;
	if (self->priv->tool_title_handler != ((gulong) 0)) {
		ProtonPlusWidgetsGamesGameListItem* _tmp4_;
		_tmp4_ = self->priv->item;
		_tmp3_ = _tmp4_ != NULL;
	} else {
		_tmp3_ = FALSE;
	}
	if (_tmp3_) {
		ProtonPlusWidgetsGamesGameListItem* _tmp5_;
		_tmp5_ = self->priv->item;
		g_signal_handler_disconnect ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), self->priv->tool_title_handler);
		self->priv->tool_title_handler = (gulong) 0;
	}
	_tmp6_ = self->priv->actions;
	proton_plus_widgets_games_game_actions_unbind (_tmp6_);
	_g_object_unref0 (self->priv->item);
	self->priv->item = NULL;
	_tmp7_ = self->priv->title_label;
	gtk_label_set_label (_tmp7_, "");
	_tmp8_ = self->priv->tool_label;
	gtk_label_set_label (_tmp8_, "");
	_tmp9_ = self->priv->prefix_label;
	gtk_label_set_label (_tmp9_, "");
	_tmp10_ = self->priv->select_check_button;
	gtk_check_button_set_active (_tmp10_, FALSE);
	_tmp11_ = self->priv->select_check_button;
	gtk_accessible_update_property ((GtkAccessible*) _tmp11_, GTK_ACCESSIBLE_PROPERTY_LABEL, _ ("Select game"), -1, -1);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL);
	gtk_accessible_reset_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION);
}

ProtonPlusWidgetsGamesGameListItem*
proton_plus_widgets_games_game_row_get_item (ProtonPlusWidgetsGamesGameRow* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	ProtonPlusWidgetsGamesGameListItem* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->item;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	result = _tmp1_;
	return result;
}

static void
proton_plus_widgets_games_game_row_refresh_tool_title (ProtonPlusWidgetsGamesGameRow* self)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkLabel* _tmp1_;
	ProtonPlusWidgetsGamesGameListItem* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GtkLabel* _tmp5_;
	ProtonPlusWidgetsGamesGameListItem* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		return;
	}
	_tmp1_ = self->priv->tool_label;
	_tmp2_ = self->priv->item;
	_tmp3_ = proton_plus_widgets_games_game_list_item_get_tool_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp4_ = _tmp3_;
	gtk_label_set_label (_tmp1_, _tmp4_);
	_tmp5_ = self->priv->tool_label;
	_tmp6_ = self->priv->item;
	_tmp7_ = proton_plus_widgets_games_game_list_item_get_tool_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp8_ = _tmp7_;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp5_, _tmp8_);
}

gboolean
proton_plus_widgets_games_game_row_focus_first_action (ProtonPlusWidgetsGamesGameRow* self)
{
	ProtonPlusWidgetsGamesGameActions* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->actions;
	result = proton_plus_widgets_games_game_actions_focus_first_action (_tmp0_);
	return result;
}

gboolean
proton_plus_widgets_games_game_row_focus_lane (ProtonPlusWidgetsGamesGameRow* self,
                                               ProtonPlusWidgetsGamesGameFocusLane lane)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	if (lane == PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SELECTION) {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = lane == PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_ROW;
	}
	if (_tmp1_) {
		_tmp0_ = gtk_widget_grab_focus ((GtkWidget*) self);
	} else {
		ProtonPlusWidgetsGamesGameActions* _tmp2_;
		_tmp2_ = self->priv->actions;
		_tmp0_ = proton_plus_widgets_games_game_actions_focus_lane (_tmp2_, lane);
	}
	result = _tmp0_;
	return result;
}

void
proton_plus_widgets_games_game_row_set_selection_mode (ProtonPlusWidgetsGamesGameRow* self,
                                                       gboolean selection_mode)
{
	ProtonPlusWidgetsGamesGameActions* _tmp0_;
	GtkImage* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->actions;
	proton_plus_widgets_games_game_actions_set_selection_mode (_tmp0_, selection_mode);
	_tmp1_ = self->priv->navigation_image;
	gtk_widget_set_visible ((GtkWidget*) _tmp1_, !selection_mode);
	proton_plus_widgets_games_game_row_update_accessibility (self, selection_mode);
}

static void
proton_plus_widgets_games_game_row_update_accessibility (ProtonPlusWidgetsGamesGameRow* self,
                                                         gboolean selection_mode)
{
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	gchar* _tmp1_ = NULL;
	ProtonPlusWidgetsGamesGameListItem* _tmp14_;
	ProtonPlusModelsGame* _tmp15_;
	ProtonPlusModelsGame* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		return;
	}
	if (selection_mode) {
		ProtonPlusWidgetsGamesGameListItem* _tmp2_;
		ProtonPlusModelsGame* _tmp3_;
		ProtonPlusModelsGame* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		_tmp2_ = self->priv->item;
		_tmp3_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
		_tmp4_ = _tmp3_;
		_tmp5_ = proton_plus_models_game_get_name (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = g_strdup_printf (_ ("Toggle selection for %s"), _tmp6_);
		_g_free0 (_tmp1_);
		_tmp1_ = _tmp7_;
	} else {
		ProtonPlusWidgetsGamesGameListItem* _tmp8_;
		ProtonPlusModelsGame* _tmp9_;
		ProtonPlusModelsGame* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
		_tmp8_ = self->priv->item;
		_tmp9_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
		_tmp10_ = _tmp9_;
		_tmp11_ = proton_plus_models_game_get_name (_tmp10_);
		_tmp12_ = _tmp11_;
		_tmp13_ = g_strdup_printf (_ ("Modify %s"), _tmp12_);
		_g_free0 (_tmp1_);
		_tmp1_ = _tmp13_;
	}
	_tmp14_ = self->priv->item;
	_tmp15_ = proton_plus_widgets_games_game_list_item_get_game (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem));
	_tmp16_ = _tmp15_;
	_tmp17_ = proton_plus_models_game_get_name (_tmp16_);
	_tmp18_ = _tmp17_;
	gtk_accessible_update_property ((GtkAccessible*) self, GTK_ACCESSIBLE_PROPERTY_LABEL, _tmp18_, GTK_ACCESSIBLE_PROPERTY_DESCRIPTION, _tmp1_, -1, -1);
	_g_free0 (_tmp1_);
}

static gboolean
proton_plus_widgets_games_game_row_on_vertical_focus (ProtonPlusWidgetsGamesGameRow* self,
                                                      ProtonPlusWidgetsGamesGameListItem* item,
                                                      gint delta,
                                                      ProtonPlusWidgetsGamesGameFocusLane lane)
{
	ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp0_;
	gpointer _tmp0__target;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (item != NULL, FALSE);
	_tmp0_ = self->priv->vertical_focus;
	_tmp0__target = self->priv->vertical_focus_target;
	result = _tmp0_ (item, delta, lane, _tmp0__target);
	return result;
}

static gboolean
proton_plus_widgets_games_game_row_focus_selection (ProtonPlusWidgetsGamesGameRow* self,
                                                    ProtonPlusWidgetsGamesGameListItem* item)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (item != NULL, FALSE);
	result = gtk_widget_grab_focus ((GtkWidget*) self);
	return result;
}

static gboolean
proton_plus_widgets_games_game_row_real_controller_focus_direction (ProtonPlusUtilsControllerDirectionalFocus* base,
                                                                    GObject* focused_object,
                                                                    ProtonPlusUtilsControllerNavigationDirection direction)
{
	ProtonPlusWidgetsGamesGameRow * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkWidget* focused = NULL;
	GtkWidget* _tmp1_;
	GtkWidget* _tmp2_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameRow*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (focused_object, gtk_widget_get_type ()) ? ((GtkWidget*) focused_object) : NULL);
	focused = _tmp1_;
	_tmp2_ = focused;
	if (_tmp2_ == NULL) {
		result = FALSE;
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_UP) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp3_;
		gpointer _tmp3__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp4_;
		_tmp3_ = self->priv->vertical_focus;
		_tmp3__target = self->priv->vertical_focus_target;
		_tmp4_ = self->priv->item;
		result = _tmp3_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), -1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SELECTION, _tmp3__target);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_DOWN) {
		ProtonPlusWidgetsGamesGameVerticalFocusRequest _tmp5_;
		gpointer _tmp5__target;
		ProtonPlusWidgetsGamesGameListItem* _tmp6_;
		_tmp5_ = self->priv->vertical_focus;
		_tmp5__target = self->priv->vertical_focus_target;
		_tmp6_ = self->priv->item;
		result = _tmp5_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), 1, PROTON_PLUS_WIDGETS_GAMES_GAME_FOCUS_LANE_SELECTION, _tmp5__target);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_RIGHT) {
		ProtonPlusWidgetsGamesGameActions* _tmp7_;
		_tmp7_ = self->priv->actions;
		result = proton_plus_widgets_games_game_actions_focus_first_action (_tmp7_);
		_g_object_unref0 (focused);
		return result;
	}
	if (direction == PROTON_PLUS_UTILS_CONTROLLER_NAVIGATION_DIRECTION_LEFT) {
		result = gtk_widget_grab_focus ((GtkWidget*) self);
		_g_object_unref0 (focused);
		return result;
	}
	result = FALSE;
	_g_object_unref0 (focused);
	return result;
}

static gboolean
proton_plus_widgets_games_game_row_real_controller_activate (ProtonPlusUtilsControllerActivationHandler* base,
                                                             GObject* focused_object)
{
	ProtonPlusWidgetsGamesGameRow * self;
	ProtonPlusWidgetsGamesGameListItem* _tmp0_;
	GtkWidget* focused = NULL;
	GtkWidget* _tmp1_;
	gboolean _tmp2_ = FALSE;
	GtkWidget* _tmp3_;
	ProtonPlusWidgetsGamesGameActivationRequest _tmp7_;
	gpointer _tmp7__target;
	ProtonPlusWidgetsGamesGameListItem* _tmp8_;
	gboolean result;
	self = (ProtonPlusWidgetsGamesGameRow*) base;
	g_return_val_if_fail (focused_object != NULL, FALSE);
	_tmp0_ = self->priv->item;
	if (_tmp0_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (focused_object, gtk_widget_get_type ()) ? ((GtkWidget*) focused_object) : NULL);
	focused = _tmp1_;
	_tmp3_ = focused;
	if (_tmp3_ != NULL) {
		GtkWidget* _tmp4_;
		ProtonPlusWidgetsGamesGameActions* _tmp5_;
		_tmp4_ = focused;
		_tmp5_ = self->priv->actions;
		_tmp2_ = gtk_widget_is_ancestor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), (GtkWidget*) _tmp5_);
	} else {
		_tmp2_ = FALSE;
	}
	if (_tmp2_) {
		GtkWidget* _tmp6_;
		_tmp6_ = focused;
		result = gtk_widget_activate (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget));
		_g_object_unref0 (focused);
		return result;
	}
	_tmp7_ = self->priv->activation_request;
	_tmp7__target = self->priv->activation_request_target;
	_tmp8_ = self->priv->item;
	_tmp7_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_LIST_ITEM, ProtonPlusWidgetsGamesGameListItem), _tmp7__target);
	result = TRUE;
	_g_object_unref0 (focused);
	return result;
}

static void
proton_plus_widgets_games_game_row_class_init (ProtonPlusWidgetsGamesGameRowClass * klass,
                                               gpointer klass_data)
{
	proton_plus_widgets_games_game_row_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesGameRow_private_offset);
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_game_row_finalize;
}

static void
proton_plus_widgets_games_game_row_proton_plus_utils_controller_directional_focus_interface_init (ProtonPlusUtilsControllerDirectionalFocusIface * iface,
                                                                                                  gpointer iface_data)
{
	proton_plus_widgets_games_game_row_proton_plus_utils_controller_directional_focus_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_focus_direction = (gboolean (*) (ProtonPlusUtilsControllerDirectionalFocus*, GObject*, ProtonPlusUtilsControllerNavigationDirection)) proton_plus_widgets_games_game_row_real_controller_focus_direction;
}

static void
proton_plus_widgets_games_game_row_proton_plus_utils_controller_activation_handler_interface_init (ProtonPlusUtilsControllerActivationHandlerIface * iface,
                                                                                                   gpointer iface_data)
{
	proton_plus_widgets_games_game_row_proton_plus_utils_controller_activation_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->controller_activate = (gboolean (*) (ProtonPlusUtilsControllerActivationHandler*, GObject*)) proton_plus_widgets_games_game_row_real_controller_activate;
}

static void
proton_plus_widgets_games_game_row_instance_init (ProtonPlusWidgetsGamesGameRow * self,
                                                  gpointer klass)
{
	self->priv = proton_plus_widgets_games_game_row_get_instance_private (self);
	self->priv->tool_title_handler = (gulong) 0;
}

static void
proton_plus_widgets_games_game_row_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesGameRow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_TYPE_GAME_ROW, ProtonPlusWidgetsGamesGameRow);
	_g_object_unref0 (self->priv->select_check_button);
	_g_object_unref0 (self->priv->title_label);
	_g_object_unref0 (self->priv->tool_label);
	_g_object_unref0 (self->priv->prefix_label);
	_g_object_unref0 (self->priv->actions);
	_g_object_unref0 (self->priv->navigation_image);
	_g_object_unref0 (self->priv->selected_binding);
	_g_object_unref0 (self->priv->item);
	G_OBJECT_CLASS (proton_plus_widgets_games_game_row_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_game_row_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesGameRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_game_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesGameRow), 0, (GInstanceInitFunc) proton_plus_widgets_games_game_row_instance_init, NULL };
	static const GInterfaceInfo proton_plus_utils_controller_directional_focus_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_row_proton_plus_utils_controller_directional_focus_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo proton_plus_utils_controller_activation_handler_info = { (GInterfaceInitFunc) proton_plus_widgets_games_game_row_proton_plus_utils_controller_activation_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType proton_plus_widgets_games_game_row_type_id;
	proton_plus_widgets_games_game_row_type_id = g_type_register_static (gtk_box_get_type (), "ProtonPlusWidgetsGamesGameRow", &g_define_type_info, 0);
	g_type_add_interface_static (proton_plus_widgets_games_game_row_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_DIRECTIONAL_FOCUS, &proton_plus_utils_controller_directional_focus_info);
	g_type_add_interface_static (proton_plus_widgets_games_game_row_type_id, PROTON_PLUS_UTILS_TYPE_CONTROLLER_ACTIVATION_HANDLER, &proton_plus_utils_controller_activation_handler_info);
	ProtonPlusWidgetsGamesGameRow_private_offset = g_type_add_instance_private (proton_plus_widgets_games_game_row_type_id, sizeof (ProtonPlusWidgetsGamesGameRowPrivate));
	return proton_plus_widgets_games_game_row_type_id;
}

GType
proton_plus_widgets_games_game_row_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_game_row_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_game_row_type_id__once)) {
		GType proton_plus_widgets_games_game_row_type_id;
		proton_plus_widgets_games_game_row_type_id = proton_plus_widgets_games_game_row_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_game_row_type_id__once, proton_plus_widgets_games_game_row_type_id);
	}
	return proton_plus_widgets_games_game_row_type_id__once;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

