aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-statusbar.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-02-11 02:26:22 +0800
committerXan Lopez <xan@src.gnome.org>2008-02-11 02:26:22 +0800
commita6753733856e098e2500487fee87620f72dea530 (patch)
tree1f5a7d8ae16bd2e3070bbdc31791eef96952a233 /src/ephy-statusbar.c
parent9a3e4ebc55e11c3b00b0e7464b11ecec121bc6f2 (diff)
downloadgsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar.gz
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar.bz2
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar.lz
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar.xz
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.tar.zst
gsoc2013-epiphany-a6753733856e098e2500487fee87620f72dea530.zip
Use G_DEFINE_TYPE* when possible in src/ (#515601)
svn path=/trunk/; revision=7927
Diffstat (limited to 'src/ephy-statusbar.c')
-rw-r--r--src/ephy-statusbar.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index b7fac950d..6f532f638 100644
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -60,43 +60,14 @@ enum
};
static guint signals[LAST_SIGNAL];
-static GObjectClass *parent_class;
-GType
-ephy_statusbar_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- const GTypeInfo our_info =
- {
- sizeof (EphyStatusbarClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) ephy_statusbar_class_init,
- NULL,
- NULL, /* class_data */
- sizeof (EphyStatusbar),
- 0, /* n_preallocs */
- (GInstanceInitFunc) ephy_statusbar_init
- };
-
- type = g_type_register_static (GTK_TYPE_STATUSBAR,
- "EphyStatusbar",
- &our_info, 0);
- }
-
- return type;
-}
+G_DEFINE_TYPE (EphyStatusbar, ephy_statusbar, GTK_TYPE_STATUSBAR)
static void
ephy_statusbar_class_init (EphyStatusbarClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- parent_class = g_type_class_peek_parent (klass);
-
signals[LOCK_CLICKED] =
g_signal_new
("lock-clicked",