Commit 24a032bd authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Gtk2: hide statusbar panel with width of 0.part of issue #22362

git-svn-id: trunk@37856 -
parent 44587995
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment