aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-state.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-07 22:15:34 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-07 22:15:34 +0800
commitc3da24579d8f707e1da5ed2a2e0040e2b724757f (patch)
tree3a845cedbb57ddd3f37352568f40fae7d62f58a8 /lib/ephy-state.c
parent056bcae1bf6a4a9faf18806388107cbcc7131372 (diff)
downloadgsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar.gz
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar.bz2
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar.lz
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar.xz
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.tar.zst
gsoc2013-epiphany-c3da24579d8f707e1da5ed2a2e0040e2b724757f.zip
Make sure our flags/enum types are registered.
2005-01-07 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-toolbars-model.c: (egg_toolbars_model_get_type), (egg_toolbars_model_get_item_type): * lib/ephy-state.c: (ensure_states): Make sure our flags/enum types are registered.
Diffstat (limited to 'lib/ephy-state.c')
-rw-r--r--lib/ephy-state.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 66e673504..ad8c6e018 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -104,8 +104,12 @@ ensure_states (void)
{
if (states == NULL)
{
+ volatile GType flags_type; /* work around gcc's optimiser */
char *xml_file;
+ /* make sure the type is known when we read the db */
+ flags_type = EPHY_TYPE_STATE_WINDOW_FLAGS;
+
xml_file = g_build_filename (ephy_dot_dir (),
EPHY_STATES_XML_FILE,
NULL);
@@ -514,9 +518,3 @@ ephy_state_save (void)
states_db = NULL;
}
}
-
-G_GNUC_UNUSED static void
-register_type (void)
-{
- ephy_state_window_flags_get_type ();
-}