mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 04:56:02 +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);
|
gtk_widget_set_flags(AWidget, GTK_HAS_FOCUS);
|
||||||
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
|
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
|
||||||
|
gtk_widget_queue_draw(AWidget);
|
||||||
Result := gtk_False;
|
Result := gtk_False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -454,6 +455,7 @@ begin
|
|||||||
|
|
||||||
gtk_widget_unset_flags(AWidget, GTK_HAS_FOCUS);
|
gtk_widget_unset_flags(AWidget, GTK_HAS_FOCUS);
|
||||||
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
|
GTKAPIWidgetClient_DrawCaret(PGTKAPIWidgetClient(AWidget), False);
|
||||||
|
gtk_widget_queue_draw(AWidget);
|
||||||
Result := gtk_False;
|
Result := gtk_False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user