/* gitg-ref-action-copy-name.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-ref-action-copy-name.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 "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <glib/gi18n-lib.h>


#define GITG_TYPE_REF_ACTION_COPY_NAME (gitg_ref_action_copy_name_get_type ())
#define GITG_REF_ACTION_COPY_NAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyName))
#define GITG_REF_ACTION_COPY_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyNameClass))
#define GITG_IS_REF_ACTION_COPY_NAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_COPY_NAME))
#define GITG_IS_REF_ACTION_COPY_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_COPY_NAME))
#define GITG_REF_ACTION_COPY_NAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyNameClass))

typedef struct _GitgRefActionCopyName GitgRefActionCopyName;
typedef struct _GitgRefActionCopyNameClass GitgRefActionCopyNameClass;
typedef struct _GitgRefActionCopyNamePrivate GitgRefActionCopyNamePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _GitgRefActionCopyName {
	GObject parent_instance;
	GitgRefActionCopyNamePrivate * priv;
};

struct _GitgRefActionCopyNameClass {
	GObjectClass parent_class;
};

struct _GitgRefActionCopyNamePrivate {
	GitgExtApplication* _application;
	GitgExtRefActionInterface* _action_interface;
	GitgRef* _reference;
};


static gpointer gitg_ref_action_copy_name_parent_class = NULL;
static GitgExtUIElementIface* gitg_ref_action_copy_name_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface* gitg_ref_action_copy_name_gitg_ext_action_parent_iface = NULL;
static GitgExtRefActionIface* gitg_ref_action_copy_name_gitg_ext_ref_action_parent_iface = NULL;

GType gitg_ref_action_copy_name_get_type (void) G_GNUC_CONST;
#define GITG_REF_ACTION_COPY_NAME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyNamePrivate))
enum  {
	GITG_REF_ACTION_COPY_NAME_DUMMY_PROPERTY,
	GITG_REF_ACTION_COPY_NAME_APPLICATION,
	GITG_REF_ACTION_COPY_NAME_ACTION_INTERFACE,
	GITG_REF_ACTION_COPY_NAME_REFERENCE,
	GITG_REF_ACTION_COPY_NAME_ID,
	GITG_REF_ACTION_COPY_NAME_DISPLAY_NAME,
	GITG_REF_ACTION_COPY_NAME_DESCRIPTION,
	GITG_REF_ACTION_COPY_NAME_ENABLED
};
#define GITG_REF_ACTION_COPY_NAME_version VERSION
GitgRefActionCopyName* gitg_ref_action_copy_name_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionCopyName* gitg_ref_action_copy_name_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
static void gitg_ref_action_copy_name_real_activate (GitgExtUIElement* base);
static void gitg_ref_action_copy_name_finalize (GObject* obj);
static void _vala_gitg_ref_action_copy_name_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ref_action_copy_name_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GitgRefActionCopyName* gitg_ref_action_copy_name_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
	GitgRefActionCopyName * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = application;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = action_interface;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp2_ = reference;
#line 36 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return self;
#line 112 "gitg-ref-action-copy-name.c"
}


GitgRefActionCopyName* gitg_ref_action_copy_name_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
#line 32 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return gitg_ref_action_copy_name_construct (GITG_TYPE_REF_ACTION_COPY_NAME, application, action_interface, reference);
#line 119 "gitg-ref-action-copy-name.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return self ? g_object_ref (self) : NULL;
#line 126 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_real_activate (GitgExtUIElement* base) {
	GitgRefActionCopyName * self;
	GtkClipboard* clip = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	GtkClipboard* _tmp3_ = NULL;
	GtkClipboard* _tmp4_ = NULL;
	GtkClipboard* _tmp5_ = NULL;
	GtkClipboard* _tmp6_ = NULL;
	GitgRef* _tmp7_ = NULL;
	GitgRef* _tmp8_ = NULL;
	GitgParsedRefName* _tmp9_ = NULL;
	GitgParsedRefName* _tmp10_ = NULL;
	GitgParsedRefName* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	GitgExtApplication* _tmp15_ = NULL;
	GitgExtApplication* _tmp16_ = NULL;
	GtkWidget* _tmp17_ = NULL;
	GtkClipboard* _tmp18_ = NULL;
	GtkClipboard* _tmp19_ = NULL;
	GtkClipboard* _tmp20_ = NULL;
	GitgRef* _tmp21_ = NULL;
	GitgRef* _tmp22_ = NULL;
	GitgParsedRefName* _tmp23_ = NULL;
	GitgParsedRefName* _tmp24_ = NULL;
	GitgParsedRefName* _tmp25_ = NULL;
	gchar* _tmp26_ = NULL;
	gchar* _tmp27_ = NULL;
	gchar* _tmp28_ = NULL;
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = _tmp0_;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp3_ = gtk_widget_get_clipboard (_tmp2_, GDK_SELECTION_CLIPBOARD);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp5_ = _tmp4_;
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (_tmp2_);
#line 63 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	clip = _tmp5_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp6_ = clip;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp7_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp8_ = _tmp7_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp9_ = gitg_ref_get_parsed_name (_tmp8_);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp10_ = _tmp9_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp11_ = _tmp10_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp12_ = gitg_parsed_ref_name_get_shortname (_tmp11_);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp13_ = _tmp12_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp14_ = _tmp13_;
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gtk_clipboard_set_text (_tmp6_, _tmp14_, -1);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_free0 (_tmp14_);
#line 64 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (_tmp11_);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp15_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp16_ = _tmp15_;
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp18_ = gtk_widget_get_clipboard (_tmp17_, GDK_SELECTION_PRIMARY);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp19_ = _g_object_ref0 (_tmp18_);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (clip);
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	clip = _tmp19_;
#line 66 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (_tmp17_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp20_ = clip;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp21_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp22_ = _tmp21_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp23_ = gitg_ref_get_parsed_name (_tmp22_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp24_ = _tmp23_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp25_ = _tmp24_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp26_ = gitg_parsed_ref_name_get_shortname (_tmp25_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp27_ = _tmp26_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp28_ = _tmp27_;
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gtk_clipboard_set_text (_tmp20_, _tmp28_, -1);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_free0 (_tmp28_);
#line 67 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (_tmp25_);
#line 61 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (clip);
#line 246 "gitg-ref-action-copy-name.c"
}


static GitgExtApplication* gitg_ref_action_copy_name_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgRefActionCopyName* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 265 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgRefActionCopyName* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_notify ((GObject *) self, "application");
#line 285 "gitg-ref-action-copy-name.c"
}


static GitgExtRefActionInterface* gitg_ref_action_copy_name_real_get_action_interface (GitgExtRefAction* base) {
	GitgExtRefActionInterface* result;
	GitgRefActionCopyName* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 301 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_real_set_action_interface (GitgExtRefAction* base, GitgExtRefActionInterface* value) {
	GitgRefActionCopyName* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 321 "gitg-ref-action-copy-name.c"
}


static GitgRef* gitg_ref_action_copy_name_real_get_reference (GitgExtRefAction* base) {
	GitgRef* result;
	GitgRefActionCopyName* self;
	GitgRef* _tmp0_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp0_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 337 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_real_set_reference (GitgExtRefAction* base, GitgRef* value) {
	GitgRefActionCopyName* self;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = value;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_notify ((GObject *) self, "reference");
#line 357 "gitg-ref-action-copy-name.c"
}


static gchar* gitg_ref_action_copy_name_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCopyName* self;
	gchar* _tmp0_ = NULL;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/copy-name");
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp0_;
#line 43 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 373 "gitg-ref-action-copy-name.c"
}


static gchar* gitg_ref_action_copy_name_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCopyName* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = _ ("Copy name");
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp1_;
#line 48 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 392 "gitg-ref-action-copy-name.c"
}


static gchar* gitg_ref_action_copy_name_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionCopyName* self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp0_ = _ ("Copy the name of the reference to the clipboard");
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = _tmp1_;
#line 53 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 411 "gitg-ref-action-copy-name.c"
}


static gboolean gitg_ref_action_copy_name_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionCopyName* self;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = (GitgRefActionCopyName*) base;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	result = TRUE;
#line 58 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	return result;
#line 424 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_class_init (GitgRefActionCopyNameClass * klass) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gitg_ref_action_copy_name_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionCopyNamePrivate));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_copy_name_get_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_copy_name_set_property;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_copy_name_finalize;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_ACTION_INTERFACE, g_param_spec_object ("action-interface", "action-interface", "action-interface", GITG_EXT_TYPE_REF_ACTION_INTERFACE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_REFERENCE, g_param_spec_object ("reference", "reference", "reference", GITG_TYPE_REF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_COPY_NAME_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 453 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gitg_ref_action_copy_name_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->activate = (void (*)(GitgExtUIElement*)) gitg_ref_action_copy_name_real_activate;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_application = gitg_ref_action_copy_name_real_get_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->set_application = gitg_ref_action_copy_name_real_set_application;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_id = gitg_ref_action_copy_name_real_get_id;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_display_name = gitg_ref_action_copy_name_real_get_display_name;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_description = gitg_ref_action_copy_name_real_get_description;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_enabled = gitg_ref_action_copy_name_real_get_enabled;
#line 474 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gitg_ref_action_copy_name_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 481 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	gitg_ref_action_copy_name_gitg_ext_ref_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_action_interface = gitg_ref_action_copy_name_real_get_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->set_action_interface = gitg_ref_action_copy_name_real_set_action_interface;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->get_reference = gitg_ref_action_copy_name_real_get_reference;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	iface->set_reference = gitg_ref_action_copy_name_real_set_reference;
#line 496 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_instance_init (GitgRefActionCopyName * self) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self->priv = GITG_REF_ACTION_COPY_NAME_GET_PRIVATE (self);
#line 503 "gitg-ref-action-copy-name.c"
}


static void gitg_ref_action_copy_name_finalize (GObject* obj) {
	GitgRefActionCopyName * self;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyName);
#line 28 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	_g_object_unref0 (self->priv->_reference);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	G_OBJECT_CLASS (gitg_ref_action_copy_name_parent_class)->finalize (obj);
#line 519 "gitg-ref-action-copy-name.c"
}


GType gitg_ref_action_copy_name_get_type (void) {
	static volatile gsize gitg_ref_action_copy_name_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_copy_name_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefActionCopyNameClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_action_copy_name_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefActionCopyName), 0, (GInstanceInitFunc) gitg_ref_action_copy_name_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_ref_action_copy_name_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_ref_action_copy_name_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_ref_action_info = { (GInterfaceInitFunc) gitg_ref_action_copy_name_gitg_ext_ref_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_action_copy_name_type_id;
		gitg_ref_action_copy_name_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgRefActionCopyName", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_action_copy_name_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_ref_action_copy_name_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_ref_action_copy_name_type_id, GITG_EXT_TYPE_REF_ACTION, &gitg_ext_ref_action_info);
		g_once_init_leave (&gitg_ref_action_copy_name_type_id__volatile, gitg_ref_action_copy_name_type_id);
	}
	return gitg_ref_action_copy_name_type_id__volatile;
}


static void _vala_gitg_ref_action_copy_name_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefActionCopyName * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyName);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_ID:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_DISPLAY_NAME:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_DESCRIPTION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_ENABLED:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 588 "gitg-ref-action-copy-name.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 594 "gitg-ref-action-copy-name.c"
	}
}


static void _vala_gitg_ref_action_copy_name_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefActionCopyName * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_COPY_NAME, GitgRefActionCopyName);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_APPLICATION:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		case GITG_REF_ACTION_COPY_NAME_REFERENCE:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 622 "gitg-ref-action-copy-name.c"
		default:
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/gitg/gitg-ref-action-copy-name.vala"
		break;
#line 628 "gitg-ref-action-copy-name.c"
	}
}



