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

#line 1 "xs/GtkToolItem.xs"
/*
 * Copyright (c) 2003, 2011 by the gtk2-perl team (see the file AUTHORS)
 *
 * Licensed under the LGPL, see LICENSE file for more information.
 *
 * $Id$
 */

#include "gtk2perl.h"

#line 21 "xs/GtkToolItem.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 165 "xs/GtkToolItem.c"

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

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


XS_EUPXS(XS_Gtk2__ToolItem_set_homogeneous); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_homogeneous)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, homogeneous");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	gboolean	homogeneous = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_homogeneous(tool_item, homogeneous);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_homogeneous); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_homogeneous)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	gboolean	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_homogeneous(tool_item);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_expand); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_expand)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, expand");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	gboolean	expand = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_expand(tool_item, expand);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_expand); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_expand)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	gboolean	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_expand(tool_item);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "tool_item, tooltips, tip_text, tip_private");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	GtkTooltips *	tooltips = SvGtkTooltips (ST(1))
;
	const gchar *	tip_text;
	const gchar *	tip_private;

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

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

	gtk_tool_item_set_tooltip(tool_item, tooltips, tip_text, tip_private);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_set_use_drag_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_use_drag_window)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "toolitem, use_drag_window");
    {
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;
	gboolean	use_drag_window = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_use_drag_window(toolitem, use_drag_window);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_use_drag_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_use_drag_window)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "toolitem");
    {
	gboolean	RETVAL;
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_use_drag_window(toolitem);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_visible_horizontal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_visible_horizontal)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "toolitem, visible_horizontal");
    {
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;
	gboolean	visible_horizontal = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_visible_horizontal(toolitem, visible_horizontal);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_visible_horizontal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_visible_horizontal)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "toolitem");
    {
	gboolean	RETVAL;
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_visible_horizontal(toolitem);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_visible_vertical); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_visible_vertical)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "toolitem, visible_vertical");
    {
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;
	gboolean	visible_vertical = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_visible_vertical(toolitem, visible_vertical);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_visible_vertical); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_visible_vertical)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "toolitem");
    {
	gboolean	RETVAL;
	GtkToolItem *	toolitem = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_visible_vertical(toolitem);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_is_important); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_is_important)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	gboolean	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_is_important(tool_item);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_is_important); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_is_important)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, is_important");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	gboolean	is_important = (bool)SvTRUE(ST(1))
;

	gtk_tool_item_set_is_important(tool_item, is_important);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_get_icon_size); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_icon_size)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkIconSize	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_icon_size(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkIconSize (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_orientation)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkOrientation	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_orientation(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkOrientation (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_toolbar_style); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_toolbar_style)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkToolbarStyle	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_toolbar_style(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkToolbarStyle (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_relief_style); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_relief_style)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkReliefStyle	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_relief_style(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkReliefStyle (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_retrieve_proxy_menu_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_retrieve_proxy_menu_item)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkWidget *	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

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


XS_EUPXS(XS_Gtk2__ToolItem_get_proxy_menu_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_proxy_menu_item)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, menu_item_id");
    {
	GtkWidget *	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	const gchar *	menu_item_id;

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

	RETVAL = gtk_tool_item_get_proxy_menu_item(tool_item, menu_item_id);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkWidget (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_set_proxy_menu_item); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_proxy_menu_item)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tool_item, menu_item_id, menu_item");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	const gchar *	menu_item_id;
	GtkWidget_ornull *	menu_item = SvGtkWidget_ornull (ST(2))
;

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

	gtk_tool_item_set_proxy_menu_item(tool_item, menu_item_id, menu_item);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__ToolItem_rebuild_menu); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_rebuild_menu)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	gtk_tool_item_rebuild_menu(tool_item);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, text");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	const gchar_ornull *	text;

	/* same as SvGChar(), but allows undef as NULL */
	if (gperl_sv_is_defined (ST(1))) {
		sv_utf8_upgrade (ST(1));
		text = (const gchar_ornull *)SvPV_nolen (ST(1));
	} else {
		text = NULL;
	}
;

	gtk_tool_item_set_tooltip_text(tool_item, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip_markup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_set_tooltip_markup)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tool_item, markup");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;
	const gchar_ornull *	markup;

	/* same as SvGChar(), but allows undef as NULL */
	if (gperl_sv_is_defined (ST(1))) {
		sv_utf8_upgrade (ST(1));
		markup = (const gchar_ornull *)SvPV_nolen (ST(1));
	} else {
		markup = NULL;
	}
;

	gtk_tool_item_set_tooltip_markup(tool_item, markup);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__ToolItem_toolbar_reconfigured); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_toolbar_reconfigured)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	gtk_tool_item_toolbar_reconfigured(tool_item);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.14 */
#if GTK_CHECK_VERSION (2, 20, 0)
#define XSubPPtmpAAAD 1


XS_EUPXS(XS_Gtk2__ToolItem_get_ellipsize_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_ellipsize_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	PangoEllipsizeMode	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_ellipsize_mode(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVPangoEllipsizeMode (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_text_alignment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_text_alignment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	gfloat	RETVAL;
	dXSTARG;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_text_alignment(tool_item);
	XSprePUSH; PUSHn((double)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_text_orientation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_text_orientation)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkOrientation	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_text_orientation(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkOrientation (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ToolItem_get_text_size_group); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ToolItem_get_text_size_group)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tool_item");
    {
	GtkSizeGroup *	RETVAL;
	GtkToolItem *	tool_item = SvGtkToolItem (ST(0))
;

	RETVAL = gtk_tool_item_get_text_size_group(tool_item);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkSizeGroup (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif /* 2.20 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__ToolItem); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__ToolItem)
{
#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::ToolItem::new", XS_Gtk2__ToolItem_new);
        newXS_deffile("Gtk2::ToolItem::set_homogeneous", XS_Gtk2__ToolItem_set_homogeneous);
        newXS_deffile("Gtk2::ToolItem::get_homogeneous", XS_Gtk2__ToolItem_get_homogeneous);
        newXS_deffile("Gtk2::ToolItem::set_expand", XS_Gtk2__ToolItem_set_expand);
        newXS_deffile("Gtk2::ToolItem::get_expand", XS_Gtk2__ToolItem_get_expand);
        newXS_deffile("Gtk2::ToolItem::set_tooltip", XS_Gtk2__ToolItem_set_tooltip);
        newXS_deffile("Gtk2::ToolItem::set_use_drag_window", XS_Gtk2__ToolItem_set_use_drag_window);
        newXS_deffile("Gtk2::ToolItem::get_use_drag_window", XS_Gtk2__ToolItem_get_use_drag_window);
        newXS_deffile("Gtk2::ToolItem::set_visible_horizontal", XS_Gtk2__ToolItem_set_visible_horizontal);
        newXS_deffile("Gtk2::ToolItem::get_visible_horizontal", XS_Gtk2__ToolItem_get_visible_horizontal);
        newXS_deffile("Gtk2::ToolItem::set_visible_vertical", XS_Gtk2__ToolItem_set_visible_vertical);
        newXS_deffile("Gtk2::ToolItem::get_visible_vertical", XS_Gtk2__ToolItem_get_visible_vertical);
        newXS_deffile("Gtk2::ToolItem::get_is_important", XS_Gtk2__ToolItem_get_is_important);
        newXS_deffile("Gtk2::ToolItem::set_is_important", XS_Gtk2__ToolItem_set_is_important);
        newXS_deffile("Gtk2::ToolItem::get_icon_size", XS_Gtk2__ToolItem_get_icon_size);
        newXS_deffile("Gtk2::ToolItem::get_orientation", XS_Gtk2__ToolItem_get_orientation);
        newXS_deffile("Gtk2::ToolItem::get_toolbar_style", XS_Gtk2__ToolItem_get_toolbar_style);
        newXS_deffile("Gtk2::ToolItem::get_relief_style", XS_Gtk2__ToolItem_get_relief_style);
        newXS_deffile("Gtk2::ToolItem::retrieve_proxy_menu_item", XS_Gtk2__ToolItem_retrieve_proxy_menu_item);
        newXS_deffile("Gtk2::ToolItem::get_proxy_menu_item", XS_Gtk2__ToolItem_get_proxy_menu_item);
        newXS_deffile("Gtk2::ToolItem::set_proxy_menu_item", XS_Gtk2__ToolItem_set_proxy_menu_item);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::ToolItem::rebuild_menu", XS_Gtk2__ToolItem_rebuild_menu);
#endif
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::ToolItem::set_tooltip_text", XS_Gtk2__ToolItem_set_tooltip_text);
        newXS_deffile("Gtk2::ToolItem::set_tooltip_markup", XS_Gtk2__ToolItem_set_tooltip_markup);
#endif
#if XSubPPtmpAAAC
        newXS_deffile("Gtk2::ToolItem::toolbar_reconfigured", XS_Gtk2__ToolItem_toolbar_reconfigured);
#endif
#if XSubPPtmpAAAD
        newXS_deffile("Gtk2::ToolItem::get_ellipsize_mode", XS_Gtk2__ToolItem_get_ellipsize_mode);
        newXS_deffile("Gtk2::ToolItem::get_text_alignment", XS_Gtk2__ToolItem_get_text_alignment);
        newXS_deffile("Gtk2::ToolItem::get_text_orientation", XS_Gtk2__ToolItem_get_text_orientation);
        newXS_deffile("Gtk2::ToolItem::get_text_size_group", XS_Gtk2__ToolItem_get_text_size_group);
#endif

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#line 865 "xs/GtkToolItem.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
}

