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

/*-
 * Copyright (c) 2018 elementary LLC. (https://elementary.io)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <granite-7.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <gdk/gdk.h>

#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM "org.gnome.desktop.wm.keybindings"
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA "io.elementary.desktop.wm.keybindings"
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MEDIA "org.gnome.settings-daemon.plugins.media-keys"
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MUTTER "org.gnome.mutter.keybindings"
#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW (shortcut_overlay_shortcuts_view_get_type ())
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW, ShortcutOverlayShortcutsView))
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW, ShortcutOverlayShortcutsViewClass))
#define SHORTCUT_OVERLAY_IS_SHORTCUTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW))
#define SHORTCUT_OVERLAY_IS_SHORTCUTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW))
#define SHORTCUT_OVERLAY_SHORTCUTS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW, ShortcutOverlayShortcutsViewClass))

typedef struct _ShortcutOverlayShortcutsView ShortcutOverlayShortcutsView;
typedef struct _ShortcutOverlayShortcutsViewClass ShortcutOverlayShortcutsViewClass;
typedef struct _ShortcutOverlayShortcutsViewPrivate ShortcutOverlayShortcutsViewPrivate;
enum  {
	SHORTCUT_OVERLAY_SHORTCUTS_VIEW_0_PROPERTY,
	SHORTCUT_OVERLAY_SHORTCUTS_VIEW_NUM_PROPERTIES
};
static GParamSpec* shortcut_overlay_shortcuts_view_properties[SHORTCUT_OVERLAY_SHORTCUTS_VIEW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_SHORTCUT_LABEL (shortcut_label_get_type ())
#define SHORTCUT_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHORTCUT_LABEL, ShortcutLabel))
#define SHORTCUT_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHORTCUT_LABEL, ShortcutLabelClass))
#define IS_SHORTCUT_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHORTCUT_LABEL))
#define IS_SHORTCUT_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHORTCUT_LABEL))
#define SHORTCUT_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHORTCUT_LABEL, ShortcutLabelClass))

typedef struct _ShortcutLabel ShortcutLabel;
typedef struct _ShortcutLabelClass ShortcutLabelClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _ShortcutOverlayShortcutsView {
	GtkBox parent_instance;
	ShortcutOverlayShortcutsViewPrivate * priv;
};

struct _ShortcutOverlayShortcutsViewClass {
	GtkBoxClass parent_class;
};

static gpointer shortcut_overlay_shortcuts_view_parent_class = NULL;

VALA_EXTERN GType shortcut_overlay_shortcuts_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ShortcutOverlayShortcutsView, g_object_unref)
VALA_EXTERN ShortcutOverlayShortcutsView* shortcut_overlay_shortcuts_view_new (void);
VALA_EXTERN ShortcutOverlayShortcutsView* shortcut_overlay_shortcuts_view_construct (GType object_type);
static GObject * shortcut_overlay_shortcuts_view_constructor (GType type,
                                                       guint n_construct_properties,
                                                       GObjectConstructParam * construct_properties);
VALA_EXTERN ShortcutLabel* shortcut_label_new_from_gsettings (const gchar* label,
                                                  const gchar* schema_id,
                                                  const gchar* key);
VALA_EXTERN ShortcutLabel* shortcut_label_construct_from_gsettings (GType object_type,
                                                        const gchar* label,
                                                        const gchar* schema_id,
                                                        const gchar* key);
VALA_EXTERN GType shortcut_label_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ShortcutLabel, g_object_unref)
VALA_EXTERN ShortcutLabel* shortcut_label_new (const gchar* label,
                                   gchar** accels,
                                   gint accels_length1);
VALA_EXTERN ShortcutLabel* shortcut_label_construct (GType object_type,
                                         const gchar* label,
                                         gchar** accels,
                                         gint accels_length1);
static GType shortcut_overlay_shortcuts_view_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 gssize _vala_array_length (gpointer array);

ShortcutOverlayShortcutsView*
shortcut_overlay_shortcuts_view_construct (GType object_type)
{
	ShortcutOverlayShortcutsView * self = NULL;
	self = (ShortcutOverlayShortcutsView*) g_object_new (object_type, NULL);
	return self;
}

ShortcutOverlayShortcutsView*
shortcut_overlay_shortcuts_view_new (void)
{
	return shortcut_overlay_shortcuts_view_construct (SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW);
}

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

static GObject *
shortcut_overlay_shortcuts_view_constructor (GType type,
                                             guint n_construct_properties,
                                             GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ShortcutOverlayShortcutsView * self;
	GtkListBox* windows_listbox = NULL;
	GtkListBox* _tmp0_ = NULL;
	GtkListBox* _tmp1_;
	GraniteHeaderLabel* windows_header = NULL;
	GtkListBox* _tmp2_;
	GtkWidget* _tmp3_;
	GraniteHeaderLabel* _tmp4_ = NULL;
	GtkBox* windows_box = NULL;
	GtkBox* _tmp5_;
	GtkBox* _tmp6_;
	GraniteHeaderLabel* _tmp7_;
	GtkBox* _tmp8_;
	GtkListBox* _tmp9_;
	GtkListBox* _tmp10_;
	ShortcutLabel* _tmp11_;
	ShortcutLabel* _tmp12_;
	GtkListBox* _tmp13_;
	ShortcutLabel* _tmp14_;
	ShortcutLabel* _tmp15_;
	GtkListBox* _tmp16_;
	ShortcutLabel* _tmp17_;
	ShortcutLabel* _tmp18_;
	GtkListBox* _tmp19_;
	ShortcutLabel* _tmp20_;
	ShortcutLabel* _tmp21_;
	GtkListBox* _tmp22_;
	ShortcutLabel* _tmp23_;
	ShortcutLabel* _tmp24_;
	GtkListBox* _tmp25_;
	ShortcutLabel* _tmp26_;
	ShortcutLabel* _tmp27_;
	GtkListBox* _tmp28_;
	ShortcutLabel* _tmp29_;
	ShortcutLabel* _tmp30_;
	GtkListBox* _tmp31_;
	ShortcutLabel* _tmp32_;
	ShortcutLabel* _tmp33_;
	GtkListBox* workspaces_listbox = NULL;
	GtkListBox* _tmp34_ = NULL;
	GtkListBox* _tmp35_;
	GraniteHeaderLabel* workspaces_header = NULL;
	GtkListBox* _tmp36_;
	GtkWidget* _tmp37_;
	GraniteHeaderLabel* _tmp38_ = NULL;
	GtkBox* workspaces_box = NULL;
	GtkBox* _tmp39_;
	GtkBox* _tmp40_;
	GraniteHeaderLabel* _tmp41_;
	GtkBox* _tmp42_;
	GtkListBox* _tmp43_;
	GtkListBox* _tmp44_;
	ShortcutLabel* _tmp45_;
	ShortcutLabel* _tmp46_;
	GtkListBox* _tmp47_;
	ShortcutLabel* _tmp48_;
	ShortcutLabel* _tmp49_;
	GtkListBox* _tmp50_;
	ShortcutLabel* _tmp51_;
	ShortcutLabel* _tmp52_;
	GtkListBox* _tmp53_;
	ShortcutLabel* _tmp54_;
	ShortcutLabel* _tmp55_;
	GtkListBox* _tmp56_;
	ShortcutLabel* _tmp57_;
	ShortcutLabel* _tmp58_;
	GtkListBox* _tmp59_;
	ShortcutLabel* _tmp60_;
	ShortcutLabel* _tmp61_;
	GSettings* input_settings = NULL;
	GSettings* _tmp62_;
	gchar** xkb_options = NULL;
	GSettings* _tmp63_;
	gchar** _tmp64_;
	gchar** _tmp65_;
	gint xkb_options_length1;
	gint _xkb_options_size_;
	gchar** xkb_input_accels = NULL;
	gchar* _tmp66_;
	gchar** _tmp67_;
	gint xkb_input_accels_length1;
	gint _xkb_input_accels_size_;
	gchar** _tmp68_;
	gint _tmp68__length1;
	GtkListBox* system_listbox = NULL;
	GtkListBox* _tmp104_ = NULL;
	GtkListBox* _tmp105_;
	GraniteHeaderLabel* system_header = NULL;
	GtkListBox* _tmp106_;
	GtkWidget* _tmp107_;
	GraniteHeaderLabel* _tmp108_ = NULL;
	GtkBox* system_box = NULL;
	GtkBox* _tmp109_;
	GtkBox* _tmp110_;
	GraniteHeaderLabel* _tmp111_;
	GtkBox* _tmp112_;
	GtkListBox* _tmp113_;
	GtkListBox* _tmp114_;
	ShortcutLabel* _tmp115_;
	ShortcutLabel* _tmp116_;
	GtkListBox* _tmp117_;
	ShortcutLabel* _tmp118_;
	ShortcutLabel* _tmp119_;
	GtkListBox* _tmp120_;
	ShortcutLabel* _tmp121_;
	ShortcutLabel* _tmp122_;
	GtkListBox* _tmp123_;
	ShortcutLabel* _tmp124_;
	ShortcutLabel* _tmp125_;
	GtkListBox* _tmp126_;
	ShortcutLabel* _tmp127_;
	ShortcutLabel* _tmp128_;
	GtkListBox* _tmp129_;
	ShortcutLabel* _tmp130_;
	ShortcutLabel* _tmp131_;
	GtkListBox* _tmp132_;
	gchar** _tmp133_;
	gint _tmp133__length1;
	ShortcutLabel* _tmp134_;
	ShortcutLabel* _tmp135_;
	GtkListBox* _tmp136_;
	ShortcutLabel* _tmp137_;
	ShortcutLabel* _tmp138_;
	GtkListBox* _tmp139_;
	ShortcutLabel* _tmp140_;
	ShortcutLabel* _tmp141_;
	GtkListBox* screenshots_listbox = NULL;
	GtkListBox* _tmp142_ = NULL;
	GtkListBox* _tmp143_;
	GraniteHeaderLabel* screenshots_header = NULL;
	GtkListBox* _tmp144_;
	GtkWidget* _tmp145_;
	GraniteHeaderLabel* _tmp146_ = NULL;
	GtkBox* screenshots_box = NULL;
	GtkBox* _tmp147_;
	GtkBox* _tmp148_;
	GraniteHeaderLabel* _tmp149_;
	GtkBox* _tmp150_;
	GtkListBox* _tmp151_;
	GtkListBox* _tmp152_;
	ShortcutLabel* _tmp153_;
	ShortcutLabel* _tmp154_;
	GtkListBox* _tmp155_;
	ShortcutLabel* _tmp156_;
	ShortcutLabel* _tmp157_;
	GtkListBox* _tmp158_;
	ShortcutLabel* _tmp159_;
	ShortcutLabel* _tmp160_;
	GtkListBox* _tmp161_;
	ShortcutLabel* _tmp162_;
	ShortcutLabel* _tmp163_;
	GtkListBox* _tmp164_;
	ShortcutLabel* _tmp165_;
	ShortcutLabel* _tmp166_;
	GtkListBox* _tmp167_;
	ShortcutLabel* _tmp168_;
	ShortcutLabel* _tmp169_;
	GtkBox* column_start = NULL;
	GtkBox* _tmp170_;
	GtkBox* _tmp171_;
	GtkBox* _tmp172_;
	GtkBox* _tmp173_;
	GtkBox* _tmp174_;
	GtkBox* column_end = NULL;
	GtkBox* _tmp175_;
	GtkBox* _tmp176_;
	GtkBox* _tmp177_;
	GtkBox* _tmp178_;
	GtkBox* _tmp179_;
	GtkBox* _tmp180_;
	GtkSeparator* _tmp181_;
	GtkSeparator* _tmp182_;
	GtkBox* _tmp183_;
	parent_class = G_OBJECT_CLASS (shortcut_overlay_shortcuts_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SHORTCUT_OVERLAY_TYPE_SHORTCUTS_VIEW, ShortcutOverlayShortcutsView);
	_tmp0_ = (GtkListBox*) gtk_list_box_new ();
	gtk_list_box_set_selection_mode (_tmp0_, GTK_SELECTION_BROWSE);
	g_object_ref_sink (_tmp0_);
	windows_listbox = _tmp0_;
	_tmp1_ = windows_listbox;
	gtk_widget_add_css_class ((GtkWidget*) _tmp1_, GRANITE_STYLE_CLASS_BACKGROUND);
	_tmp2_ = windows_listbox;
	_tmp3_ = _g_object_ref0 ((GtkWidget*) _tmp2_);
	_tmp4_ = granite_header_label_new (_ ("Windows"));
	granite_header_label_set_mnemonic_widget (_tmp4_, _tmp3_);
	_g_object_unref0 (_tmp3_);
	g_object_ref_sink (_tmp4_);
	windows_header = _tmp4_;
	_tmp5_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp5_);
	windows_box = _tmp5_;
	_tmp6_ = windows_box;
	_tmp7_ = windows_header;
	gtk_box_append (_tmp6_, (GtkWidget*) _tmp7_);
	_tmp8_ = windows_box;
	_tmp9_ = windows_listbox;
	gtk_box_append (_tmp8_, (GtkWidget*) _tmp9_);
	_tmp10_ = windows_listbox;
	_tmp11_ = shortcut_label_new_from_gsettings (_ ("Close window:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "close");
	g_object_ref_sink (_tmp11_);
	_tmp12_ = _tmp11_;
	gtk_list_box_append (_tmp10_, (GtkWidget*) _tmp12_);
	_g_object_unref0 (_tmp12_);
	_tmp13_ = windows_listbox;
	_tmp14_ = shortcut_label_new_from_gsettings (_ ("Cycle windows:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "switch-windows");
	g_object_ref_sink (_tmp14_);
	_tmp15_ = _tmp14_;
	gtk_list_box_append (_tmp13_, (GtkWidget*) _tmp15_);
	_g_object_unref0 (_tmp15_);
	_tmp16_ = windows_listbox;
	_tmp17_ = shortcut_label_new_from_gsettings (_ ("Toggle maximized:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "toggle-maximized");
	g_object_ref_sink (_tmp17_);
	_tmp18_ = _tmp17_;
	gtk_list_box_append (_tmp16_, (GtkWidget*) _tmp18_);
	_g_object_unref0 (_tmp18_);
	_tmp19_ = windows_listbox;
	_tmp20_ = shortcut_label_new_from_gsettings (_ ("Tile left:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MUTTER, "toggle-tiled-left");
	g_object_ref_sink (_tmp20_);
	_tmp21_ = _tmp20_;
	gtk_list_box_append (_tmp19_, (GtkWidget*) _tmp21_);
	_g_object_unref0 (_tmp21_);
	_tmp22_ = windows_listbox;
	_tmp23_ = shortcut_label_new_from_gsettings (_ ("Tile right:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MUTTER, "toggle-tiled-right");
	g_object_ref_sink (_tmp23_);
	_tmp24_ = _tmp23_;
	gtk_list_box_append (_tmp22_, (GtkWidget*) _tmp24_);
	_g_object_unref0 (_tmp24_);
	_tmp25_ = windows_listbox;
	_tmp26_ = shortcut_label_new_from_gsettings (_ ("Move to left workspace:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "move-to-workspace-left");
	g_object_ref_sink (_tmp26_);
	_tmp27_ = _tmp26_;
	gtk_list_box_append (_tmp25_, (GtkWidget*) _tmp27_);
	_g_object_unref0 (_tmp27_);
	_tmp28_ = windows_listbox;
	_tmp29_ = shortcut_label_new_from_gsettings (_ ("Move to right workspace:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "move-to-workspace-right");
	g_object_ref_sink (_tmp29_);
	_tmp30_ = _tmp29_;
	gtk_list_box_append (_tmp28_, (GtkWidget*) _tmp30_);
	_g_object_unref0 (_tmp30_);
	_tmp31_ = windows_listbox;
	_tmp32_ = shortcut_label_new_from_gsettings (_ ("Picture in Picture Mode:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "pip");
	g_object_ref_sink (_tmp32_);
	_tmp33_ = _tmp32_;
	gtk_list_box_append (_tmp31_, (GtkWidget*) _tmp33_);
	_g_object_unref0 (_tmp33_);
	_tmp34_ = (GtkListBox*) gtk_list_box_new ();
	gtk_list_box_set_selection_mode (_tmp34_, GTK_SELECTION_BROWSE);
	g_object_ref_sink (_tmp34_);
	workspaces_listbox = _tmp34_;
	_tmp35_ = workspaces_listbox;
	gtk_widget_add_css_class ((GtkWidget*) _tmp35_, GRANITE_STYLE_CLASS_BACKGROUND);
	_tmp36_ = workspaces_listbox;
	_tmp37_ = _g_object_ref0 ((GtkWidget*) _tmp36_);
	_tmp38_ = granite_header_label_new (_ ("Workspaces"));
	granite_header_label_set_mnemonic_widget (_tmp38_, _tmp37_);
	_g_object_unref0 (_tmp37_);
	g_object_ref_sink (_tmp38_);
	workspaces_header = _tmp38_;
	_tmp39_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp39_);
	workspaces_box = _tmp39_;
	_tmp40_ = workspaces_box;
	_tmp41_ = workspaces_header;
	gtk_box_append (_tmp40_, (GtkWidget*) _tmp41_);
	_tmp42_ = workspaces_box;
	_tmp43_ = workspaces_listbox;
	gtk_box_append (_tmp42_, (GtkWidget*) _tmp43_);
	_tmp44_ = workspaces_listbox;
	_tmp45_ = shortcut_label_new_from_gsettings (_ ("Multitasking View:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "toggle-multitasking-view");
	g_object_ref_sink (_tmp45_);
	_tmp46_ = _tmp45_;
	gtk_list_box_append (_tmp44_, (GtkWidget*) _tmp46_);
	_g_object_unref0 (_tmp46_);
	_tmp47_ = workspaces_listbox;
	_tmp48_ = shortcut_label_new_from_gsettings (_ ("Switch left:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "switch-to-workspace-left");
	g_object_ref_sink (_tmp48_);
	_tmp49_ = _tmp48_;
	gtk_list_box_append (_tmp47_, (GtkWidget*) _tmp49_);
	_g_object_unref0 (_tmp49_);
	_tmp50_ = workspaces_listbox;
	_tmp51_ = shortcut_label_new_from_gsettings (_ ("Switch right:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_WM, "switch-to-workspace-right");
	g_object_ref_sink (_tmp51_);
	_tmp52_ = _tmp51_;
	gtk_list_box_append (_tmp50_, (GtkWidget*) _tmp52_);
	_g_object_unref0 (_tmp52_);
	_tmp53_ = workspaces_listbox;
	_tmp54_ = shortcut_label_new_from_gsettings (_ ("Switch to first:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "switch-to-workspace-first");
	g_object_ref_sink (_tmp54_);
	_tmp55_ = _tmp54_;
	gtk_list_box_append (_tmp53_, (GtkWidget*) _tmp55_);
	_g_object_unref0 (_tmp55_);
	_tmp56_ = workspaces_listbox;
	_tmp57_ = shortcut_label_new_from_gsettings (_ ("Switch to new:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "switch-to-workspace-last");
	g_object_ref_sink (_tmp57_);
	_tmp58_ = _tmp57_;
	gtk_list_box_append (_tmp56_, (GtkWidget*) _tmp58_);
	_g_object_unref0 (_tmp58_);
	_tmp59_ = workspaces_listbox;
	_tmp60_ = shortcut_label_new_from_gsettings (_ ("Cycle workspaces:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "cycle-workspaces-next");
	g_object_ref_sink (_tmp60_);
	_tmp61_ = _tmp60_;
	gtk_list_box_append (_tmp59_, (GtkWidget*) _tmp61_);
	_g_object_unref0 (_tmp61_);
	_tmp62_ = g_settings_new ("org.gnome.desktop.input-sources");
	input_settings = _tmp62_;
	_tmp63_ = input_settings;
	_tmp65_ = _tmp64_ = g_settings_get_strv (_tmp63_, "xkb-options");
	xkb_options = _tmp65_;
	xkb_options_length1 = _vala_array_length (_tmp64_);
	_xkb_options_size_ = xkb_options_length1;
	_tmp66_ = g_strdup ("");
	_tmp67_ = g_new0 (gchar*, 1 + 1);
	_tmp67_[0] = _tmp66_;
	xkb_input_accels = _tmp67_;
	xkb_input_accels_length1 = 1;
	_xkb_input_accels_size_ = xkb_input_accels_length1;
	_tmp68_ = xkb_options;
	_tmp68__length1 = xkb_options_length1;
	{
		gchar** xkb_command_collection = NULL;
		gint xkb_command_collection_length1 = 0;
		gint _xkb_command_collection_size_ = 0;
		gint xkb_command_it = 0;
		xkb_command_collection = _tmp68_;
		xkb_command_collection_length1 = _tmp68__length1;
		for (xkb_command_it = 0; xkb_command_it < xkb_command_collection_length1; xkb_command_it = xkb_command_it + 1) {
			const gchar* xkb_command = NULL;
			xkb_command = xkb_command_collection[xkb_command_it];
			{
				const gchar* _tmp69_;
				const gchar* _tmp70_;
				GQuark _tmp72_ = 0U;
				static GQuark _tmp71_label0 = 0;
				static GQuark _tmp71_label1 = 0;
				static GQuark _tmp71_label2 = 0;
				static GQuark _tmp71_label3 = 0;
				static GQuark _tmp71_label4 = 0;
				static GQuark _tmp71_label5 = 0;
				static GQuark _tmp71_label6 = 0;
				static GQuark _tmp71_label7 = 0;
				gchar** _tmp102_;
				gint _tmp102__length1;
				const gchar* _tmp103_;
				_tmp69_ = xkb_command;
				_tmp70_ = _tmp69_;
				_tmp72_ = (NULL == _tmp70_) ? 0 : g_quark_from_string (_tmp70_);
				if (_tmp72_ == ((0 != _tmp71_label0) ? _tmp71_label0 : (_tmp71_label0 = g_quark_from_static_string ("grp:alt_caps_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp73_;
							gchar* _tmp74_;
							gchar** _tmp75_;
							gchar** _tmp76_;
							_tmp73_ = granite_accel_to_string ("<Alt>Caps_Lock");
							_tmp74_ = _tmp73_;
							_tmp76_ = _tmp75_ = g_strsplit (_tmp74_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp76_;
							xkb_input_accels_length1 = _vala_array_length (_tmp75_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp74_);
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label1) ? _tmp71_label1 : (_tmp71_label1 = g_quark_from_static_string ("grp:alt_shift_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp77_;
							gchar* _tmp78_;
							gchar** _tmp79_;
							gchar** _tmp80_;
							_tmp77_ = granite_accel_to_string ("<Alt><Shift>");
							_tmp78_ = _tmp77_;
							_tmp80_ = _tmp79_ = g_strsplit (_tmp78_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp80_;
							xkb_input_accels_length1 = _vala_array_length (_tmp79_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp78_);
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label2) ? _tmp71_label2 : (_tmp71_label2 = g_quark_from_static_string ("grp:alt_space_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp81_;
							gchar* _tmp82_;
							gchar** _tmp83_;
							gchar** _tmp84_;
							_tmp81_ = granite_accel_to_string ("<Alt>space");
							_tmp82_ = _tmp81_;
							_tmp84_ = _tmp83_ = g_strsplit (_tmp82_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp84_;
							xkb_input_accels_length1 = _vala_array_length (_tmp83_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp82_);
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label3) ? _tmp71_label3 : (_tmp71_label3 = g_quark_from_static_string ("grp:shifts_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp85_;
							gchar* _tmp86_;
							gchar** _tmp87_;
							_tmp85_ = granite_accel_to_string ("Shift_L");
							_tmp86_ = granite_accel_to_string ("Shift_R");
							_tmp87_ = g_new0 (gchar*, 2 + 1);
							_tmp87_[0] = _tmp85_;
							_tmp87_[1] = _tmp86_;
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp87_;
							xkb_input_accels_length1 = 2;
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label4) ? _tmp71_label4 : (_tmp71_label4 = g_quark_from_static_string ("grp:caps_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp88_;
							gchar** _tmp89_;
							_tmp88_ = gtk_accelerator_get_label (GDK_KEY_Caps_Lock, 0);
							_tmp89_ = g_new0 (gchar*, 1 + 1);
							_tmp89_[0] = _tmp88_;
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp89_;
							xkb_input_accels_length1 = 1;
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label5) ? _tmp71_label5 : (_tmp71_label5 = g_quark_from_static_string ("grp:ctrl_alt_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp90_;
							gchar* _tmp91_;
							gchar** _tmp92_;
							gchar** _tmp93_;
							_tmp90_ = granite_accel_to_string ("<Ctrl><Alt>");
							_tmp91_ = _tmp90_;
							_tmp93_ = _tmp92_ = g_strsplit (_tmp91_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp93_;
							xkb_input_accels_length1 = _vala_array_length (_tmp92_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp91_);
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label6) ? _tmp71_label6 : (_tmp71_label6 = g_quark_from_static_string ("grp:ctrl_shift_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp94_;
							gchar* _tmp95_;
							gchar** _tmp96_;
							gchar** _tmp97_;
							_tmp94_ = granite_accel_to_string ("<Ctrl><Shift>");
							_tmp95_ = _tmp94_;
							_tmp97_ = _tmp96_ = g_strsplit (_tmp95_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp97_;
							xkb_input_accels_length1 = _vala_array_length (_tmp96_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp95_);
							break;
						}
					}
				} else if (_tmp72_ == ((0 != _tmp71_label7) ? _tmp71_label7 : (_tmp71_label7 = g_quark_from_static_string ("grp:shift_caps_toggle")))) {
					switch (0) {
						default:
						{
							gchar* _tmp98_;
							gchar* _tmp99_;
							gchar** _tmp100_;
							gchar** _tmp101_;
							_tmp98_ = granite_accel_to_string ("<Shift>Caps_Lock");
							_tmp99_ = _tmp98_;
							_tmp101_ = _tmp100_ = g_strsplit (_tmp99_, " + ", 0);
							xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
							xkb_input_accels = _tmp101_;
							xkb_input_accels_length1 = _vala_array_length (_tmp100_);
							_xkb_input_accels_size_ = xkb_input_accels_length1;
							_g_free0 (_tmp99_);
							break;
						}
					}
				}
				_tmp102_ = xkb_input_accels;
				_tmp102__length1 = xkb_input_accels_length1;
				_tmp103_ = _tmp102_[0];
				if (g_strcmp0 (_tmp103_, "") != 0) {
					break;
				}
			}
		}
	}
	_tmp104_ = (GtkListBox*) gtk_list_box_new ();
	gtk_list_box_set_selection_mode (_tmp104_, GTK_SELECTION_BROWSE);
	g_object_ref_sink (_tmp104_);
	system_listbox = _tmp104_;
	_tmp105_ = system_listbox;
	gtk_widget_add_css_class ((GtkWidget*) _tmp105_, GRANITE_STYLE_CLASS_BACKGROUND);
	_tmp106_ = system_listbox;
	_tmp107_ = _g_object_ref0 ((GtkWidget*) _tmp106_);
	_tmp108_ = granite_header_label_new (_ ("System"));
	granite_header_label_set_mnemonic_widget (_tmp108_, _tmp107_);
	_g_object_unref0 (_tmp107_);
	g_object_ref_sink (_tmp108_);
	system_header = _tmp108_;
	_tmp109_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp109_);
	system_box = _tmp109_;
	_tmp110_ = system_box;
	_tmp111_ = system_header;
	gtk_box_append (_tmp110_, (GtkWidget*) _tmp111_);
	_tmp112_ = system_box;
	_tmp113_ = system_listbox;
	gtk_box_append (_tmp112_, (GtkWidget*) _tmp113_);
	_tmp114_ = system_listbox;
	_tmp115_ = shortcut_label_new_from_gsettings (_ ("Applications Menu:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "panel-main-menu");
	g_object_ref_sink (_tmp115_);
	_tmp116_ = _tmp115_;
	gtk_list_box_append (_tmp114_, (GtkWidget*) _tmp116_);
	_g_object_unref0 (_tmp116_);
	_tmp117_ = system_listbox;
	_tmp118_ = shortcut_label_new_from_gsettings (_ ("Cycle display mode:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MUTTER, "switch-monitor");
	g_object_ref_sink (_tmp118_);
	_tmp119_ = _tmp118_;
	gtk_list_box_append (_tmp117_, (GtkWidget*) _tmp119_);
	_g_object_unref0 (_tmp119_);
	_tmp120_ = system_listbox;
	_tmp121_ = shortcut_label_new_from_gsettings (_ ("Zoom in:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "zoom-in");
	g_object_ref_sink (_tmp121_);
	_tmp122_ = _tmp121_;
	gtk_list_box_append (_tmp120_, (GtkWidget*) _tmp122_);
	_g_object_unref0 (_tmp122_);
	_tmp123_ = system_listbox;
	_tmp124_ = shortcut_label_new_from_gsettings (_ ("Zoom out:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "zoom-out");
	g_object_ref_sink (_tmp124_);
	_tmp125_ = _tmp124_;
	gtk_list_box_append (_tmp123_, (GtkWidget*) _tmp125_);
	_g_object_unref0 (_tmp125_);
	_tmp126_ = system_listbox;
	_tmp127_ = shortcut_label_new_from_gsettings (_ ("Lock screen:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MEDIA, "screensaver");
	g_object_ref_sink (_tmp127_);
	_tmp128_ = _tmp127_;
	gtk_list_box_append (_tmp126_, (GtkWidget*) _tmp128_);
	_g_object_unref0 (_tmp128_);
	_tmp129_ = system_listbox;
	_tmp130_ = shortcut_label_new_from_gsettings (_ ("Log out:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MEDIA, "logout");
	g_object_ref_sink (_tmp130_);
	_tmp131_ = _tmp130_;
	gtk_list_box_append (_tmp129_, (GtkWidget*) _tmp131_);
	_g_object_unref0 (_tmp131_);
	_tmp132_ = system_listbox;
	_tmp133_ = xkb_input_accels;
	_tmp133__length1 = xkb_input_accels_length1;
	_tmp134_ = shortcut_label_new (_ ("Switch keyboard layout:"), _tmp133_, _tmp133__length1);
	g_object_ref_sink (_tmp134_);
	_tmp135_ = _tmp134_;
	gtk_list_box_append (_tmp132_, (GtkWidget*) _tmp135_);
	_g_object_unref0 (_tmp135_);
	_tmp136_ = system_listbox;
	_tmp137_ = shortcut_label_new_from_gsettings (_ ("Toggle on-screen keyboard:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MEDIA, "on-screen-keyboard");
	g_object_ref_sink (_tmp137_);
	_tmp138_ = _tmp137_;
	gtk_list_box_append (_tmp136_, (GtkWidget*) _tmp138_);
	_g_object_unref0 (_tmp138_);
	_tmp139_ = system_listbox;
	_tmp140_ = shortcut_label_new_from_gsettings (_ ("Toggle screen reader:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_MEDIA, "screenreader");
	g_object_ref_sink (_tmp140_);
	_tmp141_ = _tmp140_;
	gtk_list_box_append (_tmp139_, (GtkWidget*) _tmp141_);
	_g_object_unref0 (_tmp141_);
	_tmp142_ = (GtkListBox*) gtk_list_box_new ();
	gtk_list_box_set_selection_mode (_tmp142_, GTK_SELECTION_BROWSE);
	g_object_ref_sink (_tmp142_);
	screenshots_listbox = _tmp142_;
	_tmp143_ = screenshots_listbox;
	gtk_widget_add_css_class ((GtkWidget*) _tmp143_, GRANITE_STYLE_CLASS_BACKGROUND);
	_tmp144_ = screenshots_listbox;
	_tmp145_ = _g_object_ref0 ((GtkWidget*) _tmp144_);
	_tmp146_ = granite_header_label_new (_ ("Screenshots"));
	granite_header_label_set_mnemonic_widget (_tmp146_, _tmp145_);
	_g_object_unref0 (_tmp145_);
	g_object_ref_sink (_tmp146_);
	screenshots_header = _tmp146_;
	_tmp147_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp147_);
	screenshots_box = _tmp147_;
	_tmp148_ = screenshots_box;
	_tmp149_ = screenshots_header;
	gtk_box_append (_tmp148_, (GtkWidget*) _tmp149_);
	_tmp150_ = screenshots_box;
	_tmp151_ = screenshots_listbox;
	gtk_box_append (_tmp150_, (GtkWidget*) _tmp151_);
	_tmp152_ = screenshots_listbox;
	_tmp153_ = shortcut_label_new_from_gsettings (_ ("Grab the whole screen:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "screenshot");
	g_object_ref_sink (_tmp153_);
	_tmp154_ = _tmp153_;
	gtk_list_box_append (_tmp152_, (GtkWidget*) _tmp154_);
	_g_object_unref0 (_tmp154_);
	_tmp155_ = screenshots_listbox;
	_tmp156_ = shortcut_label_new_from_gsettings (_ ("Copy the whole screen to clipboard:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "screenshot-clip");
	g_object_ref_sink (_tmp156_);
	_tmp157_ = _tmp156_;
	gtk_list_box_append (_tmp155_, (GtkWidget*) _tmp157_);
	_g_object_unref0 (_tmp157_);
	_tmp158_ = screenshots_listbox;
	_tmp159_ = shortcut_label_new_from_gsettings (_ ("Grab the current window:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "window-screenshot");
	g_object_ref_sink (_tmp159_);
	_tmp160_ = _tmp159_;
	gtk_list_box_append (_tmp158_, (GtkWidget*) _tmp160_);
	_g_object_unref0 (_tmp160_);
	_tmp161_ = screenshots_listbox;
	_tmp162_ = shortcut_label_new_from_gsettings (_ ("Copy the current window to clipboard:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "window-screenshot-clip");
	g_object_ref_sink (_tmp162_);
	_tmp163_ = _tmp162_;
	gtk_list_box_append (_tmp161_, (GtkWidget*) _tmp163_);
	_g_object_unref0 (_tmp163_);
	_tmp164_ = screenshots_listbox;
	_tmp165_ = shortcut_label_new_from_gsettings (_ ("Select an area to grab:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "area-screenshot");
	g_object_ref_sink (_tmp165_);
	_tmp166_ = _tmp165_;
	gtk_list_box_append (_tmp164_, (GtkWidget*) _tmp166_);
	_g_object_unref0 (_tmp166_);
	_tmp167_ = screenshots_listbox;
	_tmp168_ = shortcut_label_new_from_gsettings (_ ("Copy an area to clipboard:"), SHORTCUT_OVERLAY_SHORTCUTS_VIEW_SCHEMA_GALA, "area-screenshot-clip");
	g_object_ref_sink (_tmp168_);
	_tmp169_ = _tmp168_;
	gtk_list_box_append (_tmp167_, (GtkWidget*) _tmp169_);
	_g_object_unref0 (_tmp169_);
	_tmp170_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
	g_object_ref_sink (_tmp170_);
	column_start = _tmp170_;
	_tmp171_ = column_start;
	_tmp172_ = windows_box;
	gtk_box_append (_tmp171_, (GtkWidget*) _tmp172_);
	_tmp173_ = column_start;
	_tmp174_ = workspaces_box;
	gtk_box_append (_tmp173_, (GtkWidget*) _tmp174_);
	_tmp175_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
	g_object_ref_sink (_tmp175_);
	column_end = _tmp175_;
	_tmp176_ = column_end;
	_tmp177_ = system_box;
	gtk_box_append (_tmp176_, (GtkWidget*) _tmp177_);
	_tmp178_ = column_end;
	_tmp179_ = screenshots_box;
	gtk_box_append (_tmp178_, (GtkWidget*) _tmp179_);
	gtk_box_set_spacing ((GtkBox*) self, 48);
	_tmp180_ = column_start;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp180_);
	_tmp181_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_VERTICAL);
	g_object_ref_sink (_tmp181_);
	_tmp182_ = _tmp181_;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp182_);
	_g_object_unref0 (_tmp182_);
	_tmp183_ = column_end;
	gtk_box_append ((GtkBox*) self, (GtkWidget*) _tmp183_);
	_g_object_unref0 (column_end);
	_g_object_unref0 (column_start);
	_g_object_unref0 (screenshots_box);
	_g_object_unref0 (screenshots_header);
	_g_object_unref0 (screenshots_listbox);
	_g_object_unref0 (system_box);
	_g_object_unref0 (system_header);
	_g_object_unref0 (system_listbox);
	xkb_input_accels = (_vala_array_free (xkb_input_accels, xkb_input_accels_length1, (GDestroyNotify) g_free), NULL);
	xkb_options = (_vala_array_free (xkb_options, xkb_options_length1, (GDestroyNotify) g_free), NULL);
	_g_object_unref0 (input_settings);
	_g_object_unref0 (workspaces_box);
	_g_object_unref0 (workspaces_header);
	_g_object_unref0 (workspaces_listbox);
	_g_object_unref0 (windows_box);
	_g_object_unref0 (windows_header);
	_g_object_unref0 (windows_listbox);
	return obj;
}

static void
shortcut_overlay_shortcuts_view_class_init (ShortcutOverlayShortcutsViewClass * klass,
                                            gpointer klass_data)
{
	shortcut_overlay_shortcuts_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = shortcut_overlay_shortcuts_view_constructor;
}

static void
shortcut_overlay_shortcuts_view_instance_init (ShortcutOverlayShortcutsView * self,
                                               gpointer klass)
{
}

static GType
shortcut_overlay_shortcuts_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ShortcutOverlayShortcutsViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shortcut_overlay_shortcuts_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShortcutOverlayShortcutsView), 0, (GInstanceInitFunc) shortcut_overlay_shortcuts_view_instance_init, NULL };
	GType shortcut_overlay_shortcuts_view_type_id;
	shortcut_overlay_shortcuts_view_type_id = g_type_register_static (gtk_box_get_type (), "ShortcutOverlayShortcutsView", &g_define_type_info, 0);
	return shortcut_overlay_shortcuts_view_type_id;
}

GType
shortcut_overlay_shortcuts_view_get_type (void)
{
	static volatile gsize shortcut_overlay_shortcuts_view_type_id__once = 0;
	if (g_once_init_enter (&shortcut_overlay_shortcuts_view_type_id__once)) {
		GType shortcut_overlay_shortcuts_view_type_id;
		shortcut_overlay_shortcuts_view_type_id = shortcut_overlay_shortcuts_view_get_type_once ();
		g_once_init_leave (&shortcut_overlay_shortcuts_view_type_id__once, shortcut_overlay_shortcuts_view_type_id);
	}
	return shortcut_overlay_shortcuts_view_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);
}

static gssize
_vala_array_length (gpointer array)
{
	gssize length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}

