From 40db6098f693ac28e3e5edc87c518f6111f314dd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 19 Nov 2013 01:36:02 +0100 Subject: simplify --- perl-install/mygtk3.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 4c9383c8e..2ada07517 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -1639,7 +1639,8 @@ 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->get_allocation->{y} - ($w->{selection_bar}->get_pixbuf->get_height - $label->get_allocation->{height})/2; + my $alloc = $label->get_allocation; + my $bar_y = $alloc->{y} - ($w->{selection_bar}->get_pixbuf->get_height - $alloc->{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