/* gca-diagnostic-tags.c generated by valac 0.28.0.11-bbdd, the Vala compiler
 * generated from gca-diagnostic-tags.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>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdk.h>


#define GCA_TYPE_DIAGNOSTIC_TAGS (gca_diagnostic_tags_get_type ())
#define GCA_DIAGNOSTIC_TAGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTags))
#define GCA_DIAGNOSTIC_TAGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTagsClass))
#define GCA_IS_DIAGNOSTIC_TAGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_DIAGNOSTIC_TAGS))
#define GCA_IS_DIAGNOSTIC_TAGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCA_TYPE_DIAGNOSTIC_TAGS))
#define GCA_DIAGNOSTIC_TAGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTagsClass))

typedef struct _GcaDiagnosticTags GcaDiagnosticTags;
typedef struct _GcaDiagnosticTagsClass GcaDiagnosticTagsClass;
typedef struct _GcaDiagnosticTagsPrivate GcaDiagnosticTagsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GCA_TYPE_DIAGNOSTIC_COLORS (gca_diagnostic_colors_get_type ())
#define GCA_DIAGNOSTIC_COLORS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_DIAGNOSTIC_COLORS, GcaDiagnosticColors))
#define GCA_DIAGNOSTIC_COLORS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCA_TYPE_DIAGNOSTIC_COLORS, GcaDiagnosticColorsClass))
#define GCA_IS_DIAGNOSTIC_COLORS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_DIAGNOSTIC_COLORS))
#define GCA_IS_DIAGNOSTIC_COLORS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCA_TYPE_DIAGNOSTIC_COLORS))
#define GCA_DIAGNOSTIC_COLORS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCA_TYPE_DIAGNOSTIC_COLORS, GcaDiagnosticColorsClass))

typedef struct _GcaDiagnosticColors GcaDiagnosticColors;
typedef struct _GcaDiagnosticColorsClass GcaDiagnosticColorsClass;
#define _gca_diagnostic_colors_unref0(var) ((var == NULL) ? NULL : (var = (gca_diagnostic_colors_unref (var), NULL)))

#define GCA_DIAGNOSTIC_TYPE_SEVERITY (gca_diagnostic_severity_get_type ())

struct _GcaDiagnosticTags {
	GObject parent_instance;
	GcaDiagnosticTagsPrivate * priv;
};

struct _GcaDiagnosticTagsClass {
	GObjectClass parent_class;
};

struct _GcaDiagnosticTagsPrivate {
	GtkTextView* d_view;
	GtkTextBuffer* d_buffer;
	GtkTextTag* d_infoTag;
	GtkTextTag* d_warningTag;
	GtkTextTag* d_errorTag;
	GtkTextTag* d_fixitTag;
};

typedef enum  {
	GCA_DIAGNOSTIC_SEVERITY_NONE,
	GCA_DIAGNOSTIC_SEVERITY_INFO,
	GCA_DIAGNOSTIC_SEVERITY_WARNING,
	GCA_DIAGNOSTIC_SEVERITY_DEPRECATED,
	GCA_DIAGNOSTIC_SEVERITY_ERROR,
	GCA_DIAGNOSTIC_SEVERITY_FATAL
} GcaDiagnosticSeverity;


static gpointer gca_diagnostic_tags_parent_class = NULL;

GType gca_diagnostic_tags_get_type (void) G_GNUC_CONST;
#define GCA_DIAGNOSTIC_TAGS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTagsPrivate))
enum  {
	GCA_DIAGNOSTIC_TAGS_DUMMY_PROPERTY,
	GCA_DIAGNOSTIC_TAGS_ERROR_TAG,
	GCA_DIAGNOSTIC_TAGS_WARNING_TAG,
	GCA_DIAGNOSTIC_TAGS_INFO_TAG,
	GCA_DIAGNOSTIC_TAGS_FIXIT_TAG
};
static void gca_diagnostic_tags_remove_tags (GcaDiagnosticTags* self);
static void gca_diagnostic_tags_on_style_updated (GcaDiagnosticTags* self);
static void _gca_diagnostic_tags_on_style_updated_gtk_widget_style_updated (GtkWidget* _sender, gpointer self);
GcaDiagnosticTags* gca_diagnostic_tags_new (GtkTextView* view);
GcaDiagnosticTags* gca_diagnostic_tags_construct (GType object_type, GtkTextView* view);
static void gca_diagnostic_tags_on_buffer_changed (GcaDiagnosticTags* self);
static void _gca_diagnostic_tags_on_buffer_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gca_diagnostic_tags_update_tags (GcaDiagnosticTags* self);
static GtkTextTag* gca_diagnostic_tags_ensure_tag (GcaDiagnosticTags* self, GtkTextTag** tag, const gchar* name);
static void gca_diagnostic_tags_update_tag (GcaDiagnosticTags* self, GtkTextTag** tag, const gchar* name, GdkRGBA* col);
gpointer gca_diagnostic_colors_ref (gpointer instance);
void gca_diagnostic_colors_unref (gpointer instance);
GParamSpec* gca_param_spec_diagnostic_colors (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gca_value_set_diagnostic_colors (GValue* value, gpointer v_object);
void gca_value_take_diagnostic_colors (GValue* value, gpointer v_object);
gpointer gca_value_get_diagnostic_colors (const GValue* value);
GType gca_diagnostic_colors_get_type (void) G_GNUC_CONST;
GcaDiagnosticColors* gca_diagnostic_colors_new (GtkStyleContext* context);
GcaDiagnosticColors* gca_diagnostic_colors_construct (GType object_type, GtkStyleContext* context);
void gca_diagnostic_colors_mix_in_widget (GcaDiagnosticColors* self, GtkWidget* widget);
void gca_diagnostic_colors_get_info_color (GcaDiagnosticColors* self, GdkRGBA* result);
void gca_diagnostic_colors_get_warning_color (GcaDiagnosticColors* self, GdkRGBA* result);
void gca_diagnostic_colors_get_error_color (GcaDiagnosticColors* self, GdkRGBA* result);
GType gca_diagnostic_severity_get_type (void) G_GNUC_CONST;
GtkTextTag* gca_diagnostic_tags_get (GcaDiagnosticTags* self, GcaDiagnosticSeverity severity);
static void gca_diagnostic_tags_remove_tag (GcaDiagnosticTags* self, GtkTextTag** tag);
GtkTextTag* gca_diagnostic_tags_get_error_tag (GcaDiagnosticTags* self);
GtkTextTag* gca_diagnostic_tags_get_warning_tag (GcaDiagnosticTags* self);
GtkTextTag* gca_diagnostic_tags_get_info_tag (GcaDiagnosticTags* self);
GtkTextTag* gca_diagnostic_tags_get_fixit_tag (GcaDiagnosticTags* self);
static void gca_diagnostic_tags_finalize (GObject* obj);
static void _vala_gca_diagnostic_tags_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static void _gca_diagnostic_tags_on_style_updated_gtk_widget_style_updated (GtkWidget* _sender, gpointer self) {
	gca_diagnostic_tags_on_style_updated ((GcaDiagnosticTags*) self);
}


static void _gca_diagnostic_tags_on_buffer_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
	gca_diagnostic_tags_on_buffer_changed ((GcaDiagnosticTags*) self);
}


GcaDiagnosticTags* gca_diagnostic_tags_construct (GType object_type, GtkTextView* view) {
	GcaDiagnosticTags * self = NULL;
	GtkTextView* _tmp0_ = NULL;
	GtkTextView* _tmp1_ = NULL;
	GtkTextView* _tmp2_ = NULL;
	GtkTextView* _tmp3_ = NULL;
	GtkTextBuffer* _tmp4_ = NULL;
	GtkTextBuffer* _tmp5_ = NULL;
	g_return_val_if_fail (view != NULL, NULL);
	self = (GcaDiagnosticTags*) g_object_new (object_type, NULL);
	_tmp0_ = view;
	self->priv->d_view = _tmp0_;
	_tmp1_ = self->priv->d_view;
	g_signal_connect_object ((GtkWidget*) _tmp1_, "style-updated", (GCallback) _gca_diagnostic_tags_on_style_updated_gtk_widget_style_updated, self, 0);
	_tmp2_ = self->priv->d_view;
	g_signal_connect_object ((GObject*) _tmp2_, "notify::buffer", (GCallback) _gca_diagnostic_tags_on_buffer_changed_g_object_notify, self, 0);
	_tmp3_ = view;
	_tmp4_ = gtk_text_view_get_buffer (_tmp3_);
	_tmp5_ = _tmp4_;
	self->priv->d_buffer = _tmp5_;
	gca_diagnostic_tags_update_tags (self);
	return self;
}


GcaDiagnosticTags* gca_diagnostic_tags_new (GtkTextView* view) {
	return gca_diagnostic_tags_construct (GCA_TYPE_DIAGNOSTIC_TAGS, view);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static GtkTextTag* gca_diagnostic_tags_ensure_tag (GcaDiagnosticTags* self, GtkTextTag** tag, const gchar* name) {
	GtkTextTag* result = NULL;
	GtkTextTag* _tmp0_ = NULL;
	GtkTextTag* _tmp5_ = NULL;
	GtkTextTag* _tmp6_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = *tag;
	if (_tmp0_ == NULL) {
		GtkTextBuffer* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GtkTextTag* _tmp3_ = NULL;
		GtkTextTag* _tmp4_ = NULL;
		_tmp1_ = self->priv->d_buffer;
		_tmp2_ = name;
		_tmp3_ = gtk_text_buffer_create_tag (_tmp1_, _tmp2_, NULL);
		_tmp4_ = _g_object_ref0 (_tmp3_);
		_g_object_unref0 (*tag);
		*tag = _tmp4_;
	}
	_tmp5_ = *tag;
	_tmp6_ = _g_object_ref0 (_tmp5_);
	result = _tmp6_;
	return result;
}


static void gca_diagnostic_tags_update_tag (GcaDiagnosticTags* self, GtkTextTag** tag, const gchar* name, GdkRGBA* col) {
	const gchar* _tmp0_ = NULL;
	GtkTextTag* _tmp1_ = NULL;
	GtkTextTag* _tmp2_ = NULL;
	GtkTextTag* _tmp3_ = NULL;
	GdkRGBA _tmp4_ = {0};
	GtkTextTag* _tmp5_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (name != NULL);
	g_return_if_fail (col != NULL);
	_tmp0_ = name;
	_tmp1_ = gca_diagnostic_tags_ensure_tag (self, tag, _tmp0_);
	_tmp2_ = _tmp1_;
	_g_object_unref0 (_tmp2_);
	_tmp3_ = *tag;
	_tmp4_ = *col;
	g_object_set (_tmp3_, "background-rgba", &_tmp4_, NULL);
	_tmp5_ = *tag;
	g_object_set (_tmp5_, "background-full-height", TRUE, NULL);
}


static void gca_diagnostic_tags_update_tags (GcaDiagnosticTags* self) {
	GcaDiagnosticColors* colors = NULL;
	GtkTextView* _tmp0_ = NULL;
	GtkStyleContext* _tmp1_ = NULL;
	GcaDiagnosticColors* _tmp2_ = NULL;
	GtkTextView* _tmp3_ = NULL;
	GdkRGBA _tmp4_ = {0};
	GdkRGBA _tmp5_ = {0};
	GdkRGBA _tmp6_ = {0};
	GdkRGBA _tmp7_ = {0};
	GdkRGBA _tmp8_ = {0};
	GdkRGBA _tmp9_ = {0};
	GtkTextTag* _tmp10_ = NULL;
	GtkTextTag* _tmp11_ = NULL;
	GtkTextTag* _tmp12_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->d_view;
	_tmp1_ = gtk_widget_get_style_context ((GtkWidget*) _tmp0_);
	_tmp2_ = gca_diagnostic_colors_new (_tmp1_);
	_gca_diagnostic_colors_unref0 (colors);
	colors = _tmp2_;
	_tmp3_ = self->priv->d_view;
	gca_diagnostic_colors_mix_in_widget (colors, (GtkWidget*) _tmp3_);
	gca_diagnostic_colors_get_info_color (colors, &_tmp4_);
	_tmp5_ = _tmp4_;
	gca_diagnostic_tags_update_tag (self, &self->priv->d_infoTag, "Gca.Info", &_tmp5_);
	gca_diagnostic_colors_get_warning_color (colors, &_tmp6_);
	_tmp7_ = _tmp6_;
	gca_diagnostic_tags_update_tag (self, &self->priv->d_warningTag, "Gca.Warning", &_tmp7_);
	gca_diagnostic_colors_get_error_color (colors, &_tmp8_);
	_tmp9_ = _tmp8_;
	gca_diagnostic_tags_update_tag (self, &self->priv->d_errorTag, "Gca.Error", &_tmp9_);
	_tmp10_ = gca_diagnostic_tags_ensure_tag (self, &self->priv->d_fixitTag, "Gca.Fixit");
	_tmp11_ = _tmp10_;
	_g_object_unref0 (_tmp11_);
	_tmp12_ = self->priv->d_fixitTag;
	g_object_set (_tmp12_, "strikethrough", TRUE, NULL);
	_gca_diagnostic_colors_unref0 (colors);
}


GtkTextTag* gca_diagnostic_tags_get (GcaDiagnosticTags* self, GcaDiagnosticSeverity severity) {
	GtkTextTag* result = NULL;
	GcaDiagnosticSeverity _tmp0_ = 0;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = severity;
	switch (_tmp0_) {
		case GCA_DIAGNOSTIC_SEVERITY_INFO:
		{
			GtkTextTag* _tmp1_ = NULL;
			GtkTextTag* _tmp2_ = NULL;
			_tmp1_ = self->priv->d_infoTag;
			_tmp2_ = _g_object_ref0 (_tmp1_);
			result = _tmp2_;
			return result;
		}
		case GCA_DIAGNOSTIC_SEVERITY_WARNING:
		{
			GtkTextTag* _tmp3_ = NULL;
			GtkTextTag* _tmp4_ = NULL;
			_tmp3_ = self->priv->d_warningTag;
			_tmp4_ = _g_object_ref0 (_tmp3_);
			result = _tmp4_;
			return result;
		}
		case GCA_DIAGNOSTIC_SEVERITY_ERROR:
		case GCA_DIAGNOSTIC_SEVERITY_FATAL:
		{
			GtkTextTag* _tmp5_ = NULL;
			GtkTextTag* _tmp6_ = NULL;
			_tmp5_ = self->priv->d_errorTag;
			_tmp6_ = _g_object_ref0 (_tmp5_);
			result = _tmp6_;
			return result;
		}
		default:
		{
			result = NULL;
			return result;
		}
	}
}


static void gca_diagnostic_tags_remove_tag (GcaDiagnosticTags* self, GtkTextTag** tag) {
	gboolean _tmp0_ = FALSE;
	GtkTextBuffer* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp1_ = self->priv->d_buffer;
	if (_tmp1_ != NULL) {
		GtkTextTag* _tmp2_ = NULL;
		_tmp2_ = *tag;
		_tmp0_ = _tmp2_ != NULL;
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		GtkTextBuffer* _tmp3_ = NULL;
		GtkTextTagTable* _tmp4_ = NULL;
		GtkTextTagTable* _tmp5_ = NULL;
		GtkTextTag* _tmp6_ = NULL;
		_tmp3_ = self->priv->d_buffer;
		_tmp4_ = gtk_text_buffer_get_tag_table (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = *tag;
		gtk_text_tag_table_remove (_tmp5_, _tmp6_);
		_g_object_unref0 (*tag);
		*tag = NULL;
	}
}


static void gca_diagnostic_tags_remove_tags (GcaDiagnosticTags* self) {
	g_return_if_fail (self != NULL);
	gca_diagnostic_tags_remove_tag (self, &self->priv->d_errorTag);
	gca_diagnostic_tags_remove_tag (self, &self->priv->d_warningTag);
	gca_diagnostic_tags_remove_tag (self, &self->priv->d_infoTag);
	gca_diagnostic_tags_remove_tag (self, &self->priv->d_fixitTag);
}


static void gca_diagnostic_tags_on_buffer_changed (GcaDiagnosticTags* self) {
	GtkTextView* _tmp0_ = NULL;
	GtkTextBuffer* _tmp1_ = NULL;
	GtkTextBuffer* _tmp2_ = NULL;
	g_return_if_fail (self != NULL);
	gca_diagnostic_tags_remove_tags (self);
	_tmp0_ = self->priv->d_view;
	_tmp1_ = gtk_text_view_get_buffer (_tmp0_);
	_tmp2_ = _tmp1_;
	self->priv->d_buffer = _tmp2_;
	_g_object_unref0 (self->priv->d_errorTag);
	self->priv->d_errorTag = NULL;
	_g_object_unref0 (self->priv->d_warningTag);
	self->priv->d_warningTag = NULL;
	_g_object_unref0 (self->priv->d_infoTag);
	self->priv->d_infoTag = NULL;
	gca_diagnostic_tags_update_tags (self);
}


static void gca_diagnostic_tags_on_style_updated (GcaDiagnosticTags* self) {
	g_return_if_fail (self != NULL);
	gca_diagnostic_tags_update_tags (self);
}


GtkTextTag* gca_diagnostic_tags_get_error_tag (GcaDiagnosticTags* self) {
	GtkTextTag* result;
	GtkTextTag* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->d_errorTag;
	result = _tmp0_;
	return result;
}


GtkTextTag* gca_diagnostic_tags_get_warning_tag (GcaDiagnosticTags* self) {
	GtkTextTag* result;
	GtkTextTag* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->d_warningTag;
	result = _tmp0_;
	return result;
}


GtkTextTag* gca_diagnostic_tags_get_info_tag (GcaDiagnosticTags* self) {
	GtkTextTag* result;
	GtkTextTag* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->d_infoTag;
	result = _tmp0_;
	return result;
}


GtkTextTag* gca_diagnostic_tags_get_fixit_tag (GcaDiagnosticTags* self) {
	GtkTextTag* result;
	GtkTextTag* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->d_fixitTag;
	result = _tmp0_;
	return result;
}


static void gca_diagnostic_tags_class_init (GcaDiagnosticTagsClass * klass) {
	gca_diagnostic_tags_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (GcaDiagnosticTagsPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_gca_diagnostic_tags_get_property;
	G_OBJECT_CLASS (klass)->finalize = gca_diagnostic_tags_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCA_DIAGNOSTIC_TAGS_ERROR_TAG, g_param_spec_object ("error-tag", "error-tag", "error-tag", gtk_text_tag_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCA_DIAGNOSTIC_TAGS_WARNING_TAG, g_param_spec_object ("warning-tag", "warning-tag", "warning-tag", gtk_text_tag_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCA_DIAGNOSTIC_TAGS_INFO_TAG, g_param_spec_object ("info-tag", "info-tag", "info-tag", gtk_text_tag_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), GCA_DIAGNOSTIC_TAGS_FIXIT_TAG, g_param_spec_object ("fixit-tag", "fixit-tag", "fixit-tag", gtk_text_tag_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void gca_diagnostic_tags_instance_init (GcaDiagnosticTags * self) {
	self->priv = GCA_DIAGNOSTIC_TAGS_GET_PRIVATE (self);
}


static void gca_diagnostic_tags_finalize (GObject* obj) {
	GcaDiagnosticTags * self;
	GtkTextView* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTags);
	gca_diagnostic_tags_remove_tags (self);
	_tmp0_ = self->priv->d_view;
	g_signal_parse_name ("style-updated", gtk_widget_get_type (), &_tmp1_, NULL, FALSE);
	g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _gca_diagnostic_tags_on_style_updated_gtk_widget_style_updated, self);
	_g_object_unref0 (self->priv->d_infoTag);
	_g_object_unref0 (self->priv->d_warningTag);
	_g_object_unref0 (self->priv->d_errorTag);
	_g_object_unref0 (self->priv->d_fixitTag);
	G_OBJECT_CLASS (gca_diagnostic_tags_parent_class)->finalize (obj);
}


GType gca_diagnostic_tags_get_type (void) {
	static volatile gsize gca_diagnostic_tags_type_id__volatile = 0;
	if (g_once_init_enter (&gca_diagnostic_tags_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GcaDiagnosticTagsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gca_diagnostic_tags_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GcaDiagnosticTags), 0, (GInstanceInitFunc) gca_diagnostic_tags_instance_init, NULL };
		GType gca_diagnostic_tags_type_id;
		gca_diagnostic_tags_type_id = g_type_register_static (G_TYPE_OBJECT, "GcaDiagnosticTags", &g_define_type_info, 0);
		g_once_init_leave (&gca_diagnostic_tags_type_id__volatile, gca_diagnostic_tags_type_id);
	}
	return gca_diagnostic_tags_type_id__volatile;
}


static void _vala_gca_diagnostic_tags_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GcaDiagnosticTags * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GCA_TYPE_DIAGNOSTIC_TAGS, GcaDiagnosticTags);
	switch (property_id) {
		case GCA_DIAGNOSTIC_TAGS_ERROR_TAG:
		g_value_set_object (value, gca_diagnostic_tags_get_error_tag (self));
		break;
		case GCA_DIAGNOSTIC_TAGS_WARNING_TAG:
		g_value_set_object (value, gca_diagnostic_tags_get_warning_tag (self));
		break;
		case GCA_DIAGNOSTIC_TAGS_INFO_TAG:
		g_value_set_object (value, gca_diagnostic_tags_get_info_tag (self));
		break;
		case GCA_DIAGNOSTIC_TAGS_FIXIT_TAG:
		g_value_set_object (value, gca_diagnostic_tags_get_fixit_tag (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



