summaryrefslogtreecommitdiff
path: root/tests/testdnd2.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-18 02:19:53 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-20 23:12:33 +0100
commit9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff (patch)
treea5a8ca3908f228fdfc64acc8a6a7ca3c5508094c /tests/testdnd2.c
parent0638bbb5d58d783519fd07dc548996d405398f4f (diff)
downloadgtk+-9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff.tar.gz
contentformats: Rename GtkTargetList
It's now called GdkContentsFormat
Diffstat (limited to 'tests/testdnd2.c')
-rw-r--r--tests/testdnd2.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/testdnd2.c b/tests/testdnd2.c
index 2d06f9dd2f..489ade05cf 100644
--- a/tests/testdnd2.c
+++ b/tests/testdnd2.c
@@ -120,32 +120,32 @@ window_drag_begin (GtkWidget *widget,
static void
update_source_target_list (GtkWidget *image)
{
- GtkTargetList *target_list;
+ GdkContentFormats *target_list;
- target_list = gtk_target_list_new (NULL, 0);
+ target_list = gdk_content_formats_new (NULL, 0);
- gtk_target_list_add_image_targets (target_list, FALSE);
+ gtk_content_formats_add_image_targets (target_list, FALSE);
if (gtk_image_get_storage_type (GTK_IMAGE (image)) == GTK_IMAGE_ICON_NAME)
- gtk_target_list_add_text_targets (target_list);
+ gtk_content_formats_add_text_targets (target_list);
gtk_drag_source_set_target_list (image, target_list);
- gtk_target_list_unref (target_list);
+ gdk_content_formats_unref (target_list);
}
static void
update_dest_target_list (GtkWidget *image)
{
- GtkTargetList *target_list;
+ GdkContentFormats *target_list;
- target_list = gtk_target_list_new (NULL, 0);
+ target_list = gdk_content_formats_new (NULL, 0);
- gtk_target_list_add_image_targets (target_list, FALSE);
- gtk_target_list_add_text_targets (target_list);
+ gtk_content_formats_add_image_targets (target_list, FALSE);
+ gtk_content_formats_add_text_targets (target_list);
gtk_drag_dest_set_target_list (image, target_list);
- gtk_target_list_unref (target_list);
+ gdk_content_formats_unref (target_list);
}
void