aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2007-10-28 02:43:57 +0800
committerChristian Persch <chpe@src.gnome.org>2007-10-28 02:43:57 +0800
commitf98b98d689156205c04c36a94657545b5c8d4a1c (patch)
tree51bb7d07248e5b3c180c7306c75f25ae58b0f1f0
parente9beebba13c5de23a01cbcc919914cb200a4daa1 (diff)
downloadgsoc2013-epiphany-f98b98d689156205c04c36a94657545b5c8d4a1c.tar.gz
gsoc2013-epiphany-f98b98d689156205c04c36a94657545b5c8d4a1c.tar.zst
gsoc2013-epiphany-f98b98d689156205c04c36a94657545b5c8d4a1c.zip
Use G_DEFINE_TYPE.
svn path=/trunk/; revision=7577
-rw-r--r--src/ephy-tabs-menu.c31
-rw-r--r--src/ephy-tabs-menu.h2
2 files changed, 3 insertions, 30 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index 5645c111b..f9887d850 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -65,34 +65,9 @@ enum
static void ephy_tabs_menu_class_init (EphyTabsMenuClass *klass);
static void ephy_tabs_menu_init (EphyTabsMenu *menu);
+static void ephy_tabs_menu_update (EphyTabsMenu *menu);
-GType
-ephy_tabs_menu_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- const GTypeInfo our_info =
- {
- sizeof (EphyTabsMenuClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) ephy_tabs_menu_class_init,
- NULL,
- NULL, /* class_data */
- sizeof (EphyTab),
- 0, /* n_preallocs */
- (GInstanceInitFunc) ephy_tabs_menu_init
- };
-
- type = g_type_register_static (G_TYPE_OBJECT,
- "EphyTabsMenu",
- &our_info, 0);
- }
-
- return type;
-}
+G_DEFINE_TYPE (EphyTabsMenu, ephy_tabs_menu, G_TYPE_OBJECT)
static void
tab_action_activate_cb (GtkToggleAction *action,
@@ -405,7 +380,7 @@ tab_set_action_accelerator (GtkActionGroup *action_group,
}
}
-void
+static void
ephy_tabs_menu_update (EphyTabsMenu *menu)
{
EphyTabsMenuPrivate *p = menu->priv;
diff --git a/src/ephy-tabs-menu.h b/src/ephy-tabs-menu.h
index 2827a9eb4..9e45f6d50 100644
--- a/src/ephy-tabs-menu.h
+++ b/src/ephy-tabs-menu.h
@@ -53,8 +53,6 @@ GType ephy_tabs_menu_get_type (void);
EphyTabsMenu *ephy_tabs_menu_new (EphyWindow *window);
-void ephy_tabs_menu_update (EphyTabsMenu *menu);
-
G_END_DECLS
#endif