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

#line 1 "xs/GtkEntry.xs"
/*
 * Copyright (c) 2003-2006 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 Library 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 GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA  02111-1307  USA.
 *
 * $Id$
 */

#include "gtk2perl.h"

static GPerlBoxedWrapperClass gtk_border_wrapper_class;

static SV *
gtk2perl_border_wrap (GType gtype, const char * package, gpointer boxed, gboolean own)
{
	GtkBorder *border = boxed;
	HV *hv;

	PERL_UNUSED_VAR (gtype);
	PERL_UNUSED_VAR (package);

	if (!border)
		return &PL_sv_undef;

	hv = newHV ();

	gperl_hv_take_sv_s (hv, "left", newSViv (border->left));
	gperl_hv_take_sv_s (hv, "right", newSViv (border->right));
	gperl_hv_take_sv_s (hv, "top", newSViv (border->top));
	gperl_hv_take_sv_s (hv, "bottom", newSViv (border->bottom));

	if (own)
		gtk_border_free (border);

	return newRV_noinc ((SV *) hv);
}

/* This uses gperl_alloc_temp so make sure you don't hold on to pointers
 * returned by SvGtkBorder for too long. */
static gpointer
gtk2perl_border_unwrap (GType gtype, const char * package, SV * sv)
{
	HV *hv;
	SV **value;
	GtkBorder *border;

	PERL_UNUSED_VAR (gtype);
	PERL_UNUSED_VAR (package);

	if (!gperl_sv_is_defined (sv) || !SvRV (sv))
		return NULL;

	if (!gperl_sv_is_hash_ref (sv))
		croak ("GtkBorder must be a hash reference with four keys: "
		       "left, right, top, bottom");

	hv = (HV *) SvRV (sv);

	border = gperl_alloc_temp (sizeof (GtkBorder));

	value = hv_fetch (hv, "left", 4, 0);
	if (value && gperl_sv_is_defined (*value))
		border->left = SvIV (*value);

	value = hv_fetch (hv, "right", 5, 0);
	if (value && gperl_sv_is_defined (*value))
		border->right = SvIV (*value);

	value = hv_fetch (hv, "top", 3, 0);
	if (value && gperl_sv_is_defined (*value))
		border->top = SvIV (*value);

	value = hv_fetch (hv, "bottom", 6, 0);
	if (value && gperl_sv_is_defined (*value))
		border->bottom = SvIV (*value);

	return border;
}

#line 103 "xs/GtkEntry.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 245 "xs/GtkEntry.c"

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

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


XS_EUPXS(XS_Gtk2__Entry_new_with_max_length); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_new_with_max_length)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, max");
    {
	gint	max = (gint)SvIV(ST(1))
;
	GtkWidget *	RETVAL;

	RETVAL = gtk_entry_new_with_max_length(max);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_visibility); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_visibility)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, visible");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	visible = (bool)SvTRUE(ST(1))
;

	gtk_entry_set_visibility(entry, visible);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_visibility); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_visibility)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_entry_get_visibility(entry);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_invisible_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_invisible_char)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, ch");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gunichar	ch = g_utf8_get_char (SvGChar (ST(1)))
;

	gtk_entry_set_invisible_char(entry, ch);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_invisible_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_invisible_char)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gunichar	RETVAL;

	RETVAL = gtk_entry_get_invisible_char(entry);
	ST(0) = sv_newmortal();
	{
	gchar temp[6];
	gint length = g_unichar_to_utf8 (RETVAL, temp);
	sv_setpvn ((SV*)ST(0), temp, length);
	SvUTF8_on (ST(0));
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_has_frame); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_has_frame)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, setting");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_entry_set_has_frame(entry, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_has_frame); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_has_frame)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_entry_get_has_frame(entry);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_max_length); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_max_length)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, max");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	max = (gint)SvIV(ST(1))
;

	gtk_entry_set_max_length(entry, max);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_max_length); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_max_length)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_entry_get_max_length(entry);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_activates_default); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_activates_default)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, setting");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_entry_set_activates_default(entry, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_activates_default); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_activates_default)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_entry_get_activates_default(entry);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_width_chars); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_width_chars)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, n_chars");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	n_chars = (gint)SvIV(ST(1))
;

	gtk_entry_set_width_chars(entry, n_chars);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_width_chars); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_width_chars)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_entry_get_width_chars(entry);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, text");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	const gchar *	text;

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

	gtk_entry_set_text(entry, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_text)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	const gchar *	RETVAL;

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


XS_EUPXS(XS_Gtk2__Entry_get_layout); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_layout)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	PangoLayout *	RETVAL;

	RETVAL = gtk_entry_get_layout(entry);
	ST(0) = newSVPangoLayout (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_layout_offsets); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_layout_offsets)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	x;
	gint	y;

	gtk_entry_get_layout_offsets(entry, &x, &y);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)x);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)y);
    }
    XSRETURN(2);
}

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


XS_EUPXS(XS_Gtk2__Entry_set_completion); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_completion)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, completion");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryCompletion_ornull *	completion = SvGtkEntryCompletion_ornull (ST(1))
;

	gtk_entry_set_completion(entry, completion);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_completion); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_completion)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntryCompletion_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_completion(entry);
	ST(0) = newSVGtkEntryCompletion_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_alignment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_alignment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, xalign");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gfloat	xalign = (float)SvNV(ST(1))
;

	gtk_entry_set_alignment(entry, xalign);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_alignment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_alignment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	gfloat	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_alignment(entry);
	XSprePUSH; PUSHn((double)RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Entry_layout_index_to_text_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_layout_index_to_text_index)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, layout_index");
    {
	gint	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	layout_index = (gint)SvIV(ST(1))
;

	RETVAL = gtk_entry_layout_index_to_text_index(entry, layout_index);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_text_index_to_layout_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_text_index_to_layout_index)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, text_index");
    {
	gint	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	text_index = (gint)SvIV(ST(1))
;

	RETVAL = gtk_entry_text_index_to_layout_index(entry, text_index);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Entry_set_inner_border); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_inner_border)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, border");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	const GtkBorder_ornull *	border = SvGtkBorder_ornull (ST(1))
;

	gtk_entry_set_inner_border(entry, border);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_inner_border); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_inner_border)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	const GtkBorder_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_inner_border(entry);
	ST(0) = newSVGtkBorder_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Entry_set_cursor_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_cursor_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, adjustment");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkAdjustment_ornull *	adjustment = SvGtkAdjustment_ornull (ST(1))
;

	gtk_entry_set_cursor_hadjustment(entry, adjustment);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_cursor_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_cursor_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkAdjustment_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_cursor_hadjustment(entry);
	ST(0) = newSVGtkAdjustment_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Entry_set_overwrite_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_overwrite_mode)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, overwrite");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	overwrite = (bool)SvTRUE(ST(1))
;

	gtk_entry_set_overwrite_mode(entry, overwrite);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_overwrite_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_overwrite_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	gboolean	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_overwrite_mode(entry);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_text_length); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_text_length)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	guint16	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_text_length(entry);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Entry_get_icon_activatable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_activatable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	gboolean	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_activatable(entry, icon_pos);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, x, y");
    {
	gint	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;

	RETVAL = gtk_entry_get_icon_at_pos(entry, x, y);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_name)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	const gchar_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

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


XS_EUPXS(XS_Gtk2__Entry_get_icon_sensitive); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_sensitive)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	gboolean	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_sensitive(entry, icon_pos);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	GdkPixbuf_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_pixbuf(entry, icon_pos);
	ST(0) = newSVGdkPixbuf_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_progress_fraction); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_progress_fraction)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	gdouble	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_progress_fraction(entry);
	XSprePUSH; PUSHn((double)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_progress_pulse_step); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_progress_pulse_step)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	gdouble	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_progress_pulse_step(entry);
	XSprePUSH; PUSHn((double)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_progress_pulse); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_progress_pulse)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	gtk_entry_progress_pulse(entry);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_stock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_stock)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	const gchar_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

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


XS_EUPXS(XS_Gtk2__Entry_get_icon_storage_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_storage_type)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	GtkImageType	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_storage_type(entry, icon_pos);
	ST(0) = newSVGtkImageType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_activatable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_activatable)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, activatable");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	gboolean	activatable = (bool)SvTRUE(ST(2))
;

	gtk_entry_set_icon_activatable(entry, icon_pos, activatable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_from_icon_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_from_icon_name)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, icon_name");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	const gchar_ornull *	icon_name;

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

	gtk_entry_set_icon_from_icon_name(entry, icon_pos, icon_name);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_from_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_from_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, pixbuf");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	GdkPixbuf_ornull *	pixbuf = SvGdkPixbuf_ornull (ST(2))
;

	gtk_entry_set_icon_from_pixbuf(entry, icon_pos, pixbuf);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_from_stock); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_from_stock)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, stock_id");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	const gchar_ornull *	stock_id;

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

	gtk_entry_set_icon_from_stock(entry, icon_pos, stock_id);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_sensitive); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_sensitive)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, sensitive");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	gboolean	sensitive = (bool)SvTRUE(ST(2))
;

	gtk_entry_set_icon_sensitive(entry, icon_pos, sensitive);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_tooltip_markup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_tooltip_markup)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, tooltip");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	const gchar_ornull *	tooltip;

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

	gtk_entry_set_icon_tooltip_markup(entry, icon_pos, tooltip);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_tooltip_markup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_tooltip_markup)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	gchar_own_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_tooltip_markup(entry, icon_pos);
	ST(0) = sv_newmortal();
	if (RETVAL) {
		sv_setpv ((SV*)ST(0), RETVAL);
		SvUTF8_on (ST(0));
	        g_free (RETVAL);
	} else {
		SvSetSV (ST(0), &PL_sv_undef);
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_tooltip_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_tooltip_text)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, icon_pos, tooltip");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	const gchar_ornull *	tooltip;

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

	gtk_entry_set_icon_tooltip_text(entry, icon_pos, tooltip);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_icon_tooltip_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_tooltip_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	gchar_own_ornull *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_tooltip_text(entry, icon_pos);
	ST(0) = sv_newmortal();
	if (RETVAL) {
		sv_setpv ((SV*)ST(0), RETVAL);
		SvUTF8_on (ST(0));
	        g_free (RETVAL);
	} else {
		SvSetSV (ST(0), &PL_sv_undef);
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_progress_fraction); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_progress_fraction)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, fraction");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gdouble	fraction = (double)SvNV(ST(1))
;

	gtk_entry_set_progress_fraction(entry, fraction);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_progress_pulse_step); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_progress_pulse_step)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, fraction");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gdouble	fraction = (double)SvNV(ST(1))
;

	gtk_entry_set_progress_pulse_step(entry, fraction);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_unset_invisible_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_unset_invisible_char)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	gtk_entry_unset_invisible_char(entry);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_icon_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_icon_drag_source)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "entry, icon_pos, target_list, actions");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;
	GtkTargetList *	target_list = SvGtkTargetList (ST(2))
;
	GdkDragAction	actions = SvGdkDragAction (ST(3))
;

	gtk_entry_set_icon_drag_source(entry, icon_pos, target_list, actions);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_get_current_icon_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_current_icon_drag_source)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	gint	RETVAL;
	dXSTARG;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_current_icon_drag_source(entry);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

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


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

	RETVAL = gtk_entry_new_with_buffer(buffer);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_buffer)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntryBuffer *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_buffer(entry);
	ST(0) = newSVGtkEntryBuffer (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_set_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_buffer)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, buffer");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryBuffer *	buffer = SvGtkEntryBuffer (ST(1))
;

	gtk_entry_set_buffer(entry, buffer);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__Entry_get_icon_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_icon_window)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, icon_pos");
    {
	GdkWindow *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GtkEntryIconPosition	icon_pos = SvGtkEntryIconPosition (ST(1))
;

	RETVAL = gtk_entry_get_icon_window(entry, icon_pos);
	ST(0) = newSVGdkWindow (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_get_text_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_get_text_window)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GdkWindow *	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	RETVAL = gtk_entry_get_text_window(entry);
	ST(0) = newSVGdkWindow (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif /* 2.20 */
#if GTK_CHECK_VERSION (2, 22, 0)
#define XSubPPtmpAAAI 1


XS_EUPXS(XS_Gtk2__Entry_im_context_filter_keypress); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_im_context_filter_keypress)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, event");
    {
	gboolean	RETVAL;
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	GdkEvent *	event = SvGdkEvent (ST(1))
;

	RETVAL = gtk_entry_im_context_filter_keypress(entry, (GdkEventKey *) event);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Entry_reset_im_context); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_reset_im_context)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "entry");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;

	gtk_entry_reset_im_context(entry);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.22 */

XS_EUPXS(XS_Gtk2__Entry_append_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_append_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, text");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	const gchar *	text;

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

	gtk_entry_append_text(entry, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_prepend_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_prepend_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, text");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	const gchar *	text;

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

	gtk_entry_prepend_text(entry, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_position)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, position");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	position = (gint)SvIV(ST(1))
;

	gtk_entry_set_position(entry, position);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_select_region); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_select_region)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "entry, start, end");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gint	start = (gint)SvIV(ST(1))
;
	gint	end = (gint)SvIV(ST(2))
;

	gtk_entry_select_region(entry, start, end);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Entry_set_editable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Entry_set_editable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "entry, editable");
    {
	GtkEntry *	entry = SvGtkEntry (ST(0))
;
	gboolean	editable = (bool)SvTRUE(ST(1))
;

	gtk_entry_set_editable(entry, editable);
    }
    XSRETURN_EMPTY;
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__Entry); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__Entry)
{
    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::Entry::new", XS_Gtk2__Entry_new, file);
        newXS("Gtk2::Entry::new_with_max_length", XS_Gtk2__Entry_new_with_max_length, file);
        newXS("Gtk2::Entry::set_visibility", XS_Gtk2__Entry_set_visibility, file);
        newXS("Gtk2::Entry::get_visibility", XS_Gtk2__Entry_get_visibility, file);
        newXS("Gtk2::Entry::set_invisible_char", XS_Gtk2__Entry_set_invisible_char, file);
        newXS("Gtk2::Entry::get_invisible_char", XS_Gtk2__Entry_get_invisible_char, file);
        newXS("Gtk2::Entry::set_has_frame", XS_Gtk2__Entry_set_has_frame, file);
        newXS("Gtk2::Entry::get_has_frame", XS_Gtk2__Entry_get_has_frame, file);
        newXS("Gtk2::Entry::set_max_length", XS_Gtk2__Entry_set_max_length, file);
        newXS("Gtk2::Entry::get_max_length", XS_Gtk2__Entry_get_max_length, file);
        newXS("Gtk2::Entry::set_activates_default", XS_Gtk2__Entry_set_activates_default, file);
        newXS("Gtk2::Entry::get_activates_default", XS_Gtk2__Entry_get_activates_default, file);
        newXS("Gtk2::Entry::set_width_chars", XS_Gtk2__Entry_set_width_chars, file);
        newXS("Gtk2::Entry::get_width_chars", XS_Gtk2__Entry_get_width_chars, file);
        newXS("Gtk2::Entry::set_text", XS_Gtk2__Entry_set_text, file);
        newXS("Gtk2::Entry::get_text", XS_Gtk2__Entry_get_text, file);
        newXS("Gtk2::Entry::get_layout", XS_Gtk2__Entry_get_layout, file);
        newXS("Gtk2::Entry::get_layout_offsets", XS_Gtk2__Entry_get_layout_offsets, file);
#if XSubPPtmpAAAA
        newXS("Gtk2::Entry::set_completion", XS_Gtk2__Entry_set_completion, file);
        newXS("Gtk2::Entry::get_completion", XS_Gtk2__Entry_get_completion, file);
        newXS("Gtk2::Entry::set_alignment", XS_Gtk2__Entry_set_alignment, file);
        newXS("Gtk2::Entry::get_alignment", XS_Gtk2__Entry_get_alignment, file);
#endif
#if XSubPPtmpAAAB
        newXS("Gtk2::Entry::layout_index_to_text_index", XS_Gtk2__Entry_layout_index_to_text_index, file);
        newXS("Gtk2::Entry::text_index_to_layout_index", XS_Gtk2__Entry_text_index_to_layout_index, file);
#endif
#if XSubPPtmpAAAC
        newXS("Gtk2::Entry::set_inner_border", XS_Gtk2__Entry_set_inner_border, file);
        newXS("Gtk2::Entry::get_inner_border", XS_Gtk2__Entry_get_inner_border, file);
#endif
#if XSubPPtmpAAAD
        newXS("Gtk2::Entry::set_cursor_hadjustment", XS_Gtk2__Entry_set_cursor_hadjustment, file);
        newXS("Gtk2::Entry::get_cursor_hadjustment", XS_Gtk2__Entry_get_cursor_hadjustment, file);
#endif
#if XSubPPtmpAAAE
        newXS("Gtk2::Entry::set_overwrite_mode", XS_Gtk2__Entry_set_overwrite_mode, file);
        newXS("Gtk2::Entry::get_overwrite_mode", XS_Gtk2__Entry_get_overwrite_mode, file);
        newXS("Gtk2::Entry::get_text_length", XS_Gtk2__Entry_get_text_length, file);
#endif
#if XSubPPtmpAAAF
        newXS("Gtk2::Entry::get_icon_activatable", XS_Gtk2__Entry_get_icon_activatable, file);
        newXS("Gtk2::Entry::get_icon_at_pos", XS_Gtk2__Entry_get_icon_at_pos, file);
        newXS("Gtk2::Entry::get_icon_name", XS_Gtk2__Entry_get_icon_name, file);
        newXS("Gtk2::Entry::get_icon_sensitive", XS_Gtk2__Entry_get_icon_sensitive, file);
        newXS("Gtk2::Entry::get_icon_pixbuf", XS_Gtk2__Entry_get_icon_pixbuf, file);
        newXS("Gtk2::Entry::get_progress_fraction", XS_Gtk2__Entry_get_progress_fraction, file);
        newXS("Gtk2::Entry::get_progress_pulse_step", XS_Gtk2__Entry_get_progress_pulse_step, file);
        newXS("Gtk2::Entry::progress_pulse", XS_Gtk2__Entry_progress_pulse, file);
        newXS("Gtk2::Entry::get_icon_stock", XS_Gtk2__Entry_get_icon_stock, file);
        newXS("Gtk2::Entry::get_icon_storage_type", XS_Gtk2__Entry_get_icon_storage_type, file);
        newXS("Gtk2::Entry::set_icon_activatable", XS_Gtk2__Entry_set_icon_activatable, file);
        newXS("Gtk2::Entry::set_icon_from_icon_name", XS_Gtk2__Entry_set_icon_from_icon_name, file);
        newXS("Gtk2::Entry::set_icon_from_pixbuf", XS_Gtk2__Entry_set_icon_from_pixbuf, file);
        newXS("Gtk2::Entry::set_icon_from_stock", XS_Gtk2__Entry_set_icon_from_stock, file);
        newXS("Gtk2::Entry::set_icon_sensitive", XS_Gtk2__Entry_set_icon_sensitive, file);
        newXS("Gtk2::Entry::set_icon_tooltip_markup", XS_Gtk2__Entry_set_icon_tooltip_markup, file);
        newXS("Gtk2::Entry::get_icon_tooltip_markup", XS_Gtk2__Entry_get_icon_tooltip_markup, file);
        newXS("Gtk2::Entry::set_icon_tooltip_text", XS_Gtk2__Entry_set_icon_tooltip_text, file);
        newXS("Gtk2::Entry::get_icon_tooltip_text", XS_Gtk2__Entry_get_icon_tooltip_text, file);
        newXS("Gtk2::Entry::set_progress_fraction", XS_Gtk2__Entry_set_progress_fraction, file);
        newXS("Gtk2::Entry::set_progress_pulse_step", XS_Gtk2__Entry_set_progress_pulse_step, file);
        newXS("Gtk2::Entry::unset_invisible_char", XS_Gtk2__Entry_unset_invisible_char, file);
        newXS("Gtk2::Entry::set_icon_drag_source", XS_Gtk2__Entry_set_icon_drag_source, file);
        newXS("Gtk2::Entry::get_current_icon_drag_source", XS_Gtk2__Entry_get_current_icon_drag_source, file);
#endif
#if XSubPPtmpAAAG
        newXS("Gtk2::Entry::new_with_buffer", XS_Gtk2__Entry_new_with_buffer, file);
        newXS("Gtk2::Entry::get_buffer", XS_Gtk2__Entry_get_buffer, file);
        newXS("Gtk2::Entry::set_buffer", XS_Gtk2__Entry_set_buffer, file);
#endif
#if XSubPPtmpAAAH
        newXS("Gtk2::Entry::get_icon_window", XS_Gtk2__Entry_get_icon_window, file);
        newXS("Gtk2::Entry::get_text_window", XS_Gtk2__Entry_get_text_window, file);
#endif
#if XSubPPtmpAAAI
        newXS("Gtk2::Entry::im_context_filter_keypress", XS_Gtk2__Entry_im_context_filter_keypress, file);
        newXS("Gtk2::Entry::reset_im_context", XS_Gtk2__Entry_reset_im_context, file);
#endif
        newXS("Gtk2::Entry::append_text", XS_Gtk2__Entry_append_text, file);
        newXS("Gtk2::Entry::prepend_text", XS_Gtk2__Entry_prepend_text, file);
        newXS("Gtk2::Entry::set_position", XS_Gtk2__Entry_set_position, file);
        newXS("Gtk2::Entry::select_region", XS_Gtk2__Entry_select_region, file);
        newXS("Gtk2::Entry::set_editable", XS_Gtk2__Entry_set_editable, file);

    /* Initialisation Section */

#line 96 "xs/GtkEntry.xs"
	gperl_prepend_isa ("Gtk2::Entry", "Gtk2::CellEditable");
	gperl_prepend_isa ("Gtk2::Entry", "Gtk2::Editable");
	gtk_border_wrapper_class = * gperl_default_boxed_wrapper_class ();
	gtk_border_wrapper_class.wrap = gtk2perl_border_wrap;
	gtk_border_wrapper_class.unwrap = gtk2perl_border_unwrap;
	gperl_register_boxed (GTK_TYPE_BORDER, "Gtk2::Border",
	                      &gtk_border_wrapper_class);

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#if XSubPPtmpAAAE
#endif
#if XSubPPtmpAAAF
#endif
#if XSubPPtmpAAAG
#endif
#if XSubPPtmpAAAH
#endif
#if XSubPPtmpAAAI
#endif
#line 1771 "xs/GtkEntry.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;
}

