Re: GTK4: gtk_tree_view_enable_model_drag_dest () and GdkContentFormats

2018-03-12 Thread Marcus Schätzle
Sorry for adding to the confusion; it is still working now (and I've also fixed the remaining part in the meantime), but actually the problem was another one. GDK_BUTTON1_MASK was present also in the GTK3 version of my program. gtk_tree_view_enable_model_drag_source () takes now four arguments

Re: GTK4: gtk_tree_view_enable_model_drag_dest () and GdkContentFormats

2018-03-12 Thread Marcus Schätzle
I have found the solution for the dragging part. While gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (treeview), 1, enable_list, GDK_ACTION_MOVE); // enable_list is a GtkTargetEntry structure was working in GTK3 (in fact this was a leftover from the GTK2 beginnings of the program), it has

Re: GTK4: gtk_tree_view_enable_model_drag_dest () and GdkContentFormats

2018-03-12 Thread lrn1986
On 12.03.2018 19:45, Marcus Schätzle wrote: Hi all, I've done a port of a program to GTK4 (3.93.3); there is a part that I have not yet gotten to work and that is drag and drop inside a tree view. I have particularly trouble understanding using the target formats inside 

GTK4: gtk_tree_view_enable_model_drag_dest () and GdkContentFormats

2018-03-12 Thread Marcus Schätzle
Hi all, I've done a port of a program to GTK4 (3.93.3); there is a part that I have not yet gotten to work and that is drag and drop inside a tree view. I have particularly trouble understanding using the target formats inside gtk_tree_view_enable_model_drag_dest (). For the GTK 3 version I use