Gtk2: fixed wrong im_context reset. fixes #15965

git-svn-id: trunk@24524 -
This commit is contained in:
zeljko 2010-04-08 18:15:17 +00:00
parent 178c26c4d6
commit 21d5eda8e4

View File

@ -442,7 +442,8 @@ end;
procedure ResetDefaultIMContext;
begin
{$IFDEF Gtk2}
if (im_context<>nil) and (im_context_widget<>nil) then begin
if (im_context<>nil) then
begin
gtk_im_context_reset(im_context);
gtk_im_context_set_client_window(im_context,nil);
end;