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

#line 1 "xs/GtkRc.xs"
/*
 * Copyright (c) 2003 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"

#line 34 "xs/GtkRc.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 178 "xs/GtkRc.c"

XS_EUPXS(XS_Gtk2__Rc_add_default_file); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_add_default_file)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, filename");
    {
	GPerlFilename	filename = (GPerlFilename) gperl_filename_from_sv (ST(1))
;

	gtk_rc_add_default_file(filename);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Rc_get_default_files); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_default_files)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 42 "xs/GtkRc.xs"
	gchar **filenames = NULL;
	int i;
#line 208 "xs/GtkRc.c"
#line 45 "xs/GtkRc.xs"
	PERL_UNUSED_VAR (ax);
	filenames = gtk_rc_get_default_files ();
	if (filenames)
		for (i = 0; filenames[i]; i++)
			XPUSHs (sv_2mortal (gperl_sv_from_filename (filenames[i])));
#line 215 "xs/GtkRc.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Rc_set_default_files); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_set_default_files)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "class, ...");
    {
#line 61 "xs/GtkRc.xs"
	gchar **filenames = NULL;
	int i;
#line 232 "xs/GtkRc.c"
#line 64 "xs/GtkRc.xs"
	filenames = g_new0(gchar*, items);

	for( i = 1; i < items; i++ )
		filenames[i - 1] = gperl_filename_from_sv (ST(i));

	gtk_rc_set_default_files(filenames);
	g_free(filenames);
#line 241 "xs/GtkRc.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Rc_get_style); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_style)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, widget");
    {
	GtkWidget *	widget = SvGtkWidget (ST(1))
;
	GtkStyle *	RETVAL;

	RETVAL = gtk_rc_get_style(widget);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStyle (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Rc_get_style_by_paths); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_style_by_paths)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "class, settings, widget_path, class_path, package");
    {
	GtkSettings *	settings = SvGtkSettings (ST(1))
;
	const char *	widget_path = (const char *)SvPV_nolen(ST(2))
;
	const char *	class_path = (const char *)SvPV_nolen(ST(3))
;
	const char *	package = (const char *)SvPV_nolen(ST(4))
;
#line 87 "xs/GtkRc.xs"
	GType gtype = {0,};
#line 287 "xs/GtkRc.c"
	GtkStyle *	RETVAL;
#line 89 "xs/GtkRc.xs"
	gtype = gperl_object_type_from_package (package);
	RETVAL = gtk_rc_get_style_by_paths
			(settings, widget_path, class_path, gtype);
#line 293 "xs/GtkRc.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStyle (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Rc_reparse_all_for_settings); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_reparse_all_for_settings)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, settings, force_load");
    {
	GtkSettings *	settings = SvGtkSettings (ST(1))
;
	gboolean	force_load = (bool)SvTRUE(ST(2))
;
	gboolean	RETVAL;

	RETVAL = gtk_rc_reparse_all_for_settings(settings, force_load);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Rc_reset_styles); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_reset_styles)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, settings");
    {
	GtkSettings *	settings = SvGtkSettings (ST(1))
;

	gtk_rc_reset_styles(settings);
    }
    XSRETURN_EMPTY;
}

#endif

XS_EUPXS(XS_Gtk2__Rc_parse); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_parse)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, filename");
    {
	GPerlFilename	filename = (GPerlFilename) gperl_filename_from_sv (ST(1))
;

	gtk_rc_parse(filename);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Rc_parse_string); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_parse_string)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, rc_string");
    {
	const gchar *	rc_string;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	rc_string = (const gchar *)SvPV_nolen (ST(1))
;

	gtk_rc_parse_string(rc_string);
    }
    XSRETURN_EMPTY;
}


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

	RETVAL = gtk_rc_reparse_all(/* void */);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_rc_get_theme_dir(/* void */);
	{
	    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__Rc_get_module_dir); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_module_dir)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gchar_own *	RETVAL;

	RETVAL = gtk_rc_get_module_dir(/* void */);
	{
	    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__Rc_get_im_module_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_im_module_path)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gchar_own *	RETVAL;

	RETVAL = gtk_rc_get_im_module_path(/* void */);
	{
	    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__Rc_get_im_module_file); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Rc_get_im_module_file)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gchar_own *	RETVAL;

	RETVAL = gtk_rc_get_im_module_file(/* void */);
	{
	    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__RcStyle_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__RcStyle_name)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 1 || items > 2)
       croak_xs_usage(cv,  "style, new=NULL");
    {
	GtkRcStyle *	style = SvGtkRcStyle (ST(0))
;
	SV *	new;
	SV *	RETVAL;

	if (items < 2)
	    new = NULL;
	else {
	    new = ST(1)
;
	}
#line 184 "xs/GtkRc.xs"
	switch (ix) {
		case 0: RETVAL = newSVGChar (style->name); break;
		case 1: RETVAL = newSVPangoFontDescription (style->font_desc); break;
		case 2: RETVAL = newSViv (style->xthickness); break;
		case 3: RETVAL = newSViv (style->ythickness); break;
		default:
			RETVAL = NULL;
			g_assert_not_reached ();
	}

	if (items == 2) {
		switch (ix) {
		    case 0:
			if (style->name)
				g_free (style->name);
			style->name = gperl_sv_is_defined (new)
			            ? g_strdup (SvGChar (new))
				    : NULL;
			break;
		    case 1:
			if (style->font_desc)
				pango_font_description_free (style->font_desc);
			style->font_desc = gperl_sv_is_defined (new)
			                 ? SvPangoFontDescription (new)
					 : NULL;
			if (style->font_desc)
				style->font_desc = pango_font_description_copy
							(style->font_desc);
			break;
		    case 2: style->xthickness = SvIV (new); break;
		    case 3: style->ythickness = SvIV (new); break;
		    default:
			g_assert_not_reached ();
		}
	}
#line 556 "xs/GtkRc.c"
	RETVAL = sv_2mortal(RETVAL);
	ST(0) = RETVAL;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__RcStyle_bg_pixmap_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__RcStyle_bg_pixmap_name)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "style, state, new=NULL");
    {
	GtkRcStyle *	style = SvGtkRcStyle (ST(0))
;
	GtkStateType	state = SvGtkStateType (ST(1))
;
	gchar_ornull *	new;
	SV *	RETVAL;

	if (items < 3)
	    new = NULL;
	else {
	    /* same as SvGChar(), but allows undef as NULL */
	    if (gperl_sv_is_defined (ST(2))) {
		    sv_utf8_upgrade (ST(2));
		    new = (gchar_ornull *)SvPV_nolen (ST(2));
	    } else {
		    new = NULL;
	    }
;
	}
#line 228 "xs/GtkRc.xs"
	RETVAL = style->bg_pixmap_name[state]
	       ? newSVGChar (style->bg_pixmap_name[state])
	       : NULL;
	if (items == 3) {
		if (style->bg_pixmap_name[state])
			g_free (style->bg_pixmap_name[state]);
		style->bg_pixmap_name[state] = new ? g_strdup (new) : NULL;
	}
#line 599 "xs/GtkRc.c"
	RETVAL = sv_2mortal(RETVAL);
	ST(0) = RETVAL;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__RcStyle_color_flags); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__RcStyle_color_flags)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "style, state, new=0");
    {
	GtkRcStyle *	style = SvGtkRcStyle (ST(0))
;
	GtkStateType	state = SvGtkStateType (ST(1))
;
	GtkRcFlags	new;
	GtkRcFlags	RETVAL;

	if (items < 3)
	    new = 0;
	else {
	    new = SvGtkRcFlags (ST(2))
;
	}
#line 245 "xs/GtkRc.xs"
	RETVAL = style->color_flags[state];
	if (items == 3)
		style->color_flags[state] = new;
#line 631 "xs/GtkRc.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkRcFlags (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__RcStyle_fg); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__RcStyle_fg)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "style, state, new=NULL");
    {
	GtkRcStyle *	style = SvGtkRcStyle (ST(0))
;
	GtkStateType	state = SvGtkStateType (ST(1))
;
	GdkColor_ornull *	new;
	GdkColor_copy *	RETVAL;

	if (items < 3)
	    new = NULL;
	else {
	    new = SvGdkColor_ornull (ST(2))
;
	}
#line 261 "xs/GtkRc.xs"
	switch (ix) {
		case 0: RETVAL = &(style->fg[state]); break;
		case 1: RETVAL = &(style->bg[state]); break;
		case 2: RETVAL = &(style->text[state]); break;
		case 3: RETVAL = &(style->base[state]); break;
		default:
			RETVAL = NULL;
			g_assert_not_reached ();
	}

	if (items == 3) {
		switch (ix) {
			case 0: style->fg[state]   = *new; break;
			case 1: style->bg[state]   = *new; break;
			case 2: style->text[state] = *new; break;
			case 3: style->base[state] = *new; break;
			default:
				g_assert_not_reached ();
		}
	}
#line 685 "xs/GtkRc.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColor_copy (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


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

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


XS_EUPXS(XS_Gtk2__RcStyle_copy); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__RcStyle_copy)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "orig");
    {
	GtkRcStyle *	orig = SvGtkRcStyle (ST(0))
;
	GtkRcStyle_noinc *	RETVAL;

	RETVAL = gtk_rc_style_copy(orig);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkRcStyle_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__Rc); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__Rc)
{
#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::Rc::add_default_file", XS_Gtk2__Rc_add_default_file);
        newXS_deffile("Gtk2::Rc::get_default_files", XS_Gtk2__Rc_get_default_files);
        newXS_deffile("Gtk2::Rc::set_default_files", XS_Gtk2__Rc_set_default_files);
        newXS_deffile("Gtk2::Rc::get_style", XS_Gtk2__Rc_get_style);
        newXS_deffile("Gtk2::Rc::get_style_by_paths", XS_Gtk2__Rc_get_style_by_paths);
        newXS_deffile("Gtk2::Rc::reparse_all_for_settings", XS_Gtk2__Rc_reparse_all_for_settings);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::Rc::reset_styles", XS_Gtk2__Rc_reset_styles);
#endif
        newXS_deffile("Gtk2::Rc::parse", XS_Gtk2__Rc_parse);
        newXS_deffile("Gtk2::Rc::parse_string", XS_Gtk2__Rc_parse_string);
        newXS_deffile("Gtk2::Rc::reparse_all", XS_Gtk2__Rc_reparse_all);
        newXS_deffile("Gtk2::Rc::get_theme_dir", XS_Gtk2__Rc_get_theme_dir);
        newXS_deffile("Gtk2::Rc::get_module_dir", XS_Gtk2__Rc_get_module_dir);
        newXS_deffile("Gtk2::Rc::get_im_module_path", XS_Gtk2__Rc_get_im_module_path);
        newXS_deffile("Gtk2::Rc::get_im_module_file", XS_Gtk2__Rc_get_im_module_file);
        cv = newXS_deffile("Gtk2::RcStyle::font_desc", XS_Gtk2__RcStyle_name);
        XSANY.any_i32 = 1;
        cv = newXS_deffile("Gtk2::RcStyle::name", XS_Gtk2__RcStyle_name);
        XSANY.any_i32 = 0;
        cv = newXS_deffile("Gtk2::RcStyle::xthickness", XS_Gtk2__RcStyle_name);
        XSANY.any_i32 = 2;
        cv = newXS_deffile("Gtk2::RcStyle::ythickness", XS_Gtk2__RcStyle_name);
        XSANY.any_i32 = 3;
        newXS_deffile("Gtk2::RcStyle::bg_pixmap_name", XS_Gtk2__RcStyle_bg_pixmap_name);
        newXS_deffile("Gtk2::RcStyle::color_flags", XS_Gtk2__RcStyle_color_flags);
        cv = newXS_deffile("Gtk2::RcStyle::base", XS_Gtk2__RcStyle_fg);
        XSANY.any_i32 = 3;
        cv = newXS_deffile("Gtk2::RcStyle::bg", XS_Gtk2__RcStyle_fg);
        XSANY.any_i32 = 1;
        cv = newXS_deffile("Gtk2::RcStyle::fg", XS_Gtk2__RcStyle_fg);
        XSANY.any_i32 = 0;
        cv = newXS_deffile("Gtk2::RcStyle::text", XS_Gtk2__RcStyle_fg);
        XSANY.any_i32 = 2;
        newXS_deffile("Gtk2::RcStyle::new", XS_Gtk2__RcStyle_new);
        newXS_deffile("Gtk2::RcStyle::copy", XS_Gtk2__RcStyle_copy);

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#line 809 "xs/GtkRc.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
}

