From 530d9f4f4056b57d0a90456aee036a4e61e6f7be Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 30 Dec 2008 22:32:49 +0000 Subject: ephy-search-entry: use G_DEFINE_TYPE. svn path=/trunk/; revision=8652 --- lib/widgets/ephy-search-entry.c | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/lib/widgets/ephy-search-entry.c b/lib/widgets/ephy-search-entry.c index e0b0c461e..838266a99 100644 --- a/lib/widgets/ephy-search-entry.c +++ b/lib/widgets/ephy-search-entry.c @@ -34,7 +34,6 @@ static void ephy_search_entry_init (EphySearchEntry *entry); struct _EphySearchEntryPrivate { gboolean clearing; - guint timeout; }; @@ -44,45 +43,15 @@ enum LAST_SIGNAL }; -static GObjectClass *parent_class = NULL; - static guint ephy_search_entry_signals[LAST_SIGNAL] = { 0 }; -GType -ephy_search_entry_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - const GTypeInfo our_info = - { - sizeof (EphySearchEntryClass), - NULL, - NULL, - (GClassInitFunc) ephy_search_entry_class_init, - NULL, - NULL, - sizeof (EphySearchEntry), - 0, - (GInstanceInitFunc) ephy_search_entry_init - }; - - type = g_type_register_static (EPHY_TYPE_ICON_ENTRY, - "EphySearchEntry", - &our_info, 0); - } - - return type; -} +G_DEFINE_TYPE (EphySearchEntry, ephy_search_entry, EPHY_TYPE_ICON_ENTRY) static void ephy_search_entry_class_init (EphySearchEntryClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - parent_class = g_type_class_peek_parent (klass); - ephy_search_entry_signals[SEARCH] = g_signal_new ("search", G_OBJECT_CLASS_TYPE (object_class), -- cgit