summaryrefslogtreecommitdiff
path: root/tests/testselection.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-12-13 19:27:51 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-13 19:27:51 +0100
commitb66052f3ce9cec5209475b2cfb448ddd0a3abb3a (patch)
treea16ac0dbf0518b4fae6844a4ae7be64658a6bb9d /tests/testselection.c
parent65eab87238191ac55d3a7f40f4e35795e1d67b53 (diff)
downloadgtk+-b66052f3ce9cec5209475b2cfb448ddd0a3abb3a.tar.gz
gdk: Remove gdk_selection_add_targets()
It's not needed anymore, now that we can look at the content provider's formats. Alose remove all the API in GTK that was used to set it.
Diffstat (limited to 'tests/testselection.c')
-rw-r--r--tests/testselection.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/testselection.c b/tests/testselection.c
index f77f49000f..53ec3815b1 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -384,14 +384,6 @@ main (int argc, char *argv[])
GtkWidget *hbox;
GtkWidget *scrolled;
- static const char *targetlist[] = {
- "STRING",
- "TEXT",
- "COMPOUND_TEXT"
- };
- static gint ntargets = sizeof(targetlist) / sizeof(targetlist[0]);
- GdkContentFormats *list;
-
gtk_init ();
init_atoms();
@@ -422,10 +414,6 @@ main (int argc, char *argv[])
g_signal_connect (selection_widget, "selection_received",
G_CALLBACK (selection_received), NULL);
- list = gdk_content_formats_new (targetlist, ntargets);
- gtk_selection_add_targets (selection_widget, GDK_SELECTION_PRIMARY, list);
- gdk_content_formats_unref (list);
-
g_signal_connect (selection_widget, "selection_get",
G_CALLBACK (selection_get), NULL);