mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 17:19:18 +01:00
gtk2 intf: fixed TGtk2WSMenu.SetBiDiMode checking if HandleAllocated
git-svn-id: trunk@25193 -
This commit is contained in:
parent
9968ec7168
commit
484a5efedb
@ -506,9 +506,11 @@ const
|
||||
begin
|
||||
if Flip then
|
||||
begin
|
||||
if AMenuItem.HandleAllocated then begin
|
||||
gtk_widget_set_direction(PGtkWidget(AMenuItem.Handle), WidgetDirection[UseRightToLeftAlign]);
|
||||
UpdateInnerMenuItem(AMenuItem, PGtkWidget(AMenuItem.Handle));
|
||||
end;
|
||||
end;
|
||||
for i := 0 to AMenuItem.Count -1 do
|
||||
Switch(AMenuItem[i], True);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user