diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-16 22:50:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-16 22:59:43 +0100 |
commit | 3f5178dc210f3d88b1b0b08ce671565becf3fd7d (patch) | |
tree | 6710aad32c0c9a6a89d5e2b8c09b5684c3429f4d /tests/testtreeview.c | |
parent | 5da3059175a79b8b4e501ae05886f9b54f42489d (diff) | |
download | gtk+-3f5178dc210f3d88b1b0b08ce671565becf3fd7d.tar.gz |
selection: Remove the info uint
Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.
The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.
Diffstat (limited to 'tests/testtreeview.c')
-rw-r--r-- | tests/testtreeview.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/testtreeview.c b/tests/testtreeview.c index d73551aa0e..3dc112fd40 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -641,14 +641,8 @@ on_row_activated (GtkTreeView *tree_view, g_print ("Row activated\n"); } -enum -{ - TARGET_GTK_TREE_MODEL_ROW -}; - static GtkTargetEntry row_targets[] = { - { "GTK_TREE_MODEL_ROW", GTK_TARGET_SAME_APP, - TARGET_GTK_TREE_MODEL_ROW } + { "GTK_TREE_MODEL_ROW", GTK_TARGET_SAME_APP } }; int |