drop locked flag from GSettings

It is not really needed, and delayed-apply is a construct-only property
anyway
This commit is contained in:
Matthias Clasen 2010-04-14 12:09:57 -04:00
parent 964e21989a
commit 214b3ec658
2 changed files with 0 additions and 9 deletions

View File

@ -39,7 +39,6 @@ struct _GSettingsPrivate {
guint handler_id;
guint unapplied_handler;
gboolean locked;
gboolean delayed;
};
@ -186,10 +185,6 @@ g_settings_set_delay_apply (GSettings *settings,
{
GSettingsBackend *backend;
if G_UNLIKELY (settings->priv->locked)
g_error ("Can only set delayed-apply attribute on "
"freshly-created GSettings instances");
g_assert (delayed);
backend = g_delayed_settings_backend_new (settings->priv->backend,
@ -215,7 +210,6 @@ g_settings_set_delay_apply (GSettings *settings,
settings->priv->base_path = g_strdup ("");
settings->priv->delayed = TRUE;
settings->priv->locked = TRUE;
}
}

View File

@ -68,9 +68,6 @@ gboolean g_settings_get_delay_apply (GSettin
gboolean g_settings_get_has_unapplied (GSettings *settings);
void g_settings_set_delay_apply (GSettings *settings,
gboolean delay);
gboolean g_settings_get_locked (GSettings *settings);
void g_settings_lock (GSettings *settings);
GSettings * g_settings_new (const gchar *schema);
GSettings * g_settings_new_from_path (const gchar *path);