summaryrefslogtreecommitdiff
path: root/tests/testkineticscrolling.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-18 01:41:42 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-18 02:40:00 +0100
commitb8cf7ea1c6ee97c3ad1a95717d62bcfe33786116 (patch)
tree109746158e14bbb59256ce98b21963847ca91b87 /tests/testkineticscrolling.c
parent1145da3ea5a60387ea4bc7a93ee52f08a3c20b80 (diff)
downloadgtk+-b8cf7ea1c6ee97c3ad1a95717d62bcfe33786116.tar.gz
dnd: Port the TreeModel machinery to GValue DND
Diffstat (limited to 'tests/testkineticscrolling.c')
-rw-r--r--tests/testkineticscrolling.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/testkineticscrolling.c b/tests/testkineticscrolling.c
index eaac76cbe0..ca9f2581e4 100644
--- a/tests/testkineticscrolling.c
+++ b/tests/testkineticscrolling.c
@@ -1,10 +1,5 @@
#include <gtk/gtk.h>
-static const char *row_targets[] =
-{
- "GTK_TREE_MODEL_ROW"
-};
-
static void
on_button_clicked (GtkWidget *widget, gpointer data)
{
@@ -83,7 +78,7 @@ kinetic_scrolling (void)
gtk_widget_show (swindow);
treeview = gtk_tree_view_new ();
- targets = gdk_content_formats_new (row_targets, G_N_ELEMENTS (row_targets));
+ targets = gdk_content_formats_new_for_gtype (GTK_TYPE_TREE_ROW_DATA);
gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (treeview),
GDK_BUTTON1_MASK,
targets,