mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 11:59:26 +02:00
LCL: GTK2: Fixed set TPanel visible to false on non visual TabSheet doesn't work. Issue #32593
git-svn-id: trunk@56140 -
This commit is contained in:
parent
f5831e3b32
commit
e34b72f9d9
@ -238,7 +238,7 @@ begin
|
||||
|
||||
// issue #23940. Hide panel if we are not visible, but before setting callbacks.
|
||||
// so it won't trigger unnecessary events to LCL.
|
||||
if not AWinControl.Visible and not (csDesigning in AWinControl.ComponentState) then
|
||||
if not AWinControl.HandleObjectShouldBeVisible and not (csDesigning in AWinControl.ComponentState) then
|
||||
gtk_widget_hide(Frame);
|
||||
|
||||
SetCallbacks(Frame, WidgetInfo);
|
||||
|
@ -2289,7 +2289,7 @@ begin
|
||||
g_object_set_data(PGObject(FrameBox), 'widgetinfo', WidgetInfo);
|
||||
gtk_widget_show(TempWidget);
|
||||
gtk_widget_show(P);
|
||||
if AWinControl.Visible then
|
||||
if AWinControl.HandleObjectShouldBeVisible then
|
||||
gtk_widget_show(FrameBox);
|
||||
|
||||
Result := TLCLIntfHandle({%H-}PtrUInt(FrameBox));
|
||||
|
Loading…
Reference in New Issue
Block a user