From 7b90281fb2e73c5e70488b35312c2faa51f2d9ce Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Aug 2012 18:56:42 +0200 Subject: perlish ->allocation => ->get_allocation --- perl-install/mygtk3.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/mygtk3.pm') diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index e3cb85268..9f5b68d1a 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -348,7 +348,7 @@ sub _gtk__Image { $w->signal_connect(expose_event => sub { my (undef, $event) = @_; if (!$w->{x}) { - my $alloc = $w->allocation; + my $alloc = $w->get_allocation; $w->{x} = $alloc->x; $w->{y} = $alloc->y; } @@ -1589,7 +1589,7 @@ sub move_selection { my $layout = $w->{layout}; $layout->{arrow_ydiff} ||= ($w->{selection_arrow}->get_pixbuf->get_height - $w->{selection_bar}->get_pixbuf->get_height)/2; - my $bar_y = $label->allocation->y - ($w->{selection_bar}->get_pixbuf->get_height - $label->allocation->height)/2; + my $bar_y = $label->get_allocation->y - ($w->{selection_bar}->get_pixbuf->get_height - $label->allocation->height)/2; $layout->move($w->{selection_bar}, 0, $bar_y); $layout->move($w->{selection_arrow}, $w->{arrow_x}, $bar_y - $layout->{arrow_ydiff}); # arrow is higer $_->show foreach $w->{selection_bar}, $w->{selection_arrow}; -- cgit v1.2.1