aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/egg-toolbars-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/egg/egg-toolbars-model.c')
-rwxr-xr-xlib/egg/egg-toolbars-model.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/egg/egg-toolbars-model.c b/lib/egg/egg-toolbars-model.c
index 5e9d81b65..3837cc3f6 100755
--- a/lib/egg/egg-toolbars-model.c
+++ b/lib/egg/egg-toolbars-model.c
@@ -89,6 +89,10 @@ egg_toolbars_model_get_type (void)
0, /* n_preallocs */
(GInstanceInitFunc) egg_toolbars_model_init
};
+ volatile GType flags_type; /* work around gcc's optimiser */
+
+ /* make sure the flags type is known */
+ flags_type = EGG_TYPE_TB_MODEL_FLAGS;
type = g_type_register_static (G_TYPE_OBJECT,
"EggToolbarsModel",
@@ -827,9 +831,3 @@ egg_toolbars_model_get_item_type (EggToolbarsModel *t,
return retval;
}
-
-G_GNUC_UNUSED static void
-register_type (void)
-{
- egg_tb_model_flags_get_type ();
-}