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

git-svn-id: trunk@37856 -
This commit is contained in:
zeljko 2012-07-03 10:50:11 +00:00
parent 4458799589
commit 24a032bd60

View File

@ -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);