summaryrefslogtreecommitdiff
path: root/tests/testiconview.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/testiconview.c
parent0638bbb5d58d783519fd07dc548996d405398f4f (diff)
downloadgtk+-9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff.tar.gz
contentformats: Rename GtkTargetList
It's now called GdkContentsFormat
Diffstat (limited to 'tests/testiconview.c')
-rw-r--r--tests/testiconview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testiconview.c b/tests/testiconview.c
index d2caf6e441..2265c0be8c 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -425,7 +425,7 @@ main (gint argc, gchar **argv)
GtkTreeModel *model;
GtkCellRenderer *cell;
GtkTreeViewColumn *tvc;
- GtkTargetList *targets;
+ GdkContentFormats *targets;
#ifdef GTK_SRCDIR
g_chdir (GTK_SRCDIR);
@@ -528,7 +528,7 @@ main (gint argc, gchar **argv)
#endif
/* Allow DND between the icon view and the tree view */
- targets = gtk_target_list_new (item_targets, G_N_ELEMENTS (item_targets));
+ targets = gdk_content_formats_new (item_targets, G_N_ELEMENTS (item_targets));
gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (icon_list),
GDK_BUTTON1_MASK,
targets,
@@ -544,7 +544,7 @@ main (gint argc, gchar **argv)
gtk_tree_view_enable_model_drag_dest (GTK_TREE_VIEW (tv),
targets,
GDK_ACTION_MOVE);
- gtk_target_list_unref (targets);
+ gdk_content_formats_unref (targets);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_container_add (GTK_CONTAINER (scrolled_window), icon_list);