summaryrefslogtreecommitdiff
path: root/tests/testclipboard2.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-29 08:13:06 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:48 +0100
commit928c98a84efd2c72bc3ff9fe139ad5296091110a (patch)
tree396755363fe7f09df8e465b9220c1775af2f7b0c /tests/testclipboard2.c
parent39d4622563a907a4421a1ea66ce6f312486abe75 (diff)
downloadgtk+-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.c8
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;
}