mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Only process drop events for the data types we actually know.
Should help Jaka's MDI. Miguel
This commit is contained in:
parent
9ee743dea5
commit
08dc3ad481
@ -736,8 +736,11 @@ drop_cb (GtkWidget *widget, GdkEventDropDataAvailable *event, desktop_icon_t *di
|
||||
{
|
||||
if (strcmp (event->data_type, "icon/root") == 0){
|
||||
printf ("ICON DROPPED ON ROOT!\n");
|
||||
} else
|
||||
} if (strcmp (event->data_type, "url:ALL") == 0 || (strcmp (event->data_type, "file:ALL") == 0)){
|
||||
url_dropped (widget, event, di);
|
||||
} else
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user