mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
Gtk2: hide statusbar panel with width of 0.part of issue #22362
git-svn-id: trunk@37856 -
This commit is contained in:
parent
4458799589
commit
24a032bd60
@ -6091,6 +6091,10 @@ begin
|
||||
//DebugLn(' CurPanel.Width="',CurPanel.Width,'"');
|
||||
gtk_widget_set_usize(StatusPanelWidget, CurPanel.Width,
|
||||
StatusPanelWidget^.allocation.height);
|
||||
if CurPanel.Width > 0 then
|
||||
gtk_widget_show(StatusPanelWidget)
|
||||
else
|
||||
gtk_widget_hide(StatusPanelWidget);
|
||||
|
||||
g_object_set_data(PGObject(StatusPanelWidget),'lcl_statusbar_id',
|
||||
@AStatusBar.Panels[Index].ID);
|
||||
|
Loading…
Reference in New Issue
Block a user