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

#line 1 "xs/GtkIconView.xs"
/*
 * Copyright (c) 2004-2005, 2009 by the gtk2-perl team (see the file AUTHORS)
 *
 * Licensed under the LGPL, see LICENSE file for more information.
 *
 * $Id$
 */
#include "gtk2perl.h"

static GPerlCallback *
gtk2perl_icon_view_foreach_func_create (SV * func, SV * data)
{
	GType param_types [2];
	param_types[0] = GTK_TYPE_ICON_VIEW;
	param_types[1] = GTK_TYPE_TREE_PATH;
	return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
				   param_types, G_TYPE_NONE);
}
static void
gtk2perl_icon_view_foreach_func (GtkIconView      *icon_view,
				 GtkTreePath      *path,
				 gpointer          data)
{
	gperl_callback_invoke ((GPerlCallback*) data, NULL, icon_view, path);
}


#line 38 "xs/GtkIconView.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(pTHX_ const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(pTHX_ 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(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
        else
            Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
        Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#ifdef PERL_IMPLICIT_CONTEXT
#define croak_xs_usage(a,b)    S_croak_xs_usage(aTHX_ a,b)
#else
#define croak_xs_usage        S_croak_xs_usage
#endif

#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) */

#line 180 "xs/GtkIconView.c"

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

	RETVAL = gtk_icon_view_new(/* void */);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_new_with_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_new_with_model)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, model");
    {
	GtkTreeModel *	model = SvGtkTreeModel (ST(1))
;
	GtkWidget *	RETVAL;

	RETVAL = gtk_icon_view_new_with_model(model);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_model)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, model");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreeModel *	model = SvGtkTreeModel (ST(1))
;

	gtk_icon_view_set_model(icon_view, model);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_model)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkTreeModel *	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_model(icon_view);
	ST(0) = newSVGtkTreeModel (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_text_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_text_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, column");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_text_column(icon_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_text_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_text_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_text_column(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_markup_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_markup_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, column");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_markup_column(icon_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_markup_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_markup_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_markup_column(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_pixbuf_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_pixbuf_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, column");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_pixbuf_column(icon_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_pixbuf_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_pixbuf_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_pixbuf_column(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_orientation)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, orientation");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkOrientation	orientation = SvGtkOrientation (ST(1))
;

	gtk_icon_view_set_orientation(icon_view, orientation);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_orientation)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkOrientation	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_orientation(icon_view);
	ST(0) = newSVGtkOrientation (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_columns); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_columns)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, columns");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	columns = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_columns(icon_view, columns);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_columns); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_columns)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_columns(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_item_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_item_width)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, item_width");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	item_width = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_item_width(icon_view, item_width);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_item_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_width)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_item_width(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, spacing");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	spacing = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_spacing(icon_view, spacing);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_spacing)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_spacing(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_row_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_row_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, row_spacing");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	row_spacing = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_row_spacing(icon_view, row_spacing);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_row_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_row_spacing)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_row_spacing(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_column_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_column_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, column_spacing");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	column_spacing = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_column_spacing(icon_view, column_spacing);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_column_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_column_spacing)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_column_spacing(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_margin)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, margin");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	margin = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_margin(icon_view, margin);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_margin)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_margin(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_get_path_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_path_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, x, y");
    {
	GtkTreePath_own *	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;

	RETVAL = gtk_icon_view_get_path_at_pos(icon_view, x, y);
	ST(0) = newSVGtkTreePath_own (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_selected_foreach); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_selected_foreach)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "icon_view, func, data=NULL");
    {
#line 89 "xs/GtkIconView.xs"
	GPerlCallback * callback;
#line 657 "xs/GtkIconView.c"
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 91 "xs/GtkIconView.xs"
	callback = gtk2perl_icon_view_foreach_func_create (func, data);
	gtk_icon_view_selected_foreach (icon_view,
					gtk2perl_icon_view_foreach_func,
					callback);
	gperl_callback_destroy (callback);
#line 676 "xs/GtkIconView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_set_selection_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_selection_mode)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, mode");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkSelectionMode	mode = SvGtkSelectionMode (ST(1))
;

	gtk_icon_view_set_selection_mode(icon_view, mode);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_selection_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_selection_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkSelectionMode	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_selection_mode(icon_view);
	ST(0) = newSVGtkSelectionMode (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_select_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_select_path)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	gtk_icon_view_select_path(icon_view, path);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_unselect_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_unselect_path)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	gtk_icon_view_unselect_path(icon_view, path);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_path_is_selected); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_path_is_selected)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	gboolean	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	RETVAL = gtk_icon_view_path_is_selected(icon_view, path);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_get_selected_items); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_selected_items)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 112 "xs/GtkIconView.xs"
	GList * list;
#line 786 "xs/GtkIconView.c"
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
#line 114 "xs/GtkIconView.xs"
	list = gtk_icon_view_get_selected_items (icon_view);
	if (list)
	{
		GList * curr;

		for (curr = list; curr; curr = g_list_next (curr))
			XPUSHs (sv_2mortal (newSVGtkTreePath_own (curr->data)));

		g_list_free (list);
	}
	else
		XSRETURN_EMPTY;
#line 802 "xs/GtkIconView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__IconView_select_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_select_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	gtk_icon_view_select_all(icon_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_unselect_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_unselect_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	gtk_icon_view_unselect_all(icon_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_item_activated); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_item_activated)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	gtk_icon_view_item_activated(icon_view, path);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__IconView_get_cursor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_cursor)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
#line 140 "xs/GtkIconView.xs"
	GtkTreePath *path = NULL;
	GtkCellRenderer *cell = NULL;
#line 876 "xs/GtkIconView.c"
#line 143 "xs/GtkIconView.xs"
	if (!gtk_icon_view_get_cursor (icon_view, &path, &cell))
		XSRETURN_EMPTY;
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkCellRenderer (cell)));
#line 883 "xs/GtkIconView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__IconView_set_cursor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_cursor)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "icon_view, path, cell, start_editing");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	GtkCellRenderer_ornull *	cell = SvGtkCellRenderer_ornull (ST(2))
;
	gboolean	start_editing = (bool)SvTRUE(ST(3))
;

	gtk_icon_view_set_cursor(icon_view, path, cell, start_editing);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_item_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, x, y");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
#line 158 "xs/GtkIconView.xs"
	GtkTreePath *path = NULL;
	GtkCellRenderer *cell = NULL;
#line 928 "xs/GtkIconView.c"
#line 161 "xs/GtkIconView.xs"
	/* Note gtk_icon_view_get_item_at_pos() can call out to perl model
	   and/or cell renderer code when figuring sizes, so avoid local
	   SP. */
	if (!gtk_icon_view_get_item_at_pos (icon_view, x, y, &path, &cell))
		XSRETURN_EMPTY;
	ST(0) = sv_2mortal (newSVGtkTreePath_own (path));
	ST(1) = sv_2mortal (newSVGtkCellRenderer (cell));
	XSRETURN(2);
#line 938 "xs/GtkIconView.c"
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_get_visible_range); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_visible_range)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
#line 176 "xs/GtkIconView.xs"
	GtkTreePath *start_path = NULL, *end_path = NULL;
#line 957 "xs/GtkIconView.c"
#line 178 "xs/GtkIconView.xs"
	if (!gtk_icon_view_get_visible_range(icon_view, &start_path, &end_path))
		XSRETURN_EMPTY;
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (start_path)));
	PUSHs (sv_2mortal (newSVGtkTreePath_own (end_path)));
#line 964 "xs/GtkIconView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__IconView_scroll_to_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_scroll_to_path)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 5)
       croak_xs_usage(cv,  "icon_view, path, use_align=FALSE, row_align=0.0, col_align=0.0");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	gboolean	use_align;
	gfloat	row_align;
	gfloat	col_align;

	if (items < 3)
	    use_align = FALSE;
	else {
	    use_align = (bool)SvTRUE(ST(2))
;
	}

	if (items < 4)
	    row_align = 0.0;
	else {
	    row_align = (float)SvNV(ST(3))
;
	}

	if (items < 5)
	    col_align = 0.0;
	else {
	    col_align = (float)SvNV(ST(4))
;
	}

	gtk_icon_view_scroll_to_path(icon_view, path, use_align, row_align, col_align);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_enable_model_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_enable_model_drag_source)
{
    dVAR; dXSARGS;
    if (items < 3)
       croak_xs_usage(cv,  "icon_view, start_button_mask, actions, ...");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GdkModifierType	start_button_mask = SvGdkModifierType (ST(1))
;
	GdkDragAction	actions = SvGdkDragAction (ST(2))
;
#line 196 "xs/GtkIconView.xs"
	GtkTargetEntry * targets = NULL;
	gint n_targets, i;
#line 1029 "xs/GtkIconView.c"
#line 199 "xs/GtkIconView.xs"
#define FIRST_TARGET 3
	n_targets = items - FIRST_TARGET;
	targets = g_new (GtkTargetEntry, n_targets);
	for (i = 0 ; i < n_targets ; i++)
		gtk2perl_read_gtk_target_entry (ST (i+FIRST_TARGET), targets+i);
	gtk_icon_view_enable_model_drag_source (icon_view, start_button_mask,
	                                        targets, n_targets, actions);
#undef FIRST_TARGET
#line 1039 "xs/GtkIconView.c"
#line 208 "xs/GtkIconView.xs"
	g_free (targets);
#line 1042 "xs/GtkIconView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_enable_model_drag_dest); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_enable_model_drag_dest)
{
    dVAR; dXSARGS;
    if (items < 2)
       croak_xs_usage(cv,  "icon_view, actions, ...");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GdkDragAction	actions = SvGdkDragAction (ST(1))
;
#line 219 "xs/GtkIconView.xs"
	GtkTargetEntry * targets = NULL;
	gint n_targets, i;
#line 1062 "xs/GtkIconView.c"
#line 222 "xs/GtkIconView.xs"
#define FIRST_TARGET 2
	n_targets = items - FIRST_TARGET;
	targets = g_new (GtkTargetEntry, n_targets);
	for (i = 0 ; i < n_targets ; i++)
		gtk2perl_read_gtk_target_entry (ST (i+FIRST_TARGET), targets+i);
	gtk_icon_view_enable_model_drag_dest (icon_view, targets, n_targets,
	                                      actions);
#undef FIRST_TARGET
#line 1072 "xs/GtkIconView.c"
#line 231 "xs/GtkIconView.xs"
	g_free (targets);
#line 1075 "xs/GtkIconView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_unset_model_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_unset_model_drag_source)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	gtk_icon_view_unset_model_drag_source(icon_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_unset_model_drag_dest); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_unset_model_drag_dest)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	gtk_icon_view_unset_model_drag_dest(icon_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_set_reorderable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_reorderable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, reorderable");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gboolean	reorderable = (bool)SvTRUE(ST(1))
;

	gtk_icon_view_set_reorderable(icon_view, reorderable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_reorderable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_reorderable)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gboolean	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_reorderable(icon_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_drag_dest_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_drag_dest_item)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, path, pos");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	GtkIconViewDropPosition	pos = SvGtkIconViewDropPosition (ST(2))
;

	gtk_icon_view_set_drag_dest_item(icon_view, path, pos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_drag_dest_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_drag_dest_item)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 247 "xs/GtkIconView.xs"
	GtkTreePath *path = NULL;
	GtkIconViewDropPosition pos;
#line 1181 "xs/GtkIconView.c"
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
#line 250 "xs/GtkIconView.xs"
	gtk_icon_view_get_drag_dest_item (icon_view, &path, &pos);
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkIconViewDropPosition (pos)));
#line 1189 "xs/GtkIconView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__IconView_get_dest_item_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_dest_item_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, drag_x, drag_y");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	drag_x = (gint)SvIV(ST(1))
;
	gint	drag_y = (gint)SvIV(ST(2))
;
#line 262 "xs/GtkIconView.xs"
	GtkTreePath *path = NULL;
	GtkIconViewDropPosition pos;
#line 1212 "xs/GtkIconView.c"
#line 265 "xs/GtkIconView.xs"
	/* Note gtk_icon_view_get_dest_item_at_pos() may call out to perl
	   model and/or cell renderer code when figuring cell sizes (in
	   gtk_icon_view_get_item_at_coords()), so avoid local SP. */
	if (!gtk_icon_view_get_dest_item_at_pos (icon_view, drag_x, drag_y, &path, &pos))
		XSRETURN_EMPTY;
	ST(0) = sv_2mortal (newSVGtkTreePath_own (path));
	ST(1) = sv_2mortal (newSVGtkIconViewDropPosition (pos));
	XSRETURN(2);
#line 1222 "xs/GtkIconView.c"
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_create_drag_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_create_drag_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	GdkPixmap_noinc *	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	RETVAL = gtk_icon_view_create_drag_icon(icon_view, path);
	ST(0) = newSVGdkPixmap_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif /* 2.8.0 */
#if GTK_CHECK_VERSION (2, 12, 0)
#define XSubPPtmpAAAB 1


XS_EUPXS(XS_Gtk2__IconView_convert_widget_to_bin_window_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_convert_widget_to_bin_window_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, wx, wy");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	wx = (gint)SvIV(ST(1))
;
	gint	wy = (gint)SvIV(ST(2))
;
	gint	bx;
	gint	by;

	gtk_icon_view_convert_widget_to_bin_window_coords(icon_view, wx, wy, &bx, &by);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)bx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)by);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__IconView_set_tooltip_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_tooltip_item)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "icon_view, tooltip, path");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTooltip *	tooltip = SvGtkTooltip (ST(1))
;
	GtkTreePath *	path = SvGtkTreePath (ST(2))
;

	gtk_icon_view_set_tooltip_item(icon_view, tooltip, path);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_set_tooltip_cell); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_tooltip_cell)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "icon_view, tooltip, path, cell");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTooltip *	tooltip = SvGtkTooltip (ST(1))
;
	GtkTreePath *	path = SvGtkTreePath (ST(2))
;
	GtkCellRenderer *	cell = SvGtkCellRenderer (ST(3))
;

	gtk_icon_view_set_tooltip_cell(icon_view, tooltip, path, cell);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_tooltip_context); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_tooltip_context)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "icon_view, x, y, keyboard_tip");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 290 "xs/GtkIconView.xs"
	GtkTreeModel *model = NULL;
	GtkTreePath *path = NULL;
	GtkTreeIter iter = {0, };
#line 1335 "xs/GtkIconView.c"
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
	gboolean	keyboard_tip = (bool)SvTRUE(ST(3))
;
#line 294 "xs/GtkIconView.xs"
	/* PUTBACK/SPAGAIN because gtk_icon_view_get_tooltip_context() calls
	   gtk_tree_model_get_iter(), which may reach a perl code model. */
	PUTBACK;
	if (! gtk_icon_view_get_tooltip_context (icon_view, &x, &y, keyboard_tip, &model, &path, &iter))
		XSRETURN_EMPTY;
	SPAGAIN;
	EXTEND (sp, 5);
	PUSHs (sv_2mortal (newSViv (x)));
	PUSHs (sv_2mortal (newSViv (y)));
	PUSHs (sv_2mortal (newSVGtkTreeModel (model)));
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkTreeIter_copy (&iter)));
#line 1357 "xs/GtkIconView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__IconView_set_tooltip_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_tooltip_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, column");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_tooltip_column(icon_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_tooltip_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_tooltip_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_tooltip_column(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

#endif
#if GTK_CHECK_VERSION (2, 18, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gtk2__IconView_set_item_padding); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_item_padding)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, item_padding");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	gint	item_padding = (gint)SvIV(ST(1))
;

	gtk_icon_view_set_item_padding(icon_view, item_padding);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_item_padding); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_padding)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_item_padding(icon_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

#endif
#if GTK_CHECK_VERSION (2, 22, 0)
#define XSubPPtmpAAAD 1


XS_EUPXS(XS_Gtk2__IconView_get_item_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_row)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	RETVAL = gtk_icon_view_get_item_row(icon_view, path);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_get_item_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, path");
    {
	gint	RETVAL;
	dXSTARG;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	RETVAL = gtk_icon_view_get_item_column(icon_view, path);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__IconView_set_item_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_set_item_orientation)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "icon_view, orientation");
    {
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;
	GtkOrientation	orientation = SvGtkOrientation (ST(1))
;

	gtk_icon_view_set_item_orientation(icon_view, orientation);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__IconView_get_item_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__IconView_get_item_orientation)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "icon_view");
    {
	GtkOrientation	RETVAL;
	GtkIconView *	icon_view = SvGtkIconView (ST(0))
;

	RETVAL = gtk_icon_view_get_item_orientation(icon_view);
	ST(0) = newSVGtkOrientation (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#endif
    XS_VERSION_BOOTCHECK;

        newXS("Gtk2::IconView::new", XS_Gtk2__IconView_new, file);
        newXS("Gtk2::IconView::new_with_model", XS_Gtk2__IconView_new_with_model, file);
        newXS("Gtk2::IconView::set_model", XS_Gtk2__IconView_set_model, file);
        newXS("Gtk2::IconView::get_model", XS_Gtk2__IconView_get_model, file);
        newXS("Gtk2::IconView::set_text_column", XS_Gtk2__IconView_set_text_column, file);
        newXS("Gtk2::IconView::get_text_column", XS_Gtk2__IconView_get_text_column, file);
        newXS("Gtk2::IconView::set_markup_column", XS_Gtk2__IconView_set_markup_column, file);
        newXS("Gtk2::IconView::get_markup_column", XS_Gtk2__IconView_get_markup_column, file);
        newXS("Gtk2::IconView::set_pixbuf_column", XS_Gtk2__IconView_set_pixbuf_column, file);
        newXS("Gtk2::IconView::get_pixbuf_column", XS_Gtk2__IconView_get_pixbuf_column, file);
        newXS("Gtk2::IconView::set_orientation", XS_Gtk2__IconView_set_orientation, file);
        newXS("Gtk2::IconView::get_orientation", XS_Gtk2__IconView_get_orientation, file);
        newXS("Gtk2::IconView::set_columns", XS_Gtk2__IconView_set_columns, file);
        newXS("Gtk2::IconView::get_columns", XS_Gtk2__IconView_get_columns, file);
        newXS("Gtk2::IconView::set_item_width", XS_Gtk2__IconView_set_item_width, file);
        newXS("Gtk2::IconView::get_item_width", XS_Gtk2__IconView_get_item_width, file);
        newXS("Gtk2::IconView::set_spacing", XS_Gtk2__IconView_set_spacing, file);
        newXS("Gtk2::IconView::get_spacing", XS_Gtk2__IconView_get_spacing, file);
        newXS("Gtk2::IconView::set_row_spacing", XS_Gtk2__IconView_set_row_spacing, file);
        newXS("Gtk2::IconView::get_row_spacing", XS_Gtk2__IconView_get_row_spacing, file);
        newXS("Gtk2::IconView::set_column_spacing", XS_Gtk2__IconView_set_column_spacing, file);
        newXS("Gtk2::IconView::get_column_spacing", XS_Gtk2__IconView_get_column_spacing, file);
        newXS("Gtk2::IconView::set_margin", XS_Gtk2__IconView_set_margin, file);
        newXS("Gtk2::IconView::get_margin", XS_Gtk2__IconView_get_margin, file);
        newXS("Gtk2::IconView::get_path_at_pos", XS_Gtk2__IconView_get_path_at_pos, file);
        newXS("Gtk2::IconView::selected_foreach", XS_Gtk2__IconView_selected_foreach, file);
        newXS("Gtk2::IconView::set_selection_mode", XS_Gtk2__IconView_set_selection_mode, file);
        newXS("Gtk2::IconView::get_selection_mode", XS_Gtk2__IconView_get_selection_mode, file);
        newXS("Gtk2::IconView::select_path", XS_Gtk2__IconView_select_path, file);
        newXS("Gtk2::IconView::unselect_path", XS_Gtk2__IconView_unselect_path, file);
        newXS("Gtk2::IconView::path_is_selected", XS_Gtk2__IconView_path_is_selected, file);
        newXS("Gtk2::IconView::get_selected_items", XS_Gtk2__IconView_get_selected_items, file);
        newXS("Gtk2::IconView::select_all", XS_Gtk2__IconView_select_all, file);
        newXS("Gtk2::IconView::unselect_all", XS_Gtk2__IconView_unselect_all, file);
        newXS("Gtk2::IconView::item_activated", XS_Gtk2__IconView_item_activated, file);
#if XSubPPtmpAAAA
        newXS("Gtk2::IconView::get_cursor", XS_Gtk2__IconView_get_cursor, file);
        newXS("Gtk2::IconView::set_cursor", XS_Gtk2__IconView_set_cursor, file);
        newXS("Gtk2::IconView::get_item_at_pos", XS_Gtk2__IconView_get_item_at_pos, file);
        newXS("Gtk2::IconView::get_visible_range", XS_Gtk2__IconView_get_visible_range, file);
        newXS("Gtk2::IconView::scroll_to_path", XS_Gtk2__IconView_scroll_to_path, file);
        newXS("Gtk2::IconView::enable_model_drag_source", XS_Gtk2__IconView_enable_model_drag_source, file);
        newXS("Gtk2::IconView::enable_model_drag_dest", XS_Gtk2__IconView_enable_model_drag_dest, file);
        newXS("Gtk2::IconView::unset_model_drag_source", XS_Gtk2__IconView_unset_model_drag_source, file);
        newXS("Gtk2::IconView::unset_model_drag_dest", XS_Gtk2__IconView_unset_model_drag_dest, file);
        newXS("Gtk2::IconView::set_reorderable", XS_Gtk2__IconView_set_reorderable, file);
        newXS("Gtk2::IconView::get_reorderable", XS_Gtk2__IconView_get_reorderable, file);
        newXS("Gtk2::IconView::set_drag_dest_item", XS_Gtk2__IconView_set_drag_dest_item, file);
        newXS("Gtk2::IconView::get_drag_dest_item", XS_Gtk2__IconView_get_drag_dest_item, file);
        newXS("Gtk2::IconView::get_dest_item_at_pos", XS_Gtk2__IconView_get_dest_item_at_pos, file);
        newXS("Gtk2::IconView::create_drag_icon", XS_Gtk2__IconView_create_drag_icon, file);
#endif
#if XSubPPtmpAAAB
        newXS("Gtk2::IconView::convert_widget_to_bin_window_coords", XS_Gtk2__IconView_convert_widget_to_bin_window_coords, file);
        newXS("Gtk2::IconView::set_tooltip_item", XS_Gtk2__IconView_set_tooltip_item, file);
        newXS("Gtk2::IconView::set_tooltip_cell", XS_Gtk2__IconView_set_tooltip_cell, file);
        newXS("Gtk2::IconView::get_tooltip_context", XS_Gtk2__IconView_get_tooltip_context, file);
        newXS("Gtk2::IconView::set_tooltip_column", XS_Gtk2__IconView_set_tooltip_column, file);
        newXS("Gtk2::IconView::get_tooltip_column", XS_Gtk2__IconView_get_tooltip_column, file);
#endif
#if XSubPPtmpAAAC
        newXS("Gtk2::IconView::set_item_padding", XS_Gtk2__IconView_set_item_padding, file);
        newXS("Gtk2::IconView::get_item_padding", XS_Gtk2__IconView_get_item_padding, file);
#endif
#if XSubPPtmpAAAD
        newXS("Gtk2::IconView::get_item_row", XS_Gtk2__IconView_get_item_row, file);
        newXS("Gtk2::IconView::get_item_column", XS_Gtk2__IconView_get_item_column, file);
        newXS("Gtk2::IconView::set_item_orientation", XS_Gtk2__IconView_set_item_orientation, file);
        newXS("Gtk2::IconView::get_item_orientation", XS_Gtk2__IconView_get_item_orientation, file);
#endif

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#line 1626 "xs/GtkIconView.c"

    /* End of Initialisation Section */

#if (PERL_REVISION == 5 && PERL_VERSION >= 9)
  if (PL_unitcheckav)
       call_list(PL_scopestack_ix, PL_unitcheckav);
#endif
    XSRETURN_YES;
}

