Skip to content

Commit

Permalink
fix some cases where HP/VP did not restore their size correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
squentin committed Jun 30, 2010
1 parent a453885 commit 7c1935d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gmusicbrowser_player.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c1935d

Please sign in to comment.