/* gcp-symbol-browser.c generated by valac 0.19.0, the Vala compiler
 * generated from gcp-symbol-browser.vala, do not modify */

/*
 * This file is part of gedit-code-assistant.
 *
 * Copyright (C) 2011 - Jesse van den Kieboom
 *
 * gedit-code-assistant is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * gedit-code-assistant 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gedit-code-assistant.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>


#define GCP_TYPE_SYMBOL_BROWSER (gcp_symbol_browser_get_type ())
#define GCP_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowser))
#define GCP_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowserClass))
#define GCP_IS_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCP_TYPE_SYMBOL_BROWSER))
#define GCP_IS_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCP_TYPE_SYMBOL_BROWSER))
#define GCP_SYMBOL_BROWSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowserClass))

typedef struct _GcpSymbolBrowser GcpSymbolBrowser;
typedef struct _GcpSymbolBrowserClass GcpSymbolBrowserClass;
typedef struct _GcpSymbolBrowserPrivate GcpSymbolBrowserPrivate;

struct _GcpSymbolBrowser {
	GtkTreeStore parent_instance;
	GcpSymbolBrowserPrivate * priv;
};

struct _GcpSymbolBrowserClass {
	GtkTreeStoreClass parent_class;
};

struct _GcpSymbolBrowserPrivate {
	gboolean d_tainted;
};


static gpointer gcp_symbol_browser_parent_class = NULL;

GType gcp_symbol_browser_get_type (void) G_GNUC_CONST;
#define GCP_SYMBOL_BROWSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowserPrivate))
enum  {
	GCP_SYMBOL_BROWSER_DUMMY_PROPERTY,
	GCP_SYMBOL_BROWSER_TAINTED
};
GcpSymbolBrowser* gcp_symbol_browser_new (void);
GcpSymbolBrowser* gcp_symbol_browser_construct (GType object_type);
void gcp_symbol_browser_begin_update (GcpSymbolBrowser* self);
void gcp_symbol_browser_end_update (GcpSymbolBrowser* self);
gboolean gcp_symbol_browser_get_tainted (GcpSymbolBrowser* self);
void gcp_symbol_browser_set_tainted (GcpSymbolBrowser* self, gboolean value);
static void gcp_symbol_browser_finalize (GObject* obj);
static void _vala_gcp_symbol_browser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gcp_symbol_browser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GcpSymbolBrowser* gcp_symbol_browser_construct (GType object_type) {
	GcpSymbolBrowser * self = NULL;
	self = (GcpSymbolBrowser*) g_object_new (object_type, NULL);
	self->priv->d_tainted = FALSE;
	return self;
}


GcpSymbolBrowser* gcp_symbol_browser_new (void) {
	return gcp_symbol_browser_construct (GCP_TYPE_SYMBOL_BROWSER);
}


void gcp_symbol_browser_begin_update (GcpSymbolBrowser* self) {
	g_return_if_fail (self != NULL);
}


void gcp_symbol_browser_end_update (GcpSymbolBrowser* self) {
	g_return_if_fail (self != NULL);
	self->priv->d_tainted = FALSE;
}


gboolean gcp_symbol_browser_get_tainted (GcpSymbolBrowser* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->d_tainted;
	result = _tmp0_;
	return result;
}


void gcp_symbol_browser_set_tainted (GcpSymbolBrowser* self, gboolean value) {
	gboolean _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	self->priv->d_tainted = _tmp0_;
	g_object_notify ((GObject *) self, "tainted");
}


static void gcp_symbol_browser_class_init (GcpSymbolBrowserClass * klass) {
	gcp_symbol_browser_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GcpSymbolBrowserPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_gcp_symbol_browser_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gcp_symbol_browser_set_property;
	G_OBJECT_CLASS (klass)->finalize = gcp_symbol_browser_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCP_SYMBOL_BROWSER_TAINTED, g_param_spec_boolean ("tainted", "tainted", "tainted", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void gcp_symbol_browser_instance_init (GcpSymbolBrowser * self) {
	self->priv = GCP_SYMBOL_BROWSER_GET_PRIVATE (self);
}


static void gcp_symbol_browser_finalize (GObject* obj) {
	GcpSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowser);
	G_OBJECT_CLASS (gcp_symbol_browser_parent_class)->finalize (obj);
}


GType gcp_symbol_browser_get_type (void) {
	static volatile gsize gcp_symbol_browser_type_id__volatile = 0;
	if (g_once_init_enter (&gcp_symbol_browser_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GcpSymbolBrowserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gcp_symbol_browser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GcpSymbolBrowser), 0, (GInstanceInitFunc) gcp_symbol_browser_instance_init, NULL };
		GType gcp_symbol_browser_type_id;
		gcp_symbol_browser_type_id = g_type_register_static (GTK_TYPE_TREE_STORE, "GcpSymbolBrowser", &g_define_type_info, 0);
		g_once_init_leave (&gcp_symbol_browser_type_id__volatile, gcp_symbol_browser_type_id);
	}
	return gcp_symbol_browser_type_id__volatile;
}


static void _vala_gcp_symbol_browser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GcpSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowser);
	switch (property_id) {
		case GCP_SYMBOL_BROWSER_TAINTED:
		g_value_set_boolean (value, gcp_symbol_browser_get_tainted (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gcp_symbol_browser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GcpSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GCP_TYPE_SYMBOL_BROWSER, GcpSymbolBrowser);
	switch (property_id) {
		case GCP_SYMBOL_BROWSER_TAINTED:
		gcp_symbol_browser_set_tainted (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



