So I started to playing around with GTK Drag and drop, read couple of articles and managed to get what I wanted - path to dragged file/directory when dropping it on rows of treeview but I can't seem to get to highlight row that mouse pointer is above.
gtk_drag_dest_set(users_view,(GtkDestDefaults)(GTK_DEST_DEFAULT_ALL | GTK_DEST_DEFAULT_HIGHLIGHT),typ_drag,1, GDK_ACTION_COPY);
(GtkWidget *widget, GdkDragContext *context, gint x, gint y,
GtkSelectionData *selection_data, guint target_type, guint time,
/* Deal with what we are given from source */
if((selection_data != NULL) && (gtk_selection_data_get_length(selection_data) >= 0))
/* Check that we got the format we can use */
names = gtk_selection_data_get_uris(selection_data);
name = g_filename_from_uri(names,NULL,NULL);
std::cout << name << std::endl;
gtk_drag_finish (context, TRUE,FALSE, time);
EDIT: Now I see the problem, usually You should use drag-motion signal and then highlight widget with highlight drag function but because I use GTK_DEST_DEFAULT_ALL GTK autmatically sets all drag and drops events and therfore drag-motion is never called in my code.
Is there a soultion to fix it without writting whole DnD by myself?