summaryrefslogtreecommitdiff
path: root/tests/client.c
diff options
context:
space:
mode:
authorAllison Ryan Lortie <desrt@desrt.ca>2015-12-16 10:16:15 -0500
committerAllison Ryan Lortie <desrt@desrt.ca>2015-12-16 11:31:06 -0500
commit4a80e6ce540d4ce652ccf963cdb4fb44cb514a5b (patch)
treece40de8eb00a04152b69676666fef35105f7e74d /tests/client.c
parent177740fe165f0c4f6215412f509c96b3a6fef336 (diff)
downloaddconf-4a80e6ce540d4ce652ccf963cdb4fb44cb514a5b.tar.gz
client: replace _read_default() with _read_full()
This API has never appeared in a released version of dconf (even unstable). Replace it with a more generally-useful form. Update the test cases, dconf commandline tool and vapi accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=759128
Diffstat (limited to 'tests/client.c')
-rw-r--r--tests/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/client.c b/tests/client.c
index 4a3505c..175fd9e 100644
--- a/tests/client.c
+++ b/tests/client.c
@@ -68,7 +68,7 @@ queue_up_100_writes (DConfClient *client)
/* We should always see the most recently written value. */
check_and_free (dconf_client_read (client, "/test/value"), g_variant_new_int32 (i));
- check_and_free (dconf_client_read_default (client, "/test/value"), NULL);
+ check_and_free (dconf_client_read_full (client, "/test/value", DCONF_READ_DEFAULT_VALUE, NULL), NULL);
}
g_assert_cmpint (g_queue_get_length (&dconf_mock_dbus_outstanding_call_handles), ==, 2);
@@ -141,7 +141,7 @@ test_fast (void)
g_assert (changed_was_called);
check_and_free (dconf_client_read (client, "/test/value"), g_variant_new_int32 (99));
- check_and_free (dconf_client_read_default (client, "/test/value"), NULL);
+ check_and_free (dconf_client_read_full (client, "/test/value", DCONF_READ_DEFAULT_VALUE, NULL), NULL);
}
/* Because of the pending-merging logic, we should only have had to
@@ -156,7 +156,7 @@ test_fast (void)
/* Should read back now as NULL */
check_and_free (dconf_client_read (client, "/test/value"), NULL);
- check_and_free (dconf_client_read_default (client, "/test/value"), NULL);
+ check_and_free (dconf_client_read_full (client, "/test/value", DCONF_READ_DEFAULT_VALUE, NULL), NULL);
/* Cleanup */
g_signal_handlers_disconnect_by_func (client, changed, NULL);