mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-05 05:09:21 +02:00
delayed: fix issues found by test
gsettings: remove dead code test: don't leak in a way that causes test failures
This commit is contained in:
@@ -114,8 +114,7 @@ struct _GSettingsPrivate
|
||||
gchar *context;
|
||||
gchar *path;
|
||||
|
||||
guint unapplied_handler;
|
||||
gboolean delayed;
|
||||
GDelayedSettingsBackend *delayed;
|
||||
};
|
||||
|
||||
enum
|
||||
@@ -242,6 +241,7 @@ settings_backend_writable_changed (GSettingsBackend *backend,
|
||||
const gchar *string;
|
||||
GQuark quark;
|
||||
|
||||
quark = g_quark_from_string (key + i);
|
||||
string = g_quark_to_string (quark);
|
||||
|
||||
quark = g_quark_from_string (key + i);
|
||||
@@ -358,12 +358,6 @@ g_settings_init (GSettings *settings)
|
||||
GSettingsPrivate);
|
||||
}
|
||||
|
||||
static void
|
||||
g_settings_notify_unapplied (GSettings *settings)
|
||||
{
|
||||
g_object_notify (G_OBJECT (settings), "has-unapplied");
|
||||
}
|
||||
|
||||
/**
|
||||
* g_settings_set_delay_apply:
|
||||
* @settings: a #GSettings object
|
||||
@@ -396,21 +390,6 @@ g_settings_delay (GSettings *settings)
|
||||
settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* g_settings_get_delay_apply:
|
||||
* @settings: a #GSettings object
|
||||
* @returns: %TRUE if changes in @settings are not applied immediately
|
||||
*
|
||||
* Returns whether the #GSettings object is in 'delay-apply' mode.
|
||||
*
|
||||
* Since: 2.26
|
||||
*/
|
||||
gboolean
|
||||
g_settings_get_delay_apply (GSettings *settings)
|
||||
{
|
||||
return settings->priv->delayed;
|
||||
}
|
||||
|
||||
/**
|
||||
* g_settings_apply:
|
||||
* @settings: a #GSettings instance
|
||||
|
Reference in New Issue
Block a user