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

/*
 * SPDX-License-Identifier: GPL-2.0-or-later
 * SPDX-FileCopyrightText: 2017-2025 elementary, Inc. (https://elementary.io)
 */

#include <glib-object.h>
#include "keyboard.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.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

#define KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER (keyboard_shortcuts_conflicts_manager_get_type ())
#define KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER, KeyboardShortcutsConflictsManager))
#define KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER, KeyboardShortcutsConflictsManagerClass))
#define KEYBOARD_SHORTCUTS_IS_CONFLICTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER))
#define KEYBOARD_SHORTCUTS_IS_CONFLICTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER))
#define KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER, KeyboardShortcutsConflictsManagerClass))

typedef struct _KeyboardShortcutsConflictsManager KeyboardShortcutsConflictsManager;
typedef struct _KeyboardShortcutsConflictsManagerClass KeyboardShortcutsConflictsManagerClass;
typedef struct _KeyboardShortcutsConflictsManagerPrivate KeyboardShortcutsConflictsManagerPrivate;
enum  {
	KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_0_PROPERTY,
	KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_NUM_PROPERTIES
};
static GParamSpec* keyboard_shortcuts_conflicts_manager_properties[KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_NUM_PROPERTIES];

#define KEYBOARD_SHORTCUTS_CONFLICTS_MANAGER_TYPE_STANDARD_SHORTCUT (keyboard_shortcuts_conflicts_manager_standard_shortcut_get_type ())
typedef struct _KeyboardShortcutsConflictsManagerStandardShortcut KeyboardShortcutsConflictsManagerStandardShortcut;
#define _g_free0(var) (var = (g_free (var), NULL))

#define KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST (keyboard_shortcuts_shortcuts_list_get_type ())
#define KEYBOARD_SHORTCUTS_SHORTCUTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST, KeyboardShortcutsShortcutsList))
#define KEYBOARD_SHORTCUTS_SHORTCUTS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST, KeyboardShortcutsShortcutsListClass))
#define KEYBOARD_SHORTCUTS_IS_SHORTCUTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST))
#define KEYBOARD_SHORTCUTS_IS_SHORTCUTS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST))
#define KEYBOARD_SHORTCUTS_SHORTCUTS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), KEYBOARD_SHORTCUTS_TYPE_SHORTCUTS_LIST, KeyboardShortcutsShortcutsListClass))

typedef struct _KeyboardShortcutsShortcutsList KeyboardShortcutsShortcutsList;
typedef struct _KeyboardShortcutsShortcutsListClass KeyboardShortcutsShortcutsListClass;

#define KEYBOARD_SHORTCUTS_TYPE_SETTINGS (keyboard_shortcuts_settings_get_type ())
#define KEYBOARD_SHORTCUTS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), KEYBOARD_SHORTCUTS_TYPE_SETTINGS, KeyboardShortcutsSettings))
#define KEYBOARD_SHORTCUTS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KEYBOARD_SHORTCUTS_TYPE_SETTINGS, KeyboardShortcutsSettingsClass))
#define KEYBOARD_SHORTCUTS_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KEYBOARD_SHORTCUTS_TYPE_SETTINGS))
#define KEYBOARD_SHORTCUTS_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KEYBOARD_SHORTCUTS_TYPE_SETTINGS))
#define KEYBOARD_SHORTCUTS_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), KEYBOARD_SHORTCUTS_TYPE_SETTINGS, KeyboardShortcutsSettingsClass))

typedef struct _KeyboardShortcutsSettings KeyboardShortcutsSettings;
typedef struct _KeyboardShortcutsSettingsClass KeyboardShortcutsSettingsClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

struct _KeyboardShortcutsConflictsManager {
	GObject parent_instance;
	KeyboardShortcutsConflictsManagerPrivate * priv;
};

struct _KeyboardShortcutsConflictsManagerClass {
	GObjectClass parent_class;
};

struct _KeyboardShortcutsConflictsManagerStandardShortcut {
	KeyboardShortcutsShortcut* shortcut;
	gchar* group;
	gchar* name;
};

static gpointer keyboard_shortcuts_conflicts_manager_parent_class = NULL;
static KeyboardShortcutsConflictsManagerStandardShortcut* keyboard_shortcuts_conflicts_manager_standard_shortcuts;
static gint keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1;
static KeyboardShortcutsConflictsManagerStandardShortcut* keyboard_shortcuts_conflicts_manager_standard_shortcuts = NULL;
static gint keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1 = 0;
static gint _keyboard_shortcuts_conflicts_manager_standard_shortcuts_size_ = 0;

VALA_EXTERN GType keyboard_shortcuts_conflicts_manager_get_type (void) G_GNUC_CONST ;
static GType keyboard_shortcuts_conflicts_manager_standard_shortcut_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static KeyboardShortcutsConflictsManagerStandardShortcut* keyboard_shortcuts_conflicts_manager_standard_shortcut_dup (const KeyboardShortcutsConflictsManagerStandardShortcut* self);
static void keyboard_shortcuts_conflicts_manager_standard_shortcut_free (KeyboardShortcutsConflictsManagerStandardShortcut* self);
static void keyboard_shortcuts_conflicts_manager_standard_shortcut_copy (const KeyboardShortcutsConflictsManagerStandardShortcut* self,
                                                                  KeyboardShortcutsConflictsManagerStandardShortcut* dest);
static void keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (KeyboardShortcutsConflictsManagerStandardShortcut* self);
VALA_EXTERN gboolean keyboard_shortcuts_conflicts_manager_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                  gchar** name,
                                                                  gchar** group);
static gboolean keyboard_shortcuts_conflicts_manager_general_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                          gchar** name,
                                                                          gchar** group);
static gboolean keyboard_shortcuts_conflicts_manager_custom_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                         gchar** name,
                                                                         gchar** group);
static gboolean keyboard_shortcuts_conflicts_manager_standard_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                           gchar** name,
                                                                           gchar** group);
VALA_EXTERN GType keyboard_shortcuts_shortcuts_list_get_type (void) G_GNUC_CONST ;
VALA_EXTERN KeyboardShortcutsShortcutsList* keyboard_shortcuts_shortcuts_list_get_default (void);
VALA_EXTERN GListStore* keyboard_shortcuts_shortcuts_list_get_model (KeyboardShortcutsShortcutsList* self,
                                                         KeyboardShortcutsSectionID group);
VALA_EXTERN GType keyboard_shortcuts_settings_get_type (void) G_GNUC_CONST ;
VALA_EXTERN KeyboardShortcutsSettings* keyboard_shortcuts_settings_get_default (void);
VALA_EXTERN KeyboardShortcutsShortcut* keyboard_shortcuts_settings_get_val (KeyboardShortcutsSettings* self,
                                                                KeyboardShortcutsSchema schema,
                                                                const gchar* key);
static KeyboardShortcutsCustomShortcutsParsedShortcut* _variant_get1 (GVariant* value,
                                                               gint* result_length1);
static void _vala_KeyboardShortcutsCustomShortcutsParsedShortcut_array_free (KeyboardShortcutsCustomShortcutsParsedShortcut * array,
                                                                      gssize array_length);
static void _vala_KeyboardShortcutsConflictsManagerStandardShortcut_array_free (KeyboardShortcutsConflictsManagerStandardShortcut * array,
                                                                         gssize array_length);
VALA_EXTERN KeyboardShortcutsConflictsManager* keyboard_shortcuts_conflicts_manager_new (void);
VALA_EXTERN KeyboardShortcutsConflictsManager* keyboard_shortcuts_conflicts_manager_construct (GType object_type);
static void keyboard_shortcuts_conflicts_manager_finalize (GObject * obj);
static GType keyboard_shortcuts_conflicts_manager_get_type_once (void);

gboolean
keyboard_shortcuts_conflicts_manager_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                         gchar** name,
                                                         gchar** group)
{
	gchar* _vala_name = NULL;
	gchar* _vala_group = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gboolean _tmp6_;
	gboolean result;
	g_return_val_if_fail (shortcut != NULL, FALSE);
	_tmp0_ = g_strdup ("");
	_g_free0 (_vala_name);
	_vala_name = _tmp0_;
	_tmp1_ = keyboard_shortcuts_section_id_to_string (KEYBOARD_SHORTCUTS_SECTION_ID_SYSTEM);
	_g_free0 (_vala_group);
	_vala_group = _tmp1_;
	_tmp6_ = keyboard_shortcuts_conflicts_manager_general_shortcut_conflicts (shortcut, &_tmp4_, &_tmp5_);
	_g_free0 (_vala_name);
	_vala_name = _tmp4_;
	_g_free0 (_vala_group);
	_vala_group = _tmp5_;
	if (_tmp6_) {
		_tmp3_ = TRUE;
	} else {
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gboolean _tmp9_;
		_tmp9_ = keyboard_shortcuts_conflicts_manager_custom_shortcut_conflicts (shortcut, &_tmp7_, &_tmp8_);
		_g_free0 (_vala_name);
		_vala_name = _tmp7_;
		_g_free0 (_vala_group);
		_vala_group = _tmp8_;
		_tmp3_ = _tmp9_;
	}
	if (_tmp3_) {
		_tmp2_ = TRUE;
	} else {
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gboolean _tmp12_;
		_tmp12_ = keyboard_shortcuts_conflicts_manager_standard_shortcut_conflicts (shortcut, &_tmp10_, &_tmp11_);
		_g_free0 (_vala_name);
		_vala_name = _tmp10_;
		_g_free0 (_vala_group);
		_vala_group = _tmp11_;
		_tmp2_ = _tmp12_;
	}
	result = _tmp2_;
	if (name) {
		*name = _vala_name;
	} else {
		_g_free0 (_vala_name);
	}
	if (group) {
		*group = _vala_group;
	} else {
		_g_free0 (_vala_group);
	}
	return result;
}

static gboolean
keyboard_shortcuts_conflicts_manager_general_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                 gchar** name,
                                                                 gchar** group)
{
	gchar* _vala_name = NULL;
	gchar* _vala_group = NULL;
	KeyboardShortcutsShortcutsList* list = NULL;
	KeyboardShortcutsShortcutsList* _tmp0_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	gboolean result;
	g_return_val_if_fail (shortcut != NULL, FALSE);
	_tmp0_ = keyboard_shortcuts_shortcuts_list_get_default ();
	list = _tmp0_;
	{
		gint group_id = 0;
		group_id = 0;
		{
			gboolean _tmp1_ = FALSE;
			_tmp1_ = TRUE;
			while (TRUE) {
				GListStore* listmodel = NULL;
				KeyboardShortcutsShortcutsList* _tmp3_;
				GListStore* _tmp4_;
				if (!_tmp1_) {
					gint _tmp2_;
					_tmp2_ = group_id;
					group_id = _tmp2_ + 1;
				}
				_tmp1_ = FALSE;
				if (!(group_id < ((gint) KEYBOARD_SHORTCUTS_SECTION_ID_CUSTOM))) {
					break;
				}
				_tmp3_ = list;
				_tmp4_ = keyboard_shortcuts_shortcuts_list_get_model (_tmp3_, group_id);
				listmodel = _tmp4_;
				{
					gint i = 0;
					i = 0;
					{
						gboolean _tmp5_ = FALSE;
						_tmp5_ = TRUE;
						while (TRUE) {
							GListStore* _tmp7_;
							guint _tmp8_;
							guint _tmp9_;
							KeyboardShortcutsAction* shortcut_action = NULL;
							GListStore* _tmp10_;
							GObject* _tmp11_;
							KeyboardShortcutsShortcut* action_shortcut = NULL;
							KeyboardShortcutsSettings* _tmp12_;
							KeyboardShortcutsAction* _tmp13_;
							KeyboardShortcutsSchema _tmp14_;
							KeyboardShortcutsSchema _tmp15_;
							KeyboardShortcutsAction* _tmp16_;
							const gchar* _tmp17_;
							const gchar* _tmp18_;
							KeyboardShortcutsShortcut* _tmp19_;
							KeyboardShortcutsShortcut* _tmp20_;
							if (!_tmp5_) {
								gint _tmp6_;
								_tmp6_ = i;
								i = _tmp6_ + 1;
							}
							_tmp5_ = FALSE;
							_tmp7_ = listmodel;
							g_object_get (_tmp7_, "n-items", &_tmp8_, NULL);
							_tmp9_ = _tmp8_;
							if (!(((guint) i) < _tmp9_)) {
								break;
							}
							_tmp10_ = listmodel;
							_tmp11_ = g_list_model_get_item ((GListModel*) _tmp10_, (guint) i);
							shortcut_action = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, KEYBOARD_SHORTCUTS_TYPE_ACTION, KeyboardShortcutsAction);
							_tmp12_ = keyboard_shortcuts_settings_get_default ();
							_tmp13_ = shortcut_action;
							_tmp14_ = keyboard_shortcuts_action_get_schema (_tmp13_);
							_tmp15_ = _tmp14_;
							_tmp16_ = shortcut_action;
							_tmp17_ = keyboard_shortcuts_action_get_key (_tmp16_);
							_tmp18_ = _tmp17_;
							_tmp19_ = keyboard_shortcuts_settings_get_val (_tmp12_, _tmp15_, _tmp18_);
							action_shortcut = _tmp19_;
							_tmp20_ = action_shortcut;
							if (keyboard_shortcuts_shortcut_is_equal (shortcut, _tmp20_)) {
								KeyboardShortcutsAction* _tmp21_;
								const gchar* _tmp22_;
								const gchar* _tmp23_;
								gchar* _tmp24_;
								_tmp21_ = shortcut_action;
								_tmp22_ = keyboard_shortcuts_action_get_action (_tmp21_);
								_tmp23_ = _tmp22_;
								_tmp24_ = g_strdup (_tmp23_);
								_g_free0 (_vala_name);
								_vala_name = _tmp24_;
								result = TRUE;
								_g_object_unref0 (action_shortcut);
								_g_object_unref0 (shortcut_action);
								_g_object_unref0 (listmodel);
								if (name) {
									*name = _vala_name;
								} else {
									_g_free0 (_vala_name);
								}
								if (group) {
									*group = _vala_group;
								} else {
									_g_free0 (_vala_group);
								}
								return result;
							}
							_g_object_unref0 (action_shortcut);
							_g_object_unref0 (shortcut_action);
						}
					}
				}
				_g_object_unref0 (listmodel);
			}
		}
	}
	_tmp25_ = g_strdup ("");
	_g_free0 (_vala_name);
	_vala_name = _tmp25_;
	_tmp26_ = keyboard_shortcuts_section_id_to_string (KEYBOARD_SHORTCUTS_SECTION_ID_SYSTEM);
	_g_free0 (_vala_group);
	_vala_group = _tmp26_;
	result = FALSE;
	if (name) {
		*name = _vala_name;
	} else {
		_g_free0 (_vala_name);
	}
	if (group) {
		*group = _vala_group;
	} else {
		_g_free0 (_vala_group);
	}
	return result;
}

static KeyboardShortcutsCustomShortcutsParsedShortcut*
_variant_get1 (GVariant* value,
               gint* result_length1)
{
	KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp0_;
	gint _tmp0__length;
	gint _tmp0__size;
	gint _tmp0__length1;
	GVariantIter _tmp1_;
	GVariant* _tmp2_;
	_tmp0_ = g_new (KeyboardShortcutsCustomShortcutsParsedShortcut, 5);
	_tmp0__length = 0;
	_tmp0__size = 4;
	_tmp0__length1 = 0;
	g_variant_iter_init (&_tmp1_, value);
	for (; (_tmp2_ = g_variant_iter_next_value (&_tmp1_)) != NULL; _tmp0__length1++) {
		KeyboardShortcutsCustomShortcutsParsedShortcut _tmp3_;
		GVariantIter _tmp4_;
		GVariant* _tmp5_;
		GVariant* _tmp6_;
		GVariant* _tmp7_;
		GHashTable* _tmp8_;
		GVariantIter _tmp9_;
		GVariant* _tmp10_;
		GVariant* _tmp11_;
		GVariant* _tmp12_;
		gchar** _tmp13_;
		gint _tmp13__length;
		gint _tmp13__size;
		gint _tmp13__length1;
		GVariantIter _tmp14_;
		GVariant* _tmp15_;
		if (_tmp0__size == _tmp0__length) {
			_tmp0__size = 2 * _tmp0__size;
			_tmp0_ = g_renew (KeyboardShortcutsCustomShortcutsParsedShortcut, _tmp0_, _tmp0__size + 1);
		}
		g_variant_iter_init (&_tmp4_, _tmp2_);
		_tmp5_ = g_variant_iter_next_value (&_tmp4_);
		_tmp3_.type = g_variant_get_int32 (_tmp5_);
		g_variant_unref (_tmp5_);
		_tmp6_ = g_variant_iter_next_value (&_tmp4_);
		_tmp3_.target = g_variant_dup_string (_tmp6_, NULL);
		g_variant_unref (_tmp6_);
		_tmp7_ = g_variant_iter_next_value (&_tmp4_);
		_tmp8_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
		g_variant_iter_init (&_tmp9_, _tmp7_);
		while (g_variant_iter_loop (&_tmp9_, "{?*}", &_tmp10_, &_tmp11_)) {
			g_hash_table_insert (_tmp8_, g_variant_dup_string (_tmp10_, NULL), g_variant_get_variant (_tmp11_));
		}
		_tmp3_.parameters = _tmp8_;
		g_variant_unref (_tmp7_);
		_tmp12_ = g_variant_iter_next_value (&_tmp4_);
		_tmp13_ = g_new (gchar*, 5);
		_tmp13__length = 0;
		_tmp13__size = 4;
		_tmp13__length1 = 0;
		g_variant_iter_init (&_tmp14_, _tmp12_);
		for (; (_tmp15_ = g_variant_iter_next_value (&_tmp14_)) != NULL; _tmp13__length1++) {
			if (_tmp13__size == _tmp13__length) {
				_tmp13__size = 2 * _tmp13__size;
				_tmp13_ = g_renew (gchar*, _tmp13_, _tmp13__size + 1);
			}
			_tmp13_[_tmp13__length++] = g_variant_dup_string (_tmp15_, NULL);
			g_variant_unref (_tmp15_);
		}
		_tmp3_.keybindings_length1 = _tmp13__length1;
		_tmp13_[_tmp13__length] = NULL;
		_tmp3_.keybindings = _tmp13_;
		g_variant_unref (_tmp12_);
		_tmp0_[_tmp0__length++] = _tmp3_;
		g_variant_unref (_tmp2_);
	}
	*result_length1 = _tmp0__length1;
	return _tmp0_;
}

static void
_vala_KeyboardShortcutsCustomShortcutsParsedShortcut_array_free (KeyboardShortcutsCustomShortcutsParsedShortcut * array,
                                                                 gssize array_length)
{
	if (array != NULL) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			keyboard_shortcuts_custom_shortcuts_parsed_shortcut_destroy (&array[i]);
		}
	}
	g_free (array);
}

static gboolean
keyboard_shortcuts_conflicts_manager_custom_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                gchar** name,
                                                                gchar** group)
{
	gchar* _vala_name = NULL;
	gchar* _vala_group = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	GSettings* application_shortcuts = NULL;
	GSettings* _tmp2_;
	KeyboardShortcutsCustomShortcutsParsedShortcut* shortcuts = NULL;
	GSettings* _tmp3_;
	GVariant* _tmp4_;
	GVariant* _tmp5_;
	KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp7_;
	gint _tmp7__length1;
	gint shortcuts_length1;
	gint _shortcuts_size_;
	gboolean result;
	g_return_val_if_fail (shortcut != NULL, FALSE);
	_tmp0_ = g_strdup ("");
	_g_free0 (_vala_name);
	_vala_name = _tmp0_;
	_tmp1_ = keyboard_shortcuts_section_id_to_string (KEYBOARD_SHORTCUTS_SECTION_ID_CUSTOM);
	_g_free0 (_vala_group);
	_vala_group = _tmp1_;
	_tmp2_ = g_settings_new (KEYBOARD_SHORTCUTS_CUSTOM_SHORTCUTS_SETTINGS_SCHEMA);
	application_shortcuts = _tmp2_;
	_tmp3_ = application_shortcuts;
	_tmp4_ = g_settings_get_value (_tmp3_, KEYBOARD_SHORTCUTS_CUSTOM_SHORTCUTS_APPLICATION_SHORTCUTS);
	_tmp5_ = _tmp4_;
	_tmp6_ = _variant_get1 (_tmp5_, &_tmp6__length1);
	_tmp7_ = _tmp6_;
	_tmp7__length1 = _tmp6__length1;
	_g_variant_unref0 (_tmp5_);
	shortcuts = _tmp7_;
	shortcuts_length1 = _tmp7__length1;
	_shortcuts_size_ = shortcuts_length1;
	{
		gint i = 0;
		i = 0;
		{
			gboolean _tmp8_ = FALSE;
			_tmp8_ = TRUE;
			while (TRUE) {
				KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp10_;
				gint _tmp10__length1;
				if (!_tmp8_) {
					gint _tmp9_;
					_tmp9_ = i;
					i = _tmp9_ + 1;
				}
				_tmp8_ = FALSE;
				_tmp10_ = shortcuts;
				_tmp10__length1 = shortcuts_length1;
				if (!(i < _tmp10__length1)) {
					break;
				}
				{
					gint j = 0;
					j = 0;
					{
						gboolean _tmp11_ = FALSE;
						_tmp11_ = TRUE;
						while (TRUE) {
							KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp13_;
							gint _tmp13__length1;
							KeyboardShortcutsCustomShortcutsParsedShortcut _tmp14_;
							gchar** _tmp15_;
							gint _tmp15__length1;
							KeyboardShortcutsShortcut* action_shortcut = NULL;
							KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp16_;
							gint _tmp16__length1;
							KeyboardShortcutsCustomShortcutsParsedShortcut _tmp17_;
							gchar** _tmp18_;
							gint _tmp18__length1;
							const gchar* _tmp19_;
							KeyboardShortcutsShortcut* _tmp20_;
							KeyboardShortcutsShortcut* _tmp21_;
							if (!_tmp11_) {
								gint _tmp12_;
								_tmp12_ = j;
								j = _tmp12_ + 1;
							}
							_tmp11_ = FALSE;
							_tmp13_ = shortcuts;
							_tmp13__length1 = shortcuts_length1;
							_tmp14_ = _tmp13_[i];
							_tmp15_ = _tmp14_.keybindings;
							_tmp15__length1 = _tmp14_.keybindings_length1;
							if (!(j < _tmp15__length1)) {
								break;
							}
							_tmp16_ = shortcuts;
							_tmp16__length1 = shortcuts_length1;
							_tmp17_ = _tmp16_[i];
							_tmp18_ = _tmp17_.keybindings;
							_tmp18__length1 = _tmp17_.keybindings_length1;
							_tmp19_ = _tmp18_[j];
							_tmp20_ = keyboard_shortcuts_shortcut_new_parse (_tmp19_);
							action_shortcut = _tmp20_;
							_tmp21_ = action_shortcut;
							if (keyboard_shortcuts_shortcut_is_equal (shortcut, _tmp21_)) {
								KeyboardShortcutsCustomShortcutsParsedShortcut* _tmp22_;
								gint _tmp22__length1;
								KeyboardShortcutsCustomShortcutsParsedShortcut _tmp23_;
								const gchar* _tmp24_;
								gchar* _tmp25_;
								_tmp22_ = shortcuts;
								_tmp22__length1 = shortcuts_length1;
								_tmp23_ = _tmp22_[i];
								_tmp24_ = _tmp23_.target;
								_tmp25_ = g_strdup (_tmp24_);
								_g_free0 (_vala_name);
								_vala_name = _tmp25_;
								result = TRUE;
								_g_object_unref0 (action_shortcut);
								shortcuts = (_vala_KeyboardShortcutsCustomShortcutsParsedShortcut_array_free (shortcuts, shortcuts_length1), NULL);
								_g_object_unref0 (application_shortcuts);
								if (name) {
									*name = _vala_name;
								} else {
									_g_free0 (_vala_name);
								}
								if (group) {
									*group = _vala_group;
								} else {
									_g_free0 (_vala_group);
								}
								return result;
							}
							_g_object_unref0 (action_shortcut);
						}
					}
				}
			}
		}
	}
	result = FALSE;
	shortcuts = (_vala_KeyboardShortcutsCustomShortcutsParsedShortcut_array_free (shortcuts, shortcuts_length1), NULL);
	_g_object_unref0 (application_shortcuts);
	if (name) {
		*name = _vala_name;
	} else {
		_g_free0 (_vala_name);
	}
	if (group) {
		*group = _vala_group;
	} else {
		_g_free0 (_vala_group);
	}
	return result;
}

static void
_vala_KeyboardShortcutsConflictsManagerStandardShortcut_array_free (KeyboardShortcutsConflictsManagerStandardShortcut * array,
                                                                    gssize array_length)
{
	if (array != NULL) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (&array[i]);
		}
	}
	g_free (array);
}

static gboolean
keyboard_shortcuts_conflicts_manager_standard_shortcut_conflicts (KeyboardShortcutsShortcut* shortcut,
                                                                  gchar** name,
                                                                  gchar** group)
{
	gchar* _vala_name = NULL;
	gchar* _vala_group = NULL;
	KeyboardShortcutsConflictsManagerStandardShortcut* _tmp0_;
	gint _tmp0__length1;
	gboolean result;
	g_return_val_if_fail (shortcut != NULL, FALSE);
	_tmp0_ = keyboard_shortcuts_conflicts_manager_standard_shortcuts;
	_tmp0__length1 = keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1;
	if (_tmp0_ == NULL) {
		KeyboardShortcutsShortcut* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp4_ = {0};
		KeyboardShortcutsShortcut* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp8_ = {0};
		KeyboardShortcutsShortcut* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp12_ = {0};
		KeyboardShortcutsShortcut* _tmp13_;
		gchar* _tmp14_;
		gchar* _tmp15_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp16_ = {0};
		KeyboardShortcutsShortcut* _tmp17_;
		gchar* _tmp18_;
		gchar* _tmp19_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp20_ = {0};
		KeyboardShortcutsShortcut* _tmp21_;
		gchar* _tmp22_;
		gchar* _tmp23_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp24_ = {0};
		KeyboardShortcutsShortcut* _tmp25_;
		gchar* _tmp26_;
		gchar* _tmp27_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp28_ = {0};
		KeyboardShortcutsShortcut* _tmp29_;
		gchar* _tmp30_;
		gchar* _tmp31_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp32_ = {0};
		KeyboardShortcutsShortcut* _tmp33_;
		gchar* _tmp34_;
		gchar* _tmp35_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp36_ = {0};
		KeyboardShortcutsShortcut* _tmp37_;
		gchar* _tmp38_;
		gchar* _tmp39_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp40_ = {0};
		KeyboardShortcutsShortcut* _tmp41_;
		gchar* _tmp42_;
		gchar* _tmp43_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp44_ = {0};
		KeyboardShortcutsShortcut* _tmp45_;
		gchar* _tmp46_;
		gchar* _tmp47_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp48_ = {0};
		KeyboardShortcutsShortcut* _tmp49_;
		gchar* _tmp50_;
		gchar* _tmp51_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp52_ = {0};
		KeyboardShortcutsShortcut* _tmp53_;
		gchar* _tmp54_;
		gchar* _tmp55_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp56_ = {0};
		KeyboardShortcutsShortcut* _tmp57_;
		gchar* _tmp58_;
		gchar* _tmp59_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp60_ = {0};
		KeyboardShortcutsShortcut* _tmp61_;
		gchar* _tmp62_;
		gchar* _tmp63_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp64_ = {0};
		KeyboardShortcutsShortcut* _tmp65_;
		gchar* _tmp66_;
		gchar* _tmp67_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp68_ = {0};
		KeyboardShortcutsShortcut* _tmp69_;
		gchar* _tmp70_;
		gchar* _tmp71_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp72_ = {0};
		KeyboardShortcutsShortcut* _tmp73_;
		gchar* _tmp74_;
		gchar* _tmp75_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp76_ = {0};
		KeyboardShortcutsShortcut* _tmp77_;
		gchar* _tmp78_;
		gchar* _tmp79_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp80_ = {0};
		KeyboardShortcutsShortcut* _tmp81_;
		gchar* _tmp82_;
		gchar* _tmp83_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp84_ = {0};
		KeyboardShortcutsShortcut* _tmp85_;
		gchar* _tmp86_;
		gchar* _tmp87_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp88_ = {0};
		KeyboardShortcutsShortcut* _tmp89_;
		gchar* _tmp90_;
		gchar* _tmp91_;
		KeyboardShortcutsConflictsManagerStandardShortcut _tmp92_ = {0};
		KeyboardShortcutsConflictsManagerStandardShortcut* _tmp93_;
		_tmp1_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>C");
		_tmp2_ = g_strdup (_ ("Edit"));
		_tmp3_ = g_strdup (_ ("Copy"));
		memset (&_tmp4_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp4_.shortcut);
		_tmp4_.shortcut = _tmp1_;
		_g_free0 (_tmp4_.group);
		_tmp4_.group = _tmp2_;
		_g_free0 (_tmp4_.name);
		_tmp4_.name = _tmp3_;
		_tmp5_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>V");
		_tmp6_ = g_strdup (_ ("Edit"));
		_tmp7_ = g_strdup (_ ("Paste"));
		memset (&_tmp8_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp8_.shortcut);
		_tmp8_.shortcut = _tmp5_;
		_g_free0 (_tmp8_.group);
		_tmp8_.group = _tmp6_;
		_g_free0 (_tmp8_.name);
		_tmp8_.name = _tmp7_;
		_tmp9_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>X");
		_tmp10_ = g_strdup (_ ("Edit"));
		_tmp11_ = g_strdup (_ ("Cut"));
		memset (&_tmp12_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp12_.shortcut);
		_tmp12_.shortcut = _tmp9_;
		_g_free0 (_tmp12_.group);
		_tmp12_.group = _tmp10_;
		_g_free0 (_tmp12_.name);
		_tmp12_.name = _tmp11_;
		_tmp13_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>Z");
		_tmp14_ = g_strdup (_ ("Edit"));
		_tmp15_ = g_strdup (_ ("Undo"));
		memset (&_tmp16_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp16_.shortcut);
		_tmp16_.shortcut = _tmp13_;
		_g_free0 (_tmp16_.group);
		_tmp16_.group = _tmp14_;
		_g_free0 (_tmp16_.name);
		_tmp16_.name = _tmp15_;
		_tmp17_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>Y");
		_tmp18_ = g_strdup (_ ("Edit"));
		_tmp19_ = g_strdup (_ ("Redo"));
		memset (&_tmp20_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp20_.shortcut);
		_tmp20_.shortcut = _tmp17_;
		_g_free0 (_tmp20_.group);
		_tmp20_.group = _tmp18_;
		_g_free0 (_tmp20_.name);
		_tmp20_.name = _tmp19_;
		_tmp21_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>F");
		_tmp22_ = g_strdup (_ ("Edit"));
		_tmp23_ = g_strdup (_ ("Find"));
		memset (&_tmp24_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp24_.shortcut);
		_tmp24_.shortcut = _tmp21_;
		_g_free0 (_tmp24_.group);
		_tmp24_.group = _tmp22_;
		_g_free0 (_tmp24_.name);
		_tmp24_.name = _tmp23_;
		_tmp25_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>A");
		_tmp26_ = g_strdup (_ ("Selection"));
		_tmp27_ = g_strdup (_ ("Select All"));
		memset (&_tmp28_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp28_.shortcut);
		_tmp28_.shortcut = _tmp25_;
		_g_free0 (_tmp28_.group);
		_tmp28_.group = _tmp26_;
		_g_free0 (_tmp28_.name);
		_tmp28_.name = _tmp27_;
		_tmp29_ = keyboard_shortcuts_shortcut_new_parse ("<Shift>Right");
		_tmp30_ = g_strdup (_ ("Selection"));
		_tmp31_ = g_strdup (_ ("Move Right by Word"));
		memset (&_tmp32_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp32_.shortcut);
		_tmp32_.shortcut = _tmp29_;
		_g_free0 (_tmp32_.group);
		_tmp32_.group = _tmp30_;
		_g_free0 (_tmp32_.name);
		_tmp32_.name = _tmp31_;
		_tmp33_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>Left");
		_tmp34_ = g_strdup (_ ("Selection"));
		_tmp35_ = g_strdup (_ ("Move Left by Word"));
		memset (&_tmp36_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp36_.shortcut);
		_tmp36_.shortcut = _tmp33_;
		_g_free0 (_tmp36_.group);
		_tmp36_.group = _tmp34_;
		_g_free0 (_tmp36_.name);
		_tmp36_.name = _tmp35_;
		_tmp37_ = keyboard_shortcuts_shortcut_new_parse ("<Shift>Right");
		_tmp38_ = g_strdup (_ ("Selection"));
		_tmp39_ = g_strdup (_ ("Expand Selection"));
		memset (&_tmp40_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp40_.shortcut);
		_tmp40_.shortcut = _tmp37_;
		_g_free0 (_tmp40_.group);
		_tmp40_.group = _tmp38_;
		_g_free0 (_tmp40_.name);
		_tmp40_.name = _tmp39_;
		_tmp41_ = keyboard_shortcuts_shortcut_new_parse ("<Shift>Left");
		_tmp42_ = g_strdup (_ ("Selection"));
		_tmp43_ = g_strdup (_ ("Shrink Selection"));
		memset (&_tmp44_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp44_.shortcut);
		_tmp44_.shortcut = _tmp41_;
		_g_free0 (_tmp44_.group);
		_tmp44_.group = _tmp42_;
		_g_free0 (_tmp44_.name);
		_tmp44_.name = _tmp43_;
		_tmp45_ = keyboard_shortcuts_shortcut_new_parse ("<Shift><Ctrl>Right");
		_tmp46_ = g_strdup (_ ("Selection"));
		_tmp47_ = g_strdup (_ ("Expand Selection by Word"));
		memset (&_tmp48_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp48_.shortcut);
		_tmp48_.shortcut = _tmp45_;
		_g_free0 (_tmp48_.group);
		_tmp48_.group = _tmp46_;
		_g_free0 (_tmp48_.name);
		_tmp48_.name = _tmp47_;
		_tmp49_ = keyboard_shortcuts_shortcut_new_parse ("<Shift><Ctrl>Left");
		_tmp50_ = g_strdup (_ ("Selection"));
		_tmp51_ = g_strdup (_ ("Shrink Selection by Word"));
		memset (&_tmp52_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp52_.shortcut);
		_tmp52_.shortcut = _tmp49_;
		_g_free0 (_tmp52_.group);
		_tmp52_.group = _tmp50_;
		_g_free0 (_tmp52_.name);
		_tmp52_.name = _tmp51_;
		_tmp53_ = keyboard_shortcuts_shortcut_new_parse ("<Shift>Up");
		_tmp54_ = g_strdup (_ ("Selection"));
		_tmp55_ = g_strdup (_ ("Expand Selection Up"));
		memset (&_tmp56_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp56_.shortcut);
		_tmp56_.shortcut = _tmp53_;
		_g_free0 (_tmp56_.group);
		_tmp56_.group = _tmp54_;
		_g_free0 (_tmp56_.name);
		_tmp56_.name = _tmp55_;
		_tmp57_ = keyboard_shortcuts_shortcut_new_parse ("<Shift>Down");
		_tmp58_ = g_strdup (_ ("Selection"));
		_tmp59_ = g_strdup (_ ("Expand Selection Down"));
		memset (&_tmp60_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp60_.shortcut);
		_tmp60_.shortcut = _tmp57_;
		_g_free0 (_tmp60_.group);
		_tmp60_.group = _tmp58_;
		_g_free0 (_tmp60_.name);
		_tmp60_.name = _tmp59_;
		_tmp61_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>S");
		_tmp62_ = g_strdup (_ ("File"));
		_tmp63_ = g_strdup (_ ("Save"));
		memset (&_tmp64_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp64_.shortcut);
		_tmp64_.shortcut = _tmp61_;
		_g_free0 (_tmp64_.group);
		_tmp64_.group = _tmp62_;
		_g_free0 (_tmp64_.name);
		_tmp64_.name = _tmp63_;
		_tmp65_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl><Shift>S");
		_tmp66_ = g_strdup (_ ("File"));
		_tmp67_ = g_strdup (_ ("Save As"));
		memset (&_tmp68_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp68_.shortcut);
		_tmp68_.shortcut = _tmp65_;
		_g_free0 (_tmp68_.group);
		_tmp68_.group = _tmp66_;
		_g_free0 (_tmp68_.name);
		_tmp68_.name = _tmp67_;
		_tmp69_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>N");
		_tmp70_ = g_strdup (_ ("File"));
		_tmp71_ = g_strdup (_ ("New"));
		memset (&_tmp72_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp72_.shortcut);
		_tmp72_.shortcut = _tmp69_;
		_g_free0 (_tmp72_.group);
		_tmp72_.group = _tmp70_;
		_g_free0 (_tmp72_.name);
		_tmp72_.name = _tmp71_;
		_tmp73_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>W");
		_tmp74_ = g_strdup (_ ("File"));
		_tmp75_ = g_strdup (_ ("Close"));
		memset (&_tmp76_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp76_.shortcut);
		_tmp76_.shortcut = _tmp73_;
		_g_free0 (_tmp76_.group);
		_tmp76_.group = _tmp74_;
		_g_free0 (_tmp76_.name);
		_tmp76_.name = _tmp75_;
		_tmp77_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>T");
		_tmp78_ = g_strdup (_ ("File"));
		_tmp79_ = g_strdup (_ ("New Tab"));
		memset (&_tmp80_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp80_.shortcut);
		_tmp80_.shortcut = _tmp77_;
		_g_free0 (_tmp80_.group);
		_tmp80_.group = _tmp78_;
		_g_free0 (_tmp80_.name);
		_tmp80_.name = _tmp79_;
		_tmp81_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl><Shift>T");
		_tmp82_ = g_strdup (_ ("File"));
		_tmp83_ = g_strdup (_ ("Restore Closed Tab"));
		memset (&_tmp84_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp84_.shortcut);
		_tmp84_.shortcut = _tmp81_;
		_g_free0 (_tmp84_.group);
		_tmp84_.group = _tmp82_;
		_g_free0 (_tmp84_.name);
		_tmp84_.name = _tmp83_;
		_tmp85_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>R");
		_tmp86_ = g_strdup (_ ("File"));
		_tmp87_ = g_strdup (C_ ("keyboard", "Refresh"));
		memset (&_tmp88_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp88_.shortcut);
		_tmp88_.shortcut = _tmp85_;
		_g_free0 (_tmp88_.group);
		_tmp88_.group = _tmp86_;
		_g_free0 (_tmp88_.name);
		_tmp88_.name = _tmp87_;
		_tmp89_ = keyboard_shortcuts_shortcut_new_parse ("<Ctrl>Q");
		_tmp90_ = g_strdup (_ ("File"));
		_tmp91_ = g_strdup (_ ("Quit"));
		memset (&_tmp92_, 0, sizeof (KeyboardShortcutsConflictsManagerStandardShortcut));
		_g_object_unref0 (_tmp92_.shortcut);
		_tmp92_.shortcut = _tmp89_;
		_g_free0 (_tmp92_.group);
		_tmp92_.group = _tmp90_;
		_g_free0 (_tmp92_.name);
		_tmp92_.name = _tmp91_;
		_tmp93_ = g_new0 (KeyboardShortcutsConflictsManagerStandardShortcut, 23);
		_tmp93_[0] = _tmp4_;
		_tmp93_[1] = _tmp8_;
		_tmp93_[2] = _tmp12_;
		_tmp93_[3] = _tmp16_;
		_tmp93_[4] = _tmp20_;
		_tmp93_[5] = _tmp24_;
		_tmp93_[6] = _tmp28_;
		_tmp93_[7] = _tmp32_;
		_tmp93_[8] = _tmp36_;
		_tmp93_[9] = _tmp40_;
		_tmp93_[10] = _tmp44_;
		_tmp93_[11] = _tmp48_;
		_tmp93_[12] = _tmp52_;
		_tmp93_[13] = _tmp56_;
		_tmp93_[14] = _tmp60_;
		_tmp93_[15] = _tmp64_;
		_tmp93_[16] = _tmp68_;
		_tmp93_[17] = _tmp72_;
		_tmp93_[18] = _tmp76_;
		_tmp93_[19] = _tmp80_;
		_tmp93_[20] = _tmp84_;
		_tmp93_[21] = _tmp88_;
		_tmp93_[22] = _tmp92_;
		keyboard_shortcuts_conflicts_manager_standard_shortcuts = (_vala_KeyboardShortcutsConflictsManagerStandardShortcut_array_free (keyboard_shortcuts_conflicts_manager_standard_shortcuts, keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1), NULL);
		keyboard_shortcuts_conflicts_manager_standard_shortcuts = _tmp93_;
		keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1 = 23;
		_keyboard_shortcuts_conflicts_manager_standard_shortcuts_size_ = keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1;
	}
	{
		gint i = 0;
		i = 0;
		{
			gboolean _tmp94_ = FALSE;
			_tmp94_ = TRUE;
			while (TRUE) {
				KeyboardShortcutsConflictsManagerStandardShortcut* _tmp96_;
				gint _tmp96__length1;
				KeyboardShortcutsConflictsManagerStandardShortcut standard_shortcut = {0};
				KeyboardShortcutsConflictsManagerStandardShortcut* _tmp97_;
				gint _tmp97__length1;
				KeyboardShortcutsConflictsManagerStandardShortcut _tmp98_;
				KeyboardShortcutsConflictsManagerStandardShortcut _tmp99_;
				KeyboardShortcutsConflictsManagerStandardShortcut _tmp100_ = {0};
				KeyboardShortcutsConflictsManagerStandardShortcut _tmp101_;
				KeyboardShortcutsShortcut* _tmp102_;
				if (!_tmp94_) {
					gint _tmp95_;
					_tmp95_ = i;
					i = _tmp95_ + 1;
				}
				_tmp94_ = FALSE;
				_tmp96_ = keyboard_shortcuts_conflicts_manager_standard_shortcuts;
				_tmp96__length1 = keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1;
				if (!(i < _tmp96__length1)) {
					break;
				}
				_tmp97_ = keyboard_shortcuts_conflicts_manager_standard_shortcuts;
				_tmp97__length1 = keyboard_shortcuts_conflicts_manager_standard_shortcuts_length1;
				_tmp98_ = _tmp97_[i];
				_tmp99_ = _tmp98_;
				keyboard_shortcuts_conflicts_manager_standard_shortcut_copy (&_tmp99_, &_tmp100_);
				standard_shortcut = _tmp100_;
				_tmp101_ = standard_shortcut;
				_tmp102_ = _tmp101_.shortcut;
				if (keyboard_shortcuts_shortcut_is_equal (shortcut, _tmp102_)) {
					KeyboardShortcutsConflictsManagerStandardShortcut _tmp103_;
					const gchar* _tmp104_;
					gchar* _tmp105_;
					KeyboardShortcutsConflictsManagerStandardShortcut _tmp106_;
					const gchar* _tmp107_;
					gchar* _tmp108_;
					_tmp103_ = standard_shortcut;
					_tmp104_ = _tmp103_.group;
					_tmp105_ = g_strdup (_tmp104_);
					_g_free0 (_vala_group);
					_vala_group = _tmp105_;
					_tmp106_ = standard_shortcut;
					_tmp107_ = _tmp106_.name;
					_tmp108_ = g_strdup (_tmp107_);
					_g_free0 (_vala_name);
					_vala_name = _tmp108_;
					result = TRUE;
					keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (&standard_shortcut);
					if (name) {
						*name = _vala_name;
					} else {
						_g_free0 (_vala_name);
					}
					if (group) {
						*group = _vala_group;
					} else {
						_g_free0 (_vala_group);
					}
					return result;
				}
				keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (&standard_shortcut);
			}
		}
	}
	result = FALSE;
	if (name) {
		*name = _vala_name;
	} else {
		_g_free0 (_vala_name);
	}
	if (group) {
		*group = _vala_group;
	} else {
		_g_free0 (_vala_group);
	}
	return result;
}

KeyboardShortcutsConflictsManager*
keyboard_shortcuts_conflicts_manager_construct (GType object_type)
{
	KeyboardShortcutsConflictsManager * self = NULL;
	self = (KeyboardShortcutsConflictsManager*) g_object_new (object_type, NULL);
	return self;
}

KeyboardShortcutsConflictsManager*
keyboard_shortcuts_conflicts_manager_new (void)
{
	return keyboard_shortcuts_conflicts_manager_construct (KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER);
}

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

static void
keyboard_shortcuts_conflicts_manager_standard_shortcut_copy (const KeyboardShortcutsConflictsManagerStandardShortcut* self,
                                                             KeyboardShortcutsConflictsManagerStandardShortcut* dest)
{
	KeyboardShortcutsShortcut* _tmp0_;
	KeyboardShortcutsShortcut* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	_tmp0_ = (*self).shortcut;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 ((*dest).shortcut);
	(*dest).shortcut = _tmp1_;
	_tmp2_ = (*self).group;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 ((*dest).group);
	(*dest).group = _tmp3_;
	_tmp4_ = (*self).name;
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 ((*dest).name);
	(*dest).name = _tmp5_;
}

static void
keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (KeyboardShortcutsConflictsManagerStandardShortcut* self)
{
	_g_object_unref0 ((*self).shortcut);
	_g_free0 ((*self).group);
	_g_free0 ((*self).name);
}

static KeyboardShortcutsConflictsManagerStandardShortcut*
keyboard_shortcuts_conflicts_manager_standard_shortcut_dup (const KeyboardShortcutsConflictsManagerStandardShortcut* self)
{
	KeyboardShortcutsConflictsManagerStandardShortcut* dup;
	dup = g_new0 (KeyboardShortcutsConflictsManagerStandardShortcut, 1);
	keyboard_shortcuts_conflicts_manager_standard_shortcut_copy (self, dup);
	return dup;
}

static void
keyboard_shortcuts_conflicts_manager_standard_shortcut_free (KeyboardShortcutsConflictsManagerStandardShortcut* self)
{
	keyboard_shortcuts_conflicts_manager_standard_shortcut_destroy (self);
	g_free (self);
}

static GType
keyboard_shortcuts_conflicts_manager_standard_shortcut_get_type_once (void)
{
	GType keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id;
	keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id = g_boxed_type_register_static ("KeyboardShortcutsConflictsManagerStandardShortcut", (GBoxedCopyFunc) keyboard_shortcuts_conflicts_manager_standard_shortcut_dup, (GBoxedFreeFunc) keyboard_shortcuts_conflicts_manager_standard_shortcut_free);
	return keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id;
}

static GType
keyboard_shortcuts_conflicts_manager_standard_shortcut_get_type (void)
{
	static volatile gsize keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id__once = 0;
	if (g_once_init_enter (&keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id__once)) {
		GType keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id;
		keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id = keyboard_shortcuts_conflicts_manager_standard_shortcut_get_type_once ();
		g_once_init_leave (&keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id__once, keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id);
	}
	return keyboard_shortcuts_conflicts_manager_standard_shortcut_type_id__once;
}

static void
keyboard_shortcuts_conflicts_manager_class_init (KeyboardShortcutsConflictsManagerClass * klass,
                                                 gpointer klass_data)
{
	keyboard_shortcuts_conflicts_manager_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = keyboard_shortcuts_conflicts_manager_finalize;
}

static void
keyboard_shortcuts_conflicts_manager_instance_init (KeyboardShortcutsConflictsManager * self,
                                                    gpointer klass)
{
}

static void
keyboard_shortcuts_conflicts_manager_finalize (GObject * obj)
{
	KeyboardShortcutsConflictsManager * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, KEYBOARD_SHORTCUTS_TYPE_CONFLICTS_MANAGER, KeyboardShortcutsConflictsManager);
	G_OBJECT_CLASS (keyboard_shortcuts_conflicts_manager_parent_class)->finalize (obj);
}

static GType
keyboard_shortcuts_conflicts_manager_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (KeyboardShortcutsConflictsManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) keyboard_shortcuts_conflicts_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeyboardShortcutsConflictsManager), 0, (GInstanceInitFunc) keyboard_shortcuts_conflicts_manager_instance_init, NULL };
	GType keyboard_shortcuts_conflicts_manager_type_id;
	keyboard_shortcuts_conflicts_manager_type_id = g_type_register_static (G_TYPE_OBJECT, "KeyboardShortcutsConflictsManager", &g_define_type_info, 0);
	return keyboard_shortcuts_conflicts_manager_type_id;
}

GType
keyboard_shortcuts_conflicts_manager_get_type (void)
{
	static volatile gsize keyboard_shortcuts_conflicts_manager_type_id__once = 0;
	if (g_once_init_enter (&keyboard_shortcuts_conflicts_manager_type_id__once)) {
		GType keyboard_shortcuts_conflicts_manager_type_id;
		keyboard_shortcuts_conflicts_manager_type_id = keyboard_shortcuts_conflicts_manager_get_type_once ();
		g_once_init_leave (&keyboard_shortcuts_conflicts_manager_type_id__once, keyboard_shortcuts_conflicts_manager_type_id);
	}
	return keyboard_shortcuts_conflicts_manager_type_id__once;
}

