aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-12-31 06:32:49 +0800
committerXan Lopez <xan@src.gnome.org>2008-12-31 06:32:49 +0800
commit530d9f4f4056b57d0a90456aee036a4e61e6f7be (patch)
tree21b7a1c7e092fdc1c02d1cdcbc1a540d738ce95e /lib
parent8676779c654bf09dd9d055ae7a32cb8d7be8ab64 (diff)
downloadgsoc2013-epiphany-530d9f4f4056b57d0a90456aee036a4e61e6f7be.tar.gz
gsoc2013-epiphany-530d9f4f4056b57d0a90456aee036a4e61e6f7be.tar.zst
gsoc2013-epiphany-530d9f4f4056b57d0a90456aee036a4e61e6f7be.zip
ephy-search-entry: use G_DEFINE_TYPE.
svn path=/trunk/; revision=8652
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-search-entry.c33
1 files changed, 1 insertions, 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),