From c8554f78f6b71349290d633809d4eaf4a0047b76 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 28 Sep 2008 23:38:56 +0000 Subject: (move_selection) better positionning of sidepanel's selection bar instead of using hardcoded offset (mainly visible in MCC) rationale: we pass the whole label widget as parameter so that we got more control on how to compute the Y coordinate instead of requiring callers to extract label's position from the widget --- perl-install/install/gtk.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/gtk.pm') diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm index eb80cb083..ef3165543 100644 --- a/perl-install/install/gtk.pm +++ b/perl-install/install/gtk.pm @@ -172,7 +172,7 @@ sub update_steps_position { if ($o->{steps}{$_}{entered} && !$o->{steps}{$_}{done}) { # we need to flush the X queue since else we got a temporary Y position of -1 when switching locales: mygtk2::flush(); #- for auto_installs which never go through the Gtk2 main loop - $o->{steps_widget}->move_selection($steps{steps}{$_}{text}->allocation->y); + $o->{steps_widget}->move_selection($steps{steps}{$_}{text}); if ($last_step) { $steps{steps}{$last_step}{img}->set_from_pixbuf($steps{done}); -- cgit v1.2.1