settings = g_settings_new ("org.gtk.test");
g_object_get (settings,
- "schema", &str,
+ "schema-id", &str,
"backend", &b,
"path", &path,
"has-unapplied", &has_unapplied,
g_settings_set (child, "test-byte", "y", 42);
+ /* make sure the child was delayed too */
g_settings_get (base, "test-byte", "y", &byte);
- g_assert_cmpuint (byte, ==, 42);
+ g_assert_cmpuint (byte, ==, 36);
g_object_unref (child);
g_object_unref (settings);
backend = g_null_settings_backend_new ();
settings = g_settings_new_with_backend_and_path ("org.gtk.test", backend, "/tests/");
- g_object_get (settings, "schema", &str, NULL);
+ g_object_get (settings, "schema-id", &str, NULL);
g_assert_cmpstr (str, ==, "org.gtk.test");
g_free (str);
writable = g_settings_is_writable (settings, "greeting");
g_assert (!writable);
+ g_settings_reset (settings, "greeting");
+
+ g_settings_delay (settings);
+ g_settings_set (settings, "greeting", "s", "goodbye world");
+ g_settings_apply (settings);
+ g_settings_get (settings, "greeting", "s", &str);
+ g_assert_cmpstr (str, ==, "Hello, earthlings");
+ g_free (str);
+
g_object_unref (settings);
g_object_unref (backend);
}