Gtk: fixed crash in GtkFormEvent()

git-svn-id: trunk@25479 -
This commit is contained in:
zeljko 2010-05-17 12:06:50 +00:00
parent 7bb68e7dfa
commit 095372bedf

View File

@ -237,7 +237,10 @@ begin
exit(True);
with GtkWidgetSet do
begin
LastFocusOut := PGtkWidget(ACtl.Handle);
if ACtl.HandleAllocated then
LastFocusOut := PGtkWidget(ACtl.Handle)
else
LastFocusOut := Widget;
if LastFocusOut = LastFocusIn then
StartFocusTimer;
end;
@ -245,7 +248,10 @@ begin
begin
with GtkWidgetSet do
begin
LastFocusIn := PGtkWidget(ACtl.Handle);
if ACtl.HandleAllocated then
LastFocusIn := PGtkWidget(ACtl.Handle)
else
LastFocusIn := Widget;
if not AppActive then
AppActive := True;
end;