/* ReplyEntry.c generated by valac 0.26.2, the Vala compiler
 * generated from ReplyEntry.vala, do not modify */

/*  This file is part of corebird, a Gtk+ linux Twitter client.
 *  Copyright (C) 2013 Timm Bäder
 *
 *  corebird 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.
 *
 *  corebird 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 corebird.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>


#define TYPE_REPLY_ENTRY (reply_entry_get_type ())
#define REPLY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPLY_ENTRY, ReplyEntry))
#define REPLY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPLY_ENTRY, ReplyEntryClass))
#define IS_REPLY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPLY_ENTRY))
#define IS_REPLY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPLY_ENTRY))
#define REPLY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPLY_ENTRY, ReplyEntryClass))

typedef struct _ReplyEntry ReplyEntry;
typedef struct _ReplyEntryClass ReplyEntryClass;
typedef struct _ReplyEntryPrivate ReplyEntryPrivate;
#define _g_type_class_unref0(var) ((var == NULL) ? NULL : (var = (g_type_class_unref (var), NULL)))

struct _ReplyEntry {
	GtkEntry parent_instance;
	ReplyEntryPrivate * priv;
};

struct _ReplyEntryClass {
	GtkEntryClass parent_class;
};


static gpointer reply_entry_parent_class = NULL;

GType reply_entry_get_type (void) G_GNUC_CONST;
enum  {
	REPLY_ENTRY_DUMMY_PROPERTY
};
ReplyEntry* reply_entry_new (void);
ReplyEntry* reply_entry_construct (GType object_type);


ReplyEntry* reply_entry_construct (GType object_type) {
	ReplyEntry * self = NULL;
	self = (ReplyEntry*) g_object_new (object_type, NULL);
	return self;
}


ReplyEntry* reply_entry_new (void) {
	return reply_entry_construct (TYPE_REPLY_ENTRY);
}


static void reply_entry_class_init (ReplyEntryClass * klass) {
	GtkBindingSet* binding_set = NULL;
	GTypeClass* _tmp0_ = NULL;
	GObjectClass* _tmp1_ = NULL;
	GtkBindingSet* _tmp2_ = NULL;
	GtkBindingSet* _tmp3_ = NULL;
	GtkBindingSet* _tmp4_ = NULL;
	reply_entry_parent_class = g_type_class_peek_parent (klass);
	g_signal_new ("cancelled", TYPE_REPLY_ENTRY, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
	_tmp0_ = g_type_class_ref (TYPE_REPLY_ENTRY);
	_tmp1_ = (GObjectClass*) _tmp0_;
	_tmp2_ = gtk_binding_set_by_class (_tmp1_);
	_tmp3_ = _tmp2_;
	_g_type_class_unref0 (_tmp1_);
	binding_set = _tmp3_;
	_tmp4_ = binding_set;
	gtk_binding_entry_add_signal (_tmp4_, (guint) GDK_KEY_Escape, 0, "cancelled", (guint) 0, NULL, NULL);
}


static void reply_entry_instance_init (ReplyEntry * self) {
}


GType reply_entry_get_type (void) {
	static volatile gsize reply_entry_type_id__volatile = 0;
	if (g_once_init_enter (&reply_entry_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ReplyEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) reply_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReplyEntry), 0, (GInstanceInitFunc) reply_entry_instance_init, NULL };
		GType reply_entry_type_id;
		reply_entry_type_id = g_type_register_static (gtk_entry_get_type (), "ReplyEntry", &g_define_type_info, 0);
		g_once_init_leave (&reply_entry_type_id__volatile, reply_entry_type_id);
	}
	return reply_entry_type_id__volatile;
}



