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

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

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

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


XS_EUPXS(XS_Gtk2__StatusIcon_new_from_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_new_from_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, pixbuf");
    {
	GtkStatusIcon_noinc *	RETVAL;
	GdkPixbuf *	pixbuf = SvGdkPixbuf (ST(1))
;

	RETVAL = gtk_status_icon_new_from_pixbuf(pixbuf);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStatusIcon_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_status_icon_new_from_file(filename);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStatusIcon_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


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

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

	RETVAL = gtk_status_icon_new_from_stock(stock_id);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStatusIcon_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


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

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

	RETVAL = gtk_status_icon_new_from_icon_name(icon_name);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkStatusIcon_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_from_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_from_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, pixbuf");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	GdkPixbuf_ornull *	pixbuf = SvGdkPixbuf_ornull (ST(1))
;

	gtk_status_icon_set_from_pixbuf(status_icon, pixbuf);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_from_file); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_from_file)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, filename");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	GPerlFilename_const	filename = (GPerlFilename_const) gperl_filename_from_sv (ST(1))
;

	gtk_status_icon_set_from_file(status_icon, filename);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_from_stock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_from_stock)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, stock_id");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	const gchar *	stock_id;

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

	gtk_status_icon_set_from_stock(status_icon, stock_id);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_from_icon_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_from_icon_name)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, icon_name");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	const gchar *	icon_name;

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

	gtk_status_icon_set_from_icon_name(status_icon, icon_name);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_storage_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_storage_type)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	GtkImageType	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_storage_type(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkImageType (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	GdkPixbuf_ornull *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_pixbuf(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixbuf_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_stock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_stock)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	const gchar_ornull *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_stock(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* newSVGChar() allows NULL, but T_GCHAR does not. allow NULL. */
	    if (RETVAL) {
		    sv_setpv ((SV*)RETVALSV, RETVAL);
		    SvUTF8_on (RETVALSV);
	    } else {
		    SvSetSV (RETVALSV, &PL_sv_undef);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_icon_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_icon_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	const gchar_ornull *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_icon_name(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* newSVGChar() allows NULL, but T_GCHAR does not. allow NULL. */
	    if (RETVAL) {
		    sv_setpv ((SV*)RETVALSV, RETVAL);
		    SvUTF8_on (RETVALSV);
	    } else {
		    SvSetSV (RETVALSV, &PL_sv_undef);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_size); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_size)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gint	RETVAL;
	dXSTARG;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_size(status_icon);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, tooltip_text");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	const gchar_ornull *	tooltip_text;

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

	gtk_status_icon_set_tooltip(status_icon, tooltip_text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_visible)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, visible");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	gboolean	visible = (bool)SvTRUE(ST(1))
;

	gtk_status_icon_set_visible(status_icon, visible);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_visible)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gboolean	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_visible(status_icon);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_blinking); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_blinking)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, blinking");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	gboolean	blinking = (bool)SvTRUE(ST(1))
;

	gtk_status_icon_set_blinking(status_icon, blinking);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_blinking); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_blinking)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gboolean	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_blinking(status_icon);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_is_embedded); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_is_embedded)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gboolean	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_is_embedded(status_icon);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_position_menu); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_position_menu)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "menu, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 85 "xs/GtkStatusIcon.xs"
	gboolean push_in;
	gint x, y;
	GtkStatusIcon *icon;
#line 620 "xs/GtkStatusIcon.c"
	GtkMenu *	menu = SvGtkMenu (ST(0))
;
#line 89 "xs/GtkStatusIcon.xs"
	if (items == 4) {
		/* Compatibility mode */
		x = SvIV (ST (1));
		y = SvIV (ST (2));
		icon = SvGtkStatusIcon (ST (3));
	} else
		icon = SvGtkStatusIcon (ST (1));
	/* PUTBACK/SPAGAIN because gtk_status_icon_position_menu() calls out
	   to menu->size_request, which may be a perl class closure */
	PUTBACK;
	gtk_status_icon_position_menu (menu, &x, &y, &push_in, icon);
	SPAGAIN;
	EXTEND (sp, 3);
	PUSHs (sv_2mortal (newSViv (x)));
	PUSHs (sv_2mortal (newSViv (y)));
	PUSHs (sv_2mortal (newSVuv (push_in)));
#line 640 "xs/GtkStatusIcon.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_geometry); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_geometry)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 110 "xs/GtkStatusIcon.xs"
	GdkScreen *screen;
	GdkRectangle area;
	GtkOrientation orientation;
#line 660 "xs/GtkStatusIcon.c"
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
#line 114 "xs/GtkStatusIcon.xs"
	if (!gtk_status_icon_get_geometry (status_icon, &screen, &area,
	                                   &orientation))
		XSRETURN_EMPTY;

	EXTEND (sp, 3);
	PUSHs (sv_2mortal (newSVGdkScreen (screen)));
	PUSHs (sv_2mortal (newSVGdkRectangle_copy (&area)));
	PUSHs (sv_2mortal (newSVGtkOrientation (orientation)));
#line 672 "xs/GtkStatusIcon.c"
	PUTBACK;
	return;
    }
}

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


XS_EUPXS(XS_Gtk2__StatusIcon_set_screen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_screen)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, screen");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	GdkScreen *	screen = SvGdkScreen (ST(1))
;

	gtk_status_icon_set_screen(status_icon, screen);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_screen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_screen)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	GdkScreen *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_screen(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkScreen (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__StatusIcon_get_x11_window_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_x11_window_id)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	guint32	RETVAL;
	dXSTARG;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_x11_window_id(status_icon);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}

#endif /* 2.14 */
#if GTK_CHECK_VERSION (2, 16, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gtk2__StatusIcon_set_has_tooltip); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_has_tooltip)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, has_tooltip");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	gboolean	has_tooltip = (bool)SvTRUE(ST(1))
;

	gtk_status_icon_set_has_tooltip(status_icon, has_tooltip);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_has_tooltip); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_has_tooltip)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gboolean	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_has_tooltip(status_icon);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_tooltip_markup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_tooltip_markup)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gchar_own_ornull *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_tooltip_markup(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    if (RETVAL) {
		    sv_setpv ((SV*)RETVALSV, RETVAL);
		    SvUTF8_on (RETVALSV);
		    g_free (RETVAL);
	    } else {
		    SvSetSV (RETVALSV, &PL_sv_undef);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_tooltip_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_tooltip_text)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	gchar_own_ornull *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_tooltip_text(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    if (RETVAL) {
		    sv_setpv ((SV*)RETVALSV, RETVAL);
		    SvUTF8_on (RETVALSV);
		    g_free (RETVAL);
	    } else {
		    SvSetSV (RETVALSV, &PL_sv_undef);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, text");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (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_status_icon_set_tooltip_text(status_icon, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip_markup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_tooltip_markup)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, markup");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (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_status_icon_set_tooltip_markup(status_icon, markup);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.16 */
#if GTK_CHECK_VERSION (2, 18, 0)
#define XSubPPtmpAAAD 1


XS_EUPXS(XS_Gtk2__StatusIcon_set_title); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_title)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, title");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	const gchar *	title;

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

	gtk_status_icon_set_title(status_icon, title);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__StatusIcon_get_title); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_get_title)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "status_icon");
    {
	const gchar *	RETVAL;
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;

	RETVAL = gtk_status_icon_get_title(status_icon);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* same as newSVGChar(), but not in a function */
	    sv_setpv ((SV*)RETVALSV, RETVAL);
	    SvUTF8_on (RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif /* 2.18 */
#if GTK_CHECK_VERSION (2, 20, 0)
#define XSubPPtmpAAAE 1


XS_EUPXS(XS_Gtk2__StatusIcon_set_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__StatusIcon_set_name)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "status_icon, name");
    {
	GtkStatusIcon *	status_icon = SvGtkStatusIcon (ST(0))
;
	const gchar *	name;

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

	gtk_status_icon_set_name(status_icon, name);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.20 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__StatusIcon); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__StatusIcon)
{
#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::StatusIcon::new", XS_Gtk2__StatusIcon_new);
        newXS_deffile("Gtk2::StatusIcon::new_from_pixbuf", XS_Gtk2__StatusIcon_new_from_pixbuf);
        newXS_deffile("Gtk2::StatusIcon::new_from_file", XS_Gtk2__StatusIcon_new_from_file);
        newXS_deffile("Gtk2::StatusIcon::new_from_stock", XS_Gtk2__StatusIcon_new_from_stock);
        newXS_deffile("Gtk2::StatusIcon::new_from_icon_name", XS_Gtk2__StatusIcon_new_from_icon_name);
        newXS_deffile("Gtk2::StatusIcon::set_from_pixbuf", XS_Gtk2__StatusIcon_set_from_pixbuf);
        newXS_deffile("Gtk2::StatusIcon::set_from_file", XS_Gtk2__StatusIcon_set_from_file);
        newXS_deffile("Gtk2::StatusIcon::set_from_stock", XS_Gtk2__StatusIcon_set_from_stock);
        newXS_deffile("Gtk2::StatusIcon::set_from_icon_name", XS_Gtk2__StatusIcon_set_from_icon_name);
        newXS_deffile("Gtk2::StatusIcon::get_storage_type", XS_Gtk2__StatusIcon_get_storage_type);
        newXS_deffile("Gtk2::StatusIcon::get_pixbuf", XS_Gtk2__StatusIcon_get_pixbuf);
        newXS_deffile("Gtk2::StatusIcon::get_stock", XS_Gtk2__StatusIcon_get_stock);
        newXS_deffile("Gtk2::StatusIcon::get_icon_name", XS_Gtk2__StatusIcon_get_icon_name);
        newXS_deffile("Gtk2::StatusIcon::get_size", XS_Gtk2__StatusIcon_get_size);
        newXS_deffile("Gtk2::StatusIcon::set_tooltip", XS_Gtk2__StatusIcon_set_tooltip);
        newXS_deffile("Gtk2::StatusIcon::set_visible", XS_Gtk2__StatusIcon_set_visible);
        newXS_deffile("Gtk2::StatusIcon::get_visible", XS_Gtk2__StatusIcon_get_visible);
        newXS_deffile("Gtk2::StatusIcon::set_blinking", XS_Gtk2__StatusIcon_set_blinking);
        newXS_deffile("Gtk2::StatusIcon::get_blinking", XS_Gtk2__StatusIcon_get_blinking);
        newXS_deffile("Gtk2::StatusIcon::is_embedded", XS_Gtk2__StatusIcon_is_embedded);
        newXS_deffile("Gtk2::StatusIcon::position_menu", XS_Gtk2__StatusIcon_position_menu);
        newXS_deffile("Gtk2::StatusIcon::get_geometry", XS_Gtk2__StatusIcon_get_geometry);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::StatusIcon::set_screen", XS_Gtk2__StatusIcon_set_screen);
        newXS_deffile("Gtk2::StatusIcon::get_screen", XS_Gtk2__StatusIcon_get_screen);
#endif
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::StatusIcon::get_x11_window_id", XS_Gtk2__StatusIcon_get_x11_window_id);
#endif
#if XSubPPtmpAAAC
        newXS_deffile("Gtk2::StatusIcon::set_has_tooltip", XS_Gtk2__StatusIcon_set_has_tooltip);
        newXS_deffile("Gtk2::StatusIcon::get_has_tooltip", XS_Gtk2__StatusIcon_get_has_tooltip);
        newXS_deffile("Gtk2::StatusIcon::get_tooltip_markup", XS_Gtk2__StatusIcon_get_tooltip_markup);
        newXS_deffile("Gtk2::StatusIcon::get_tooltip_text", XS_Gtk2__StatusIcon_get_tooltip_text);
        newXS_deffile("Gtk2::StatusIcon::set_tooltip_text", XS_Gtk2__StatusIcon_set_tooltip_text);
        newXS_deffile("Gtk2::StatusIcon::set_tooltip_markup", XS_Gtk2__StatusIcon_set_tooltip_markup);
#endif
#if XSubPPtmpAAAD
        newXS_deffile("Gtk2::StatusIcon::set_title", XS_Gtk2__StatusIcon_set_title);
        newXS_deffile("Gtk2::StatusIcon::get_title", XS_Gtk2__StatusIcon_get_title);
#endif
#if XSubPPtmpAAAE
        newXS_deffile("Gtk2::StatusIcon::set_name", XS_Gtk2__StatusIcon_set_name);
#endif

    /* Initialisation Section */

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

