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

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

#include "gtk2perl.h"

#if GTK_CHECK_VERSION (2, 6, 0)
# include "gtk2perl-private.h" /* For the row separator callback. */
#endif

#line 25 "xs/GtkComboBox.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 167 "xs/GtkComboBox.c"

XS_EUPXS(XS_Gtk2__ComboBox_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_new)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 1 || items > 2)
       croak_xs_usage(cv,  "class, model=NULL");
    {
	GtkWidget *	RETVAL;
	GtkTreeModel *	model;

	if (items < 2)
	    model = NULL;
	else {
	    model = SvGtkTreeModel (ST(1))
;
	}
#line 90 "xs/GtkComboBox.xs"
	if (model)
		RETVAL = gtk_combo_box_new_with_model (model);
	else
		RETVAL = gtk_combo_box_new ();
#line 191 "xs/GtkComboBox.c"
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
#line 97 "xs/GtkComboBox.xs"
	PERL_UNUSED_VAR (ix);
#line 196 "xs/GtkComboBox.c"
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_set_wrap_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_wrap_width)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, width");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	width = (gint)SvIV(ST(1))
;

	gtk_combo_box_set_wrap_width(combo_box, width);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_set_row_span_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_row_span_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, row_span");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	row_span = (gint)SvIV(ST(1))
;

	gtk_combo_box_set_row_span_column(combo_box, row_span);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_set_column_span_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_column_span_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, column_span");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	column_span = (gint)SvIV(ST(1))
;

	gtk_combo_box_set_column_span_column(combo_box, column_span);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_active); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_active)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gint	RETVAL;
	dXSTARG;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_active(combo_box);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_set_active); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_active)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, index");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	index = (gint)SvIV(ST(1))
;

	gtk_combo_box_set_active(combo_box, index);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_active_iter); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_active_iter)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
#line 116 "xs/GtkComboBox.xs"
	GtkTreeIter iter;
#line 302 "xs/GtkComboBox.c"
	GtkTreeIter_copy *	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
#line 118 "xs/GtkComboBox.xs"
	if (!gtk_combo_box_get_active_iter (combo_box, &iter))
		XSRETURN_UNDEF;
	RETVAL = &iter;
#line 310 "xs/GtkComboBox.c"
	ST(0) = newSVGtkTreeIter_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_set_active_iter); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_active_iter)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, iter");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	GtkTreeIter_ornull *	iter = SvGtkTreeIter_ornull (ST(1))
;

	gtk_combo_box_set_active_iter(combo_box, iter);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_set_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_model)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, model");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	GtkTreeModel_ornull *	model = SvGtkTreeModel_ornull (ST(1))
;

	gtk_combo_box_set_model(combo_box, model);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_model)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	GtkTreeModel *	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_model(combo_box);
	ST(0) = newSVGtkTreeModel (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


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

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


XS_EUPXS(XS_Gtk2__ComboBox_append_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_append_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, text");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (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_combo_box_append_text(combo_box, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_insert_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_insert_text)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "combo_box, position, text");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	position = (gint)SvIV(ST(1))
;
	const gchar *	text;

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

	gtk_combo_box_insert_text(combo_box, position, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_prepend_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_prepend_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, text");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (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_combo_box_prepend_text(combo_box, text);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_remove_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_remove_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, position");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gint	position = (gint)SvIV(ST(1))
;

	gtk_combo_box_remove_text(combo_box, position);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_popup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_popup)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	gtk_combo_box_popup(combo_box);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_popdown); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_popdown)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	gtk_combo_box_popdown(combo_box);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__ComboBox_get_wrap_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_wrap_width)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gint	RETVAL;
	dXSTARG;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_wrap_width(combo_box);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_get_row_span_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_row_span_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gint	RETVAL;
	dXSTARG;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_row_span_column(combo_box);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_get_column_span_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_column_span_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gint	RETVAL;
	dXSTARG;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_column_span_column(combo_box);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__ComboBox_get_active_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_active_text)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gchar_own *	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_active_text(combo_box);
	ST(0) = sv_newmortal();
	/* used when we can directly own the returned string. */
	/* we have to copy in the case when perl's malloc != gtk's malloc,
         * so best copy all the time. */
	sv_setpv ((SV*)ST(0), RETVAL);
	SvUTF8_on (ST(0));
        g_free (RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_get_add_tearoffs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_add_tearoffs)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gboolean	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_add_tearoffs(combo_box);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__ComboBox_set_add_tearoffs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_add_tearoffs)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, add_tearoffs");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gboolean	add_tearoffs = (bool)SvTRUE(ST(1))
;

	gtk_combo_box_set_add_tearoffs(combo_box, add_tearoffs);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_set_row_separator_func); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_row_separator_func)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "combo_box, func, data= NULL");
    {
#line 178 "xs/GtkComboBox.xs"
	GPerlCallback *callback;
#line 641 "xs/GtkComboBox.c"
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 180 "xs/GtkComboBox.xs"
	callback = gtk2perl_tree_view_row_separator_func_create (func, data);
	gtk_combo_box_set_row_separator_func (
		combo_box,
		(GtkTreeViewRowSeparatorFunc)
		  gtk2perl_tree_view_row_separator_func,
		callback,
		(GtkDestroyNotify)
		  gperl_callback_destroy);
#line 663 "xs/GtkComboBox.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_set_focus_on_click); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_focus_on_click)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, focus_on_click");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	gboolean	focus_on_click = (bool)SvTRUE(ST(1))
;

	gtk_combo_box_set_focus_on_click(combo_box, focus_on_click);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_focus_on_click); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_focus_on_click)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	gboolean	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_focus_on_click(combo_box);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__ComboBox_set_title); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_title)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, title");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (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_combo_box_set_title(combo_box, title);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_title); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_title)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	const gchar *	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

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

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


XS_EUPXS(XS_Gtk2__ComboBox_set_button_sensitivity); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_set_button_sensitivity)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "combo_box, sensitivity");
    {
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;
	GtkSensitivityType	sensitivity = SvGtkSensitivityType (ST(1))
;

	gtk_combo_box_set_button_sensitivity(combo_box, sensitivity);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__ComboBox_get_button_sensitivity); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__ComboBox_get_button_sensitivity)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "combo_box");
    {
	GtkSensitivityType	RETVAL;
	GtkComboBox *	combo_box = SvGtkComboBox (ST(0))
;

	RETVAL = gtk_combo_box_get_button_sensitivity(combo_box);
	ST(0) = newSVGtkSensitivityType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif /* 2.14 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__ComboBox); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__ComboBox)
{
    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;

        cv = newXS("Gtk2::ComboBox::new", XS_Gtk2__ComboBox_new, file);
        XSANY.any_i32 = 0;
        cv = newXS("Gtk2::ComboBox::new_with_model", XS_Gtk2__ComboBox_new, file);
        XSANY.any_i32 = 1;
        newXS("Gtk2::ComboBox::set_wrap_width", XS_Gtk2__ComboBox_set_wrap_width, file);
        newXS("Gtk2::ComboBox::set_row_span_column", XS_Gtk2__ComboBox_set_row_span_column, file);
        newXS("Gtk2::ComboBox::set_column_span_column", XS_Gtk2__ComboBox_set_column_span_column, file);
        newXS("Gtk2::ComboBox::get_active", XS_Gtk2__ComboBox_get_active, file);
        newXS("Gtk2::ComboBox::set_active", XS_Gtk2__ComboBox_set_active, file);
        newXS("Gtk2::ComboBox::get_active_iter", XS_Gtk2__ComboBox_get_active_iter, file);
        newXS("Gtk2::ComboBox::set_active_iter", XS_Gtk2__ComboBox_set_active_iter, file);
        newXS("Gtk2::ComboBox::set_model", XS_Gtk2__ComboBox_set_model, file);
        newXS("Gtk2::ComboBox::get_model", XS_Gtk2__ComboBox_get_model, file);
        newXS("Gtk2::ComboBox::new_text", XS_Gtk2__ComboBox_new_text, file);
        newXS("Gtk2::ComboBox::append_text", XS_Gtk2__ComboBox_append_text, file);
        newXS("Gtk2::ComboBox::insert_text", XS_Gtk2__ComboBox_insert_text, file);
        newXS("Gtk2::ComboBox::prepend_text", XS_Gtk2__ComboBox_prepend_text, file);
        newXS("Gtk2::ComboBox::remove_text", XS_Gtk2__ComboBox_remove_text, file);
        newXS("Gtk2::ComboBox::popup", XS_Gtk2__ComboBox_popup, file);
        newXS("Gtk2::ComboBox::popdown", XS_Gtk2__ComboBox_popdown, file);
#if XSubPPtmpAAAA
        newXS("Gtk2::ComboBox::get_wrap_width", XS_Gtk2__ComboBox_get_wrap_width, file);
        newXS("Gtk2::ComboBox::get_row_span_column", XS_Gtk2__ComboBox_get_row_span_column, file);
        newXS("Gtk2::ComboBox::get_column_span_column", XS_Gtk2__ComboBox_get_column_span_column, file);
#endif
#if XSubPPtmpAAAB
        newXS("Gtk2::ComboBox::get_active_text", XS_Gtk2__ComboBox_get_active_text, file);
        newXS("Gtk2::ComboBox::get_add_tearoffs", XS_Gtk2__ComboBox_get_add_tearoffs, file);
        newXS("Gtk2::ComboBox::set_add_tearoffs", XS_Gtk2__ComboBox_set_add_tearoffs, file);
        newXS("Gtk2::ComboBox::set_row_separator_func", XS_Gtk2__ComboBox_set_row_separator_func, file);
        newXS("Gtk2::ComboBox::set_focus_on_click", XS_Gtk2__ComboBox_set_focus_on_click, file);
        newXS("Gtk2::ComboBox::get_focus_on_click", XS_Gtk2__ComboBox_get_focus_on_click, file);
#endif
#if XSubPPtmpAAAC
        newXS("Gtk2::ComboBox::set_title", XS_Gtk2__ComboBox_set_title, file);
        newXS("Gtk2::ComboBox::get_title", XS_Gtk2__ComboBox_get_title, file);
#endif
#if XSubPPtmpAAAD
        newXS("Gtk2::ComboBox::set_button_sensitivity", XS_Gtk2__ComboBox_set_button_sensitivity, file);
        newXS("Gtk2::ComboBox::get_button_sensitivity", XS_Gtk2__ComboBox_get_button_sensitivity, file);
#endif

    /* Initialisation Section */

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

