/* seahorse-viewable.c generated by valac 0.20.1, the Vala compiler
 * generated from seahorse-viewable.vala, do not modify */

/*
 * Seahorse
 *
 * Copyright (C) 2011 Collabora Ltd.
 * Copyright (C) 2012 Stefan Walter
 *
 * This program 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.
 *
 * This program 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 this program; if not, write to the
 * Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Author: Stef Walter <stefw@collabora.co.uk>
 */

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






void seahorse_viewable_show_viewer (SeahorseViewable* self, GtkWindow* parent) {
#line 29 "/data/projects/seahorse/common/seahorse-viewable.vala"
	g_return_if_fail (self != NULL);
#line 29 "/data/projects/seahorse/common/seahorse-viewable.vala"
	SEAHORSE_VIEWABLE_GET_INTERFACE (self)->show_viewer (self, parent);
#line 44 "seahorse-viewable.c"
}


gboolean seahorse_viewable_can_view (GObject* object) {
	gboolean result = FALSE;
	GObject* _tmp0_;
#line 31 "/data/projects/seahorse/common/seahorse-viewable.vala"
	g_return_val_if_fail (object != NULL, FALSE);
#line 32 "/data/projects/seahorse/common/seahorse-viewable.vala"
	_tmp0_ = object;
#line 32 "/data/projects/seahorse/common/seahorse-viewable.vala"
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, SEAHORSE_TYPE_VIEWABLE);
#line 32 "/data/projects/seahorse/common/seahorse-viewable.vala"
	return result;
#line 59 "seahorse-viewable.c"
}


static void seahorse_viewable_base_init (SeahorseViewableIface * iface) {
#line 28 "/data/projects/seahorse/common/seahorse-viewable.vala"
	static gboolean initialized = FALSE;
#line 28 "/data/projects/seahorse/common/seahorse-viewable.vala"
	if (!initialized) {
#line 28 "/data/projects/seahorse/common/seahorse-viewable.vala"
		initialized = TRUE;
#line 70 "seahorse-viewable.c"
	}
}


GType seahorse_viewable_get_type (void) {
	static volatile gsize seahorse_viewable_type_id__volatile = 0;
	if (g_once_init_enter (&seahorse_viewable_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SeahorseViewableIface), (GBaseInitFunc) seahorse_viewable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType seahorse_viewable_type_id;
		seahorse_viewable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SeahorseViewable", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (seahorse_viewable_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&seahorse_viewable_type_id__volatile, seahorse_viewable_type_id);
	}
	return seahorse_viewable_type_id__volatile;
}



