mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 16:12:36 +02:00
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:
parent
3b6ec447bf
commit
ff8b5f7a1b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user