mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
drop locked flag from GSettings
It is not really needed, and delayed-apply is a construct-only property anyway
This commit is contained in:
parent
964e21989a
commit
214b3ec658
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user