summaryrefslogtreecommitdiff
path: root/tests/testtreeview.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/testtreeview.c
parent1145da3ea5a60387ea4bc7a93ee52f08a3c20b80 (diff)
downloadgtk+-b8cf7ea1c6ee97c3ad1a95717d62bcfe33786116.tar.gz
dnd: Port the TreeModel machinery to GValue DND
Diffstat (limited to 'tests/testtreeview.c')
-rw-r--r--tests/testtreeview.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/testtreeview.c b/tests/testtreeview.c
index ffa06867e2..8df5ca4925 100644
--- a/tests/testtreeview.c
+++ b/tests/testtreeview.c
@@ -641,10 +641,6 @@ on_row_activated (GtkTreeView *tree_view,
g_print ("Row activated\n");
}
-static const char *row_targets[] = {
- "GTK_TREE_MODEL_ROW"
-};
-
static void
quit_cb (GtkWidget *widget,
gpointer data)
@@ -709,7 +705,7 @@ main (int argc,
tv = gtk_tree_view_new_with_model (models[0]);
g_signal_connect (tv, "row-activated", G_CALLBACK (on_row_activated), NULL);
- 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 (tv),
GDK_BUTTON1_MASK,
targets,