gtk2 intf: added comment

git-svn-id: trunk@20336 -
This commit is contained in:
mattias 2009-06-01 20:16:12 +00:00
parent f3ba79012b
commit 338ebe97d4

View File

@ -150,9 +150,14 @@ var
CalendarCtrl: TCustomCalendar;
CalendarWidget: PGtkCalendar;
begin
// When the user drags a day number, the gtk2 starts a mouse capture.
// when the TCalendar is on a TDateEdit, the LCL destroys the widget while the
// gtk is still capturing. Result: The capture hangs.
// thaw it:
CalendarCtrl:=TCustomCalendar(AWinControl);
CalendarWidget:=GetCalendar(CalendarCtrl);
gtk_calendar_thaw(CalendarWidget);
inherited DestroyHandle(AWinControl);
end;