/* gitg-commit-submodule-history-view.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-commit-submodule-history-view.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - Jesse van den Kieboom
 *
 * gitg 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 2 of the License, or
 * (at your option) any later version.
 *
 * gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
 */

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


#define GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW (gitg_commit_submodule_history_view_get_type ())
#define GITG_COMMIT_SUBMODULE_HISTORY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryView))
#define GITG_COMMIT_SUBMODULE_HISTORY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryViewClass))
#define GITG_COMMIT_IS_SUBMODULE_HISTORY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW))
#define GITG_COMMIT_IS_SUBMODULE_HISTORY_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW))
#define GITG_COMMIT_SUBMODULE_HISTORY_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryViewClass))

typedef struct _GitgCommitSubmoduleHistoryView GitgCommitSubmoduleHistoryView;
typedef struct _GitgCommitSubmoduleHistoryViewClass GitgCommitSubmoduleHistoryViewClass;
typedef struct _GitgCommitSubmoduleHistoryViewPrivate GitgCommitSubmoduleHistoryViewPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _GitgCommitSubmoduleHistoryView {
	GtkPaned parent_instance;
	GitgCommitSubmoduleHistoryViewPrivate * priv;
};

struct _GitgCommitSubmoduleHistoryViewClass {
	GtkPanedClass parent_class;
};

struct _GitgCommitSubmoduleHistoryViewPrivate {
	GitgCommitListView* d_commit_list_view;
	GitgDiffView* d_diff_view;
};


static gpointer gitg_commit_submodule_history_view_parent_class = NULL;

GType gitg_commit_submodule_history_view_get_type (void) G_GNUC_CONST;
#define GITG_COMMIT_SUBMODULE_HISTORY_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryViewPrivate))
enum  {
	GITG_COMMIT_SUBMODULE_HISTORY_VIEW_DUMMY_PROPERTY,
	GITG_COMMIT_SUBMODULE_HISTORY_VIEW_COMMIT_LIST_VIEW,
	GITG_COMMIT_SUBMODULE_HISTORY_VIEW_DIFF_VIEW
};
GitgCommitSubmoduleHistoryView* gitg_commit_submodule_history_view_new (void);
GitgCommitSubmoduleHistoryView* gitg_commit_submodule_history_view_construct (GType object_type);
GitgCommitListView* gitg_commit_submodule_history_view_get_commit_list_view (GitgCommitSubmoduleHistoryView* self);
GitgDiffView* gitg_commit_submodule_history_view_get_diff_view (GitgCommitSubmoduleHistoryView* self);
static void gitg_commit_submodule_history_view_finalize (GObject* obj);
static void _vala_gitg_commit_submodule_history_view_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


GitgCommitSubmoduleHistoryView* gitg_commit_submodule_history_view_construct (GType object_type) {
	GitgCommitSubmoduleHistoryView * self = NULL;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	self = (GitgCommitSubmoduleHistoryView*) g_object_new (object_type, NULL);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	return self;
#line 80 "gitg-commit-submodule-history-view.c"
}


GitgCommitSubmoduleHistoryView* gitg_commit_submodule_history_view_new (void) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	return gitg_commit_submodule_history_view_construct (GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW);
#line 87 "gitg-commit-submodule-history-view.c"
}


GitgCommitListView* gitg_commit_submodule_history_view_get_commit_list_view (GitgCommitSubmoduleHistoryView* self) {
	GitgCommitListView* result;
	GitgCommitListView* _tmp0_ = NULL;
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	_tmp0_ = self->priv->d_commit_list_view;
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	result = _tmp0_;
#line 34 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	return result;
#line 102 "gitg-commit-submodule-history-view.c"
}


GitgDiffView* gitg_commit_submodule_history_view_get_diff_view (GitgCommitSubmoduleHistoryView* self) {
	GitgDiffView* result;
	GitgDiffView* _tmp0_ = NULL;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	_tmp0_ = self->priv->d_diff_view;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	result = _tmp0_;
#line 39 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	return result;
#line 117 "gitg-commit-submodule-history-view.c"
}


static void gitg_commit_submodule_history_view_class_init (GitgCommitSubmoduleHistoryViewClass * klass) {
	gint GitgCommitSubmoduleHistoryView_private_offset;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	gitg_commit_submodule_history_view_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	g_type_class_add_private (klass, sizeof (GitgCommitSubmoduleHistoryViewPrivate));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_commit_submodule_history_view_get_property;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_commit_submodule_history_view_finalize;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_SUBMODULE_HISTORY_VIEW_COMMIT_LIST_VIEW, g_param_spec_object ("commit-list-view", "commit-list-view", "commit-list-view", GITG_TYPE_COMMIT_LIST_VIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_COMMIT_SUBMODULE_HISTORY_VIEW_DIFF_VIEW, g_param_spec_object ("diff-view", "diff-view", "diff-view", GITG_TYPE_DIFF_VIEW, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	GitgCommitSubmoduleHistoryView_private_offset = g_type_class_get_instance_private_offset (klass);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-commit-submodule-history-view.ui");
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "commit_list_view", FALSE, GitgCommitSubmoduleHistoryView_private_offset + G_STRUCT_OFFSET (GitgCommitSubmoduleHistoryViewPrivate, d_commit_list_view));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "diff_view", FALSE, GitgCommitSubmoduleHistoryView_private_offset + G_STRUCT_OFFSET (GitgCommitSubmoduleHistoryViewPrivate, d_diff_view));
#line 143 "gitg-commit-submodule-history-view.c"
}


static void gitg_commit_submodule_history_view_instance_init (GitgCommitSubmoduleHistoryView * self) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	self->priv = GITG_COMMIT_SUBMODULE_HISTORY_VIEW_GET_PRIVATE (self);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 152 "gitg-commit-submodule-history-view.c"
}


static void gitg_commit_submodule_history_view_finalize (GObject* obj) {
	GitgCommitSubmoduleHistoryView * self;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryView);
#line 27 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	_g_object_unref0 (self->priv->d_commit_list_view);
#line 30 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	_g_object_unref0 (self->priv->d_diff_view);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	G_OBJECT_CLASS (gitg_commit_submodule_history_view_parent_class)->finalize (obj);
#line 166 "gitg-commit-submodule-history-view.c"
}


GType gitg_commit_submodule_history_view_get_type (void) {
	static volatile gsize gitg_commit_submodule_history_view_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_commit_submodule_history_view_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgCommitSubmoduleHistoryViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_commit_submodule_history_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgCommitSubmoduleHistoryView), 0, (GInstanceInitFunc) gitg_commit_submodule_history_view_instance_init, NULL };
		GType gitg_commit_submodule_history_view_type_id;
		gitg_commit_submodule_history_view_type_id = g_type_register_static (gtk_paned_get_type (), "GitgCommitSubmoduleHistoryView", &g_define_type_info, 0);
		g_once_init_leave (&gitg_commit_submodule_history_view_type_id__volatile, gitg_commit_submodule_history_view_type_id);
	}
	return gitg_commit_submodule_history_view_type_id__volatile;
}


static void _vala_gitg_commit_submodule_history_view_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgCommitSubmoduleHistoryView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_COMMIT_TYPE_SUBMODULE_HISTORY_VIEW, GitgCommitSubmoduleHistoryView);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
	switch (property_id) {
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		case GITG_COMMIT_SUBMODULE_HISTORY_VIEW_COMMIT_LIST_VIEW:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		g_value_set_object (value, gitg_commit_submodule_history_view_get_commit_list_view (self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		break;
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		case GITG_COMMIT_SUBMODULE_HISTORY_VIEW_DIFF_VIEW:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		g_value_set_object (value, gitg_commit_submodule_history_view_get_diff_view (self));
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		break;
#line 199 "gitg-commit-submodule-history-view.c"
		default:
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 24 "/home/garrett/hacking/gnome/gitg/gitg/commit/gitg-commit-submodule-history-view.vala"
		break;
#line 205 "gitg-commit-submodule-history-view.c"
	}
}



