diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-sidebar-page.c | 2 | ||||
-rw-r--r-- | shell/ev-view-accessible.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/shell/ev-sidebar-page.c b/shell/ev-sidebar-page.c index af45413..8e6a33d 100644 --- a/shell/ev-sidebar-page.c +++ b/shell/ev-sidebar-page.c @@ -34,7 +34,7 @@ ev_sidebar_page_get_type (void) if (G_UNLIKELY (type == 0)) { - static const GTypeInfo sidebar_page_info = + const GTypeInfo sidebar_page_info = { sizeof (EvSidebarPageIface), NULL, diff --git a/shell/ev-view-accessible.c b/shell/ev-view-accessible.c index 3d64bfc..27f887a 100644 --- a/shell/ev-view-accessible.c +++ b/shell/ev-view-accessible.c @@ -467,8 +467,8 @@ GType ev_view_accessible_get_type (void) { static GType type = 0; - if (!type) { - static GTypeInfo tinfo = { + if (G_UNLIKELY (type == 0)) { + GTypeInfo tinfo = { 0, /* class size */ (GBaseInitFunc) NULL, /* base init */ (GBaseFinalizeFunc) NULL, /* base finalize */ @@ -481,14 +481,14 @@ GType ev_view_accessible_get_type (void) NULL /* value table */ }; - static const GInterfaceInfo atk_text_info = { + const GInterfaceInfo atk_text_info = { (GInterfaceInitFunc) ev_view_accessible_text_iface_init, (GInterfaceFinalizeFunc) NULL, NULL }; - static const GInterfaceInfo atk_action_info = { + const GInterfaceInfo atk_action_info = { (GInterfaceInitFunc) ev_view_accessible_action_iface_init, (GInterfaceFinalizeFunc) NULL, @@ -566,8 +566,8 @@ GType ev_view_accessible_factory_get_type (void) { static GType type = 0; - if (!type) { - static const GTypeInfo tinfo = { + if (G_UNLIKELY (type == 0)) { + const GTypeInfo tinfo = { sizeof(AtkObjectFactoryClass), NULL, /* base_init */ NULL, /* base_finalize */ |