Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix some cases where HP/VP did not restore their size correctly
Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions .
+4
−0
gmusicbrowser_player.pm
@@ -1689,6 +1689,10 @@ sub PanedNew
{ my ($class ,$opt )=@_ ;
my $pane =$class -> new;
($pane -> {pos1 },$pane -> {pos2 })=split /_/,$opt if $opt ;
if (defined $pane -> {pos1 })
{ $pane -> set_position($pane -> {pos1 });
$pane -> set(' position-set' ,1); # in case $pane->{pos1}==0 'position-set' is not set to true if child1's size is 0 (which is the case here as child1 doesn't exist yet)
}
$pane -> set_position($pane -> {pos1 }) if defined $pane -> {pos1 };
$pane -> {SaveOptions }=sub { $_ [0]{pos1 }.' _' .$_ [0]{pos2 } };
$pane -> signal_connect(size_allocate => \&Paned_size_cb ); # needed to correctly behave when a child is hidden
Toggle all file notes