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

/*
 *  Copyright (c) 2011 Mike Massonnet <mmassonnet@xfce.org>
 *  Copyright (c) 2011 Vincent Legout <vincent@xfce.org>
 *
 *  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 2 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, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

#include "xfmpc.h"
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <libxfce4ui/libxfce4ui.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  {
	XFMPC_SHORTCUTS_DIALOG_0_PROPERTY,
	XFMPC_SHORTCUTS_DIALOG_NUM_PROPERTIES
};
static GParamSpec* xfmpc_shortcuts_dialog_properties[XFMPC_SHORTCUTS_DIALOG_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

static gpointer xfmpc_shortcuts_dialog_parent_class = NULL;

static GObject * xfmpc_shortcuts_dialog_constructor (GType type,
                                              guint n_construct_properties,
                                              GObjectConstructParam * construct_properties);
static void _xfmpc_shortcuts_dialog___lambda4_ (XfmpcShortcutsDialog* self,
                                         gint response);
static void __xfmpc_shortcuts_dialog___lambda4__gtk_dialog_response (GtkDialog* _sender,
                                                              gint response_id,
                                                              gpointer self);
static GType xfmpc_shortcuts_dialog_get_type_once (void);

XfmpcShortcutsDialog*
xfmpc_shortcuts_dialog_construct (GType object_type)
{
	XfmpcShortcutsDialog * self = NULL;
	self = (XfmpcShortcutsDialog*) g_object_new (object_type, NULL);
	return self;
}

XfmpcShortcutsDialog*
xfmpc_shortcuts_dialog_new (void)
{
	return xfmpc_shortcuts_dialog_construct (XFMPC_TYPE_SHORTCUTS_DIALOG);
}

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

static void
_xfmpc_shortcuts_dialog___lambda4_ (XfmpcShortcutsDialog* self,
                                    gint response)
{
	switch (response) {
		case GTK_RESPONSE_CLOSE:
		{
			gtk_widget_destroy ((GtkWidget*) self);
			break;
		}
		default:
		break;
	}
}

static void
__xfmpc_shortcuts_dialog___lambda4__gtk_dialog_response (GtkDialog* _sender,
                                                         gint response_id,
                                                         gpointer self)
{
	_xfmpc_shortcuts_dialog___lambda4_ ((XfmpcShortcutsDialog*) self, response_id);
}

static GObject *
xfmpc_shortcuts_dialog_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	XfmpcShortcutsDialog * self;
	GtkDialog* dialog = NULL;
	GtkDialog* _tmp0_;
	GtkDialog* _tmp1_;
	GtkBox* content_area = NULL;
	GtkBox* _tmp2_;
	GtkBox* _tmp3_;
	GtkBox* vbox = NULL;
	GtkBox* _tmp4_;
	GtkBox* _tmp5_;
	GtkBox* _tmp6_;
	GtkBox* _tmp7_;
	GtkBox* _tmp8_;
	GtkLabel* label = NULL;
	GtkLabel* _tmp9_;
	GtkLabel* _tmp10_;
	GtkLabel* _tmp11_;
	GtkBox* _tmp12_;
	GtkLabel* _tmp13_;
	GtkLabel* _tmp14_;
	GtkLabel* _tmp15_;
	GtkLabel* _tmp16_;
	GtkBox* _tmp17_;
	GtkLabel* _tmp18_;
	GtkLabel* _tmp19_;
	GtkLabel* _tmp20_;
	GtkLabel* _tmp21_;
	GtkBox* _tmp22_;
	GtkLabel* _tmp23_;
	GtkLabel* _tmp24_;
	GtkLabel* _tmp25_;
	GtkLabel* _tmp26_;
	GtkBox* _tmp27_;
	GtkLabel* _tmp28_;
	GtkLabel* _tmp29_;
	GtkLabel* _tmp30_;
	GtkLabel* _tmp31_;
	GtkBox* _tmp32_;
	GtkLabel* _tmp33_;
	GtkLabel* _tmp34_;
	GtkLabel* _tmp35_;
	GtkLabel* _tmp36_;
	GtkBox* _tmp37_;
	GtkLabel* _tmp38_;
	GtkLabel* _tmp39_;
	GtkLabel* _tmp40_;
	GtkLabel* _tmp41_;
	GtkBox* _tmp42_;
	GtkLabel* _tmp43_;
	GtkLabel* _tmp44_;
	GtkLabel* _tmp45_;
	GtkLabel* _tmp46_;
	GtkBox* _tmp47_;
	GtkLabel* _tmp48_;
	GtkLabel* _tmp49_;
	GtkLabel* _tmp50_;
	GtkLabel* _tmp51_;
	GtkBox* _tmp52_;
	GtkLabel* _tmp53_;
	parent_class = G_OBJECT_CLASS (xfmpc_shortcuts_dialog_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, XFMPC_TYPE_SHORTCUTS_DIALOG, XfmpcShortcutsDialog);
	gtk_window_set_skip_taskbar_hint ((GtkWindow*) self, TRUE);
	gtk_window_set_icon_name ((GtkWindow*) self, "multimedia-player");
	gtk_window_set_resizable ((GtkWindow*) self, FALSE);
	gtk_window_set_title ((GtkWindow*) self, _ ("Xfmpc Shortcuts"));
	xfce_titled_dialog_set_subtitle ((XfceTitledDialog*) self, _ ("Control your MPD client with your keyboard"));
	_tmp0_ = _g_object_ref0 ((GtkDialog*) self);
	dialog = _tmp0_;
	_tmp1_ = dialog;
	gtk_dialog_add_button (_tmp1_, _ ("Close"), (gint) GTK_RESPONSE_CLOSE);
	g_signal_connect_object ((GtkDialog*) self, "response", (GCallback) __xfmpc_shortcuts_dialog___lambda4__gtk_dialog_response, self, 0);
	_tmp2_ = gtk_dialog_get_content_area ((GtkDialog*) self);
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_box_get_type (), GtkBox));
	content_area = _tmp3_;
	_tmp4_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
	g_object_ref_sink (_tmp4_);
	vbox = _tmp4_;
	_tmp5_ = vbox;
	gtk_box_set_homogeneous (_tmp5_, TRUE);
	_tmp6_ = vbox;
	gtk_container_set_border_width ((GtkContainer*) _tmp6_, (guint) 6);
	_tmp7_ = content_area;
	_tmp8_ = vbox;
	gtk_container_add ((GtkContainer*) _tmp7_, (GtkWidget*) _tmp8_);
	_tmp9_ = (GtkLabel*) gtk_label_new (_ ("Quit: CTRL+q"));
	g_object_ref_sink (_tmp9_);
	label = _tmp9_;
	_tmp10_ = label;
	gtk_label_set_xalign (_tmp10_, 0.0f);
	_tmp11_ = label;
	gtk_label_set_yalign (_tmp11_, 0.5f);
	_tmp12_ = vbox;
	_tmp13_ = label;
	gtk_container_add ((GtkContainer*) _tmp12_, (GtkWidget*) _tmp13_);
	_tmp14_ = (GtkLabel*) gtk_label_new (_ ("Previous: CTRL+b"));
	g_object_ref_sink (_tmp14_);
	_g_object_unref0 (label);
	label = _tmp14_;
	_tmp15_ = label;
	gtk_label_set_xalign (_tmp15_, 0.0f);
	_tmp16_ = label;
	gtk_label_set_yalign (_tmp16_, 0.5f);
	_tmp17_ = vbox;
	_tmp18_ = label;
	gtk_container_add ((GtkContainer*) _tmp17_, (GtkWidget*) _tmp18_);
	_tmp19_ = (GtkLabel*) gtk_label_new (_ ("Play/Pause: CTRL+p"));
	g_object_ref_sink (_tmp19_);
	_g_object_unref0 (label);
	label = _tmp19_;
	_tmp20_ = label;
	gtk_label_set_xalign (_tmp20_, 0.0f);
	_tmp21_ = label;
	gtk_label_set_yalign (_tmp21_, 0.5f);
	_tmp22_ = vbox;
	_tmp23_ = label;
	gtk_container_add ((GtkContainer*) _tmp22_, (GtkWidget*) _tmp23_);
	_tmp24_ = (GtkLabel*) gtk_label_new (_ ("Stop: CTRL+s"));
	g_object_ref_sink (_tmp24_);
	_g_object_unref0 (label);
	label = _tmp24_;
	_tmp25_ = label;
	gtk_label_set_xalign (_tmp25_, 0.0f);
	_tmp26_ = label;
	gtk_label_set_yalign (_tmp26_, 0.5f);
	_tmp27_ = vbox;
	_tmp28_ = label;
	gtk_container_add ((GtkContainer*) _tmp27_, (GtkWidget*) _tmp28_);
	_tmp29_ = (GtkLabel*) gtk_label_new (_ ("Next: CTRL+f"));
	g_object_ref_sink (_tmp29_);
	_g_object_unref0 (label);
	label = _tmp29_;
	_tmp30_ = label;
	gtk_label_set_xalign (_tmp30_, 0.0f);
	_tmp31_ = label;
	gtk_label_set_yalign (_tmp31_, 0.5f);
	_tmp32_ = vbox;
	_tmp33_ = label;
	gtk_container_add ((GtkContainer*) _tmp32_, (GtkWidget*) _tmp33_);
	_tmp34_ = (GtkLabel*) gtk_label_new (_ ("Volume: CTRL+v"));
	g_object_ref_sink (_tmp34_);
	_g_object_unref0 (label);
	label = _tmp34_;
	_tmp35_ = label;
	gtk_label_set_xalign (_tmp35_, 0.0f);
	_tmp36_ = label;
	gtk_label_set_yalign (_tmp36_, 0.5f);
	_tmp37_ = vbox;
	_tmp38_ = label;
	gtk_container_add ((GtkContainer*) _tmp37_, (GtkWidget*) _tmp38_);
	_tmp39_ = (GtkLabel*) gtk_label_new (_ ("Search: ALT+s"));
	g_object_ref_sink (_tmp39_);
	_g_object_unref0 (label);
	label = _tmp39_;
	_tmp40_ = label;
	gtk_label_set_xalign (_tmp40_, 0.0f);
	_tmp41_ = label;
	gtk_label_set_yalign (_tmp41_, 0.5f);
	_tmp42_ = vbox;
	_tmp43_ = label;
	gtk_container_add ((GtkContainer*) _tmp42_, (GtkWidget*) _tmp43_);
	_tmp44_ = (GtkLabel*) gtk_label_new (_ ("Filter Playlist: ALT+f"));
	g_object_ref_sink (_tmp44_);
	_g_object_unref0 (label);
	label = _tmp44_;
	_tmp45_ = label;
	gtk_label_set_xalign (_tmp45_, 0.0f);
	_tmp46_ = label;
	gtk_label_set_yalign (_tmp46_, 0.5f);
	_tmp47_ = vbox;
	_tmp48_ = label;
	gtk_container_add ((GtkContainer*) _tmp47_, (GtkWidget*) _tmp48_);
	_tmp49_ = (GtkLabel*) gtk_label_new (_ ("Search in Database: ALT+d"));
	g_object_ref_sink (_tmp49_);
	_g_object_unref0 (label);
	label = _tmp49_;
	_tmp50_ = label;
	gtk_label_set_xalign (_tmp50_, 0.0f);
	_tmp51_ = label;
	gtk_label_set_yalign (_tmp51_, 0.5f);
	_tmp52_ = vbox;
	_tmp53_ = label;
	gtk_container_add ((GtkContainer*) _tmp52_, (GtkWidget*) _tmp53_);
	gtk_widget_show_all ((GtkWidget*) self);
	_g_object_unref0 (label);
	_g_object_unref0 (vbox);
	_g_object_unref0 (content_area);
	_g_object_unref0 (dialog);
	return obj;
}

static void
xfmpc_shortcuts_dialog_class_init (XfmpcShortcutsDialogClass * klass,
                                   gpointer klass_data)
{
	xfmpc_shortcuts_dialog_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = xfmpc_shortcuts_dialog_constructor;
}

static void
xfmpc_shortcuts_dialog_instance_init (XfmpcShortcutsDialog * self,
                                      gpointer klass)
{
}

 G_GNUC_NO_INLINE static GType
xfmpc_shortcuts_dialog_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (XfmpcShortcutsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) xfmpc_shortcuts_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (XfmpcShortcutsDialog), 0, (GInstanceInitFunc) xfmpc_shortcuts_dialog_instance_init, NULL };
	GType xfmpc_shortcuts_dialog_type_id;
	xfmpc_shortcuts_dialog_type_id = g_type_register_static (xfce_titled_dialog_get_type (), "XfmpcShortcutsDialog", &g_define_type_info, 0);
	return xfmpc_shortcuts_dialog_type_id;
}

GType
xfmpc_shortcuts_dialog_get_type (void)
{
	static volatile gsize xfmpc_shortcuts_dialog_type_id__once = 0;
	if (g_once_init_enter (&xfmpc_shortcuts_dialog_type_id__once)) {
		GType xfmpc_shortcuts_dialog_type_id;
		xfmpc_shortcuts_dialog_type_id = xfmpc_shortcuts_dialog_get_type_once ();
		g_once_init_leave (&xfmpc_shortcuts_dialog_type_id__once, xfmpc_shortcuts_dialog_type_id);
	}
	return xfmpc_shortcuts_dialog_type_id__once;
}

