/*
 * This file was generated automatically by ExtUtils::ParseXS version 3.28 from the
 * contents of GtkAccelGroup.xs. Do not edit this file, edit GtkAccelGroup.xs instead.
 *
 *    ANY CHANGES MADE HERE WILL BE LOST!
 *
 */

#line 1 "xs/GtkAccelGroup.xs"
/*
 * Copyright (c) 2003, 2009 by the gtk2-perl team (see the file AUTHORS)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA  02111-1307  USA.
 *
 * $Id$
 */

#include "gtk2perl.h"

typedef struct {
	GClosure * closure;
	const char * sv_str;
} FindClosureData;

static gboolean
find_closure (GtkAccelKey * key,
              GClosure * closure,
	      gpointer data)
{
	GPerlClosure * gpc = (GPerlClosure*) closure;
	FindClosureData * cd = (FindClosureData*) data;

	PERL_UNUSED_VAR (key);

	if (strEQ (cd->sv_str, SvPV_nolen (gpc->callback))) {
		cd->closure = closure;
		return TRUE;
	} else
		return FALSE;
}

#line 56 "xs/GtkAccelGroup.c"
#ifndef PERL_UNUSED_VAR
#  define PERL_UNUSED_VAR(var) if (0) var = var
#endif

#ifndef dVAR
#  define dVAR		dNOOP
#endif


/* This stuff is not part of the API! You have been warned. */
#ifndef PERL_VERSION_DECIMAL
#  define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
#endif
#ifndef PERL_DECIMAL_VERSION
#  define PERL_DECIMAL_VERSION \
	  PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
#endif
#ifndef PERL_VERSION_GE
#  define PERL_VERSION_GE(r,v,s) \
	  (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
#endif
#ifndef PERL_VERSION_LE
#  define PERL_VERSION_LE(r,v,s) \
	  (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
#endif

/* XS_INTERNAL is the explicit static-linkage variant of the default
 * XS macro.
 *
 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
 * "STATIC", ie. it exports XSUB symbols. You probably don't want that
 * for anything but the BOOT XSUB.
 *
 * See XSUB.h in core!
 */


/* TODO: This might be compatible further back than 5.10.0. */
#if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
#  undef XS_EXTERNAL
#  undef XS_INTERNAL
#  if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
#    define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
#    define XS_INTERNAL(name) STATIC XSPROTO(name)
#  endif
#  if defined(__SYMBIAN32__)
#    define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
#    define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
#  endif
#  ifndef XS_EXTERNAL
#    if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
#      define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
#      define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__)
#    else
#      ifdef __cplusplus
#        define XS_EXTERNAL(name) extern "C" XSPROTO(name)
#        define XS_INTERNAL(name) static XSPROTO(name)
#      else
#        define XS_EXTERNAL(name) XSPROTO(name)
#        define XS_INTERNAL(name) STATIC XSPROTO(name)
#      endif
#    endif
#  endif
#endif

/* perl >= 5.10.0 && perl <= 5.15.1 */


/* The XS_EXTERNAL macro is used for functions that must not be static
 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
 * macro defined, the best we can do is assume XS is the same.
 * Dito for XS_INTERNAL.
 */
#ifndef XS_EXTERNAL
#  define XS_EXTERNAL(name) XS(name)
#endif
#ifndef XS_INTERNAL
#  define XS_INTERNAL(name) XS(name)
#endif

/* Now, finally, after all this mess, we want an ExtUtils::ParseXS
 * internal macro that we're free to redefine for varying linkage due
 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
 */

#undef XS_EUPXS
#if defined(PERL_EUPXS_ALWAYS_EXPORT)
#  define XS_EUPXS(name) XS_EXTERNAL(name)
#else
   /* default to internal */
#  define XS_EUPXS(name) XS_INTERNAL(name)
#endif

#ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
#define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)

/* prototype to pass -Wmissing-prototypes */
STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params)
{
    const GV *const gv = CvGV(cv);

    PERL_ARGS_ASSERT_CROAK_XS_USAGE;

    if (gv) {
        const char *const gvname = GvNAME(gv);
        const HV *const stash = GvSTASH(gv);
        const char *const hvname = stash ? HvNAME(stash) : NULL;

        if (hvname)
	    Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
        else
	    Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
	Perl_croak_nocontext("Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#define croak_xs_usage        S_croak_xs_usage

#endif

/* NOTE: the prototype of newXSproto() is different in versions of perls,
 * so we define a portable version of newXSproto()
 */
#ifdef newXS_flags
#define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
#else
#define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
#endif /* !defined(newXS_flags) */

#if PERL_VERSION_LE(5, 21, 5)
#  define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
#else
#  define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
#endif

#line 200 "xs/GtkAccelGroup.c"

XS_EUPXS(XS_Gtk2__AccelGroup_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_new)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GtkAccelGroup_noinc *	RETVAL;

	RETVAL = gtk_accel_group_new(/*void*/);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkAccelGroup_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__AccelGroup_lock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_lock)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "accel_group");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;

	gtk_accel_group_lock(accel_group);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__AccelGroup_unlock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_unlock)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "accel_group");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;

	gtk_accel_group_unlock(accel_group);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__AccelGroup_connect); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_connect)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "accel_group, accel_key, accel_mods, accel_flags, func");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;
	guint	accel_key = (guint)SvUV(ST(1))
;
	GdkModifierType	accel_mods = SvGdkModifierType (ST(2))
;
	GtkAccelFlags	accel_flags = SvGtkAccelFlags (ST(3))
;
	SV *	func = ST(4)
;
#line 85 "xs/GtkAccelGroup.xs"
	GClosure        * closure;
#line 274 "xs/GtkAccelGroup.c"
#line 87 "xs/GtkAccelGroup.xs"
	/* gtk_accel_group_connect() sinks the floating ref from creation in
	 * gperl_closure_new()
	 */
	closure = gperl_closure_new (func, NULL, FALSE);
	gtk_accel_group_connect (accel_group, accel_key, accel_mods,
	                         accel_flags, closure);
#line 282 "xs/GtkAccelGroup.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__AccelGroup_connect_by_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_connect_by_path)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "accel_group, accel_path, func");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;
	const gchar *	accel_path;
	SV *	func = ST(2)
;
#line 101 "xs/GtkAccelGroup.xs"
	GClosure      * closure;
#line 302 "xs/GtkAccelGroup.c"

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	accel_path = (const gchar *)SvPV_nolen (ST(1))
;
#line 103 "xs/GtkAccelGroup.xs"
	/* gtk_accel_group_connect_by_path() sinks the floating ref from
	 * creation in gperl_closure_new()
	 */
	closure = gperl_closure_new (func, NULL, FALSE);
	gtk_accel_group_connect_by_path (accel_group, accel_path, closure);
#line 314 "xs/GtkAccelGroup.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__AccelGroup_disconnect); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_disconnect)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "accel_group, func");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;
	SV *	func = ST(1)
;
#line 120 "xs/GtkAccelGroup.xs"
	FindClosureData data;
#line 333 "xs/GtkAccelGroup.c"
	gboolean	RETVAL;
#line 122 "xs/GtkAccelGroup.xs"
	data.closure = NULL;
	data.sv_str = SvPV_nolen (func);
	if (gtk_accel_group_find (accel_group, find_closure, &data)) {
		RETVAL = gtk_accel_group_disconnect (accel_group,
		                                     data.closure);
	} else
		RETVAL = 0;
#line 343 "xs/GtkAccelGroup.c"
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__AccelGroup_disconnect_key); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_disconnect_key)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "accel_group, accel_key, accel_mods");
    {
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;
	guint	accel_key = (guint)SvUV(ST(1))
;
	GdkModifierType	accel_mods = SvGdkModifierType (ST(2))
;
	gboolean	RETVAL;

	RETVAL = gtk_accel_group_disconnect_key(accel_group, accel_key, accel_mods);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION (2, 14, 0)
#define XSubPPtmpAAAA 1


XS_EUPXS(XS_Gtk2__AccelGroup_get_is_locked); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_get_is_locked)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "accel_group");
    {
	gboolean	RETVAL;
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;

	RETVAL = gtk_accel_group_get_is_locked(accel_group);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__AccelGroup_get_modifier_mask); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroup_get_modifier_mask)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "accel_group");
    {
	GdkModifierType	RETVAL;
	GtkAccelGroup *	accel_group = SvGtkAccelGroup (ST(0))
;

	RETVAL = gtk_accel_group_get_modifier_mask(accel_group);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkModifierType (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__Accelerator_parse); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_parse)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, accelerator");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	const gchar *	accelerator;
#line 176 "xs/GtkAccelGroup.xs"
	guint           accelerator_key;
	GdkModifierType accelerator_mods;
#line 430 "xs/GtkAccelGroup.c"

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	accelerator = (const gchar *)SvPV_nolen (ST(1))
;
#line 179 "xs/GtkAccelGroup.xs"
	gtk_accelerator_parse (accelerator, &accelerator_key, 
	                       &accelerator_mods);
	XPUSHs (sv_2mortal (newSVuv (accelerator_key)));
	XPUSHs (sv_2mortal (newSVGdkModifierType (accelerator_mods)));
#line 441 "xs/GtkAccelGroup.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Accelerator_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_name)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, accelerator_key, accelerator_mods");
    {
	guint	accelerator_key = (guint)SvUV(ST(1))
;
	GdkModifierType	accelerator_mods = SvGdkModifierType (ST(2))
;
	gchar_own *	RETVAL;

	RETVAL = gtk_accelerator_name(accelerator_key, accelerator_mods);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* used when we can directly own the returned string. */
	    /* we have to copy in the case when perl's malloc != gtk's malloc,
	     * so best copy all the time. */
	    sv_setpv ((SV*)RETVALSV, RETVAL);
	    SvUTF8_on (RETVALSV);
	    g_free (RETVAL);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Accelerator_set_default_mod_mask); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_set_default_mod_mask)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, default_mod_mask");
    {
	GdkModifierType	default_mod_mask = SvGdkModifierType (ST(1))
;

	gtk_accelerator_set_default_mod_mask(default_mod_mask);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Accelerator_get_default_mod_mask); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_get_default_mod_mask)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GdkModifierType	RETVAL;

	RETVAL = gtk_accelerator_get_default_mod_mask(/* void */);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkModifierType (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Accelerator_valid); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_valid)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, keyval, modifiers");
    {
	guint	keyval = (guint)SvUV(ST(1))
;
	GdkModifierType	modifiers = SvGdkModifierType (ST(2))
;
	gboolean	RETVAL;

	RETVAL = gtk_accelerator_valid(keyval, modifiers);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION (2, 6, 0)
#define XSubPPtmpAAAB 1


XS_EUPXS(XS_Gtk2__Accelerator_get_label); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Accelerator_get_label)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, accelerator_key, accelerator_mods");
    {
	guint	accelerator_key = (guint)SvUV(ST(1))
;
	GdkModifierType	accelerator_mods = SvGdkModifierType (ST(2))
;
	gchar_own *	RETVAL;

	RETVAL = gtk_accelerator_get_label(accelerator_key, accelerator_mods);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* used when we can directly own the returned string. */
	    /* we have to copy in the case when perl's malloc != gtk's malloc,
	     * so best copy all the time. */
	    sv_setpv ((SV*)RETVALSV, RETVAL);
	    SvUTF8_on (RETVALSV);
	    g_free (RETVAL);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__AccelGroups_activate); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroups_activate)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, object, accel_key, accel_mods");
    {
	GObject *	object = SvGObject (ST(1))
;
	guint	accel_key = (guint)SvUV(ST(2))
;
	GdkModifierType	accel_mods = SvGdkModifierType (ST(3))
;
	gboolean	RETVAL;

	RETVAL = gtk_accel_groups_activate(object, accel_key, accel_mods);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__AccelGroups_from_object); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__AccelGroups_from_object)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, object");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GObject *	object = SvGObject (ST(1))
;
#line 278 "xs/GtkAccelGroup.xs"
	GSList * groups, * i;
#line 604 "xs/GtkAccelGroup.c"
#line 280 "xs/GtkAccelGroup.xs"
	groups = gtk_accel_groups_from_object (object);
	for (i = groups ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkAccelGroup (i->data)));
	/* according to the source, we should not free the list */
#line 610 "xs/GtkAccelGroup.c"
	PUTBACK;
	return;
    }
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__AccelGroup); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__AccelGroup)
{
#if PERL_VERSION_LE(5, 21, 5)
    dVAR; dXSARGS;
#else
    dVAR; dXSBOOTARGSXSAPIVERCHK;
#endif
#if (PERL_REVISION == 5 && PERL_VERSION < 9)
    char* file = __FILE__;
#else
    const char* file = __FILE__;
#endif

    PERL_UNUSED_VAR(file);

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#if PERL_VERSION_LE(5, 21, 5)
    XS_VERSION_BOOTCHECK;
#  ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#  endif
#endif

        newXS_deffile("Gtk2::AccelGroup::new", XS_Gtk2__AccelGroup_new);
        newXS_deffile("Gtk2::AccelGroup::lock", XS_Gtk2__AccelGroup_lock);
        newXS_deffile("Gtk2::AccelGroup::unlock", XS_Gtk2__AccelGroup_unlock);
        newXS_deffile("Gtk2::AccelGroup::connect", XS_Gtk2__AccelGroup_connect);
        newXS_deffile("Gtk2::AccelGroup::connect_by_path", XS_Gtk2__AccelGroup_connect_by_path);
        newXS_deffile("Gtk2::AccelGroup::disconnect", XS_Gtk2__AccelGroup_disconnect);
        newXS_deffile("Gtk2::AccelGroup::disconnect_key", XS_Gtk2__AccelGroup_disconnect_key);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::AccelGroup::get_is_locked", XS_Gtk2__AccelGroup_get_is_locked);
        newXS_deffile("Gtk2::AccelGroup::get_modifier_mask", XS_Gtk2__AccelGroup_get_modifier_mask);
#endif
        newXS_deffile("Gtk2::Accelerator::parse", XS_Gtk2__Accelerator_parse);
        newXS_deffile("Gtk2::Accelerator::name", XS_Gtk2__Accelerator_name);
        newXS_deffile("Gtk2::Accelerator::set_default_mod_mask", XS_Gtk2__Accelerator_set_default_mod_mask);
        newXS_deffile("Gtk2::Accelerator::get_default_mod_mask", XS_Gtk2__Accelerator_get_default_mod_mask);
        newXS_deffile("Gtk2::Accelerator::valid", XS_Gtk2__Accelerator_valid);
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::Accelerator::get_label", XS_Gtk2__Accelerator_get_label);
#endif
        newXS_deffile("Gtk2::AccelGroups::activate", XS_Gtk2__AccelGroups_activate);
        newXS_deffile("Gtk2::AccelGroups::from_object", XS_Gtk2__AccelGroups_from_object);

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#line 672 "xs/GtkAccelGroup.c"

    /* End of Initialisation Section */

#if PERL_VERSION_LE(5, 21, 5)
#  if PERL_VERSION_GE(5, 9, 0)
    if (PL_unitcheckav)
        call_list(PL_scopestack_ix, PL_unitcheckav);
#  endif
    XSRETURN_YES;
#else
    Perl_xs_boot_epilog(aTHX_ ax);
#endif
}

