/* gca-symbol-browser.c generated by valac 0.28.0.11-bbdd, the Vala compiler
 * generated from gca-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 GCA_TYPE_SYMBOL_BROWSER (gca_symbol_browser_get_type ())
#define GCA_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowser))
#define GCA_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowserClass))
#define GCA_IS_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_SYMBOL_BROWSER))
#define GCA_IS_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCA_TYPE_SYMBOL_BROWSER))
#define GCA_SYMBOL_BROWSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowserClass))

typedef struct _GcaSymbolBrowser GcaSymbolBrowser;
typedef struct _GcaSymbolBrowserClass GcaSymbolBrowserClass;
typedef struct _GcaSymbolBrowserPrivate GcaSymbolBrowserPrivate;

struct _GcaSymbolBrowser {
	GtkTreeStore parent_instance;
	GcaSymbolBrowserPrivate * priv;
};

struct _GcaSymbolBrowserClass {
	GtkTreeStoreClass parent_class;
};

struct _GcaSymbolBrowserPrivate {
	gboolean d_tainted;
};


static gpointer gca_symbol_browser_parent_class = NULL;

GType gca_symbol_browser_get_type (void) G_GNUC_CONST;
#define GCA_SYMBOL_BROWSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowserPrivate))
enum  {
	GCA_SYMBOL_BROWSER_DUMMY_PROPERTY,
	GCA_SYMBOL_BROWSER_TAINTED
};
GcaSymbolBrowser* gca_symbol_browser_new (void);
GcaSymbolBrowser* gca_symbol_browser_construct (GType object_type);
void gca_symbol_browser_begin_update (GcaSymbolBrowser* self);
void gca_symbol_browser_end_update (GcaSymbolBrowser* self);
gboolean gca_symbol_browser_get_tainted (GcaSymbolBrowser* self);
void gca_symbol_browser_set_tainted (GcaSymbolBrowser* self, gboolean value);
static void gca_symbol_browser_finalize (GObject* obj);
static void _vala_gca_symbol_browser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gca_symbol_browser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


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


GcaSymbolBrowser* gca_symbol_browser_new (void) {
	return gca_symbol_browser_construct (GCA_TYPE_SYMBOL_BROWSER);
}


void gca_symbol_browser_begin_update (GcaSymbolBrowser* self) {
	g_return_if_fail (self != NULL);
}


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


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


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


static void gca_symbol_browser_class_init (GcaSymbolBrowserClass * klass) {
	gca_symbol_browser_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GcaSymbolBrowserPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_gca_symbol_browser_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_gca_symbol_browser_set_property;
	G_OBJECT_CLASS (klass)->finalize = gca_symbol_browser_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCA_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 gca_symbol_browser_instance_init (GcaSymbolBrowser * self) {
	self->priv = GCA_SYMBOL_BROWSER_GET_PRIVATE (self);
}


static void gca_symbol_browser_finalize (GObject* obj) {
	GcaSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowser);
	G_OBJECT_CLASS (gca_symbol_browser_parent_class)->finalize (obj);
}


GType gca_symbol_browser_get_type (void) {
	static volatile gsize gca_symbol_browser_type_id__volatile = 0;
	if (g_once_init_enter (&gca_symbol_browser_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GcaSymbolBrowserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gca_symbol_browser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GcaSymbolBrowser), 0, (GInstanceInitFunc) gca_symbol_browser_instance_init, NULL };
		GType gca_symbol_browser_type_id;
		gca_symbol_browser_type_id = g_type_register_static (gtk_tree_store_get_type (), "GcaSymbolBrowser", &g_define_type_info, 0);
		g_once_init_leave (&gca_symbol_browser_type_id__volatile, gca_symbol_browser_type_id);
	}
	return gca_symbol_browser_type_id__volatile;
}


static void _vala_gca_symbol_browser_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GcaSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowser);
	switch (property_id) {
		case GCA_SYMBOL_BROWSER_TAINTED:
		g_value_set_boolean (value, gca_symbol_browser_get_tainted (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_gca_symbol_browser_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GcaSymbolBrowser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowser);
	switch (property_id) {
		case GCA_SYMBOL_BROWSER_TAINTED:
		gca_symbol_browser_set_tainted (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



