13
0

give drop zone its own cursor-ability

This commit is contained in:
Paul Davis 2014-07-01 11:41:16 -04:00
parent e5e12acc56
commit e3a6ea0273
3 changed files with 9 additions and 1 deletions

View File

@ -1325,6 +1325,7 @@ Editor::choose_canvas_cursor_on_entry (GdkEventCrossing* /*event*/, ItemType typ
case CdMarkerBarItem:
case VideoBarItem:
case TransportMarkerBarItem:
case DropZoneItem:
cursor = which_grabber_cursor();
break;

View File

@ -1126,6 +1126,12 @@ Editor::canvas_drop_zone_event (GdkEvent* event)
return canvas_scroll_event (&scroll, true);
break;
case GDK_ENTER_NOTIFY:
return typed_event (_canvas_drop_zone, event, DropZoneItem);
case GDK_LEAVE_NOTIFY:
return typed_event (_canvas_drop_zone, event, DropZoneItem);
default:
break;
}

View File

@ -61,7 +61,8 @@ enum ItemType {
MinsecRulerItem,
BBTRulerItem,
SamplesRulerItem,
DropZoneItem,
/* don't remove this */
NoItem