diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-29 08:13:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-03 05:46:48 +0100 |
commit | 928c98a84efd2c72bc3ff9fe139ad5296091110a (patch) | |
tree | 396755363fe7f09df8e465b9220c1775af2f7b0c /tests/testclipboard2.c | |
parent | 39d4622563a907a4421a1ea66ce6f312486abe75 (diff) | |
download | gtk+-928c98a84efd2c72bc3ff9fe139ad5296091110a.tar.gz |
gdk: Add serializers and deserializers for GFile
in particular, support:
GFile <=> text/uri-list
GFile => text/plain
Diffstat (limited to 'tests/testclipboard2.c')
-rw-r--r-- | tests/testclipboard2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/testclipboard2.c b/tests/testclipboard2.c index ccdc78a796..4baabf5f86 100644 --- a/tests/testclipboard2.c +++ b/tests/testclipboard2.c @@ -263,6 +263,14 @@ get_button_list (GdkClipboard *clipboard, clipboard, "Invalid UTF-8"); + g_value_init (&value, G_TYPE_FILE); + g_value_take_object (&value, g_file_new_for_path (g_get_home_dir ())); + add_provider_button (box, + gdk_content_provider_new_for_value (&value), + clipboard, + "home directory"); + g_value_unset (&value); + return box; } |