From f7a9dcafc5d826aca83374458ee0c518ec40ff98 Mon Sep 17 00:00:00 2001 From: damien Date: Fri, 15 Mar 2002 10:32:48 +0000 Subject: submitting widget instead of style (style/font initialization bug from gtk --- perl-install/install_steps_gtk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index 7223ea47b..3ff152681 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -564,7 +564,7 @@ sub installPackages { foreach (@data) { my ($text, $x, $y, $area_width, $area_height, $bold) = @$_; my ($width, $height, $lines, $widths, $heights, $ascents, $descents) = - get_text_coord ($text, $darea->style, $area_width, $area_height, 1, 0, 1, 1); + get_text_coord ($text, $darea, $area_width, $area_height, 1, 0, 1, 1); if ($first && $icon) { my $iconx = ($dx-$width)/2 + $x + ${$widths}[0] - $icon_dx; my $icony = $y + ${$heights}[0] - $icon_dy/2; @@ -580,7 +580,7 @@ sub installPackages { $dbl_area->draw_string($darea->style->font, $gc_text, ($dx-$width)/2 + $x + ${$widths}[$i], ( $first ? 0 : $decy ) + $y + ${$heights}[$i], $_); $bold and $dbl_area->draw_string($darea->style->font, $gc_text, - ($dx-$width)/2 + $x + ${$widths}[$i] + 1, ( $first ? 0 : $decy ) + $y + ${$heights}[$i], $_); + ($dx-$width)/2 + $x + ${$widths}[$i] + 1, ( $first ? 0 : $decy ) + $y + ${$heights}[$i], $_); $i++; } $first = 0; -- cgit v1.2.1