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

#line 1 "xs/GnomeIconList.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 Lesser 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 LICENSE file in the top level of this distribution
 * for the complete license terms.
 *
 */

#include "gnome2perl.h"

typedef enum {
	GNOME2PERL_ICON_LIST_IS_EDITABLE = 1 << 0,
	GNOME2PERL_ICON_LIST_STATIC_TEXT = 1 << 1
} Gnome2PerlIconListFlags;

static GType
gnome2perl_icon_list_flags_get_type (void)
{
	static GType etype = 0;

	if (etype == 0) {
		static const GFlagsValue values[] = {
			{ GNOME2PERL_ICON_LIST_IS_EDITABLE, "GNOME_ICON_LIST_IS_EDITABLE", "is-editable" },
			{ GNOME2PERL_ICON_LIST_STATIC_TEXT, "GNOME_ICON_LIST_STATIC_TEXT", "static-text" },
			{ 0, NULL, NULL }
		};
		etype = g_flags_register_static ("Gnome2PerlIconListFlags", values);
	}

	return etype;
}

#if 0 /* unused at the moment */

static SV *
newSVGnome2PerlIconListFlags (Gnome2PerlIconListFlags flags)
{
	return gperl_convert_back_flags (gnome2perl_icon_list_flags_get_type (), flags);
}

#endif

static Gnome2PerlIconListFlags
SvGnome2PerlIconListFlags (SV *sv)
{
	return gperl_convert_flags (gnome2perl_icon_list_flags_get_type (), sv);
}

#line 68 "xs/GnomeIconList.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 212 "xs/GnomeIconList.c"

XS_EUPXS(XS_Gnome2__IconList_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_new)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, icon_width, adj, flags");
    {
	guint	icon_width = (guint)SvUV(ST(1))
;
	GtkAdjustment *	adj = SvGtkAdjustment (ST(2))
;
	Gnome2PerlIconListFlags	flags = SvGnome2PerlIconListFlags (ST(3))
;
	GtkWidget *	RETVAL;

	RETVAL = gnome_icon_list_new(icon_width, adj, flags);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkWidget (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_set_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, hadj");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	GtkAdjustment *	hadj = SvGtkAdjustment (ST(1))
;

	gnome_icon_list_set_hadjustment(gil, hadj);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_vadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_vadjustment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, vadj");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	GtkAdjustment *	vadj = SvGtkAdjustment (ST(1))
;

	gnome_icon_list_set_vadjustment(gil, vadj);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_freeze); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_freeze)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;

	gnome_icon_list_freeze(gil);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_thaw); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_thaw)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;

	gnome_icon_list_thaw(gil);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_insert); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_insert)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "gil, pos, icon_filename, text");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;
	const char *	icon_filename = (const char *)SvPV_nolen(ST(2))
;
	const char *	text = (const char *)SvPV_nolen(ST(3))
;

	gnome_icon_list_insert(gil, pos, icon_filename, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_insert_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_insert_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "gil, pos, im, icon_filename, text");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;
	GdkPixbuf *	im = SvGdkPixbuf (ST(2))
;
	const char *	icon_filename = (const char *)SvPV_nolen(ST(3))
;
	const char *	text = (const char *)SvPV_nolen(ST(4))
;

	gnome_icon_list_insert_pixbuf(gil, pos, im, icon_filename, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_append); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_append)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "gil, icon_filename, text");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	const char *	icon_filename = (const char *)SvPV_nolen(ST(1))
;
	const char *	text = (const char *)SvPV_nolen(ST(2))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_append(gil, icon_filename, text);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_append_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_append_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "gil, im, icon_filename, text");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	GdkPixbuf *	im = SvGdkPixbuf (ST(1))
;
	const char *	icon_filename = (const char *)SvPV_nolen(ST(2))
;
	const char *	text = (const char *)SvPV_nolen(ST(3))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_append_pixbuf(gil, im, icon_filename, text);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_clear); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_clear)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;

	gnome_icon_list_clear(gil);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_remove); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_remove)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pos");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;

	gnome_icon_list_remove(gil, pos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_get_num_icons); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_num_icons)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	guint	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_get_num_icons(gil);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_selection_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_selection_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	GtkSelectionMode	RETVAL;

	RETVAL = gnome_icon_list_get_selection_mode(gil);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkSelectionMode (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_set_selection_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_selection_mode)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, mode");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	GtkSelectionMode	mode = SvGtkSelectionMode (ST(1))
;

	gnome_icon_list_set_selection_mode(gil, mode);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_select_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_select_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pos");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;

	gnome_icon_list_select_icon(gil, pos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_unselect_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_unselect_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pos");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;

	gnome_icon_list_unselect_icon(gil, pos);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gnome2__IconList_select_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_select_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;

	gnome_icon_list_select_all(gil);
    }
    XSRETURN_EMPTY;
}

#endif

XS_EUPXS(XS_Gnome2__IconList_unselect_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_unselect_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_unselect_all(gil);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_selection); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_selection)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
#line 186 "xs/GnomeIconList.xs"
	GList *list = NULL;
#line 585 "xs/GnomeIconList.c"
#line 188 "xs/GnomeIconList.xs"
	list = gnome_icon_list_get_selection (gil);
	for (; list != NULL; list = list->next)
		/* cast to avoid warning. */
		XPUSHs (sv_2mortal (newSViv ((gint) list->data)));
#line 591 "xs/GnomeIconList.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gnome2__IconList_focus_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_focus_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, idx");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	gint	idx = (gint)SvIV(ST(1))
;

	gnome_icon_list_focus_icon(gil, idx);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_icon_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_icon_width)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, w");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	w = (int)SvIV(ST(1))
;

	gnome_icon_list_set_icon_width(gil, w);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_row_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_row_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pixels");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pixels = (int)SvIV(ST(1))
;

	gnome_icon_list_set_row_spacing(gil, pixels);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_col_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_col_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pixels");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pixels = (int)SvIV(ST(1))
;

	gnome_icon_list_set_col_spacing(gil, pixels);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_text_spacing); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_text_spacing)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pixels");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pixels = (int)SvIV(ST(1))
;

	gnome_icon_list_set_text_spacing(gil, pixels);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_icon_border); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_icon_border)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pixels");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pixels = (int)SvIV(ST(1))
;

	gnome_icon_list_set_icon_border(gil, pixels);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_set_separators); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_set_separators)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, sep");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	const char *	sep = (const char *)SvPV_nolen(ST(1))
;

	gnome_icon_list_set_separators(gil, sep);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_get_icon_filename); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_icon_filename)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, idx");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	idx = (int)SvIV(ST(1))
;
	gchar_own *	RETVAL;

	RETVAL = gnome_icon_list_get_icon_filename(gil, idx);
	{
	    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_Gnome2__IconList_find_icon_from_filename); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_find_icon_from_filename)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, filename");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	const char *	filename = (const char *)SvPV_nolen(ST(1))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_find_icon_from_filename(gil, filename);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_moveto); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_moveto)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "gil, pos, yalign");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;
	double	yalign = (double)SvNV(ST(2))
;

	gnome_icon_list_moveto(gil, pos, yalign);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__IconList_icon_is_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_icon_is_visible)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, pos");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	pos = (int)SvIV(ST(1))
;
	GtkVisibility	RETVAL;

	RETVAL = gnome_icon_list_icon_is_visible(gil, pos);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkVisibility (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_icon_at); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_icon_at)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "gil, x, y");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	x = (int)SvIV(ST(1))
;
	int	y = (int)SvIV(ST(2))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_get_icon_at(gil, x, y);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_items_per_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_items_per_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "gil");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	RETVAL;
	dXSTARG;

	RETVAL = gnome_icon_list_get_items_per_line(gil);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_icon_text_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_icon_text_item)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, idx");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	idx = (int)SvIV(ST(1))
;
	GnomeIconTextItem *	RETVAL;

	RETVAL = gnome_icon_list_get_icon_text_item(gil, idx);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGnomeIconTextItem (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__IconList_get_icon_pixbuf_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__IconList_get_icon_pixbuf_item)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "gil, idx");
    {
	GnomeIconList *	gil = SvGnomeIconList (ST(0))
;
	int	idx = (int)SvIV(ST(1))
;
	GObject *	RETVAL;
#line 311 "xs/GnomeIconList.xs"
	RETVAL = (GObject *) gnome_icon_list_get_icon_pixbuf_item (gil, idx);
#line 901 "xs/GnomeIconList.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGObject (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gnome2__IconList); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gnome2__IconList)
{
#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("Gnome2::IconList::new", XS_Gnome2__IconList_new);
        newXS_deffile("Gnome2::IconList::set_hadjustment", XS_Gnome2__IconList_set_hadjustment);
        newXS_deffile("Gnome2::IconList::set_vadjustment", XS_Gnome2__IconList_set_vadjustment);
        newXS_deffile("Gnome2::IconList::freeze", XS_Gnome2__IconList_freeze);
        newXS_deffile("Gnome2::IconList::thaw", XS_Gnome2__IconList_thaw);
        newXS_deffile("Gnome2::IconList::insert", XS_Gnome2__IconList_insert);
        newXS_deffile("Gnome2::IconList::insert_pixbuf", XS_Gnome2__IconList_insert_pixbuf);
        newXS_deffile("Gnome2::IconList::append", XS_Gnome2__IconList_append);
        newXS_deffile("Gnome2::IconList::append_pixbuf", XS_Gnome2__IconList_append_pixbuf);
        newXS_deffile("Gnome2::IconList::clear", XS_Gnome2__IconList_clear);
        newXS_deffile("Gnome2::IconList::remove", XS_Gnome2__IconList_remove);
        newXS_deffile("Gnome2::IconList::get_num_icons", XS_Gnome2__IconList_get_num_icons);
        newXS_deffile("Gnome2::IconList::get_selection_mode", XS_Gnome2__IconList_get_selection_mode);
        newXS_deffile("Gnome2::IconList::set_selection_mode", XS_Gnome2__IconList_set_selection_mode);
        newXS_deffile("Gnome2::IconList::select_icon", XS_Gnome2__IconList_select_icon);
        newXS_deffile("Gnome2::IconList::unselect_icon", XS_Gnome2__IconList_unselect_icon);
#if XSubPPtmpAAAA
        newXS_deffile("Gnome2::IconList::select_all", XS_Gnome2__IconList_select_all);
#endif
        newXS_deffile("Gnome2::IconList::unselect_all", XS_Gnome2__IconList_unselect_all);
        newXS_deffile("Gnome2::IconList::get_selection", XS_Gnome2__IconList_get_selection);
        newXS_deffile("Gnome2::IconList::focus_icon", XS_Gnome2__IconList_focus_icon);
        newXS_deffile("Gnome2::IconList::set_icon_width", XS_Gnome2__IconList_set_icon_width);
        newXS_deffile("Gnome2::IconList::set_row_spacing", XS_Gnome2__IconList_set_row_spacing);
        newXS_deffile("Gnome2::IconList::set_col_spacing", XS_Gnome2__IconList_set_col_spacing);
        newXS_deffile("Gnome2::IconList::set_text_spacing", XS_Gnome2__IconList_set_text_spacing);
        newXS_deffile("Gnome2::IconList::set_icon_border", XS_Gnome2__IconList_set_icon_border);
        newXS_deffile("Gnome2::IconList::set_separators", XS_Gnome2__IconList_set_separators);
        newXS_deffile("Gnome2::IconList::get_icon_filename", XS_Gnome2__IconList_get_icon_filename);
        newXS_deffile("Gnome2::IconList::find_icon_from_filename", XS_Gnome2__IconList_find_icon_from_filename);
        newXS_deffile("Gnome2::IconList::moveto", XS_Gnome2__IconList_moveto);
        newXS_deffile("Gnome2::IconList::icon_is_visible", XS_Gnome2__IconList_icon_is_visible);
        newXS_deffile("Gnome2::IconList::get_icon_at", XS_Gnome2__IconList_get_icon_at);
        newXS_deffile("Gnome2::IconList::get_items_per_line", XS_Gnome2__IconList_get_items_per_line);
        newXS_deffile("Gnome2::IconList::get_icon_text_item", XS_Gnome2__IconList_get_icon_text_item);
        newXS_deffile("Gnome2::IconList::get_icon_pixbuf_item", XS_Gnome2__IconList_get_icon_pixbuf_item);

    /* Initialisation Section */

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

