aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ephy-node-view.c')
-rw-r--r--lib/widgets/ephy-node-view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index e71b648b0..a67709e9b 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -111,9 +111,9 @@ static guint ephy_node_view_signals[LAST_SIGNAL] = { 0 };
GType
ephy_node_view_get_type (void)
{
- static GType ephy_node_view_type = 0;
+ static GType type = 0;
- if (ephy_node_view_type == 0)
+ if (G_UNLIKELY (type == 0))
{
static const GTypeInfo our_info =
{
@@ -128,12 +128,12 @@ ephy_node_view_get_type (void)
(GInstanceInitFunc) ephy_node_view_init
};
- ephy_node_view_type = g_type_register_static (GTK_TYPE_TREE_VIEW,
- "EphyNodeView",
- &our_info, 0);
+ type = g_type_register_static (GTK_TYPE_TREE_VIEW,
+ "EphyNodeView",
+ &our_info, 0);
}
- return ephy_node_view_type;
+ return type;
}
static void