ecore-wl dnd target interface should accept a NULL mime_type

according to protocol, this indicates that the target does not support the drop type
This commit is contained in:
Mike Blumenkrantz 2015-03-13 14:52:58 -04:00
parent 8927a33f64
commit 426382bc8b
1 changed files with 2 additions and 1 deletions

View File

@ -737,7 +737,8 @@ _ecore_wl_dnd_source_cb_target(void *data, struct wl_data_source *source EINA_UN
if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return;
event->type = strdup(mime_type);
if (mime_type)
event->type = strdup(mime_type);
ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_TARGET, event,
_ecore_wl_dnd_source_cb_target_free, NULL);