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

#line 1 "xs/GtkSourceView.xs"
/*
 * Copyright (c) 2009-2010 by Emmanuel Rodriguez (see the file AUTHORS)
 *
 * This library 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; or the
 * Artistic License, version 2.0.
 *
 * 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
 * General Public License for more details; or the Artistic License.
 *
 * 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.
 */

#include "gtk2-sourceview2-perl.h"

#line 33 "xs/GtkSourceView.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 177 "xs/GtkSourceView.c"

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

	RETVAL = gtk_source_view_new(/* No args */);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkWidget (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_new_with_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_new_with_buffer)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, buffer");
    {
	GtkWidget *	RETVAL;
	GtkSourceBuffer *	buffer = SvGtkSourceBuffer (ST(1))
;

	RETVAL = gtk_source_view_new_with_buffer(buffer);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkWidget (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_line_numbers); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_line_numbers)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, show");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	show = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_show_line_numbers(view, show);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_line_numbers); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_line_numbers)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_show_line_numbers(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_tab_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_tab_width)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, width");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	guint	width = (guint)SvUV(ST(1))
;

	gtk_source_view_set_tab_width(view, width);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_tab_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_tab_width)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	guint	RETVAL;
	dXSTARG;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_tab_width(view);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_indent_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_indent_width)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, width");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gint	width = (gint)SvIV(ST(1))
;

	gtk_source_view_set_indent_width(view, width);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_indent_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_indent_width)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_indent_width(view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_auto_indent); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_auto_indent)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, enable");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	enable = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_auto_indent(view, enable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_auto_indent); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_auto_indent)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_auto_indent(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_insert_spaces_instead_of_tabs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_insert_spaces_instead_of_tabs)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, enable");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	enable = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_insert_spaces_instead_of_tabs(view, enable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_insert_spaces_instead_of_tabs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_insert_spaces_instead_of_tabs)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_insert_spaces_instead_of_tabs(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_indent_on_tab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_indent_on_tab)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, enable");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	enable = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_indent_on_tab(view, enable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_indent_on_tab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_indent_on_tab)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_indent_on_tab(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_highlight_current_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_highlight_current_line)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, show");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	show = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_highlight_current_line(view, show);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_highlight_current_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_highlight_current_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_highlight_current_line(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_right_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_right_margin)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, show");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	show = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_show_right_margin(view, show);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_right_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_right_margin)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_show_right_margin(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_right_margin_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_right_margin_position)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, pos");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	guint	pos = (guint)SvUV(ST(1))
;

	gtk_source_view_set_right_margin_position(view, pos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_right_margin_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_right_margin_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	guint	RETVAL;
	dXSTARG;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_right_margin_position(view);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_line_marks); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_show_line_marks)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, show");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	gboolean	show = (bool)SvTRUE(ST(1))
;

	gtk_source_view_set_show_line_marks(view, show);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_line_marks); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_show_line_marks)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	gboolean	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_show_line_marks(view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "view, category, pixbuf");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;
	GdkPixbuf_ornull *	pixbuf = SvGdkPixbuf_ornull (ST(2))
;

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

	gtk_source_view_set_mark_category_pixbuf(view, category, pixbuf);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, category");
    {
	GdkPixbuf_ornull *	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;

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

	RETVAL = gtk_source_view_get_mark_category_pixbuf(view, category);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixbuf_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_background); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_background)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "view, category, color");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;
	const GdkColor_ornull *	color = SvGdkColor_ornull (ST(2))
;

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

	gtk_source_view_set_mark_category_background(view, category, color);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_background); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_background)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, category");
    {
#line 118 "xs/GtkSourceView.xs"
		GdkColor color;

#line 673 "xs/GtkSourceView.c"
	GdkColor_copy *	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	category = (const gchar *)SvPV_nolen (ST(1))
;
#line 121 "xs/GtkSourceView.xs"
		gtk_source_view_get_mark_category_background(view, category, &color);
		RETVAL = &color;

#line 687 "xs/GtkSourceView.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColor_copy (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_priority); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_mark_category_priority)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "view, category, priority");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;
	gint	priority = (gint)SvIV(ST(2))
;

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

	gtk_source_view_set_mark_category_priority(view, category, priority);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_priority); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_mark_category_priority)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, category");
    {
	gint	RETVAL;
	dXSTARG;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	const gchar *	category;

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

	RETVAL = gtk_source_view_get_mark_category_priority(view, category);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_smart_home_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_smart_home_end)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, smart_he");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	GtkSourceSmartHomeEndType	smart_he = SvGtkSourceSmartHomeEndType (ST(1))
;

	gtk_source_view_set_smart_home_end(view, smart_he);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_smart_home_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_smart_home_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	GtkSourceSmartHomeEndType	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_smart_home_end(view);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkSourceSmartHomeEndType (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__SourceView2__View_set_draw_spaces); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_set_draw_spaces)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "view, flags");
    {
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;
	GtkSourceDrawSpacesFlags	flags = SvGtkSourceDrawSpacesFlags (ST(1))
;

	gtk_source_view_set_draw_spaces(view, flags);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__SourceView2__View_get_draw_spaces); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__SourceView2__View_get_draw_spaces)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "view");
    {
	GtkSourceDrawSpacesFlags	RETVAL;
	GtkSourceView *	view = SvGtkSourceView (ST(0))
;

	RETVAL = gtk_source_view_get_draw_spaces(view);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkSourceDrawSpacesFlags (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__SourceView2__View); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__SourceView2__View)
{
#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::SourceView2::View::new", XS_Gtk2__SourceView2__View_new);
        newXS_deffile("Gtk2::SourceView2::View::new_with_buffer", XS_Gtk2__SourceView2__View_new_with_buffer);
        newXS_deffile("Gtk2::SourceView2::View::set_show_line_numbers", XS_Gtk2__SourceView2__View_set_show_line_numbers);
        newXS_deffile("Gtk2::SourceView2::View::get_show_line_numbers", XS_Gtk2__SourceView2__View_get_show_line_numbers);
        newXS_deffile("Gtk2::SourceView2::View::set_tab_width", XS_Gtk2__SourceView2__View_set_tab_width);
        newXS_deffile("Gtk2::SourceView2::View::get_tab_width", XS_Gtk2__SourceView2__View_get_tab_width);
        newXS_deffile("Gtk2::SourceView2::View::set_indent_width", XS_Gtk2__SourceView2__View_set_indent_width);
        newXS_deffile("Gtk2::SourceView2::View::get_indent_width", XS_Gtk2__SourceView2__View_get_indent_width);
        newXS_deffile("Gtk2::SourceView2::View::set_auto_indent", XS_Gtk2__SourceView2__View_set_auto_indent);
        newXS_deffile("Gtk2::SourceView2::View::get_auto_indent", XS_Gtk2__SourceView2__View_get_auto_indent);
        newXS_deffile("Gtk2::SourceView2::View::set_insert_spaces_instead_of_tabs", XS_Gtk2__SourceView2__View_set_insert_spaces_instead_of_tabs);
        newXS_deffile("Gtk2::SourceView2::View::get_insert_spaces_instead_of_tabs", XS_Gtk2__SourceView2__View_get_insert_spaces_instead_of_tabs);
        newXS_deffile("Gtk2::SourceView2::View::set_indent_on_tab", XS_Gtk2__SourceView2__View_set_indent_on_tab);
        newXS_deffile("Gtk2::SourceView2::View::get_indent_on_tab", XS_Gtk2__SourceView2__View_get_indent_on_tab);
        newXS_deffile("Gtk2::SourceView2::View::set_highlight_current_line", XS_Gtk2__SourceView2__View_set_highlight_current_line);
        newXS_deffile("Gtk2::SourceView2::View::get_highlight_current_line", XS_Gtk2__SourceView2__View_get_highlight_current_line);
        newXS_deffile("Gtk2::SourceView2::View::set_show_right_margin", XS_Gtk2__SourceView2__View_set_show_right_margin);
        newXS_deffile("Gtk2::SourceView2::View::get_show_right_margin", XS_Gtk2__SourceView2__View_get_show_right_margin);
        newXS_deffile("Gtk2::SourceView2::View::set_right_margin_position", XS_Gtk2__SourceView2__View_set_right_margin_position);
        newXS_deffile("Gtk2::SourceView2::View::get_right_margin_position", XS_Gtk2__SourceView2__View_get_right_margin_position);
        newXS_deffile("Gtk2::SourceView2::View::set_show_line_marks", XS_Gtk2__SourceView2__View_set_show_line_marks);
        newXS_deffile("Gtk2::SourceView2::View::get_show_line_marks", XS_Gtk2__SourceView2__View_get_show_line_marks);
        newXS_deffile("Gtk2::SourceView2::View::set_mark_category_pixbuf", XS_Gtk2__SourceView2__View_set_mark_category_pixbuf);
        newXS_deffile("Gtk2::SourceView2::View::get_mark_category_pixbuf", XS_Gtk2__SourceView2__View_get_mark_category_pixbuf);
        newXS_deffile("Gtk2::SourceView2::View::set_mark_category_background", XS_Gtk2__SourceView2__View_set_mark_category_background);
        newXS_deffile("Gtk2::SourceView2::View::get_mark_category_background", XS_Gtk2__SourceView2__View_get_mark_category_background);
        newXS_deffile("Gtk2::SourceView2::View::set_mark_category_priority", XS_Gtk2__SourceView2__View_set_mark_category_priority);
        newXS_deffile("Gtk2::SourceView2::View::get_mark_category_priority", XS_Gtk2__SourceView2__View_get_mark_category_priority);
        newXS_deffile("Gtk2::SourceView2::View::set_smart_home_end", XS_Gtk2__SourceView2__View_set_smart_home_end);
        newXS_deffile("Gtk2::SourceView2::View::get_smart_home_end", XS_Gtk2__SourceView2__View_get_smart_home_end);
        newXS_deffile("Gtk2::SourceView2::View::set_draw_spaces", XS_Gtk2__SourceView2__View_set_draw_spaces);
        newXS_deffile("Gtk2::SourceView2::View::get_draw_spaces", XS_Gtk2__SourceView2__View_get_draw_spaces);
#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
}

