GTK+ doesn't track motion of DND file from desktop






My initialization of the destination widget is as such:


 GtkTargetList* target_list = gtk_target_list_new(NULL, 0);


 gtk_target_list_add_image_targets(target_list, 0 /* ALL_IMAGES */,
FALSE);
 gtk_target_list_add_uri_targets(target_list, 1 /* TEXT_URI */) ;


 gtk_drag_dest_set(GTK_WIDGET(gui.event_dropbox), 0, NULL, 0,
GDK_ACTION_DEFAULT);
 gtk_drag_dest_set_target_list(GTK_WIDGET(gui.event_dropbox),
target_list);
 gtk_drag_dest_set_track_motion(GTK_WIDGET(gui.event_dropbox), TRUE);


Doing so, if I DND text from within the application it tracks motion in the
`drag-motion` event, but doesn't seem to invoke this signal at all
when dealing with files from the desktop. It invokes all other signals as
expected, beside `drag-motion` and `drag-leave`.


I am very exhausted from trying to figure this out, so maybe some of you
can?




-------------------------------------

П.П. Искаш сайт? Направи си, лесно е! Отиди на www.superhosting.bg и избери най-доброто име за него. Започни 
сега със СуперХостинг.БГ! 
 
https://www.superhosting.bg/?utm_source=mail.bg&utm_medium=cpm&utm_content=mail_header&utm_campaign=campaign2018


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]