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

#line 1 "xs/GtkTreeView.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"

/* handlers for GtkTreeCellDataFunc, defined in GtkTreeViewColumn.xs */
GPerlCallback * gtk2perl_tree_cell_data_func_create (SV * func, SV *data);
void  gtk2perl_tree_cell_data_func (GtkTreeViewColumn * tree_column,
                                    GtkCellRenderer * cell,
                                    GtkTreeModel * tree_model,
                                    GtkTreeIter * iter,
                                    gpointer data);

static GPerlCallback *
gtk2perl_tree_view_column_drop_func_create (SV * func, SV *data)
{
	GType param_types [4];
	param_types[0] = GTK_TYPE_TREE_VIEW;
	param_types[1] = GTK_TYPE_TREE_VIEW_COLUMN;
	param_types[2] = GTK_TYPE_TREE_VIEW_COLUMN;
	param_types[3] = GTK_TYPE_TREE_VIEW_COLUMN;
	return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
	                           param_types, G_TYPE_BOOLEAN);
}

static gboolean
gtk2perl_tree_view_column_drop_func (GtkTreeView * tree_view,
				     GtkTreeViewColumn * column,
				     GtkTreeViewColumn * prev_column,
				     GtkTreeViewColumn * next_column,
				     gpointer data)
{
	GPerlCallback * callback = (GPerlCallback*)data;
	GValue value = {0,};
	gboolean retval;

	g_value_init (&value, callback->return_type);
	gperl_callback_invoke (callback, &value, tree_view, column,
	                       prev_column, next_column);
	retval = g_value_get_boolean (&value);
	g_value_unset (&value);

	return retval;
}

static GPerlCallback *
gtk2perl_tree_view_mapping_func_create (SV * func, SV *data)
{
	GType param_types [2];
	param_types[0] = GTK_TYPE_TREE_VIEW;
	param_types[1] = GTK_TYPE_TREE_PATH;
	return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
	                           param_types, 0);
}

static void
gtk2perl_tree_view_mapping_func (GtkTreeView * tree_view,
				 GtkTreePath * tree_path,
				 gpointer data)
{
	gperl_callback_invoke ((GPerlCallback*)data, NULL,
	                        tree_view, tree_path);
}

static GPerlCallback *
gtk2perl_tree_view_search_equal_func_create (SV * func, SV *data)
{
	GType param_types [4];
	param_types[0] = GTK_TYPE_TREE_MODEL;
	param_types[1] = GTK_TYPE_INT;
	param_types[2] = G_TYPE_STRING;
	param_types[3] = GTK_TYPE_TREE_ITER;
	return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
	                           param_types, G_TYPE_BOOLEAN);
}

static gboolean
gtk2perl_tree_view_search_equal_func (GtkTreeModel * model,
				      gint column,
				      const gchar * key,
				      GtkTreeIter * iter,
				      gpointer data)
{
	GPerlCallback * callback = (GPerlCallback*)data;
	GValue value = {0,};
	gboolean retval;

	g_value_init (&value, callback->return_type);
	gperl_callback_invoke (callback, &value, model, column, key, iter);
	retval = g_value_get_boolean (&value);
	g_value_unset (&value);

	return retval;
}

#if 0
/* see commentary above gtk_tree_view_set_destroy_count_func() for details on
 * why this is commented out. */
static GPerlCallback *
gtk2perl_tree_view_destroy_count_func_create (SV * func, SV *data)
{
	GType param_types[3];
	param_types[0] = GTK_TYPE_TREE_VIEW;
	param_types[1] = GTK_TYPE_TREE_PATH;
	param_types[2] = GTK_TYPE_INT;
	return gperl_callback_new (func, data, G_N_ELEMENTS(param_types), param_types, 0);
}

static void
gtk2perl_tree_view_destroy_count_func (GtkTreeView * tree_view,
				       GtkTreePath * path,
				       gint children,
				       gpointer data)
{
	gperl_callback_invoke ((GPerlCallback*)data, NULL, tree_view, path, children);
}
#endif

#if GTK_CHECK_VERSION (2, 6, 0)

/* Also used in GtkComboBox.xs. */

GPerlCallback *
gtk2perl_tree_view_row_separator_func_create (SV * func, SV * data)
{
	GType param_types[2];
	param_types[0] = GTK_TYPE_TREE_MODEL;
	param_types[1] = GTK_TYPE_TREE_ITER;
	return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
				   param_types, G_TYPE_BOOLEAN);
}

gboolean
gtk2perl_tree_view_row_separator_func (GtkTreeModel      *model,
				       GtkTreeIter       *iter,
				       gpointer           data)
{
	GPerlCallback * callback = (GPerlCallback *) data;
	GValue value = {0, };
	gboolean retval;

	g_value_init (&value, callback->return_type);
	gperl_callback_invoke (callback, &value, model, iter);
	retval = g_value_get_boolean (&value);
	g_value_unset (&value);

	return retval;
}

#endif /* 2.6.0 */

#if GTK_CHECK_VERSION (2, 10, 0)

static GPerlCallback *
gtk2perl_tree_view_search_position_func_create (SV * func,
                                                SV * data)
{
        GType param_types[2];
        param_types[0] = GTK_TYPE_TREE_VIEW;
        param_types[1] = GTK_TYPE_WIDGET;
        return gperl_callback_new (func, data, G_N_ELEMENTS (param_types),
                                   param_types, G_TYPE_NONE);
}

static void
gtk2perl_tree_view_search_position_func (GtkTreeView *tree_view,
                                         GtkWidget *search_dialog,
                                         gpointer user_data)
{
        gperl_callback_invoke ((GPerlCallback *) user_data, NULL,
                               tree_view, search_dialog);
}

#endif /* 2.10 */


#line 205 "xs/GtkTreeView.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 347 "xs/GtkTreeView.c"

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

	if (items < 2)
	    model = NULL;
	else {
	    model = SvGtkTreeModel (ST(1))
;
	}
#line 207 "xs/GtkTreeView.xs"
	if (model)
		RETVAL = gtk_tree_view_new_with_model (model);
	else
		RETVAL = gtk_tree_view_new ();
#line 370 "xs/GtkTreeView.c"
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_new_with_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_new_with_model)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, model");
    {
	GtkTreeModel *	model = SvGtkTreeModel (ST(1))
;
	GtkWidget *	RETVAL;

	RETVAL = gtk_tree_view_new_with_model(model);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_model)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeModel_ornull *	RETVAL;

	RETVAL = gtk_tree_view_get_model(tree_view);
	ST(0) = newSVGtkTreeModel_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_model); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_model)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, model");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeModel_ornull *	model = SvGtkTreeModel_ornull (ST(1))
;

	gtk_tree_view_set_model(tree_view, model);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_selection); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_selection)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeSelection *	RETVAL;

	RETVAL = gtk_tree_view_get_selection(tree_view);
	ST(0) = newSVGtkTreeSelection (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkAdjustment_ornull *	RETVAL;

	RETVAL = gtk_tree_view_get_hadjustment(tree_view);
	ST(0) = newSVGtkAdjustment_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_vadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_vadjustment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkAdjustment_ornull *	RETVAL;

	RETVAL = gtk_tree_view_get_vadjustment(tree_view);
	ST(0) = newSVGtkAdjustment_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, adjustment");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkAdjustment_ornull *	adjustment = SvGtkAdjustment_ornull (ST(1))
;

	gtk_tree_view_set_hadjustment(tree_view, adjustment);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_vadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_vadjustment)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, adjustment");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkAdjustment_ornull *	adjustment = SvGtkAdjustment_ornull (ST(1))
;

	gtk_tree_view_set_vadjustment(tree_view, adjustment);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_headers_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_headers_visible)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_get_headers_visible(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_headers_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_headers_visible)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, headers_visible");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	headers_visible = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_headers_visible(tree_view, headers_visible);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_columns_autosize); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_columns_autosize)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	gtk_tree_view_columns_autosize(tree_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_headers_clickable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_headers_clickable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, setting");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_headers_clickable(tree_view, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_rules_hint); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_rules_hint)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, setting");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_rules_hint(tree_view, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_rules_hint); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_rules_hint)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_get_rules_hint(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_append_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_append_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(1))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_tree_view_append_column(tree_view, column);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_remove_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_remove_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(1))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_tree_view_remove_column(tree_view, column);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_insert_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_insert_column)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, column, position");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(1))
;
	gint	position = (gint)SvIV(ST(2))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_tree_view_insert_column(tree_view, column, position);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_insert_column_with_data_func); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_insert_column_with_data_func)
{
    dVAR; dXSARGS;
    if (items < 5 || items > 6)
       croak_xs_usage(cv,  "tree_view, position, title, cell, func, data=NULL");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	position = (gint)SvIV(ST(1))
;
	const gchar *	title;
	GtkCellRenderer *	cell = SvGtkCellRenderer (ST(3))
;
	SV *	func = ST(4)
;
	SV *	data;
#line 317 "xs/GtkTreeView.xs"
	GPerlCallback * callback;
#line 717 "xs/GtkTreeView.c"
	gint	RETVAL;
	dXSTARG;

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

	if (items < 6)
	    data = NULL;
	else {
	    data = ST(5)
;
	}
#line 319 "xs/GtkTreeView.xs"
	callback = gtk2perl_tree_cell_data_func_create (func, data);
	RETVAL = gtk_tree_view_insert_column_with_data_func
				(tree_view, position, title, cell,
				 gtk2perl_tree_cell_data_func, callback,
				 (GDestroyNotify) gperl_callback_destroy);
#line 738 "xs/GtkTreeView.c"
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, n");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	n = (gint)SvIV(ST(1))
;
	GtkTreeViewColumn *	RETVAL;

	RETVAL = gtk_tree_view_get_column(tree_view, n);
	ST(0) = newSVGtkTreeViewColumn (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_columns); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_columns)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
#line 339 "xs/GtkTreeView.xs"
	GList * columns, * i;
#line 779 "xs/GtkTreeView.c"
#line 341 "xs/GtkTreeView.xs"
	columns = gtk_tree_view_get_columns (tree_view);
	if (!columns)
		XSRETURN_EMPTY;
	EXTEND (SP, (int) g_list_length (columns));
	for (i = columns ; i ; i = i->next)
		PUSHs (sv_2mortal (newSVGtkTreeViewColumn (GTK_TREE_VIEW_COLUMN (i->data))));
	g_list_free (columns);
#line 788 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_move_column_after); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_move_column_after)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, column, base_column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(1))
;
	GtkTreeViewColumn_ornull *	base_column = SvGtkTreeViewColumn_ornull (ST(2))
;

	gtk_tree_view_move_column_after(tree_view, column, base_column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_expander_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_expander_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn_ornull *	column = SvGtkTreeViewColumn_ornull (ST(1))
;

	gtk_tree_view_set_expander_column(tree_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_expander_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_expander_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewColumn_ornull *	RETVAL;

	RETVAL = gtk_tree_view_get_expander_column(tree_view);
	ST(0) = newSVGtkTreeViewColumn_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_column_drag_function); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_column_drag_function)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "tree_view, func, data=NULL");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;
#line 371 "xs/GtkTreeView.xs"
	GtkTreeViewColumnDropFunc real_func;
	gpointer real_data;
	GtkDestroyNotify destroy;
#line 868 "xs/GtkTreeView.c"

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 375 "xs/GtkTreeView.xs"
	if (gperl_sv_is_defined (func)) {
		real_func = gtk2perl_tree_view_column_drop_func;
		real_data =
			gtk2perl_tree_view_column_drop_func_create
				(func, data);
		destroy = (GDestroyNotify) gperl_callback_destroy;
	} else {
		real_func = real_data = destroy = NULL;
	}
	gtk_tree_view_set_column_drag_function (tree_view,
						real_func,
						real_data,
						destroy);
#line 890 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_scroll_to_point); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_scroll_to_point)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, tree_x, tree_y");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	tree_x = ST(1)
;
	SV *	tree_y = ST(2)
;
#line 397 "xs/GtkTreeView.xs"
	gint real_tree_x = -1;
	gint real_tree_y = -1;
#line 912 "xs/GtkTreeView.c"
#line 400 "xs/GtkTreeView.xs"
	/* can't do SvTRUE, because 0 is defined but not true. */
	real_tree_x = gperl_sv_is_defined (tree_x) && looks_like_number (tree_x)
	            ? SvIV (tree_x) : -1;
	real_tree_y = gperl_sv_is_defined (tree_y) && looks_like_number (tree_y)
	            ? SvIV (tree_y) : -1;
	gtk_tree_view_scroll_to_point (tree_view, real_tree_x, real_tree_y);
#line 920 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_scroll_to_cell); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_scroll_to_cell)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 6)
       croak_xs_usage(cv,  "tree_view, path, column=NULL, use_align=FALSE, row_align=0.0, col_align=0.0");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath_ornull *	path = SvGtkTreePath_ornull (ST(1))
;
	GtkTreeViewColumn_ornull *	column;
	gboolean	use_align;
	gfloat	row_align;
	gfloat	col_align;

	if (items < 3)
	    column = NULL;
	else {
	    column = SvGtkTreeViewColumn_ornull (ST(2))
;
	}

	if (items < 4)
	    use_align = FALSE;
	else {
	    use_align = (bool)SvTRUE(ST(3))
;
	}

	if (items < 5)
	    row_align = 0.0;
	else {
	    row_align = (float)SvNV(ST(4))
;
	}

	if (items < 6)
	    col_align = 0.0;
	else {
	    col_align = (float)SvNV(ST(5))
;
	}

	gtk_tree_view_scroll_to_cell(tree_view, path, column, use_align, row_align, col_align);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_row_activated); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_row_activated)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, path, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(2))
;

	gtk_tree_view_row_activated(tree_view, path, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_expand_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_expand_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	gtk_tree_view_expand_all(tree_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_collapse_all); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_collapse_all)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	gtk_tree_view_collapse_all(tree_view);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TreeView_expand_to_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_expand_to_path)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, path");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	gtk_tree_view_expand_to_path(tree_view, path);
    }
    XSRETURN_EMPTY;
}

#endif /* >= 2.2.0 */

XS_EUPXS(XS_Gtk2__TreeView_expand_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_expand_row)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, path, open_all");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	gboolean	open_all = (bool)SvTRUE(ST(2))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_expand_row(tree_view, path, open_all);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_collapse_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_collapse_row)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, path");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_collapse_row(tree_view, path);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_map_expanded_rows); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_map_expanded_rows)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "tree_view, func, data=NULL");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;
#line 457 "xs/GtkTreeView.xs"
	GPerlCallback * callback;
#line 1106 "xs/GtkTreeView.c"

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 459 "xs/GtkTreeView.xs"
	callback = gtk2perl_tree_view_mapping_func_create (func, data);
	gtk_tree_view_map_expanded_rows (tree_view,
					 gtk2perl_tree_view_mapping_func,
					 callback);
	gperl_callback_destroy (callback);
#line 1120 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_row_expanded); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_row_expanded)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, path");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_row_expanded(tree_view, path);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_reorderable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_reorderable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, reorderable");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	reorderable = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_reorderable(tree_view, reorderable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_reorderable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_reorderable)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_get_reorderable(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_cursor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_cursor)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 4)
       croak_xs_usage(cv,  "tree_view, path, focus_column=NULL, start_editing=FALSE");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	GtkTreeViewColumn_ornull *	focus_column;
	gboolean	start_editing;

	if (items < 3)
	    focus_column = NULL;
	else {
	    focus_column = SvGtkTreeViewColumn_ornull (ST(2))
;
	}

	if (items < 4)
	    start_editing = FALSE;
	else {
	    start_editing = (bool)SvTRUE(ST(3))
;
	}

	gtk_tree_view_set_cursor(tree_view, path, focus_column, start_editing);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TreeView_set_cursor_on_cell); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_cursor_on_cell)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "tree_view, path, focus_column, focus_cell, start_editing");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;
	GtkTreeViewColumn_ornull *	focus_column = SvGtkTreeViewColumn_ornull (ST(2))
;
	GtkCellRenderer_ornull *	focus_cell = SvGtkCellRenderer_ornull (ST(3))
;
	gboolean	start_editing = (bool)SvTRUE(ST(4))
;

	gtk_tree_view_set_cursor_on_cell(tree_view, path, focus_column, focus_cell, start_editing);
    }
    XSRETURN_EMPTY;
}

#endif /* >= 2.2.0 */

XS_EUPXS(XS_Gtk2__TreeView_get_cursor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_cursor)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
#line 508 "xs/GtkTreeView.xs"
	GtkTreePath *path = NULL;
	GtkTreeViewColumn *focus_column = NULL;
#line 1258 "xs/GtkTreeView.c"
#line 511 "xs/GtkTreeView.xs"
	gtk_tree_view_get_cursor (tree_view, &path, &focus_column);
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own_ornull (path)));
	PUSHs (sv_2mortal (newSVGtkTreeViewColumn_ornull (focus_column)));
#line 1264 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_get_path_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_path_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, x, y");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
#line 538 "xs/GtkTreeView.xs"
	GtkTreePath *path;
	GtkTreeViewColumn *column;
	gint cell_x;
	gint cell_y;
#line 1291 "xs/GtkTreeView.c"
#line 543 "xs/GtkTreeView.xs"
	if (!gtk_tree_view_get_path_at_pos (tree_view, x, y, &path, &column, &cell_x, &cell_y))
		XSRETURN_EMPTY;
	XPUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	if (GIMME_V == G_ARRAY) {
		XPUSHs (sv_2mortal (newSVGtkTreeViewColumn (column)));
		XPUSHs (sv_2mortal (newSViv (cell_x)));
		XPUSHs (sv_2mortal (newSViv (cell_y)));
	}
#line 1301 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_get_cell_area); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_cell_area)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, path, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath_ornull *	path = SvGtkTreePath_ornull (ST(1))
;
	GtkTreeViewColumn_ornull *	column = SvGtkTreeViewColumn_ornull (ST(2))
;
#line 560 "xs/GtkTreeView.xs"
	GdkRectangle rect;
#line 1323 "xs/GtkTreeView.c"
	GdkRectangle_copy *	RETVAL;
#line 562 "xs/GtkTreeView.xs"
	gtk_tree_view_get_cell_area (tree_view, path, column, &rect);
	RETVAL = &rect;
#line 1328 "xs/GtkTreeView.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_background_area); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_background_area)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, path, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath_ornull *	path = SvGtkTreePath_ornull (ST(1))
;
	GtkTreeViewColumn_ornull *	column = SvGtkTreeViewColumn_ornull (ST(2))
;
#line 574 "xs/GtkTreeView.xs"
	GdkRectangle rect;
#line 1351 "xs/GtkTreeView.c"
	GdkRectangle_copy *	RETVAL;
#line 576 "xs/GtkTreeView.xs"
	gtk_tree_view_get_background_area (tree_view, path, column, &rect);
	RETVAL = &rect;
#line 1356 "xs/GtkTreeView.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_visible_rect); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_visible_rect)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
#line 586 "xs/GtkTreeView.xs"
	GdkRectangle visible_rect;
#line 1375 "xs/GtkTreeView.c"
	GdkRectangle_copy *	RETVAL;
#line 588 "xs/GtkTreeView.xs"
	gtk_tree_view_get_visible_rect (tree_view, &visible_rect);
	RETVAL = &visible_rect;
#line 1380 "xs/GtkTreeView.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_bin_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_bin_window)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GdkWindow *	RETVAL;

	RETVAL = gtk_tree_view_get_bin_window(tree_view);
	ST(0) = newSVGdkWindow (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_widget_to_tree_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_widget_to_tree_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, wx, wy");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	wx = (gint)SvIV(ST(1))
;
	gint	wy = (gint)SvIV(ST(2))
;
	gint	tx;
	gint	ty;

	gtk_tree_view_widget_to_tree_coords(tree_view, wx, wy, &tx, &ty);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)tx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)ty);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_tree_to_widget_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_tree_to_widget_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, tx, ty");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	tx = (gint)SvIV(ST(1))
;
	gint	ty = (gint)SvIV(ST(2))
;
	gint	wx;
	gint	wy;

	gtk_tree_view_tree_to_widget_coords(tree_view, tx, ty, &wx, &wy);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)wx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)wy);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_create_row_drag_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_create_row_drag_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, path");
    {
	GdkPixmap *	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath *	path = SvGtkTreePath (ST(1))
;

	RETVAL = gtk_tree_view_create_row_drag_icon(tree_view, path);
	ST(0) = newSVGdkPixmap (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_enable_model_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_enable_model_drag_source)
{
    dVAR; dXSARGS;
    if (items < 3)
       croak_xs_usage(cv,  "tree_view, start_button_mask, actions, ...");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GdkModifierType	start_button_mask = SvGdkModifierType (ST(1))
;
	GdkDragAction	actions = SvGdkDragAction (ST(2))
;
#line 616 "xs/GtkTreeView.xs"
    	GtkTargetEntry * targets = NULL;
	gint n_targets, i;
#line 1498 "xs/GtkTreeView.c"
#line 619 "xs/GtkTreeView.xs"
#define FIRST_TARGET 3
	n_targets = items - FIRST_TARGET;
	targets = g_new (GtkTargetEntry, n_targets);
	for (i = 0 ; i < n_targets ; i++)
		gtk2perl_read_gtk_target_entry (ST (i+FIRST_TARGET), targets+i);
	gtk_tree_view_enable_model_drag_source (tree_view, start_button_mask, targets, n_targets, actions);
#undef FIRST_TARGET
#line 1507 "xs/GtkTreeView.c"
#line 627 "xs/GtkTreeView.xs"
	g_free (targets);
#line 1510 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_enable_model_drag_dest); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_enable_model_drag_dest)
{
    dVAR; dXSARGS;
    if (items < 2)
       croak_xs_usage(cv,  "tree_view, actions, ...");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GdkDragAction	actions = SvGdkDragAction (ST(1))
;
#line 638 "xs/GtkTreeView.xs"
	GtkTargetEntry * targets = NULL;
	gint n_targets, i;
#line 1530 "xs/GtkTreeView.c"
#line 641 "xs/GtkTreeView.xs"
#define FIRST_TARGET 2
	n_targets = items - FIRST_TARGET;
	targets = g_new (GtkTargetEntry, n_targets);
	for (i = 0 ; i < n_targets ; i++)
		gtk2perl_read_gtk_target_entry (ST (i+FIRST_TARGET), targets+i);
	gtk_tree_view_enable_model_drag_dest (tree_view, targets, n_targets, actions);
#undef FIRST_TARGET
#line 1539 "xs/GtkTreeView.c"
#line 649 "xs/GtkTreeView.xs"
	g_free (targets);
#line 1542 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_unset_rows_drag_source); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_unset_rows_drag_source)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	gtk_tree_view_unset_rows_drag_source(tree_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_unset_rows_drag_dest); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_unset_rows_drag_dest)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	gtk_tree_view_unset_rows_drag_dest(tree_view);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_drag_dest_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_drag_dest_row)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, path, pos");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreePath_ornull *	path = SvGtkTreePath_ornull (ST(1))
;
	GtkTreeViewDropPosition	pos = SvGtkTreeViewDropPosition (ST(2))
;

	gtk_tree_view_set_drag_dest_row(tree_view, path, pos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_drag_dest_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_drag_dest_row)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
#line 676 "xs/GtkTreeView.xs"
	GtkTreePath *path;
	GtkTreeViewDropPosition pos;
#line 1614 "xs/GtkTreeView.c"
#line 679 "xs/GtkTreeView.xs"
	gtk_tree_view_get_drag_dest_row (tree_view, &path, &pos);
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkTreeViewDropPosition (pos)));
#line 1620 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_get_dest_row_at_pos); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_dest_row_at_pos)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, drag_x, drag_y");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	drag_x = (gint)SvIV(ST(1))
;
	gint	drag_y = (gint)SvIV(ST(2))
;
#line 694 "xs/GtkTreeView.xs"
	GtkTreePath *path;
	GtkTreeViewDropPosition pos;
#line 1645 "xs/GtkTreeView.c"
#line 697 "xs/GtkTreeView.xs"
	if (!gtk_tree_view_get_dest_row_at_pos (tree_view, drag_x, drag_y, &path, &pos))
		XSRETURN_EMPTY;
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkTreeViewDropPosition (pos)));
#line 1652 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_set_enable_search); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_enable_search)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, enable_search");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	enable_search = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_enable_search(tree_view, enable_search);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_enable_search); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_enable_search)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_tree_view_get_enable_search(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_search_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_search_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_tree_view_get_search_column(tree_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_search_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_search_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_tree_view_set_search_column(tree_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_search_equal_func); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_search_equal_func)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "tree_view, func, data=NULL");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;
#line 742 "xs/GtkTreeView.xs"
	GPerlCallback * callback;
#line 1746 "xs/GtkTreeView.c"

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 744 "xs/GtkTreeView.xs"
	callback = gtk2perl_tree_view_search_equal_func_create (func, data);
	gtk_tree_view_set_search_equal_func (tree_view,
	                         gtk2perl_tree_view_search_equal_func,
	                         callback,
	                         (GDestroyNotify) gperl_callback_destroy);
#line 1760 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TreeView_set_fixed_height_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_fixed_height_mode)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "treeview, enable");
    {
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;
	gboolean	enable = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_fixed_height_mode(treeview, enable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_fixed_height_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_fixed_height_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "treeview");
    {
	gboolean	RETVAL;
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_fixed_height_mode(treeview);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_hover_selection); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_hover_selection)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "treeview, hover");
    {
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;
	gboolean	hover = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_hover_selection(treeview, hover);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_hover_selection); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_hover_selection)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "treeview");
    {
	gboolean	RETVAL;
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_hover_selection(treeview);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_hover_expand); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_hover_expand)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "treeview, expand");
    {
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;
	gboolean	expand = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_hover_expand(treeview, expand);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_hover_expand); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_hover_expand)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "treeview");
    {
	gboolean	RETVAL;
	GtkTreeView *	treeview = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_hover_expand(treeview);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_row_separator_func); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_row_separator_func)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "tree_view, func, data=NULL");
    {
#line 791 "xs/GtkTreeView.xs"
	GtkTreeViewRowSeparatorFunc real_func;
	gpointer real_data;
	GtkDestroyNotify destroy;
#line 1888 "xs/GtkTreeView.c"
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	data;

	if (items < 3)
	    data = NULL;
	else {
	    data = ST(2)
;
	}
#line 795 "xs/GtkTreeView.xs"
	if (gperl_sv_is_defined (func)) {
		real_func = gtk2perl_tree_view_row_separator_func;
		real_data =
			gtk2perl_tree_view_row_separator_func_create (
				func, data);
		destroy = (GtkDestroyNotify) gperl_callback_destroy;
        } else {
                real_func = real_data = destroy = NULL;
        }
	gtk_tree_view_set_row_separator_func (
		tree_view, real_func, real_data, destroy);
#line 1913 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TreeView_get_visible_range); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_visible_range)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
#line 820 "xs/GtkTreeView.xs"
	GtkTreePath *start_path, *end_path;
#line 1936 "xs/GtkTreeView.c"
#line 822 "xs/GtkTreeView.xs"
	if (!gtk_tree_view_get_visible_range (tree_view, &start_path, &end_path))
		XSRETURN_EMPTY;
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGtkTreePath_own (start_path)));
	PUSHs (sv_2mortal (newSVGtkTreePath_own (end_path)));
#line 1943 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}

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


XS_EUPXS(XS_Gtk2__TreeView_get_headers_clickable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_headers_clickable)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gboolean	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_headers_clickable(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_search_entry); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_search_entry)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, entry");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkEntry_ornull *	entry = SvGtkEntry_ornull (ST(1))
;

	gtk_tree_view_set_search_entry(tree_view, entry);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_search_entry); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_search_entry)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkEntry_ornull *	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_search_entry(tree_view);
	ST(0) = newSVGtkEntry_ornull (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_search_position_func); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_search_position_func)
{
    dVAR; dXSARGS;
    if (items < 2 || items > 3)
       croak_xs_usage(cv,  "tree_view, func, user_data=NULL");
    {
#line 843 "xs/GtkTreeView.xs"
        GtkTreeViewSearchPositionFunc real_func;
        gpointer real_data;
        GDestroyNotify destroy;
#line 2020 "xs/GtkTreeView.c"
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	SV *	func = ST(1)
;
	SV *	user_data;

	if (items < 3)
	    user_data = NULL;
	else {
	    user_data = ST(2)
;
	}
#line 847 "xs/GtkTreeView.xs"
        if (SvTRUE (func)) {
                real_func = gtk2perl_tree_view_search_position_func;
                real_data = gtk2perl_tree_view_search_position_func_create
                                                        (func, user_data);
                destroy = (GDestroyNotify) gperl_callback_destroy;
        } else {
                real_func = real_data = destroy = NULL;
        }
        gtk_tree_view_set_search_position_func
                        (tree_view, real_func, real_data, destroy);
#line 2044 "xs/GtkTreeView.c"
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TreeView_set_rubber_banding); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_rubber_banding)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, enable");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	enable = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_rubber_banding(tree_view, enable);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_rubber_banding); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_rubber_banding)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gboolean	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_rubber_banding(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_get_grid_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_grid_lines)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	GtkTreeViewGridLines	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_grid_lines(tree_view);
	ST(0) = newSVGtkTreeViewGridLines (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_grid_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_grid_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, grid_lines");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTreeViewGridLines	grid_lines = SvGtkTreeViewGridLines (ST(1))
;

	gtk_tree_view_set_grid_lines(tree_view, grid_lines);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_enable_tree_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_enable_tree_lines)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gboolean	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_enable_tree_lines(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_enable_tree_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_enable_tree_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, enabled");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	enabled = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_enable_tree_lines(tree_view, enabled);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.10 */
#if GTK_CHECK_VERSION (2, 12, 0)
#define XSubPPtmpAAAG 1


XS_EUPXS(XS_Gtk2__TreeView_set_show_expanders); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_show_expanders)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, enabled");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gboolean	enabled = (bool)SvTRUE(ST(1))
;

	gtk_tree_view_set_show_expanders(tree_view, enabled);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_show_expanders); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_show_expanders)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gboolean	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_show_expanders(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_level_indentation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_level_indentation)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, indentation");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	indentation = (gint)SvIV(ST(1))
;

	gtk_tree_view_set_level_indentation(tree_view, indentation);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_level_indentation); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_level_indentation)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_level_indentation(tree_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_widget_to_tree_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_widget_to_tree_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, wx, wy");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	wx = (gint)SvIV(ST(1))
;
	gint	wy = (gint)SvIV(ST(2))
;
	gint	tx;
	gint	ty;

	gtk_tree_view_convert_widget_to_tree_coords(tree_view, wx, wy, &tx, &ty);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)tx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)ty);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_tree_to_widget_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_tree_to_widget_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, tx, ty");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	tx = (gint)SvIV(ST(1))
;
	gint	ty = (gint)SvIV(ST(2))
;
	gint	wx;
	gint	wy;

	gtk_tree_view_convert_tree_to_widget_coords(tree_view, tx, ty, &wx, &wy);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)wx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)wy);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_widget_to_bin_window_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_widget_to_bin_window_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, wx, wy");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	wx = (gint)SvIV(ST(1))
;
	gint	wy = (gint)SvIV(ST(2))
;
	gint	bx;
	gint	by;

	gtk_tree_view_convert_widget_to_bin_window_coords(tree_view, wx, wy, &bx, &by);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)bx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)by);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_bin_window_to_widget_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_bin_window_to_widget_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, bx, by");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	bx = (gint)SvIV(ST(1))
;
	gint	by = (gint)SvIV(ST(2))
;
	gint	wx;
	gint	wy;

	gtk_tree_view_convert_bin_window_to_widget_coords(tree_view, bx, by, &wx, &wy);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)wx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)wy);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_tree_to_bin_window_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_tree_to_bin_window_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, tx, ty");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	tx = (gint)SvIV(ST(1))
;
	gint	ty = (gint)SvIV(ST(2))
;
	gint	bx;
	gint	by;

	gtk_tree_view_convert_tree_to_bin_window_coords(tree_view, tx, ty, &bx, &by);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)bx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)by);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_convert_bin_window_to_tree_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_convert_bin_window_to_tree_coords)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, bx, by");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	bx = (gint)SvIV(ST(1))
;
	gint	by = (gint)SvIV(ST(2))
;
	gint	tx;
	gint	ty;

	gtk_tree_view_convert_bin_window_to_tree_coords(tree_view, bx, by, &tx, &ty);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)tx);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)ty);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TreeView_is_rubber_banding_active); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_is_rubber_banding_active)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gboolean	RETVAL;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_is_rubber_banding_active(tree_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_row); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_row)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "tree_view, tooltip, path");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTooltip *	tooltip = SvGtkTooltip (ST(1))
;
	GtkTreePath *	path = SvGtkTreePath (ST(2))
;

	gtk_tree_view_set_tooltip_row(tree_view, tooltip, path);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_cell); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_cell)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "tree_view, tooltip, path, column, cell");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	GtkTooltip *	tooltip = SvGtkTooltip (ST(1))
;
	GtkTreePath *	path = SvGtkTreePath (ST(2))
;
	GtkTreeViewColumn *	column = SvGtkTreeViewColumn (ST(3))
;
	GtkCellRenderer *	cell = SvGtkCellRenderer (ST(4))
;

	gtk_tree_view_set_tooltip_cell(tree_view, tooltip, path, column, cell);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_tooltip_context); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_tooltip_context)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "tree_view, x, y, keyboard_tip");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 915 "xs/GtkTreeView.xs"
	GtkTreeModel *model = NULL;
	GtkTreePath *path = NULL;
	GtkTreeIter iter = {0, };
#line 2477 "xs/GtkTreeView.c"
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
	gboolean	keyboard_tip = (bool)SvTRUE(ST(3))
;
#line 919 "xs/GtkTreeView.xs"
	/* PUTBACK/SPAGAIN because gtk_tree_view_get_tooltip_context() calls
	   out to its model get_iter(), which may be perl */
	PUTBACK;
	if (! gtk_tree_view_get_tooltip_context (tree_view, &x, &y, keyboard_tip, &model, &path, &iter))
		XSRETURN_EMPTY;
	SPAGAIN;
	EXTEND (sp, 5);
	PUSHs (sv_2mortal (newSViv (x)));
	PUSHs (sv_2mortal (newSViv (y)));
	PUSHs (sv_2mortal (newSVGtkTreeModel (model)));
	PUSHs (sv_2mortal (newSVGtkTreePath_own (path)));
	PUSHs (sv_2mortal (newSVGtkTreeIter_copy (&iter)));
#line 2499 "xs/GtkTreeView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_set_tooltip_column)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "tree_view, column");
    {
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;
	gint	column = (gint)SvIV(ST(1))
;

	gtk_tree_view_set_tooltip_column(tree_view, column);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TreeView_get_tooltip_column); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TreeView_get_tooltip_column)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "tree_view");
    {
	gint	RETVAL;
	dXSTARG;
	GtkTreeView *	tree_view = SvGtkTreeView (ST(0))
;

	RETVAL = gtk_tree_view_get_tooltip_column(tree_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

#endif /* 2.12 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__TreeView); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__TreeView)
{
    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::TreeView::new", XS_Gtk2__TreeView_new, file);
        newXS("Gtk2::TreeView::new_with_model", XS_Gtk2__TreeView_new_with_model, file);
        newXS("Gtk2::TreeView::get_model", XS_Gtk2__TreeView_get_model, file);
        newXS("Gtk2::TreeView::set_model", XS_Gtk2__TreeView_set_model, file);
        newXS("Gtk2::TreeView::get_selection", XS_Gtk2__TreeView_get_selection, file);
        newXS("Gtk2::TreeView::get_hadjustment", XS_Gtk2__TreeView_get_hadjustment, file);
        newXS("Gtk2::TreeView::get_vadjustment", XS_Gtk2__TreeView_get_vadjustment, file);
        newXS("Gtk2::TreeView::set_hadjustment", XS_Gtk2__TreeView_set_hadjustment, file);
        newXS("Gtk2::TreeView::set_vadjustment", XS_Gtk2__TreeView_set_vadjustment, file);
        newXS("Gtk2::TreeView::get_headers_visible", XS_Gtk2__TreeView_get_headers_visible, file);
        newXS("Gtk2::TreeView::set_headers_visible", XS_Gtk2__TreeView_set_headers_visible, file);
        newXS("Gtk2::TreeView::columns_autosize", XS_Gtk2__TreeView_columns_autosize, file);
        newXS("Gtk2::TreeView::set_headers_clickable", XS_Gtk2__TreeView_set_headers_clickable, file);
        newXS("Gtk2::TreeView::set_rules_hint", XS_Gtk2__TreeView_set_rules_hint, file);
        newXS("Gtk2::TreeView::get_rules_hint", XS_Gtk2__TreeView_get_rules_hint, file);
        newXS("Gtk2::TreeView::append_column", XS_Gtk2__TreeView_append_column, file);
        newXS("Gtk2::TreeView::remove_column", XS_Gtk2__TreeView_remove_column, file);
        newXS("Gtk2::TreeView::insert_column", XS_Gtk2__TreeView_insert_column, file);
        newXS("Gtk2::TreeView::insert_column_with_data_func", XS_Gtk2__TreeView_insert_column_with_data_func, file);
        newXS("Gtk2::TreeView::get_column", XS_Gtk2__TreeView_get_column, file);
        newXS("Gtk2::TreeView::get_columns", XS_Gtk2__TreeView_get_columns, file);
        newXS("Gtk2::TreeView::move_column_after", XS_Gtk2__TreeView_move_column_after, file);
        newXS("Gtk2::TreeView::set_expander_column", XS_Gtk2__TreeView_set_expander_column, file);
        newXS("Gtk2::TreeView::get_expander_column", XS_Gtk2__TreeView_get_expander_column, file);
        newXS("Gtk2::TreeView::set_column_drag_function", XS_Gtk2__TreeView_set_column_drag_function, file);
        newXS("Gtk2::TreeView::scroll_to_point", XS_Gtk2__TreeView_scroll_to_point, file);
        newXS("Gtk2::TreeView::scroll_to_cell", XS_Gtk2__TreeView_scroll_to_cell, file);
        newXS("Gtk2::TreeView::row_activated", XS_Gtk2__TreeView_row_activated, file);
        newXS("Gtk2::TreeView::expand_all", XS_Gtk2__TreeView_expand_all, file);
        newXS("Gtk2::TreeView::collapse_all", XS_Gtk2__TreeView_collapse_all, file);
#if XSubPPtmpAAAA
        newXS("Gtk2::TreeView::expand_to_path", XS_Gtk2__TreeView_expand_to_path, file);
#endif
        newXS("Gtk2::TreeView::expand_row", XS_Gtk2__TreeView_expand_row, file);
        newXS("Gtk2::TreeView::collapse_row", XS_Gtk2__TreeView_collapse_row, file);
        newXS("Gtk2::TreeView::map_expanded_rows", XS_Gtk2__TreeView_map_expanded_rows, file);
        newXS("Gtk2::TreeView::row_expanded", XS_Gtk2__TreeView_row_expanded, file);
        newXS("Gtk2::TreeView::set_reorderable", XS_Gtk2__TreeView_set_reorderable, file);
        newXS("Gtk2::TreeView::get_reorderable", XS_Gtk2__TreeView_get_reorderable, file);
        newXS("Gtk2::TreeView::set_cursor", XS_Gtk2__TreeView_set_cursor, file);
#if XSubPPtmpAAAB
        newXS("Gtk2::TreeView::set_cursor_on_cell", XS_Gtk2__TreeView_set_cursor_on_cell, file);
#endif
        newXS("Gtk2::TreeView::get_cursor", XS_Gtk2__TreeView_get_cursor, file);
        newXS("Gtk2::TreeView::get_path_at_pos", XS_Gtk2__TreeView_get_path_at_pos, file);
        newXS("Gtk2::TreeView::get_cell_area", XS_Gtk2__TreeView_get_cell_area, file);
        newXS("Gtk2::TreeView::get_background_area", XS_Gtk2__TreeView_get_background_area, file);
        newXS("Gtk2::TreeView::get_visible_rect", XS_Gtk2__TreeView_get_visible_rect, file);
        newXS("Gtk2::TreeView::get_bin_window", XS_Gtk2__TreeView_get_bin_window, file);
        newXS("Gtk2::TreeView::widget_to_tree_coords", XS_Gtk2__TreeView_widget_to_tree_coords, file);
        newXS("Gtk2::TreeView::tree_to_widget_coords", XS_Gtk2__TreeView_tree_to_widget_coords, file);
        newXS("Gtk2::TreeView::create_row_drag_icon", XS_Gtk2__TreeView_create_row_drag_icon, file);
        newXS("Gtk2::TreeView::enable_model_drag_source", XS_Gtk2__TreeView_enable_model_drag_source, file);
        newXS("Gtk2::TreeView::enable_model_drag_dest", XS_Gtk2__TreeView_enable_model_drag_dest, file);
        newXS("Gtk2::TreeView::unset_rows_drag_source", XS_Gtk2__TreeView_unset_rows_drag_source, file);
        newXS("Gtk2::TreeView::unset_rows_drag_dest", XS_Gtk2__TreeView_unset_rows_drag_dest, file);
        newXS("Gtk2::TreeView::set_drag_dest_row", XS_Gtk2__TreeView_set_drag_dest_row, file);
        newXS("Gtk2::TreeView::get_drag_dest_row", XS_Gtk2__TreeView_get_drag_dest_row, file);
        newXS("Gtk2::TreeView::get_dest_row_at_pos", XS_Gtk2__TreeView_get_dest_row_at_pos, file);
        newXS("Gtk2::TreeView::set_enable_search", XS_Gtk2__TreeView_set_enable_search, file);
        newXS("Gtk2::TreeView::get_enable_search", XS_Gtk2__TreeView_get_enable_search, file);
        newXS("Gtk2::TreeView::get_search_column", XS_Gtk2__TreeView_get_search_column, file);
        newXS("Gtk2::TreeView::set_search_column", XS_Gtk2__TreeView_set_search_column, file);
        newXS("Gtk2::TreeView::set_search_equal_func", XS_Gtk2__TreeView_set_search_equal_func, file);
#if XSubPPtmpAAAC
        newXS("Gtk2::TreeView::set_fixed_height_mode", XS_Gtk2__TreeView_set_fixed_height_mode, file);
        newXS("Gtk2::TreeView::get_fixed_height_mode", XS_Gtk2__TreeView_get_fixed_height_mode, file);
        newXS("Gtk2::TreeView::set_hover_selection", XS_Gtk2__TreeView_set_hover_selection, file);
        newXS("Gtk2::TreeView::get_hover_selection", XS_Gtk2__TreeView_get_hover_selection, file);
        newXS("Gtk2::TreeView::set_hover_expand", XS_Gtk2__TreeView_set_hover_expand, file);
        newXS("Gtk2::TreeView::get_hover_expand", XS_Gtk2__TreeView_get_hover_expand, file);
        newXS("Gtk2::TreeView::set_row_separator_func", XS_Gtk2__TreeView_set_row_separator_func, file);
#endif
#if XSubPPtmpAAAD
        newXS("Gtk2::TreeView::get_visible_range", XS_Gtk2__TreeView_get_visible_range, file);
#endif
#if XSubPPtmpAAAE
        newXS("Gtk2::TreeView::get_headers_clickable", XS_Gtk2__TreeView_get_headers_clickable, file);
        newXS("Gtk2::TreeView::set_search_entry", XS_Gtk2__TreeView_set_search_entry, file);
        newXS("Gtk2::TreeView::get_search_entry", XS_Gtk2__TreeView_get_search_entry, file);
        newXS("Gtk2::TreeView::set_search_position_func", XS_Gtk2__TreeView_set_search_position_func, file);
#endif
#if XSubPPtmpAAAF
        newXS("Gtk2::TreeView::set_rubber_banding", XS_Gtk2__TreeView_set_rubber_banding, file);
        newXS("Gtk2::TreeView::get_rubber_banding", XS_Gtk2__TreeView_get_rubber_banding, file);
        newXS("Gtk2::TreeView::get_grid_lines", XS_Gtk2__TreeView_get_grid_lines, file);
        newXS("Gtk2::TreeView::set_grid_lines", XS_Gtk2__TreeView_set_grid_lines, file);
        newXS("Gtk2::TreeView::get_enable_tree_lines", XS_Gtk2__TreeView_get_enable_tree_lines, file);
        newXS("Gtk2::TreeView::set_enable_tree_lines", XS_Gtk2__TreeView_set_enable_tree_lines, file);
#endif
#if XSubPPtmpAAAG
        newXS("Gtk2::TreeView::set_show_expanders", XS_Gtk2__TreeView_set_show_expanders, file);
        newXS("Gtk2::TreeView::get_show_expanders", XS_Gtk2__TreeView_get_show_expanders, file);
        newXS("Gtk2::TreeView::set_level_indentation", XS_Gtk2__TreeView_set_level_indentation, file);
        newXS("Gtk2::TreeView::get_level_indentation", XS_Gtk2__TreeView_get_level_indentation, file);
        newXS("Gtk2::TreeView::convert_widget_to_tree_coords", XS_Gtk2__TreeView_convert_widget_to_tree_coords, file);
        newXS("Gtk2::TreeView::convert_tree_to_widget_coords", XS_Gtk2__TreeView_convert_tree_to_widget_coords, file);
        newXS("Gtk2::TreeView::convert_widget_to_bin_window_coords", XS_Gtk2__TreeView_convert_widget_to_bin_window_coords, file);
        newXS("Gtk2::TreeView::convert_bin_window_to_widget_coords", XS_Gtk2__TreeView_convert_bin_window_to_widget_coords, file);
        newXS("Gtk2::TreeView::convert_tree_to_bin_window_coords", XS_Gtk2__TreeView_convert_tree_to_bin_window_coords, file);
        newXS("Gtk2::TreeView::convert_bin_window_to_tree_coords", XS_Gtk2__TreeView_convert_bin_window_to_tree_coords, file);
        newXS("Gtk2::TreeView::is_rubber_banding_active", XS_Gtk2__TreeView_is_rubber_banding_active, file);
        newXS("Gtk2::TreeView::set_tooltip_row", XS_Gtk2__TreeView_set_tooltip_row, file);
        newXS("Gtk2::TreeView::set_tooltip_cell", XS_Gtk2__TreeView_set_tooltip_cell, file);
        newXS("Gtk2::TreeView::get_tooltip_context", XS_Gtk2__TreeView_get_tooltip_context, file);
        newXS("Gtk2::TreeView::set_tooltip_column", XS_Gtk2__TreeView_set_tooltip_column, file);
        newXS("Gtk2::TreeView::get_tooltip_column", XS_Gtk2__TreeView_get_tooltip_column, file);
#endif

    /* Initialisation Section */

#line 201 "xs/GtkTreeView.xs"
	/* gperl_set_isa ("Gtk2::TreeView", "Gtk2::Atk::ImplementorIface"); */

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

