LCL, Gtk2, force redraw of GTKWinApiWidgets on focus changes so they can reflect focused/unfocused state (for grids in this case)

git-svn-id: trunk@42924 -
This commit is contained in:
jesus 2013-09-24 17:36:24 +00:00
parent 3b6ec447bf
commit ff8b5f7a1b

View File

@ -442,6 +442,7 @@ begin
gtk_widget_set_flags(AWidget, GTK_HAS_FOCUS);
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
gtk_widget_queue_draw(AWidget);
Result := gtk_False;
end;
@ -454,6 +455,7 @@ begin
gtk_widget_unset_flags(AWidget, GTK_HAS_FOCUS);
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
gtk_widget_queue_draw(AWidget);
Result := gtk_False;
end;