aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-state.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-state.c')
-rw-r--r--lib/ephy-state.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 452d56b7b..4871b2ea1 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -513,3 +513,25 @@ ephy_state_save (void)
states_db = NULL;
}
}
+
+GType
+ephy_state_window_flags_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ {
+ static const GFlagsValue values[] =
+ {
+ { EPHY_STATE_WINDOW_SAVE_NONE, "EPHY_STATE_WINDOW_SAVE_NONE", "none" },
+ { EPHY_STATE_WINDOW_SAVE_SIZE, "EPHY_STATE_WINDOW_SAVE_SIZE", "size" },
+ { EPHY_STATE_WINDOW_SAVE_POSITION, "EPHY_STATE_WINDOW_SAVE_POSITION", "position" },
+
+ { 0, NULL, NULL }
+ };
+
+ type = g_flags_register_static ("EphyStateWindowFlags", values);
+ }
+
+ return type;
+}