As an example, if the program defines the handler for item movement as:
function On_Item_Event_Move_Item
(View : not null access Glib.Object.GObject_Record'Class;
Event : Event_Details_Access)
return Boolean
is
begin
Event.Allowed_Drag_Area := Some_Rectangle;
return Gtkada.Canvas_View.Views.On_Item_Event_Move_Item (View, Event);
end On_Item_Event_Move_Item;
As an example, if the program defines the handler for item movement as:
and then the handlers:
However, dragging is not limited in any way.
Diving into the problem, I commented out gtkada-canvas_pkg.adb line 509:
end On_Item_Event_Move_Item;
and voilá, dragging is now limited to the rectangle.